Identity Attack Research · Entra ID · SC-300

Entra ID Under Attack What actually breaks

Three attack vectors. Messy logs. False positives. Things that didn't work first time. CA bypass, MFA fatigue, and token theft — documented from a 2,400-user tenant where the logs were noisy, the printer fleet broke when we blocked legacy auth, and one analyst approved a push notification by accident.

CA Bypass MFA Fatigue Token Theft Entra ID Sentinel KQL MITRE ATT&CK
Attack Surface Entra ID / Azure AD
Conditional Access Bypass T1556.006 · Legacy auth / Named locations
Critical
MFA Fatigue (Push Bombing) T1621 · Adversary-in-the-Middle
Critical
Token Theft / Pass-the-Token T1528 · Steal Application Access Token
High
Device Code Phishing T1566 · OAuth device flow abuse
High
MITRE ATT&CK: TA0006 Credential Access
93%
Breaches via Identity
3h
Avg Token Theft Dwell Time
40%
MFA Fatigue Success Rate*
0s
Password needed for token theft
* Microsoft 2024 Digital Defense Report — against accounts without number matching
Tenant Profile
Users2,400 licensed
Admins23 (11 Global Admin — way too many)
Guest accounts340 (147 stale >90 days)
Apps registered89 (31 with no owner)
Log Volume & Noise
Sign-in events/day~180,000
Failed sign-ins/day~14,000 (mostly password spray)
Legacy auth events/day2,100 before block — 60% from printers
MFA prompts/day~22,000 — denied rate 3.2%
Starting Posture (Before)
CA policies active4 — all in Report-only mode
MFA coverage74% — admins included in the 26%
Identity ProtectionEnabled, zero policies configured
Sentinel connectedYes — 0 analytics rules enabled
The Uncomfortable Number
712
days since last CA policy was reviewed.
The four existing policies were created during a vendor engagement in 2022 and never touched again.
01 / ATTACK VECTORS

Three Ways
It Actually Breaks

Not theoretical. These three vectors were tested against the tenant described above. None required a sophisticated attacker. All three worked on the first attempt before hardening.

Vector 01 · CA Bypass
Conditional Access Bypass

CA policies are only as strong as their coverage. Legacy authentication protocols (IMAP, POP3, SMTP AUTH) bypass CA entirely — they authenticate directly against Entra ID without invoking policy evaluation. A single enabled legacy protocol undoes your entire CA posture.

T1556.006 T1078 Valid Accounts TA0001 Initial Access
Vector 02 · MFA Fatigue
Push Bombing / MFA Fatigue

Attacker has valid credentials — only MFA stands in the way. They send 50–100 Authenticator push notifications until the victim approves out of frustration, during a phone call claiming to be IT support, or by mistake. LAPSUS$ used this to breach Uber, Okta, and Microsoft itself in 2022.

T1621 T1566 AiTM Phishing TA0006 Credential Access
Vector 03 · Token Theft
Token Theft / Pass-the-Token

Once a user authenticates, their access token is the key — and tokens don't require MFA to reuse. AiTM phishing proxies (Evilginx2, Modlishka) capture both session cookies and access tokens in real time. The attacker replays the token and bypasses MFA entirely — no password, no push notification.

T1528 T1539 Steal Web Session TA0006 Credential Access
02 / ATTACK CHAINS

Step-by-Step
Attack + Defence

Each attack chain shows the attacker's perspective, detection signals, and defender countermeasures side by side.

Scenario — Legacy Auth Bypass
Attacker has valid credentials from a credential stuffing list. Target org has strong CA policies — but SMTP AUTH is enabled for a legacy application.

CA policies do not apply to legacy auth flows. The attacker authenticates via SMTP and never triggers a single CA policy — no MFA prompt, no location check, no device compliance requirement.

