Back
Outfaze Security Team

Outfaze Security Team

Device Code Phishing: How to Block Token Theft

Device Code Phishing: How to Block Token Theft

Microsoft reported in February 2025 that Storm-2372 had used device-code phishing since August 2024. Targets were approached through messaging services, invited to supposed meetings, and asked to enter attacker-supplied codes into legitimate authentication pages.

The victim was not handing over a password to a fake website. By completing a real device authorization flow, the user granted the attacker a valid token that could be used for email access and further phishing.

Why conventional phishing cues were not enough

A legitimate domain, expected MFA, and familiar sign-in design can all be present in a device-code attack. The suspicious element is the unrequested code and the context in which it arrived.

Microsoft observed Graph-based email collection and internal propagation. Later activity included actor-controlled device registration, which made device and token telemetry important to the investigation.

Reduce the available authorization path

Block device-code flow where it is not required and tightly scope exceptions. Restrict device enrollment, use conditional access, and alert on unusual device registration, token activity, mailbox access, and messages sent shortly after authorization.

Teach users that support staff and meeting organizers should not send unsolicited device codes. Response must revoke sessions and tokens, inspect devices and OAuth grants, review mail activity, and identify recipients of follow-on lures.

  • Legitimate sign-in pages do not validate an unsolicited request.
  • MFA remains valuable but must be tied to clear context.
  • Token revocation belongs in account-compromise playbooks.
  • Internal messages from a compromised account require rapid scoping.

Put the lesson into practice

  1. Document legitimate device-code use.
  2. Block or restrict the flow.
  3. Monitor token, Graph, mailbox, and device-registration events.
  4. Update awareness material with the exact attack pattern.
  5. Exercise token revocation and internal-recipient notification.

Related Outfaze guidance

Authoritative sources