>samit_hota
Back to research
OFFENSIVE SECURITY

Beyond the Prompt: Four Post-Password MFA Bypasses and How to Stop Them

Samit Hota·
#identity-security#mfa#threat-hunting#azure-ad

A green checkmark on a password prompt creates a dangerous illusion of complete identity boundary enforcement. In modern red team engagements and real-world intrusion analyses, multi-factor authentication (MFA) rarely fails at the cryptographic layer; it fails at the architectural edges, the human recovery flows, and the post-authentication token lifecycle. Once a valid username and password are introduced to the pipeline, attackers pivot from credential guessing to exploiting implicit trust model flaws.

If your identity defense strategy assumes that prompting for an MFA push token or sending an SMS code stops an attacker with valid primary credentials, you are defending against a threat model from a decade ago. Here is how four common post-password authentication vectors operate, how to replicate their telemetry in an isolated lab, and the precise log signals and policy configurations needed to neutralise them.

Push Fatigue and Simple Prompt Exhaustion

Push notification fatigue relies on exploiting human psychological friction within secondary authentication steps. When an attacker possesses valid primary credentials, they initiate repeated login requests through automated OAuth/OIDC endpoints. The legitimate user receives a stream of push notifications on their mobile authenticator app, often timed during off-hours or during periods of high work activity. The attack succeeds when the user eventually taps “Approve” to dismiss the constant prompts or mistakes the spam for a legitimate background sync process.

Lab Reproduction

In a sandbox tenant (such as a dedicated Entra ID developer instance), register a test account with standard push notifications enabled via the Microsoft Authenticator app. Using a test script or simple curl loop against the tenant’s token endpoint using standard Resource Owner Password Credentials (ROPC) or standard web sign-in user flows, trigger sequential sign-in requests:

# Simulating repeated auth attempts against an OAuth2 endpoint in a test tenant
for i in {1..5}; do
  curl -X POST "https://login.microsoftonline.com/<TEST-TENANT-ID>/oauth2/v2.0/token" \
    -d "client_id=<TEST-APP-ID>" \
    -d "scope=openid profile" \
    -d "[email protected]" \
    -d "password=TestPassword123!" \
    -d "grant_type=password"
  sleep 2
done

Observe the push notifications arriving on the mobile device while reviewing the authentication logs in the admin portal.

Telemetry and Detection

Search identity logs for rapid sequences of denied or timed-out MFA prompts followed closely by a single successful completion for the same user account.

In Entra ID SigninLogs, look for multiple entries with ResultType 500121 (MFA denied or user did not respond) followed within a short time window by ResultType 0 (Success).

SigninLogs
| where TimeGenerated > ago(1d)
| where AuthenticationRequirement == "multiFactorAuthentication"
| summarize 
    DeniedCount = countif(ResultType == 500121),
    SuccessCount = countif(ResultType == 0),
    StartTime = min(TimeGenerated),
    EndTime = max(TimeGenerated)
    by UserPrincipalName, IPAddress
| where DeniedCount >= 3 and SuccessCount >= 1
| extend DurationSeconds = datetime_diff('second', EndTime, StartTime)
| where DurationSeconds < 300

False Positives: Users experiencing network connectivity issues on their mobile devices who retry multiple times before succeeding may trigger this rule. Validate by checking if the source IP matches the user’s historical baseline.

Hardening Control

Enforce explicit Number Matching and location context. In Entra ID, navigate to Protection > Authentication methods > Microsoft Authenticator. Set Require number matching for push notifications to Enabled and target All users. This forces the person approving the prompt to enter a two-digit number displayed on the login screen, eliminating passive blind approvals.

Help-Desk Social Engineering and Registration Hijacking

When secondary factors cannot be completed directly, attackers route around the primary target by targeting help-desk verification procedures or self-service password reset (SSPR) fallbacks. By impersonating an employee suffering from a broken or lost device, an attacker uses social engineering (vishing) to persuade a support technician to register a temporary authentication pass (TAP) or reset the user’s registered MFA methods to an attacker-controlled phone number or authenticator app.

Lab Reproduction

In your lab environment, assign a secondary administrative account the “Helpdesk Administrator” role. Using the Azure Management Portal or Microsoft Graph API, trigger an administrative reset of a target user’s authentication methods:

# Using Microsoft Graph PowerShell in a lab setup
Connect-MgGraph -Scopes "UserAuthenticationMethod.ReadWrite.All"
# Clear existing phone methods to simulate help-desk intervention
Get-MgUserAuthenticationPhoneMethod -UserId "[email protected]" | Remove-MgUserAuthenticationPhoneMethod -UserId "[email protected]"

Review the resulting entries generated in the tenant audit logs.

Telemetry and Detection

Monitor directory audit logs for administrative interventions that alter authentication methods, particularly when executed by help-desk personnel outside normal provisioning workflows or followed immediately by a login from an unfamiliar IP address.

In Entra ID AuditLogs, query for operations related to user authentication registration changes:

AuditLogs
| where TimeGenerated > ago(7d)
| where OperationName in (
    "User registered security info",
    "Admin registered security info",
    "User updated security info",
    "Admin reset user password"
)
| project TimeGenerated, OperationName, InitiatedBy = tostring(InitiatedBy.user.userPrincipalName), TargetUser = tostring(TargetResources[0].userPrincipalName), AdditionalDetails

Cross-reference these events with SigninLogs within a 1-hour window to identify if the target user account logs in from an anomalous location immediately after the administrative modification.

Hardening Control

