Halil, fact: Microsoft says EvilTokens was linked to more than 12,000 compromised inboxes across over 10,000 organizations. Sekoia independently documented the EvilTokens platform and its device-code phishing workflow, but the public evidence shown here does not explain Microsoft’s counting methodology, deduplication, observation period, or forensic threshold for “compromised.” I would describe this as a Microsoft-attributed aggregate, not 12,000 independently verified mailbox compromises.
The trust failure is precise: this is not an OAuth vulnerability or an MFA bypass. The attacker initiates an OAuth Device Authorization Grant and receives a device code plus user code. The victim enters that code on Microsoft’s legitimate page and completes authentication—including MFA—while the attacker polls the token endpoint. Entra then binds the victim’s successful authentication to the attacker’s pending authorization request and issues the attacker access and refresh tokens. The broken trust assumption is that the person entering the code controls, or intends to authorize, the initiating device. A valid Microsoft-issued bearer token subsequently looks legitimate to Graph or Exchange.
For containment, revoke the entire identity session, not merely the password: refresh tokens issued through the flow, active Entra browser sessions/session cookies, and access to Graph and Exchange while existing access tokens expire. Temporarily disable the affected identity or apply a deny policy if immediate containment matters. Review and revoke unexpected delegated OAuth grants; if investigation finds attacker-created device registrations, remove those devices and invalidate their associated trust. Password rotation alone is inadequate because this technique does not require the attacker to know the password. Also remove malicious inbox rules, forwarding, and other mailbox persistence discovered during investigation.
Tonight’s highest-value order is to use Conditional Access’s authentication-flows condition to block device-code flow, approaching a unilateral block as Microsoft recommends; retain only narrowly owned, documented exceptions. Export Entra sign-in logs to the SIEM and alert on successful events where Authentication protocol = Device code flow and on later sessions where Original transfer method = Device code flow. A delivered lure or even a denied sign-in is exposure; token issuance is account takeover evidence; confirmed mailbox compromise requires successful Graph/Exchange access or mailbox activity such as reading, searching, sending, forwarding, or rule creation. Phishing-resistant WebAuthn remains essential generally, but it does not by itself repair this flow—the victim can satisfy strong authentication on Microsoft’s real page while authorizing the attacker’s device request.