Token theft
noun · also Token replay, Session hijacking · Microsoft Learn: Token theft playbook
An attack in which a stolen access token, refresh token or session cookie is replayed to act as the user, even after the user completed MFA.
After a user signs in and completes MFA, Entra ID issues tokens that apps use to access services without asking again. Token theft steals those tokens, through adversary-in-the-middle phishing, infostealer malware or consent and device code phishing, and replays them from the attacker's own device. The services see a valid token that records MFA as satisfied.
Example
A user signs in through an AiTM phishing page that relays the real Microsoft sign-in. The proxy keeps the session cookie. Ten minutes later, the attacker imports the cookie into their browser and reads the user's mailbox from a hosting provider in another country, without ever being asked for MFA.
Why it matters for a SOC analyst
A password reset alone does not stop it: revoke the user's sessions and refresh tokens too. In investigations, compare the location and device of every sign-in in the same session, including non-interactive sign-ins, and watch for Entra ID Protection detections such as Anomalous token and Attacker in the middle.
Related terms
- Adversary-in-the-middle phishing
Phishing that relays the victim's sign-in to the real site through an attacker's proxy, stealing the session cookie after MFA succeeds.
- Primary refresh token
A long-lived token Entra ID issues to a registered device's token broker to provide single sign-on, valid for 90 days and renewed while the device is in use.
- Multi-factor authentication
Signing in with two or more different kinds of proof, such as a password plus a phone or security key, so a stolen password alone is not enough.
- Phishing-resistant MFA
Authentication methods, such as passkeys, FIDO2 keys and Windows Hello for Business, that cannot be relayed or approved by a phished user.
- Conditional Access
Microsoft Entra ID's policy engine that decides, at each sign-in, whether to allow access, require MFA or another control, or block.