Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload
CIS Microsoft 365 Foundations v7.0.0 · 5.2.2.3

Legacy authentication should be blocked with a Conditional Access policy

  • E3 Level 1
  • Microsoft Entra (Identity)
  • Automated check

This check looks for an enabled Conditional Access policy that blocks sign-ins from legacy authentication clients, such as older mail protocols that cannot do multifactor authentication. The safe setting is a policy that targets all users and all cloud apps, covers the legacy client app types, and blocks access.

Why it matters

Legacy authentication covers older protocols such as IMAP, POP3, SMTP AUTH and basic-auth based clients. They send only a username and password, so they cannot take part in multifactor authentication. That makes them a common path for password spray and credential stuffing attempts, because a stolen password is enough. Even when MFA is required elsewhere in the tenant, a single allowed legacy path can bypass it.

Microsoft's own guidance recommends blocking these clients with Conditional Access once you know who still depends on them. See Block legacy authentication with Conditional Access on Microsoft Learn.

How to check it yourself

In the Microsoft Entra admin center, open Protection > Conditional Access > Policies. Look for an enabled policy where Target resources is all resources, Conditions > Client apps selects Exchange ActiveSync clients and Other clients, and the grant control is Block access. Also review the Sign-in logs filtered by client app to see whether legacy clients are still signing in.

A read-only listing with Microsoft Graph PowerShell (needs only the Policy.Read.All permission):

Connect-MgGraph -Scopes 'Policy.Read.All'
Get-MgIdentityConditionalAccessPolicy |
  Select-Object DisplayName, State,
    @{n='ClientApps';e={$_.Conditions.ClientAppTypes -join ','}},
    @{n='Grant';e={$_.GrantControls.BuiltInControls -join ','}}

Run it on a test tenant first if you are unsure what it returns. It only reads policy definitions.

How to fix it

Create the policy in Protection > Conditional Access > Create new policy: assign it to all users, with your emergency access accounts as the only exclusion, choose all resources, set Client apps to Exchange ActiveSync clients and Other clients, and set the grant to Block access. Start it in Report-only mode, review the sign-in logs for a period that fits your business, then switch it to On.

The same policy as a script (created in report-only state; review before enabling):

Connect-MgGraph -Scopes 'Policy.ReadWrite.ConditionalAccess'
$body = @{
  displayName = 'Block legacy authentication'
  state = 'enabledForReportingButNotEnforced'
  conditions = @{
    clientAppTypes = @('exchangeActiveSync','other')
    users = @{ includeUsers = @('All'); excludeUsers = @('<emergency-access-account-id>') }
    applications = @{ includeApplications = @('All') }
  }
  grantControls = @{ operator = 'OR'; builtInControls = @('block') }
}
New-MgIdentityConditionalAccessPolicy -BodyParameter $body

ConfigCobra itself never changes your tenant; the portal steps and script above are what you run yourself.

What changes when you fix it

Anything that still signs in with a legacy protocol stops working once the policy is enforced. Typical examples are old mail clients, scanners or multifunction printers that send mail through basic authentication, and line-of-business scripts that use IMAP or POP. Users of modern clients are not affected. Report-only mode shows you which accounts and apps would be blocked, so you can move them to modern authentication or an alternative before switching the policy on. Remediation impact analysis in ConfigCobra lists the affected users, apps and policies before you apply a fix.

Included in

BenchmarkCIS IDProfile
CIS Microsoft 365 Foundations v7.0.05.2.2.3E3 Level 1

Check this on your Microsoft 365

ConfigCobra runs this check with every other control of the CIS Microsoft 365 Foundations Benchmark, read-only.

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial