1. Resources
  2. Identity Threats
  3. Microsoft Entra ID

Conditional Access Policy Tampering

Also known as: Conditional Access bypass, Conditional Access exclusion backdoor, Trusted location abuse, Report-only downgrade

An administrator-level attacker edits Conditional Access: adds an exclusion, switches a policy to report-only or widens a trusted location, so their sign-ins are no longer challenged or blocked.

Platform
Microsoft Entra ID
Impact
High
Last updated
Attack difficulty
Low
Detection difficulty
Medium
Privileges required: Tier 0 or tenant admin
Conditional Access Administrator, Security Administrator or Global Administrator, or an application with Policy.ReadWrite.ConditionalAccess.
What the attacker gains
Sign-ins that skip MFA, device compliance or location blocks for chosen accounts, without touching any credential.
Threat groups
Scattered SpiderStorm-0501Groups that MITRE ATT&CK records using T1556.009.

How it works

Conditional Access is the policy engine that decides, at sign-in, whether a user must pass MFA, use a compliant device, come from an allowed location, or be blocked. A policy has a state, conditions (users, target resources, client apps, platforms, locations, risk), grant controls and session controls. Every enabled policy whose conditions match a sign-in is applied.

Whoever can edit policies can switch those controls off for themselves. No credential is stolen and no authentication method is touched: the authentication process itself is changed. The useful edits are small:

  • Add an exclusion. The attacker puts an account, a group or a role in the exclude list of the policy that requires MFA or a compliant device. Exclusions win over inclusions. Excluding a group is more flexible, because membership can be changed later without another policy edit.
  • Disable the policy or switch it to report-only. The state disabled turns the policy off. The state enabledForReportingButNotEnforced keeps evaluating it and logging the result, but applies none of its controls.
  • Widen a trusted named location. Many tenants have a policy that skips MFA from trusted locations or blocks everything outside them. Adding the attacker's address range to a trusted IP named location, or marking a new location as trusted, changes the outcome of those policies without editing any policy. A named location matters only through the policies that reference it.
  • Change conditions or grant controls. Narrowing the targeted resources or client apps, or changing the grant operator from AND to OR so one weaker control is enough, has the same effect with a less obvious difference.
  • Delete the policy. The bluntest option and the easiest to notice.

Conditional Access for users and for workload identities are different features with different subjects and controls. A user policy that requires MFA says nothing about an application signing in with its own credential.

Prerequisites

  • An identity that can write Conditional Access: the Conditional Access Administrator, Security Administrator or Global Administrator role, or an application with the Microsoft Graph permission Policy.ReadWrite.ConditionalAccess.
  • A reason to weaken policy: a stolen password that is blocked by MFA, a token that is blocked by a device or location condition, or the wish to keep access after the current foothold is cleaned up.
  • No protected action or approval step in front of policy changes.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Read the policies

Any account with a reader role, and Policy.Read.All, can list policies and locations. Reading first shows which single policy stands between the attacker and the target.

Connect-MgGraph -Scopes 'Policy.Read.All', 'Policy.ReadWrite.ConditionalAccess'

Get-MgIdentityConditionalAccessPolicy -All |
    Select-Object Id, DisplayName, State

# One policy in full: conditions, grant and session controls
Get-MgIdentityConditionalAccessPolicy -ConditionalAccessPolicyId '00000000-0000-0000-0000-000000000000' |
    ConvertTo-Json -Depth 8

roadrecon collects policies and named locations for offline review when the caller's rights allow it.

2. Add an exclusion

Read the current user condition, append the account, and write the condition back. Everything else in the policy stays as it was:

$id     = '00000000-0000-0000-0000-000000000000'   # the MFA policy
$policy = Get-MgIdentityConditionalAccessPolicy -ConditionalAccessPolicyId $id
$users  = $policy.Conditions.Users

$body = @{
    conditions = @{
        users = @{
            includeUsers  = $users.IncludeUsers
            includeGroups = $users.IncludeGroups
            includeRoles  = $users.IncludeRoles
            excludeGroups = $users.ExcludeGroups
            excludeRoles  = $users.ExcludeRoles
            excludeUsers  = @($users.ExcludeUsers) + '11111111-1111-1111-1111-111111111111'
        }
    }
}
Update-MgIdentityConditionalAccessPolicy -ConditionalAccessPolicyId $id -BodyParameter $body

3. Or change the state

# Evaluate and log, but do not enforce
Update-MgIdentityConditionalAccessPolicy -ConditionalAccessPolicyId $id -State 'enabledForReportingButNotEnforced'

# Turn the policy off
Update-MgIdentityConditionalAccessPolicy -ConditionalAccessPolicyId $id -State 'disabled'

4. Or widen a trusted named location

The update replaces the location's range list, so the body carries the existing ranges plus the attacker's:

$params = @{
    '@odata.type' = '#microsoft.graph.ipNamedLocation'
    DisplayName   = 'Head office'
    IsTrusted     = $true
    IpRanges      = @(
        @{ '@odata.type' = '#microsoft.graph.iPv4CidrRange'; CidrAddress = '192.0.2.0/24' }      # existing
        @{ '@odata.type' = '#microsoft.graph.iPv4CidrRange'; CidrAddress = '198.51.100.17/32' }  # added
    )
}
Update-MgIdentityConditionalAccessNamedLocation -NamedLocationId '22222222-2222-2222-2222-222222222222' -BodyParameter $params

5. Sign in under the weakened policy

