Skip to main content

The Legacy Auth Exclusion Group Nobody Prunes

High severityMicrosoft Entra ID About 20 minutes to fix

Overview

A Conditional Access exclusion group created for the Basic auth migration keeps growing long after cutover, and its members skip the policy that blocks legacy authentication, so any Basic auth protocol still enabled for them, such as SMTP AUTH, signs in without MFA.

At a glance

Symptom
Accounts added to the exemption group during the Basic Auth migration remain there permanently, authenticating via IMAP, POP or SMTP AUTH with no MFA…
Likely cause
A Conditional Access legacy-auth-block policy excludes a directory group whose membership was never given an expiry or review cadence.
Impact
Excluded accounts can be password-sprayed via legacy protocols with zero MFA challenge, and Identity Protection never logs the sign-ins as blocked because they were excluded, not denied.
Verification signal
Re-run the detection test and a controlled negative-path test.
Safe correction
Replace the standing CA exclusion group with per-mailbox Exchange Online Authentication Policies and a recurring Access Review, backed by an independent risk-based CA block policy.
Rollback or recovery
Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.

The Trap

A Conditional Access policy blocking legacy authentication protocols (Exchange ActiveSync clients and Other clients under the Client apps condition) is scoped to “All users” minus a group such as “Legacy-Auth-Exempt.” That group was created during the Exchange Online Basic Auth deprecation rollout to temporarily hold scanners, SMTP relays, shared mailboxes and line-of-business accounts that hadn’t yet migrated to modern auth. It was never given an expiry, an owner, or a review cadence.

The Default State

A common pattern during the 2022 Basic Auth deprecation was exactly this: stand up a temporary exclusion group, add anything that throws an authentication error, fix it later. Entra ID groups have no native TTL on membership, and nothing in the Conditional Access UI warns that an exclusion group has stopped shrinking. Admins add accounts under deadline pressure and move on; nobody removes them once the underlying device or mailbox is fixed, because there’s no alert tied to group growth.

The Blast Radius

Every account inside that group authenticates using protocols that carry credentials in plaintext-equivalent form on every request, with no MFA challenge possible. Because the policy excludes them from evaluation rather than blocking and logging the attempt, no Conditional Access failure is ever recorded for them — the sign-ins look like ordinary successful authentications under a policy that simply doesn’t apply.

Exchange Online has already switched off Basic auth for IMAP, POP and ActiveSync, but SMTP AUTH Basic auth can still be enabled, so a password-spray run against SMTP AUTH on an exempted shared mailbox succeeds silently, with no MFA friction and no risk detection tied to the client-apps condition.

The compromised mailbox becomes a mail-exfiltration channel or an internal phishing launchpad, and SOC dashboards built around “legacy auth blocked” counters show nothing wrong, because the traffic was never subject to the block in the first place.

The Lead Mechanic Fix

Stop using a standing CA exclusion group as the exemption mechanism. Move per-mailbox exceptions to Exchange Online Authentication Policies instead: New-AuthenticationPolicy -Name "LegacyAuthAllowed" -AllowBasicAuthSmtp (a new policy blocks Basic auth for every protocol unless an -AllowBasicAuth* switch is given) then Set-User -Identity <user> -AuthenticationPolicy "LegacyAuthAllowed", scoping legacy protocol access to named mailboxes rather than a growing directory group.

For anything still routed through the CA exclusion group, attach an Access Review with a 30-day recurrence and auto-remove on no attestation via Entra ID Governance, and add a second, independent CA policy — “Sign-in risk ≥ Medium → Block” — scoped to all users including the exempt group, since risk-based Identity Protection evaluation runs separately from the client-apps condition and still catches anomalous legacy sign-ins the exclusion would otherwise hide.

3

Apply the safer control

Before you change production

Confirm the affected scope, export the current configuration, and test the replacement control in a non-production environment first.

Fix commands and configuration

New-AuthenticationPolicy -Name "LegacyAuthAllowed" -AllowBasicAuthSmtp
-AllowBasicAuth*
Set-User -Identity <user> -AuthenticationPolicy "LegacyAuthAllowed"
4

Verify, roll back or escalate

Verify

Re-run the detection test and a controlled negative-path test. Confirm the unsafe behaviour is blocked while approved traffic still succeeds.

Rollback

Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.

Escalate

Escalate when the blast radius is uncertain, the control cannot be tested safely, or remediation requires an outage or security exception.

The KBY Brief

Fixed? Get the next one before it hits you: The KBY Brief

Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.

About this page

Credited to

Dates

Published

Last updated

Corrections

No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

After remediation

Further reading stays below the corrective workflow and is selected by platform, category and shared technical keywords.

More from KBY that goes with this config trap.

Discover more

Connected KBY resources