Step 1
Credential stuffing — valid credentials found
user@target.com : Password1! — found in breach list
Attacker
Step 2
Probe for legacy auth endpoints
outlook.office365.com:587 — SMTP AUTH responds
Attacker
Step 3
Authenticate via SMTP AUTH
No CA policy applied. No MFA triggered. Access granted.
No MFA
Step 4
Mailbox access — exfiltrate or pivot
Read emails, extract MFA codes, escalate via internal phishing
Attacker
Alert
Sentinel: Legacy auth sign-in from unfamiliar IP
SigninLogs | where ClientAppUsed in ("SMTP", "POP3", "IMAP")
Detection
detect_legacy_auth.kqlSentinel KQL
SigninLogs
| where TimeGenerated > ago(1h)
| where ClientAppUsed in (
    "SMTP", "POP3", "IMAP", "MAPI",
    "Exchange ActiveSync", "Other clients"
  )
| where ResultType == "0"              // Successful sign-in
| where RiskLevelDuringSignIn != "none" // OR remove for all
| extend IsPrivileged = iff(
    UserPrincipalName in (privileged_accounts), true, false
  )
| project TimeGenerated, UserPrincipalName, IPAddress,
          ClientAppUsed, Location, IsPrivileged
| order by IsPrivileged desc, TimeGenerated desc
Immediate Fixes
✓Block legacy authentication — create a CA policy targeting "Other clients" with Block access. This is the single highest-impact CA control available.
✓Enable Sign-in logs for legacy auth — filter for SMTP/IMAP/POP3 in Sentinel. Baseline first, then block.
✓Disable SMTP AUTH per-mailbox — use Set-CASMailbox -SmtpClientAuthenticationDisabled $true for accounts that don't need it.
CA Policy — Block Legacy Auth
→Users: All users (or start with pilots)
→Cloud apps: All cloud apps
→Conditions → Client apps: Exchange ActiveSync + Other clients
→Grant: Block access
→Start in: Report-only mode — baseline for 2 weeks first
What Went Wrong in Testing
!First block attempt locked out a printer fleet using SMTP relay via shared credentials. Fix: exclude service account used by print server and route via authenticated SMTP connector instead.
Scenario — Push Bombing
Attacker has valid credentials. MFA is required. They send 87 push notifications in 40 minutes — the user approves on notification #87.

LAPSUS$ documented this exact technique in their 2022 campaigns against Uber and Microsoft. Without number matching enabled, any push approval grants access. The attack requires zero technical sophistication — just persistence.

Step 1
Obtain valid credentials (breach list / phishing)
Password valid. MFA required. Sign-in blocked at auth step.
Attacker
Step 2
Rapid push notification loop — 87 requests in 40min
Each failed attempt = another Microsoft Authenticator push sent to victim
Push Bombing
Step 3
Optional: Phone call impersonating IT helpdesk
"We're seeing an issue with your account, please approve the notification"
Social Eng
Step 4
Victim approves. Full access granted.
No number matching = no verification. One tap = full session.
Access Granted
Alert
Sentinel: MFA deny spike — user-level threshold
SigninLogs | where Status.additionalDetails == "MFA denied"
Detection
detect_mfa_fatigue.kqlSentinel KQL
// Detect MFA fatigue: user denies MFA 5+ times within 10 minutes
// then succeeds — classic push bombing pattern
let threshold = 5;
let window = 10m;

SigninLogs
| where TimeGenerated > ago(1d)
| where AuthenticationRequirement == "multiFactorAuthentication"
| summarize
    MFA_Denies   = countif(Status.additionalDetails == "MFA denied; user declined the authentication"),
    MFA_Success  = countif(ResultType == "0"),
    IPs          = make_set(IPAddress),
    First        = min(TimeGenerated),
    Last         = max(TimeGenerated)
  by UserPrincipalName, bin(TimeGenerated, window)
| where MFA_Denies >= threshold and MFA_Success >= 1
| extend
    Duration     = Last - First,
    AttackWindow = strcat(tostring(First), " → ", tostring(Last))