The attacker now signs in with the stolen password or token. The sign-in succeeds with single-factor authentication, or from the unmanaged device, because the policy no longer applies to it.

Impact

Conditional Access is usually the only place where MFA, device compliance and location rules are enforced. One edit removes that enforcement for the chosen accounts and every application the policy covered. Stolen passwords, password spraying results and replayed tokens that were useless before the change now work.

The change is also durable. It does not depend on a credential the defenders can reset, and it applies to any account the attacker later adds to an excluded group. On its own a policy edit grants nothing: it pays off through the next sign-in, which is why it is usually paired with credential or token theft or a rogue authentication method.

OPSEC and artifacts

  • Edit, don't delete. A deleted policy is missed quickly. An extra exclusion in a policy with twenty exclusions is not. The audit event Update Conditional Access policy still records the actor and the old and new policy in the modified properties.
  • Exclude a group, then manage the group. After one policy edit, later additions are group membership changes that Conditional Access monitoring does not see. They appear as Add member to group events for a group that a policy excludes.
  • Use report-only. The policy keeps its name and place in the list. The state change is in the audit event, and every later sign-in shows a report-only result for that policy in the sign-in log instead of an enforced one.
  • Touch the location, not the policy. No policy audit event is written. The change appears as Update named location or Add named location, and sign-ins from the added range now evaluate as coming from a trusted location.
  • Reuse an existing exception. Break-glass and service account exclusions already exist in most tenants. Adding an account to that excluded group looks like maintenance.
  • Revert afterwards. Restoring the policy hides the gap from a later configuration export. The audit log keeps both updates, and the sign-ins in between keep their per-policy results.
  • Sign-in trail. Each sign-in records every evaluated policy and its result in ConditionalAccessPolicies. A policy that used to return success for an account and now returns notApplied, or a report-only result, marks the change.

Detection

// Conditional Access and named location changes, with the actor
AuditLogs
| where OperationName in~ ("Update Conditional Access policy", "Add Conditional Access policy",
                           "Delete Conditional Access policy", "Add named location",
                           "Update named location", "Delete named location")
| mv-expand Target = TargetResources
| project TimeGenerated, OperationName, Result, InitiatedBy,
          Policy = tostring(Target.displayName), Changes = Target.modifiedProperties
| order by TimeGenerated desc
// Successful sign-ins where a given policy did not enforce
SigninLogs
| where ResultType == "0"
| mv-expand Policy = ConditionalAccessPolicies
| where tostring(Policy.id) == "00000000-0000-0000-0000-000000000000"
| where tostring(Policy.result) in ("notApplied", "notEnabled", "reportOnlySuccess",
                                    "reportOnlyFailure", "reportOnlyInterrupted")
| project TimeGenerated, UserPrincipalName, AppDisplayName, IPAddress,
          AuthenticationRequirement, PolicyResult = tostring(Policy.result)

Use the equality operator =~ or in~ for activity names. A case mismatch between the catalog spelling and the stored value returns zero rows without an error, which reads as "nothing changed". A successful sign-in during report-only mode does not show that the policy's controls were met; read the result of that policy.

Related changes that weaken sign-in from another side are covered by the authentication methods policy and ID Protection policy rules.

Mitigation

  • Require step-up for policy changes. Add the Conditional Access create, update and delete permissions to protected actions, so a change needs a fresh sign-in that satisfies a strict authentication context, even for a token that is already valid.
  • Keep the roles small and time-bound. Assign Conditional Access Administrator and Security Administrator as eligible roles with approval; the PIM guide walks through it.
  • Design exclusions on purpose. Keep one documented exclusion group for emergency access accounts, protect it as a role-assignable group, and monitor every sign-in of those accounts. The break-glass accounts guide covers the setup.
  • Limit trusted locations. Avoid policies that skip MFA from trusted networks. Where a location condition is needed, keep the ranges narrow and review them against the network team's records.
  • Manage policies as code. Export policies and named locations on a schedule and compare them with an approved baseline, so drift is found even when the audit event was missed.
  • Peer-review changes to conditions and exclusions, and use report-only deliberately, with an end date, for new policies only.
  • When responding, restore the policy from the baseline, then review every sign-in by the benefiting accounts between the change and the fix, and revoke their sessions.

Detection rules for this attack

Log events to collect

FAQ

Why would an attacker change Conditional Access instead of stealing a credential?

A policy change removes the control for every later sign-in. An exclusion for one account, or a trusted location that includes the attacker's address, means stolen passwords work without MFA and tokens are issued from unmanaged devices. No user is prompted, no authentication method changes, and the access survives password resets as long as the policy stays edited.

Is switching a policy to report-only as bad as disabling it?

For enforcement, yes. A report-only policy is evaluated and its result is written to the sign-in log, but its controls are not applied. It is the quieter choice: the policy still shows in the list with its name and conditions, and dashboards that count policies see no change. Only the state value and the audit event reveal it.

Does an exclusion from one policy remove all protection from the account?

No. Conditional Access applies every policy that matches a sign-in. An account excluded from one policy is still subject to the others. To judge the effect, reconstruct all policies that applied to the account's sign-ins after the change and read the per-policy results in the sign-in log.

How do you detect Conditional Access tampering?

Alert on the audit activities Update Conditional Access policy, Delete Conditional Access policy, Add Conditional Access policy, Add named location and Update named location, and read the old and new values in the modified properties. Then check the sign-in log for sign-ins where the edited policy shows notApplied or a report-only result for the accounts that benefit.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.