Attackers can bypass the protection provided by phishable MFA methods without
guessing a password or defeating an MFA prompt. In a token replay attack, they capture
the authenticated session created after a victim completes sign-in, then reuse it to
access an account.
Token Replay Attacks at a Glance:
- A token replay attack reuses a stolen, valid session token to impersonate an
authenticated user. - Adversary-in-the-middle phishing can relay a real sign-in and MFA prompt, then
capture the session token issued afterward. - Huntress documented a 2026 Microsoft 365 campaign that compromised 79
organizations and led to rogue devices, changed MFA methods, and hidden inbox
rules. (Hatcher et al., 2026) - Responders should revoke sessions, reset passwords, audit devices and MFA
methods, and review inbox rules. - Conditional Access policies can block suspicious sign-ins, but teams should
investigate successful access as well as blocked attempts.
What Is a Token Replay Attack, and How Does AiTM
Phishing Work?
A session token is evidence that a user has already authenticated. In a token replay
attack, an attacker steals that proof of login and presents it again from another device
or network. Because the user has already completed sign-in, the attacker may not need
to enter the password or complete MFA again.
One way to steal a token is adversary-in-the-middle (AiTM) phishing. A relay sits
between the victim and the legitimate sign-in service. It passes the real login page and
MFA prompt to the victim, then captures the session token issued after authentication
succeeds. Phishing-resistant MFA helps prevent relayed sign-ins; session cookies,
access tokens, and refresh tokens have different scopes, lifetimes, and revocation
behavior (Hatcher et al., 2026; Microsoft, 2025a, 2026b, 2026c).

Figure 1. AiTM relay followed by session replay. Original diagram based on Huntress and
Microsoft guidance (Hatcher et al., 2026; Microsoft, 2026b, 2026d).
In its October 22, 2026 threat research, Huntress described a Microsoft 365 token spray
and replay campaign. From July 14 to September 22, Huntress tracked at least 497
successful sign-in events across 79 victim organizations, alongside more than 200,000
failed login attempts linked to campaign infrastructure.
Huntress said the attackers obtained tokens through AiTM relays, device-code phishing,
and social engineering during legitimate logins. This is different from MFA fatigue, where
repeated prompts can pressure a user to approve a request. In token replay, the
attacker targets the session created after authentication.
What Happened After Microsoft 365 Account
Compromise?
After gaining access, the attackers established ways to retain access and hide activity.
Huntress observed at least 48 rogue Entra devices. The devices used names beginning
with DESKTOP- followed by eight uppercase hexadecimal characters. Huntress notes
that this differs from the seven-character alphanumeric pattern in Windows' default
device names, making it a useful hunting clue, not proof of compromise on its own.
In 19 organizations, existing MFA methods were wiped and a new MFA method was
registered within three hours of the first sign-in from a campaign address. Attackers also
created inbox rules with short or easily overlooked names, such as ".", "sss," "s," and "d."
Some moved mail into RSS Feeds or Conversation History.
In one case, a rule hid messages containing payroll-related terms before the
compromised account sent a payroll email to an external CPA. These findings show why
a Microsoft 365 account compromise investigation should cover more than sign-in
activity. Check for attacker-added devices, authentication methods, and mailbox
changes.
Why a Password Reset Alone May Not Stop a Token
Replay Attack
A password reset is important, but it may not immediately terminate every existing
session. Microsoft documents a typical default access-token lifetime of 60-90 minutes,
with variations by application and configuration. Continuous Access Evaluation can
cause supported applications to reject tokens near real time after password changes or
explicit session revocation; other access can persist until token expiry. Resetting the
password alone also leaves attacker-registered devices and MFA methods in the
account (Hatcher et al., 2026; Microsoft, 2025a, 2026a, 2026c).
Revoke the user's sessions as part of containment, then reset the password and remove
any unrecognized authentication methods or devices. Huntress observed a replay
attempt fail with AADSTS50133, or SsoArtifactRevoked, after the session was no longer
valid. Microsoft describes this error as an invalid session following password expiration
or a recent password change. The error should be considered alongside the broader
investigation; it does not prove that all attacker access has ended (Hatcher et al., 2026;
Microsoft, 2025b, 2026c).
How Conditional Access Policies Can Reduce Token
Replay Risk
Conditional Access policies can prevent sign-ins that do not meet an organization's
access requirements. Huntress reported 1,052 blocked sign-ins from one address
across four organizations durig the September 11 phase. Successful sign-ins from that
address occurred in other organizations; the blocked and successful groups did not
overlap (Hatcher et al., 2026).
The distinction matters during triage. A block such as AADSTS53003 indicates
Conditional Access blocked the sign-in. It does not establish that a tenant was never
targeted or that no other sign-in succeeded. Huntress advises prioritizing credential
validity and successful access rather than ranking incidents by failed-attempt volume.
(Hatcher et al., 2026; Microsoft, 2025b)