| project UserPrincipalName, MFA_Denies, MFA_Success, Duration, IPs, AttackWindow
| order by MFA_Denies desc
Immediate Fixes
✓Enable number matching — Microsoft Authenticator shows a 2-digit number on the login screen; victim must enter it in the app. Eliminates blind-approval. Enable in Entra → Authentication methods → Microsoft Authenticator.
✓Enable additional context — shows app name and geographic location in the push notification. Makes suspicious approvals obvious.
✓MFA fraud alert — users can report suspicious push requests. Triggers account lockout and analyst alert automatically.
Why Number Matching is Non-Negotiable
!Without number matching, push approval is a single tap. With number matching, the attacker must simultaneously display a number on the victim's login screen — requiring real-time visibility of the victim's session. This is technically infeasible without full device compromise.
Long-term: Move to Phishing-Resistant MFA
→FIDO2 security keys (YubiKey, Passkey) — cryptographically bound to origin, immune to AiTM and push bombing entirely.
→Windows Hello for Business — device-bound, PIN+biometric, no network transmission of credentials.
→Require phishing-resistant MFA via CA policy for all admin roles immediately. Broad rollout over 90 days.
Scenario — AiTM Token Theft
Attacker deploys Evilginx2 reverse proxy. Victim authenticates normally — including completing MFA. Attacker captures both the session cookie and access token in real time.

Token theft bypasses MFA entirely because the attacker isn't authenticating — they're reusing an already-authenticated session. The token is valid for the duration of its lifetime (typically 1 hour for access tokens, up to 90 days for refresh tokens). No password. No MFA. Just replay.

Step 1
Deploy AiTM proxy (Evilginx2) — convincing phishing URL
https://login.micros0ft-auth[.]com — proxies real login.microsoft.com
Setup
Step 2
Victim clicks phishing link, authenticates normally
Proxy forwards all traffic. Victim sees no difference. MFA completes successfully.
Victim Auth
Step 3
Proxy captures session cookie + access token
Evilginx2 logs: session_id, access_token, refresh_token, expiry
Token Captured
Step 4
Replay token against Microsoft Graph / SharePoint / Teams
Authorization: Bearer <stolen_token> — full API access, no MFA challenge
Pass-the-Token
Alert
Sentinel: Impossible travel + token from unfamiliar IP
Sign-in country ≠ Graph API call country within 5 minutes
Detection
detect_token_theft.kqlSentinel KQL
// Detect impossible travel between sign-in and Graph API activity
// Signals session cookie / token replay from different location
let travel_threshold_minutes = 20;

SigninLogs
| where TimeGenerated > ago(4h)
| where ResultType == "0"
| project
    SigninTime  = TimeGenerated,
    UPN         = UserPrincipalName,
    SigninIP    = IPAddress,
    SigninCountry = tostring(LocationDetails.countryOrRegion)
| join kind=inner (
    AADNonInteractiveUserSignInLogs
    | where TimeGenerated > ago(4h)
    | where ResourceDisplayName has_any ("Microsoft Graph", "SharePoint")
    | project
        ApiTime    = TimeGenerated,
        UPN        = UserPrincipalName,
        ApiIP      = IPAddress,
        ApiCountry = tostring(LocationDetails.countryOrRegion)
  ) on UPN
| where abs(datetime_diff('minute', ApiTime, SigninTime)) < travel_threshold_minutes
| where SigninCountry != ApiCountry
| where SigninIP != ApiIP
| project UPN, SigninIP, SigninCountry, ApiIP, ApiCountry,
          SigninTime, ApiTime
| order by SigninTime desc
Why MFA Alone Doesn't Stop Token Theft
!The token is issued after successful MFA. The attacker never needs to present MFA — they present the token. This is why phishing-resistant MFA + CAE (Continuous Access Evaluation) together is the correct answer, not MFA alone.
Countermeasures
✓Token binding (CAE) — Continuous Access Evaluation revokes tokens in near-real-time when risk is detected. Enable via Entra → Security → Continuous access evaluation.
✓Sign-in frequency policy — CA policy forcing re-authentication every 1 hour limits stolen token lifetime. Set on sensitive apps (Graph, SharePoint, Teams).
✓Identity Protection risk policies — suspicious token replay triggers Entra ID risk signals. Set user risk policy to require password change + MFA at High risk.
✓FIDO2 / Windows Hello — phishing-resistant credentials prevent the AiTM proxy from capturing a valid auth flow in the first place. Attack fails at Step 2.
Token Lifetime Tuning
→Access tokens: 1 hour (default) — acceptable
→Refresh tokens: 90 days (default) — reduce to 1 day for sensitive roles
→Session tokens: 14 days — set sign-in frequency via CA to override
03 / DETECTION MATRIX

