The Client Apps Toggle That Bypasses Azure MFA
Overview
When a Conditional Access MFA policy scopes Client apps to Browser and Mobile apps and desktop clients only, legacy authentication falls outside enforcement. Exchange Online has already switched off Basic auth for EWS, POP and IMAP, so SMTP AUTH is the path still open to password-only sign-ins.
At a glance
- Symptom
- Admin assumes a separate legacy-auth block policy already covers EAS/Other clients, leaving them unscoped in the MFA policy.
- Likely cause
- Client apps condition enabled but scoped only to Browser and Mobile apps/desktop clients categories.
- Impact
- Legacy protocol sign-ins bypass MFA entirely, letting password-spray attacks compromise mailboxes holding Send As or Impersonation rights.
- Verification signal
- Re-run the detection test and a controlled negative-path test.
- Safe correction
- Create a dedicated policy blocking Exchange ActiveSync and Other clients outright; disable IMAP/POP/SMTP AUTH via Set-CASMailbox.
- 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 where the "Client apps" condition is enabled and scoped to only "Browser" and "Mobile apps and desktop clients", while "Exchange ActiveSync clients" and "Other clients" are left unticked.
The Default State
Out of the box, the Client apps condition in a new Conditional Access policy defaults to Configure: No. That means the condition isn’t evaluated at all, and the policy applies to every client app type by inheritance, legacy included.
Administrators following third-party audit checklists often flip that toggle to Yes and then select only the two modern-auth categories, assuming legacy protocols are already disabled tenant-wide by a separate block policy. In practice that separate policy is frequently half-deployed, scoped to a pilot group, or carries broad exclusions for service accounts.
The Blast Radius
IMAP4, POP3, SMTP AUTH and older Exchange Web Services connections identify themselves as "Other clients" or "Exchange ActiveSync clients" in the sign-in log. With the Client apps condition scoped away from those categories, the MFA-requiring policy simply doesn’t apply to them, no challenge, no device check, no risk evaluation.
Wherever a legacy protocol still accepts a password, any valid username and password authenticates cleanly. This was the mechanism behind large-scale password-spray campaigns against Exchange Online EWS and IMAP endpoints until Microsoft switched off Basic authentication for those protocols; SMTP AUTH is the remaining Basic path there and is being retired.
Those protocols can’t render an MFA prompt and, more importantly, the CA engine never gets asked to enforce one. Sign-in risk scoring on basic-auth events behaves differently to interactive sign-ins, so Identity Protection often stays quiet.
In reporting, the MFA policy simply shows as Not applied on those sign-ins, which is easy to miss, because it was never in scope to begin with. Service accounts and legacy connectors using these protocols frequently hold Send As or Full Access rights, so a single successful spray can expose entire mailbox estates.
The Lead Mechanic Fix
Stop trying to fit legacy protocols into an MFA grant control, block them outright. Build a dedicated policy: Conditions > Client apps > Configure Yes, select only "Exchange ActiveSync clients" and "Other clients", Grant control set to Block, applied to All users excluding the break-glass account.
Confirm at the protocol layer with Get-CASMailbox -ResultSize Unlimited | Where {$_.ImapEnabled -eq $true -or $_.PopEnabled -eq $true} and, once each mailbox owner confirms nothing still depends on those protocols, remediate per mailbox with Set-CASMailbox -Identity <mailbox> -ImapEnabled $false -PopEnabled $false -SmtpClientAuthenticationDisabled $true.
Verify closure by filtering sign-in logs for Client App = IMAP4, POP3, SMTP and checking the Applied Policies column no longer reads "Not applied".
Related reading
Read-only check
Check your environment (read-only)
Show which client app types each Conditional Access policy covers
Based on vendor documentation; not run by KBY in a test tenant
What it shows: Each Conditional Access policy's name, state and conditions, including conditions.clientAppTypes.
GET https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies?$select=displayName,state,conditionsHow to read the result
- conditions.clientAppTypes can contain all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported and other.
- exchangeActiveSync, easSupported and other correspond to the legacy authentication client types: Exchange ActiveSync clients, and Other clients that use basic or legacy authentication with mail protocols such as IMAP, MAPI, POP and SMTP.
- Legacy authentication clients don't support MFA, so a policy that requires MFA blocks them only when it applies to them. A policy whose clientAppTypes lists only browser and mobileAppsAndDesktopClients does not apply to legacy authentication sign-ins.
You need
- Any Microsoft Graph client, such as Graph Explorer. The request is a GET with no body.
- Permission Policy.Read.All, with a role such as Security Reader, Global Reader or Conditional Access Administrator.
Vendor documentation used
- List policies (Microsoft Graph) GET /identity/conditionalAccess/policies, $select support, and Policy.Read.All.
- conditionalAccessConditionSet resource type clientAppTypes and its values all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported and other.
- Conditional Access: conditions Legacy authentication client types (Exchange ActiveSync clients, Other clients) and that legacy clients don't support MFA.
The check only reads configuration. Plan any change it points to through your normal change process.
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
Get-CASMailbox -ResultSize Unlimited | Where {$_.ImapEnabled -eq $true -or $_.PopEnabled -eq $true}Set-CASMailbox -Identity <mailbox> -ImapEnabled $false -PopEnabled $false -SmtpClientAuthenticationDisabled $trueVerify, 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.
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.
