AiTM token theft: how to recognize it and respond
Adversary-in-the-middle phishing steals the session token, so MFA looks satisfied. Here's the signature, the response and the prevention.
How it works
The user signs in to a phishing proxy that relays the real Microsoft sign-in page. They complete MFA, and the attacker captures the session token. The attacker then replays it from their own device. No password or MFA prompt is needed.
The signature in sign-in logs
- MFA satisfied by a claim in the token (not an interactive MFA prompt)
- Conditional Access: success
- No password entry on that sign-in
- An unmanaged / unregistered device, often from an unusual location or hosting provider IP
Response
- Revoke sessions:
Revoke-MgUserSignInSession -UserId <id>(or Revoke sessions in Entra). - Reset the password and have the user re-register MFA. Remove any methods the attacker may have added.
- Hunt for:
- new inbox rules (especially ones that move, delete or forward mail):
Get-InboxRule -Mailbox <upn> - mailbox forwarding:
Get-Mailbox <upn> | fl ForwardingSmtpAddress,DeliverToMailboxAndForward - new OAuth app consents by the user
- other recipients of the same phishing email. Search and purge it (see SEC-02).
- new inbox rules (especially ones that move, delete or forward mail):
- Review what the attacker accessed while signed in (mailbox audit, SharePoint and OneDrive audit).
Prevention
- Phishing-resistant MFA (FIDO2 / passkeys, Windows Hello for Business), at least for admins
- Token protection in Conditional Access where supported
- Require a compliant or registered device for access, so a stolen token replayed from an attacker’s machine fails
See also SEC-02 for the full business email compromise runbook.
Seeing this in your environment?
We can check for this, and everything around it, as part of an audit.