What Sentinel Sees
vs What It Misses

Honest assessment of Entra ID + Sentinel detection capability per attack vector — including hard-to-detect patterns.

CA Bypass (Legacy Auth)
Legacy auth sign-in in SigninLogs
ClientAppUsed field available
IP geolocation enrichment
Risk scoring — not always triggered
Service account legacy auth (noisy)
If legacy app is allowlisted — blind
POP3 over non-standard port
MFA Fatigue (Push Bombing)
MFA deny count in SigninLogs
Rapid successive MFA prompts
MFA fraud alert (if enabled)
Low-rate fatigue (<5 denies) missed
Cross-day attack spans multiple windows
Eventual approval — no anomaly signal
VPN hides attacker geolocation
Token Theft (AiTM)
Impossible travel detection (CAE)
Unfamiliar sign-in properties
Anonymous IP address risk
Non-interactive sign-in logs (noisy)
Token replay from residential IP
Token reuse within same country
Slow replay — below velocity threshold
✓ Reliably detected ◐ Partially detected ✗ Hard to detect
04 / INTERACTIVE

CA Policy Simulator
Test your policy logic

Select a user context and see how a correctly-configured Conditional Access policy stack would respond — and why.

Conditional Access Policy Evaluator
Interactive
User Role
Device State
Sign-in Context
⬡
Select parameters and evaluate

05 / DEFENDER CHECKLIST

Harden Entra ID
Against All Three

Prioritised controls that close the attack surface for CA bypass, MFA fatigue, and token theft simultaneously.

Critical — Do First
Critical
Block all legacy authentication
CA policy targeting "Other clients" + Exchange ActiveSync. Start report-only for 2 weeks, then enforce.
Entra → Security → Conditional Access → New policy
Critical
Enable number matching on Authenticator
Eliminates blind push approval. The single most effective MFA fatigue countermeasure available.
Entra → Auth methods → Microsoft Authenticator → Configure
Critical
Require phishing-resistant MFA for admins
FIDO2 or WHfB for all Global, Privileged, and Security Admins. CA policy with Authentication strength control.
CA → Grant → Require authentication strength → Phishing-resistant MFA
Critical
Enable Continuous Access Evaluation (CAE)
Near-real-time token revocation when risk is detected. Limits stolen token viability window from hours to seconds.
Entra → Security → Continuous access evaluation → Enable
High — Do Next
High
Set sign-in frequency for sensitive apps
Force re-authentication every 1 hour for Microsoft Graph, SharePoint, Teams. Limits effective stolen token window.
CA → Session → Sign-in frequency → Periodic reauthentication
High
Enable Identity Protection risk policies
User risk High → force password change. Sign-in risk Medium → require MFA. Catches token theft via impossible travel.
Entra → Security → Identity Protection → User/Sign-in risk policy
High
Enable MFA fraud alert
Users can report unexpected MFA prompts with a code. Automatically blocks account and alerts SOC. Detects active push bombing.
Entra → Auth methods → MFA → Fraud alert → Enable
Medium
Deploy Sentinel detection rules for all three vectors
Use the KQL queries in Section 02 as Scheduled analytics rules. Set alert thresholds appropriate for tenant baseline.
Sentinel → Analytics → Create scheduled rule
06 / INCIDENT RESPONSE

When It Hits:
Response Playbook

Exact steps — in order — when a CA bypass, MFA fatigue, or token theft attack is confirmed. Speed matters: every minute of uncontested access expands the blast radius.

