# How to block legacy authentication using Microsoft Entra Conditional Access

Author: [Opeyemi Enitan](https://blog.threatintels.org/blog/about.html)

Canonical article: https://blog.threatintels.org/blog/entra-ca-01-block-legacy-authentication.html

Historical project period: January 2025 series (2025-01)

## Why this matters

Passwords alone can still be enough for an attacker when an organisation permits legacy authentication flows that cannot complete modern multifactor authentication. Password spraying, credential stuffing and previously stolen passwords can therefore expose accounts even where MFA is configured for modern clients.

This guide shows how to discover legitimate legacy dependencies, block the affected authentication flows with Conditional Access and validate the rollout without unexpectedly interrupting business-critical applications.

PRACTICAL WALKTHROUGH · PART 01 OF 06

## What you'll accomplish

Discover legacy authentication dependencies and safely block legacy client access.

[Microsoft Entra Conditional Access Series](https://blog.threatintels.org/blog/entra-conditional-access-series.html)

Legacy authentication can expose an organisation to password-based attacks because legacy clients cannot complete modern MFA challenges. Establish a dedicated blocking policy rather than relying on users to abandon older clients themselves. This guide covers discovery, configuration, staged enforcement and monitoring.

## 1. Prerequisites and current-state assessment

Ensure Microsoft Entra ID P1 or equivalent Conditional Access licensing, an authorised Conditional Access Administrator, access to sign-in logs, tested emergency access accounts and an application dependency inventory. Include administrators, remote workers and scheduled jobs in change planning.

In the Entra admin centre, open Entra ID > Monitoring & health > Sign-in logs. Filter Client app for legacy authentication types and inspect both interactive and non-interactive user sign-ins. Identify successful events, associated resources, recurrence and business owners. Failed attempts alone do not prove an application dependency. Review the legacy authentication workbook if available. Ask owners to migrate older mail clients and service integrations to supported modern authentication, OAuth or appropriate workload identities. A protocol name alone is not proof of basic authentication: verify the actual authentication flow.

## 2. Configure the policy

Navigate to Entra ID > Conditional Access > Policies > New policy. For an existing policy, inspect and export its settings rather than replacing it blindly.

Configuration captures show a newer Microsoft Entra portal interface, with sensitive details removed. They illustrate the settings, not proof of a successful deployment or a January 2025 capture.

1. **Name:** use a descriptive name, such as CA - Block legacy authentication.

![Enabled legacy authentication block policy overview](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-01/configuration-01.png)

**Figure 1.** Enabled legacy authentication block policy overview. [Open full-size image](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-01/configuration-01.png)

2. **Users:** include All users. Exclude designated emergency access accounts and only approved, documented temporary exceptions. The configuration captures show specific exclusions but do not identify them.

![All users included, with specific exclusions](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-01/configuration-02.png)

**Figure 2.** All users included, with specific exclusions. [Open full-size image](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-01/configuration-02.png)

3. **Target resources:** select Resources > All resources (formerly All cloud apps). This applies to resources governed by Entra, not independently authenticated services.

![Target resources: All resources](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-01/configuration-03.png)

**Figure 3.** Target resources: All resources. [Open full-size image](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-01/configuration-03.png)

4. **Conditions > Client apps:** set Configure to Yes. Select Exchange ActiveSync clients and Other clients under legacy authentication clients. Leave Browser and Mobile apps and desktop clients unselected. This is the critical scope boundary.

![Legacy client categories selected; modern client categories unchecked](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-01/configuration-04.png)

**Figure 4.** Legacy client categories selected; modern client categories unchecked. [Open full-size image](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-01/configuration-04.png)

5. **Grant:** select Block access, then Select. Leave session controls unconfigured.

![Grant control: Block access](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-01/configuration-05.png)

**Figure 5.** Grant control: Block access. [Open full-size image](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-01/configuration-05.png)

6. **Enable policy:** for a new rollout, select Report-only, save and review impacts before enabling. The supplied configuration captures show On. Do not turn off an existing effective control just to evaluate a new policy.

## 3. Validate before enforcement

Use What If for representative client types and inspect actual sign-in events. Report-only is evaluation, not an enforcement test. Run a controlled pilot with test identities and approved clients; do not re-enable deprecated service protocols merely to test.

<table><thead><tr><th>Scenario</th><th>Expected result for this policy</th></tr></thead><tbody><tr><td>Modern browser or desktop client</td><td>Not applied</td></tr><tr><td>In-scope legacy request</td><td>Blocked when evaluated and enforced</td></tr><tr><td>Explicitly excluded account</td><td>Not applied</td></tr><tr><td>In-scope legacy request during report-only</td><td>Report-only failure when it would block</td></tr></tbody></table>

Service-side authentication restrictions can reject attempts before the policy evaluates. Other policies may independently deny access. Check both the individual CA result and overall event outcome.

## 4. Inventory legacy authentication candidates

Use the Entra sign-in log Client app filter to establish which entries fall under legacy authentication. The following inventory exposes the actual client labels and recorded result codes rather than guessing a complete list of values. Both sign-in tables must be connected to the workspace.

kusto

```
union
    (SigninLogs
    | where TimeGenerated >= ago(30d)
    | project UserPrincipalName, AppDisplayName, ClientAppUsed,
        RecordedResult = tostring(ResultType), LogType = "Interactive"),
    (AADNonInteractiveUserSignInLogs
    | where TimeGenerated >= ago(30d)
    | project UserPrincipalName, AppDisplayName, ClientAppUsed,
        RecordedResult = tostring(ResultType), LogType = "Non-interactive")
| summarize Events = count(), AffectedUsers = dcount(UserPrincipalName)
    by ClientAppUsed, AppDisplayName, RecordedResult, LogType
| order by Events desc
```

Compare observed client values against the documented legacy client categories and the relevant sign-in details. Do not assume that an unknown client is necessarily legacy or that an identical result value has the same meaning across all log types. For interactive SigninLogs, ResultType "0" is a successful sign-in. Microsoft documents the non-interactive table separately. Check the actual outcomes before classifying dependencies. Counts are log records, not unique authentication attempts.

## 5. Verify the specific policy evaluation

Retrieve the policy ID from View policy information in Entra and replace the placeholder. The two input tables are projected to a common schema before combining them, because the policy array is dynamic in SigninLogs and a string in the non-interactive table.

kusto

```
let PolicyId = "<replace-with-policy-guid>";
union
    (SigninLogs
    | where TimeGenerated >= ago(30d)
    | project UserPrincipalName, AppDisplayName, ClientAppUsed,
        PolicyArray = todynamic(ConditionalAccessPolicies), LogType = "Interactive"),
    (AADNonInteractiveUserSignInLogs
    | where TimeGenerated >= ago(30d)
    | project UserPrincipalName, AppDisplayName, ClientAppUsed,
        PolicyArray = todynamic(ConditionalAccessPolicies), LogType = "Non-interactive")
| mv-expand Policy = PolicyArray
| where tostring(Policy.id) =~ PolicyId
| summarize Events = count(), AffectedUsers = dcount(UserPrincipalName)
    by PolicyResult = tostring(Policy.result), ClientAppUsed, AppDisplayName, LogType
| order by Events desc
```

Review failure, reportOnlyFailure, notApplied and other outcomes separately. Policy evaluation is not the same as the overall sign-in outcome. The query fields and KQL constructs were checked against the linked Microsoft documentation on 30 November 2026. These examples have not been executed against a live workspace. Use a workspace containing the required diagnostic tables, with sufficient retention and appropriate read permissions.

## 6. Rollout, troubleshooting and rollback

Resolve legitimate dependencies before expansion. Notify support, test emergency access and enable the policy for a pilot, then the approved broader population. If modern clients are unexpectedly blocked, check whether modern categories were selected or a different policy caused the failure. If a scheduled job fails, inspect its identity and authentication type rather than granting permanent exceptions. Assign exception owners and expiry dates. If critical disruption requires rollback, use an approved change to disable the new policy or return it to report-only while preserving other controls; restore enforcement after remediation. Maintain a separate workload identity strategy.

Blocking legacy authentication complements the MFA baseline in Part 02; it does not prevent token theft or every password-based attack.

## References

- [Block legacy authentication](https://learn.microsoft.com/en-us/entra/identity/conditional-access/policy-block-legacy-authentication)
- [Conditional Access conditions](https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-conditional-access-conditions)
- [Plan a deployment](https://learn.microsoft.com/en-us/entra/identity/conditional-access/plan-conditional-access)
- [SigninLogs table schema](https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/signinlogs)
- [Conditional Access policy evaluation results](https://learn.microsoft.com/en-us/graph/api/resources/appliedconditionalaccesspolicy?view=graph-rest-1.0)
- [Non-interactive sign-in table schema](https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/aadnoninteractiveusersigninlogs)
- [Kusto union operator and column types](https://learn.microsoft.com/en-us/kusto/query/union-operator)
- [Microsoft legacy client filter definitions](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/howto-customize-filter-logs)

## Continue the series

[All six Conditional Access guides](https://blog.threatintels.org/blog/entra-conditional-access-series.html)

[Part 02: Require multifactor authentication for all users →](https://blog.threatintels.org/blog/entra-ca-02-require-mfa.html)
