Token theft: how attackers get past MFA
Attackers don't need your password. They steal the proof that you already logged in. Here is how token theft works, why MFA alone does not cover it, and what to do about it.
- 8 min read
- Published January 2026
31%
of Microsoft 365 breaches in 2025 were token theft.
Source: Obsidian Security
146%
more adversary-in-the-middle attacks, year over year.
Source: Obsidian Security
79%
of BEC victims had MFA properly deployed.
What token theft is
When you log in to Microsoft 365 or Google Workspace, the system checks your password and your MFA response. Then it issues a token: a signed piece of data, usually a JSON Web Token or a session cookie, that proves you already signed in. The token lets you move between email, files and Teams without logging in again.
Token theft means stealing that token and replaying it on another device. The token already represents a completed sign-in, MFA included, so the attacker gets into the account without seeing a password prompt or an MFA challenge.
One managed service provider reported that a client's Microsoft 365 email was compromised with MFA enabled and properly configured. The attackers had stolen a session token.
Why it is hard to see
To Microsoft or Google, a stolen token looks like a valid login. MFA was already satisfied, so the sign-in may not raise an alert. The attacker often stays unnoticed until they do something out of the ordinary.
How the attack works
The user logs in
And completes MFA.
The system issues a session token
It is stored in browser memory, a session cookie or local storage on the user's device.
The attacker steals the token
By one of the methods below.
The token is replayed
On the attacker's device.
The attacker has access
With no MFA prompt.
How attackers steal tokens
Adversary-in-the-middle (AiTM) phishing
The most common technique. Tools like Evilginx and Tycoon 2FA sit between the victim and the real login page. The user sees a normal Microsoft or Google sign-in, enters a password and completes MFA. The proxy captures the session token as it is issued.
Infostealers and malware
Malware families such as Raccoon Stealer, RedLine and Lumma scan browser storage and memory for session cookies and tokens. Law enforcement disrupted some of them in 2024 and 2025, but successors remain active. A stolen token can be loaded into a browser on a different machine.
OAuth and supply chain compromise
One of 2025's largest SaaS breaches began with a compromised third-party app. Attackers used the vendor's OAuth tokens to reach its customers' environments. One vendor breach can spread through every integration that trusts it.
Token replay
A stolen token can be reused across sessions and devices until it expires or is revoked. Attackers often make the access last by registering a new MFA method, creating inbox forwarding rules or enrolling their own device.
Device code phishing
This grew in 2025. Microsoft tracked a large campaign by a group it calls Storm-2372. The attacker tricks a user into entering a code on Microsoft's real device login page, which hands the attacker a valid set of tokens. It is hard to spot because the sign-in happens on Microsoft's own site. Since July 1, 2026, new Microsoft Entra tenants block device code flow through security defaults. Older tenants should block it in Conditional Access unless a specific device needs it.
Token theft and session hijacking
The terms get used interchangeably. Token theft means taking authentication tokens for use outside the original session. Session hijacking means taking over an active session with a stolen cookie or ID. Both end in unauthorized access. The scope and how long it lasts differ.
| Aspect | Token theft | Session hijacking |
|---|---|---|
| Target | OAuth, JWT and refresh tokens, session cookies, API keys | Session cookies, session IDs |
| Main methods | AiTM phishing, malware, supply chain | XSS, brute force, session fixation |
| Scope | Broad: APIs, mobile apps, web apps, SaaS | Usually one web session |
| How long it lasts | Longer. Depends on token and refresh expiry | The active session, or until timeout |
| Effect on MFA | Gets around MFA | Gets around MFA for the active session |
Swipe sideways to see the whole table.
After a token is stolen
Business email compromise (BEC) makes up nearly half of the incident response investigations at FRSecure. The usual sequence:
- Inbox rules. Hidden forwarding rules send mail to an outside mailbox, so the attacker keeps reading even if the first access is revoked.
- New MFA methods. The attacker registers their own, which survives a password reset.
- Lateral movement. From the compromised identity to SharePoint, OneDrive, Teams and connected third-party apps. They may raise their privileges or enroll their own device in Entra ID.
- Payment fraud. They take over live email threads about invoices or wire transfers and redirect the payment.
- Data theft. Files, customer data and financial records are downloaded in bulk, then sold or used to pressure the victim.
Organizations often find out about token theft only after the fraud has happened.
How to protect against it
MFA is still essential. It is not the whole answer. The defense has layers: some make the theft harder, others make a stolen token harder to use.
Conditional Access policies
The most important control. Microsoft Entra Conditional Access and Google Workspace Context-Aware Access check device compliance, location, the app and, with P2, sign-in risk at every sign-in, and can block or challenge it. This makes a stolen token much harder to use.
Token Protection
Microsoft's Token Protection ties a token to the device it was issued to. Replayed on another machine, Entra ID rejects it. It comes with Entra ID P1 and covers native apps reaching Exchange Online, SharePoint Online and Teams on Windows. Microsoft's platform table now lists iOS and macOS as well, for managed devices. It does not protect ordinary browser sessions, so it works alongside the other controls here. Windows devices must be Entra joined, hybrid joined or registered.
Continuous Access Evaluation (CAE)
CAE lets Exchange Online, SharePoint Online and Teams cut off access within minutes when an account is disabled or deleted, a password changes, an admin revokes sessions, or Entra ID Protection (P2) flags the user as high risk. With trusted IP ranges defined in Conditional Access, a token replayed from outside them is rejected.
Phishing-resistant MFA: FIDO2 keys and passkeys
SMS codes, push prompts and authenticator codes can all be relayed by an AiTM proxy. FIDO2 security keys and passkeys work differently. The credential is tied to the real site's address, so it does not sign a challenge for a phishing domain and the proxy has nothing reusable to capture.
Device compliance and endpoint hardening
Require managed, compliant devices through Intune. Turn on Credential Guard and LSA protection. Deploy Defender for Endpoint with tamper protection. These make it harder for malware to pull tokens off the device.
Compliant network enforcement
Microsoft Entra Global Secure Access lets you define a compliant network and restrict token use to it. A token replayed from outside is blocked at sign-in and, through CAE, at the app.
Security awareness training
About 60% of breaches involve a human element, according to Verizon's 2025 Data Breach Investigations Report. Teach people that an AiTM page looks identical to the real one and the difference is the URL, not to approve MFA prompts they did not start, and to report odd sign-in requests right away.
Review OAuth app consents
Audit which third-party apps have OAuth access to your Microsoft 365 or Google Workspace. Limit user consent to verified publishers. Review delegated permissions regularly and revoke what is not needed.
Where a small business should start
On Microsoft 365 Business Premium (or Entra ID P1 with Intune), do these four first. None of them needs E5 or P2 licensing.
Conditional Access
Require compliant, managed devices.
Token Protection
Turn on the policy in Entra.
Phishing-resistant MFA
For every account.
Security awareness training
Short, and specific to fake sign-in pages.