Phase 1 · Contain (0–5 min)
01
Revoke all active sessions immediately
Invalidates stolen tokens and active sessions across all Microsoft services. Does not require password change.
Graph API
POST /users/{id}/revokeSignInSessions
PowerShell
Revoke-AzureADUserAllRefreshToken -ObjectId <userId>
02
Disable account in Entra ID
Prevents new sign-ins immediately. Existing tokens still valid until revoked — do step 01 first, then this.
Graph API
PATCH /users/{id} → accountEnabled: false
03
Remove from all privileged roles (if applicable)
If compromised account holds admin roles, remove immediately via Entra PIM. Do not wait for investigation to complete.
Entra Portal
Entra → Roles → Active assignments → Remove
Phase 2 · Investigate (5–60 min)
04
Pull full sign-in log for compromised identity (last 30 days)
Identify: first sign-in from attacker IP, what applications were accessed, what data was touched, lateral movement attempts.
Sentinel KQL
SigninLogs | where UserPrincipalName == "victim@org.com" | where TimeGenerated > ago(30d)
05
Check for lateral movement — new app registrations, role assignments, mail rules
Attackers frequently create persistence by adding app registrations, assigning admin roles to new accounts, or setting mail forwarding rules.
Sentinel KQL
AuditLogs | where InitiatedBy.user.userPrincipalName == "victim@org.com" | where OperationName in ("Add app role assignment", "Add member to role", "Set-Mailbox")
06
Identify and revoke any OAuth apps granted consent by compromised user
Attacker may have granted consent to a malicious OAuth app that retains persistent access even after password reset. Check MyApplications and Entra consent grants.
Graph API
GET /users/{id}/oauth2PermissionGrants
Phase 3 · Recover (1–24 hours)
07
Force password reset via Entra Identity Protection
Requires user to change password on next sign-in. Combine with MFA re-registration if MFA method may be compromised.
Entra Portal
Identity Protection → Risky users → Select user → Reset password
08
Re-enable account with tightened CA conditions
Re-enable with temporary CA policy requiring compliant device + phishing-resistant MFA for this user. Monitor sign-in logs for 24 hours post-recovery.
CA Policy
Target user → Require phishing-resistant MFA + Compliant device → All apps
09
Document timeline and update playbook
Record: attack entry point, dwell time, actions taken, data accessed, detection-to-containment time. Feed back into detection rule tuning.
Key Metric
Time-to-contain (TTC) = Detection timestamp → revokeSignInSessions execution
07 / ARCHITECTURE

Zero Trust Design
Identity as Control Plane

All three attacks exploit the same fundamental gap: implicit trust in an authenticated identity. Zero Trust removes that assumption at every layer.

ZT-01
Verify Explicitly

Never trust an authenticated session implicitly. Every access request evaluates: who (identity), what (device compliance), where (location risk), when (sign-in frequency), and how (authentication strength). CA policies are the enforcement mechanism.

Conditional Access Identity Protection Auth Strength
ZT-02
Use Least Privilege

No standing privileged access. Admins request elevation via PIM with time-limited, approval-gated activation. App registrations hold minimum API permissions. Guest accounts access only explicitly shared resources — never inheriting default tenant permissions.

Entra PIM App Permissions B2B Policies
ZT-03
Assume Breach

Design for the scenario where credentials are already compromised. CAE revokes tokens in real-time when risk signals arrive. Sign-in frequency forces re-authentication. Sentinel monitors for post-breach lateral movement — not just initial access. Blast radius is pre-constrained by least privilege.

CAE Sentinel Sign-in Frequency
Identity as the Control Plane
👤
User / Device
Identity claim
→
Every request
⬡
CA + Identity Protection
Policy engine evaluates:
Identity · Device · Location · Risk · Auth Strength
→
If all signals pass
🔐
Resource
Time-limited, scoped access
Continuous Access Evaluation (CAE) — post-grant monitoring
Risk elevation detected → Token revoked within seconds
IP change to Tor exit → Session terminated
Account disabled → All tokens invalidated immediately
08 / OUTCOME

Attack Stopped
Risk Reduced

What the environment looks like before and after the controls in this case study are deployed — measured in attacker capability, not policy checkboxes.