Implement strict Out-of-Band Help-Desk Verification and restrict administrative privileges:

  1. Require help-desk technicians to perform step-up authentication before performing identity resets, using tools like Microsoft Entra Verified ID or strict cryptographic identity verification.
  2. Issue Temporary Access Passes (TAP) configured as One-Time Use with a short lifetime (e.g., 15–60 minutes) rather than manually changing registered phone numbers or adding temporary authenticators.
  3. Restrict SSPR recovery options to exclude insecure legacy channels like SMS and unverified email addresses.

Weak Secondary Fallback Flows (SMS/Voice Standard Fallback)

Many identity providers allow users or administrators to configure multiple MFA options. While primary logins may enforce modern authenticator apps, secondary fallback flows often default to insecure channels like SMS or voice calls. Attackers leverage these weak links via SIM swapping, SS7 interception, or standard telecommunications redirection attacks to capture one-time passcodes (OTPs) after bypassing password requirements.

Lab Reproduction

In a lab tenant, configure a user profile with both Microsoft Authenticator and SMS OTP allowed. Initiate a standard interactive authentication flow via a web browser. At the MFA challenge screen, select “Sign in another way” and select the SMS option. Log the resulting telemetry to compare the authentication method strength metadata generated by the primary vs. fallback mechanisms.

Telemetry and Detection

Track sign-ins where the user selected an insecure factor despite having stronger factors registered, or flag tenants where SMS/Voice remains heavily utilized across privileged roles.

In Entra ID SigninLogs, parse the AuthenticationDetails property to identify the specific factor used during the successful authentication event:

SigninLogs
| where TimeGenerated > ago(7d)
| where ResultType == 0
| mv-expand AuthenticationDetails
| extend Method = tostring(AuthenticationDetails.authenticationMethod)
| where Method in ("SMS", "Voice call")
| project TimeGenerated, UserPrincipalName, AppDisplayName, Method, IPAddress, Location

Hardening Control

Transition identity policies to Phishing-Resistant MFA:

  1. In Entra ID, navigate to Protection > Conditional Access > Policies. Create a policy requiring Authentication Strength.
  2. Select Phishing-resistant MFA (which strictly enforces FIDO2 security keys or Certificate-Based Authentication) for sensitive apps and administrative roles.
  3. Systematically disable SMS and Voice options under Protection > Authentication methods > Policies, removing them entirely from the list of allowed auth methods.

Post-MFA Session Token Replay and Theft

MFA is evaluated at the moment of session issuance. Once the user successfully completes primary and secondary authentication steps, the Identity Provider issues session tokens (e.g., ESTSAUTH cookies in Azure, bearer tokens, or OAuth refresh tokens). If an attacker steals these session tokens from the endpoint via malware, browser memory dumping, or adversary-in-the-middle (AiTM) proxying, they can inject the token directly into their own browser. The identity provider processes the request as a valid, fully authenticated session—completely skipping password and MFA checks.

+--------+            +----------+            +-------------------+
| Victim | --(Auth)-->|  IdP     | --(Token)->| Client Browser    |
+--------+            +----------+            +-------------------+
                                                        |
                                              (Token Extraction)
                                                        v
+--------+            +----------+            +-------------------+
|Attacker| --(Replay)->| App/IdP  | <--(Access)| Attacker Browser  |
+--------+            +----------+            +-------------------+

Lab Reproduction

  1. On a lab host VM, complete an interactive login to a cloud service using MFA inside Chrome/Edge.
  2. Open Developer Tools (F12), navigate to Application > Storage > Cookies.
  3. Locate the session cookies (e.g., ESTSAUTH and ESTSAUTHPERSISTENT for Microsoft services).
  4. Copy the cookie string to an isolated attacker VM.
  5. In the attacker VM browser, navigate to the service URL, insert the stolen cookie parameters into the browser storage, and refresh the page. Observe full access granted without any prompt for credentials or MFA.

Telemetry and Detection

Detect session replay by identifying anomalies in session telemetry, such as a sudden shift in source IP address, operating system, or user agent string associated with an active, existing session ID.

In Entra ID SigninLogs, query for single user sessions (UserSessionId) presenting multiple distinct IP addresses or User-Agent strings within short execution windows:

SigninLogs
| where TimeGenerated > ago(1d)
| where isnotempty(UserSessionId)
| summarize 
    IPAddresses = make_set(IPAddress),
    UserAgents = make_set(UserAgent),
    IPCount = dcount(IPAddress),
    UserAgentCount = dcount(UserAgent)
    by UserSessionId, UserPrincipalName
| where IPCount > 1 or UserAgentCount > 1

False Positives: Users switching between Wi-Fi and mobile hotspots or corporate VPN tunnels can cause legitimate IP shifts on an active session. Combine this log logic with anomalous geographic location changes (Impossible Travel alerts) to reduce noise.

Hardening Control

To prevent session reuse across unmanaged devices, bind sessions strictly to trusted endpoint cryptographic contexts:

  1. Continuous Access Evaluation (CAE): Enable CAE within your IdP settings. CAE monitors real-time events (such as IP changes or user disablement) and revokes active tokens immediately when a policy violation occurs, reducing token lifetimes from hours to near-real-time.
  2. Conditional Access Device Compliance: Require that access to applications requires a Compliant Device or Microsoft Entra Hybrid Joined Device. Even if an attacker possesses a valid stolen session token, the token replay attempt will fail at the Gateway when evaluated against non-compliant or unmanaged attacker hardware.
  3. Token Protection / App-Bound Cookies: Deploy Token Protection policies for sign-in sessions (MSAL token binding). This cryptographically binds the issued refresh/access tokens to the specific device’s Trusted Platform Module (TPM), rendering stolen tokens unusable on external machines.

Want a second set of eyes on your security posture?

Let's talk about where your real exposure is.

Book an advisory call