Skip to content
SEC-01 Field-tested

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

  1. Revoke sessions: Revoke-MgUserSignInSession -UserId <id> (or Revoke sessions in Entra).
  2. Reset the password and have the user re-register MFA. Remove any methods the attacker may have added.
  3. 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).
  4. 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.

Ask us about SEC-01

Find out what's really going on in your tenant.

Tell us what you run and what's worrying you. We'll recommend the right audit, and tell you honestly if you don't need one.