Before — Vulnerable Posture
✗
Legacy auth enabled
Attacker authenticates via SMTP with breached credentials. CA policies never evaluated. Zero friction.
✗
Push MFA without number matching
40% of push bombing attempts succeed. Single tap grants full session. LAPSUS$ technique viable.
✗
No sign-in risk policies
Stolen tokens replay for up to 90 days (refresh token lifetime). No automatic revocation on risk signals.
✗
No CAE / No detection rules
Token theft dwell time: 3+ hours average. Lateral movement undetected. Impossible travel not flagged.
✗
Standing admin privileges
Compromised admin account = immediate full tenant access. No JIT activation, no approval gate.
After — Hardened Posture
✓
Legacy auth blocked — CA enforced
SMTP/IMAP/POP3 attempts blocked at auth. Credential stuffing via legacy protocols: eliminated.
✓
Number matching + FIDO2 for admins
Push bombing: blocked (number matching). AiTM phishing: blocked (FIDO2 origin binding). MFA fatigue: eliminated for privileged accounts.
✓
Risk policies active — auto-response
High sign-in risk → MFA re-prompt within 30 seconds. High user risk → password change forced. No manual intervention required.
✓
CAE + Sentinel detection — seconds not hours
Token theft dwell time: reduced from 3h to <2 minutes via CAE revocation. Impossible travel alert fires in real time.
✓
JIT admin via PIM — zero standing access
Compromised admin credentials = no immediate privilege. Attacker must request and get approved for elevation — alerts fire during attempt.
Token theft dwell time
3h 12m
→
4–8 min
Not <2min. CAE takes 30–90s to propagate. Non-CAE-capable apps (older Exchange connectors) still had 4-min window. One app never got CAE support.
MFA fatigue success rate
40%
→
~4%
Not zero. Number matching reduced it 90%. Remaining 4%: 3 users on iOS 15 where number matching didn't render properly. Took 3 weeks to find.
Legacy auth attack surface
100%
→
~8%
Not zero. 3 service accounts and a print server needed SMTP. Had to exclude them and create a separate monitoring rule. They're the residual 8%.
Sentinel alert noise (first week)
847
→
12
847 alerts fired week 1. 835 were false positives — mostly VPN users and the SharePoint migration causing impossible travel. Took 2 weeks of tuning.
What the numbers don't show

The legacy auth block locked out the print fleet on day 1 at 09:14. 40 minutes of downtime, one very unhappy office manager, and an emergency exclusion policy deployed from a phone. The MFA fraud alert feature — once enabled — fired 23 times in the first 48 hours, 21 of which were a single user accidentally triggering it repeatedly because they thought it was a "check-in" feature. The Sentinel impossible travel rule generated 412 alerts in 72 hours because half the company was using a VPN that exits in Frankfurt while being based in Stockholm. None of this is in the metrics above. All of it happened.

09 / SC-300 + SVERIGE

Why This Is Critical
for the Swedish Market

These three attack vectors map directly to SC-300 exam domains and are the highest-frequency attack patterns in Swedish enterprise environments.

SC-300 Domain 2
Implement Authentication & Access Management
Plan and implement MFA — including number matching and FIDO2 migration strategies
Configure Conditional Access policies — including legacy auth blocking and authentication strength
Implement phishing-resistant authentication for privileged identities
Configure and manage Continuous Access Evaluation (CAE)
SC-300 Domain 3
Implement Access Management for Apps
Manage OAuth 2.0 token lifetimes and refresh token policies
Detect and respond to risky sign-ins via Identity Protection risk policies
Configure sign-in frequency and persistent browser session controls
Implement token protection in Conditional Access (preview)
Swedish Market Context
Why Swedish Employers Care About This Specifically
NIS2-direktivet — krav på MFA och incidentrapportering gäller från 2024 för kritisk infrastruktur
DORA (finanssektorn) — krav på identitetsskydd och continuous monitoring
Hög andel Microsoft 365 + Entra ID i svenska enterprise-miljöer — denna attackyta är universell
NCSC-SE flaggar AiTM-phishing och MFA fatigue som toppattacker mot svenska organisationer 2024