Conditional Access is the policy engine behind most Microsoft Entra ID tenants. It decides who must use multi-factor authentication (MFA), which devices can reach company data, and which sign-ins get blocked outright. When it works, a stolen password is not enough to get in. When it has gaps, an attacker with that password walks straight through, and the sign-in log often looks perfectly normal.
The problem is rarely that a tenant has no policies. It is that the policies were built over several years, by different people, with exclusions added to fix urgent problems. Nobody has looked at the combined effect since. This post covers the gaps we test for most often, how they work, and how you can check your own tenant using Microsoft's built-in tools.
Why it matters
Conditional Access only protects the sign-ins it actually evaluates. Every exclusion, every unconfigured client type and every trusted network is a path where your controls do not apply. Attackers who buy or phish credentials know this. They try different protocols, user agents and locations until something lets them in without a prompt.
There is also a licensing point worth knowing. According to Microsoft Learn, Conditional Access requires Microsoft Entra ID P1 licences (Microsoft 365 Business Premium also includes it). If your licences lapse, existing policies keep running but you cannot update them. Tenants without P1 should rely on security defaults instead.
How the gaps work
1. Excluded accounts and groups
In Conditional Access, an exclusion always wins over an inclusion. Microsoft's users and groups documentation states this plainly. So one excluded group can quietly cancel your strongest policy for everyone in it.
Common examples we test for:
- A "temporary" exclusion group for a migration or a travelling executive that was never emptied
- Service and shared accounts excluded because they "couldn't do MFA", which still use a simple password
- Exclusion groups that ordinary users, helpdesk staff or app owners can add members to
- Nested groups, where the exclusion applies to members of members that nobody reviews
Emergency access (break-glass) accounts are the one exclusion Microsoft recommends. Its emergency access guidance says to create two or more cloud-only accounts, exclude them from policies that block or restrict sign-in, protect them with strong methods such as passkeys (FIDO2), alert on every use, and test them regularly. An excluded break-glass account with a weak password and no alerting is a gap, not a safeguard.
2. Legacy authentication
Older protocols such as IMAP, POP3, SMTP AUTH, Exchange ActiveSync with basic authentication, and older Office clients send a username and password with each request. Microsoft's conditions documentation notes that these clients do not support MFA and do not pass device state. If your MFA policy only targets browsers and modern apps, a legacy client may only need the password.
Microsoft's guidance on blocking legacy authentication says more than 99 percent of password spray attacks use legacy authentication protocols. Its recommended fix is a policy that targets the "Exchange ActiveSync clients" and "Other clients" client app types and blocks them.
3. Device platform loopholes
The device platform condition (Android, iOS, Windows, macOS, Linux) is worked out from information the device sends, such as the user agent string. Microsoft says this information can be modified and is not verified. Two gaps follow from that:
- Platform-only policies. A policy such as "require a compliant device on Windows" does nothing if the client claims to be a different platform.
- Unknown platforms. If your policies only list the platforms you use, a user agent that matches none of them may fall outside every policy.
Microsoft's fix is a policy that blocks unknown or unsupported device platforms: include any device, exclude only the platforms you support, and block. Pair platform conditions with device compliance or app protection policies, which do not rely on what the client claims.
4. Location loopholes
Named locations are defined by IP ranges or by countries and regions, as described in Microsoft's network assignment documentation. Gaps we test for include:
- Trusted locations that cover large ranges, such as a whole cloud provider or VPN service, so anyone using that service counts as "in the office"
- Policies that skip MFA from trusted locations, so an attacker with a foothold inside the network faces no prompt
- Country blocks that miss IPv6 traffic or addresses that cannot be mapped to a country (there is a separate "Include unknown countries/regions" option)
- GPS-based locations used as a hard control, even though Microsoft notes that users can modify the GPS location reported by mobile devices
Location is a useful signal. It should add friction, not remove it. Do not let a trusted network replace MFA for privileged or sensitive access.
5. Resource and workload identity gaps
A policy only covers the resources it targets. Policies that list a handful of apps leave everything else open. Microsoft recommends a baseline MFA policy for all users and all resources. Its target resources documentation also describes a behaviour change, rolling out in phases from March 2026, where "All resources" policies with exclusions now apply to some low-privilege sign-ins that were previously skipped. Expect some new prompts and test before assuming nothing changed.
Service principals are another blind spot. User-focused policies do not apply to them. Conditional Access for workload identities needs Workload Identities Premium licences, covers only single-tenant service principals registered in your tenant, and does not cover managed identities. For most tenants, the controls for apps are secret hygiene, least-privilege permissions and access reviews.
How to test your own policies
You do not need attack tools to find most of these gaps. Entra ID has what you need.
- Export and read every policy. List each policy's state, included and excluded users, groups, resources, conditions and grant controls. Report-only and disabled policies protect nothing, so note them separately.
- Review every exclusion group. Who is in it, who owns it, who can add members, and when it was last reviewed. Put exclusion groups under access reviews where your licence allows.
- Use the What If tool. The What If tool simulates a sign-in for a chosen user, resource, device platform and client app, and shows which policies would apply. Run it for an excluded user, a guest, an unusual platform such as Linux, and the "Other clients" client app. If nothing applies, you have found a gap. Note that it only evaluates enabled and report-only policies, and results depend on the details you enter.
- Check sign-in logs for legacy authentication. In the sign-in logs, add the Client app column and filter for legacy protocols. Check both interactive and non-interactive sign-ins. Any successful legacy sign-in needs an owner and a plan.
- Look for "Not applied". In each sign-in's Conditional Access tab, a result of "Not applied" means no policy conditions matched. Successful sign-ins where nothing applied are the ones to investigate.
- Trial new policies in report-only mode. Report-only mode evaluates a policy without enforcing it, so you can see who would be blocked or prompted before you switch it on.
If you run a penetration test or red team exercise, include Conditional Access in scope. Testing with a real test account from different clients, platforms and networks, under written authorisation, shows what the policies actually do rather than what they look like on paper.
How to fix the common gaps
- Keep a baseline policy requiring MFA for all users and all resources, with exclusions limited to break-glass accounts.
- Block legacy authentication for everyone. Move remaining mail clients and scripts to modern authentication first.
- Block unknown and unsupported device platforms, and use device compliance or app protection rather than platform alone.
- Require phishing-resistant MFA for administrators, using Microsoft's policy template for admins.
- Treat trusted locations as a signal, not a bypass. Keep IP ranges tight and documented.
- Give every exclusion a named owner, a reason and an expiry date, and review exclusion groups regularly.
- Protect break-glass accounts with passkeys and alert on every sign-in.
- Manage apps and service principals separately: short-lived credentials, least-privilege permissions and regular reviews.
Change policies carefully. A badly scoped block policy can lock out your administrators, so always test in report-only mode and keep break-glass access working.
Getting a second look
Conditional Access gaps are easy to miss from the inside because each policy looks reasonable on its own. Our cloud and Microsoft 365 penetration testing reviews your policies as a whole and tests them with real sign-ins, then reports each gap with the exact policy change to close it. For a wider view of Azure and Entra ID testing, see our Azure penetration testing guide. When you are ready, request a quote.