Device-code phishing is an abuse of a legitimate OAuth device authentication flow. Instead of stealing a password, the attacker tricks a victim into entering a code or completing a sign-in that authorizes the attacker’s session. The result can be a usable access token or session artifact for a cloud account, often without needing the user’s password at all.
This matters because tokens can bypass traditional password defenses and may remain valid until they expire or are revoked. In real attacks, the lure may be an email, calendar invite, or chat message that leads the victim to a trusted sign-in page. Defenders should watch for unusual device-code prompts, unexpected authorization requests, and abnormal token use. Phishing-resistant MFA, conditional access, and rapid token revocation help reduce the risk when this technique is suspected.