Figure 2. Microsoft Entra sign-in log interface: review Conditional Access outcomes
alongside successful sign-ins (Microsoft, 2026e)
appropriate, restrict device-code flow with Conditional Access authentication-flow
policies. Also consider whether standard users need consent rights for new enterprise
applications. Require phishing-resistant authentication where appropriate, and
evaluate device-bound Token Protection for supported applications and resources
(Hatcher et al., 2026; Microsoft, 2026b, 2026d).
How to Respond to a Token Replay Attack
If you suspect a compromised session, use a coordinated response:
-
Revoke sessions and reset the password. Do both; a password reset alone
may leave an issued token active. For confirmed active compromise, temporarily
block the account's sign-in and terminate application-managed sessions where
necessary. Verify that attacker access has ended before restoring access. -
Audit Entra devices and MFA methods. Remove unauthorized entries and
investigate recent changes. -
Review inbox rules. Look for unfamiliar rules that hide, delete, or move
messages, especially into obscure folders. -
Investigate sign-in logs. Hunt for OAuth2: Token and Cmsi:Cmsi requests from
hosting infrastructure that use the Microsoft Office or Authentication Broker
client with a node or bare Mozilla/5.0 user agent. Correlate these with resource
access and other account evidence. Restrict device-code flow and user
consent. Limit these features to approved business needs and accounts.
Use device names and user-agent patterns as investigative leads, not automatic
verdicts. Huntress also reported that Microsoft Entra ID Protection independently
flagged campaign IPs as verified threat-actor IP detections.
Build These Skills With Hands-On Microsoft Entra ID Training
Responding to session hijacking requires practical familiarity with sign-in logs,
Conditional Access, MFA methods, and device registration. CodeRed's Microsoft Entra ID & Conditional Access with Enterprise Labs is an intermediate short course listed at
$99.99. Its curriculum covers token theft and session hijacking, sign-in log
investigations, Conditional Access, identity attack simulations, and related enterprise
labs.
For a shorter introduction, Identity and Access Management - Azure Active Directory is
listed at $49.99 and covers MFA, Conditional Access, Identity Protection, OAuth2, and
related identity topics.
FAQ: Token Replay Attacks
Can hackers bypass MFA without stealing or guessing a password?
Yes, although susceptibility depends on the authentication method and session
protections. In the Huntress campaign, AiTM relays captured the session token after
victims completed the real sign-in and MFA prompt. Huntress also reported tokens
obtained through device-code phishing and social engineering during legitimate logins.
What is the difference between token replay and password spraying?
Password spraying tests a small set of passwords against many accounts. Token replay
reuses stolen authenticated sessions instead of relying on guessed passwords.
Huntress used "token spraying" to describe the campaign's large-scale reuse of stolen
tokens.
Does a password reset kill a stolen session?
Not necessarily. A password reset alone should not be treated as complete containment, and it does not remove attacker-added devices or MFA methods. Session termination depends on token type, application behavior, and Continuous Access Evaluation support. Revoke sessions, reset the password, and audit the account's persistence mechanisms.
Which error codes can help identify token replay activity?
AADSTS53003 indicates that Conditional Access blocked access or token issuance.
AADSTS50133, SsoArtifactRevoked, indicates an invalid session following password
expiration or a recent password change. Neither code alone establishes token replay or
complete containment. Interpret these codes with the rest of the sign-in and account
evidence (Microsoft, 2025b).
What free cybersecurity training does CodeRed offer?
CodeRed's free account includes 25+ video courses, 15 practice labs, and 15 CTF
challenges for one year. Visit CodeRed homepage to explore more.
Conclusion
MFA remains valuable, but it does not protect a session token that an attacker captures
after authentication. For suspected token replay, revoke sessions, reset credentials,
remove unauthorized devices and MFA methods, and inspect mailbox rules. Strong
Conditional Access policies help, but effective response depends on validating
successful sign-ins and checking for persistence.
References
Hatcher, A., Matt, S., Poto, M., & Schwartz, A. (2026, October 22). M365 token spray and
replay campaign compromises business email accounts. Huntress.
https://www.huntress.com/blog/token-replay-spray
Microsoft. (2025a, May 14). Access tokens in the Microsoft identity platform. Microsoft
Learn.
https://learn.microsoft.com/en-us/entra/identity-platform/access-tokens
Microsoft. (2025b, February 3). Microsoft Entra authentication and authorization error
codes. Microsoft Learn.
https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes
Microsoft. (2026a, April 8). Continuous access evaluation. Microsoft Learn.
https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-continuous-access-evaluation
Microsoft. (2026b, March 26). Plan a phishing-resistant passwordless authentication
deployment in Microsoft Entra ID. Microsoft Learn.
https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-deploy-phishing-resistant-passwordless-authentication
Microsoft. (2026c, June 19). Revoke user access in Microsoft Entra ID. Microsoft Learn.
https://learn.microsoft.com/en-us/entra/identity/users/users-revoke-access
Microsoft. (2026d, August 20). Token protection in Microsoft Entra Conditional Access.
Microsoft Learn.
https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-token-protection
Microsoft. (2026e, March 24). Troubleshoot sign-in problems with Conditional Access.
Microsoft Learn.
https://learn.microsoft.com/en-us/entra/identity/conditional-access/troubleshoot-conditional-access