Beyond MFA Fatigue: How Device-Code Phishing Bypasses Strong Authentication
Attackers abuse legitimate OAuth device-code sign-in to steal tokens without ever touching a password. How the technique works and how to shut it down.

Device-code phishing abuses a legitimate sign-in flow designed for devices without keyboards, such as smart TVs. The attacker starts the flow, receives a short code, and sends it to the victim with a convincing pretext. When the victim enters the code on the genuine sign-in page and approves, the attacker’s session receives valid tokens.
Why it matters: Every page the victim sees is real. There is no fake login page to detect, and MFA is completed by the victim themselves.
From targeted espionage to phishing-as-a-service
- February 2025: Microsoft reported a campaign by a group it tracks as Storm-2372, active since August 2024, using fake Microsoft Teams meeting invitations to lure targets into entering attacker-generated device codes. Targets included government, NGOs, IT services and critical infrastructure. In a July 2026 update, Microsoft assessed Storm-2372 to be a sub-cluster of Midnight Blizzard.
- April 2026: Microsoft described a much larger, AI-enabled device-code phishing campaign driven by a phishing-as-a-service kit. To get around the 15-minute expiry of device codes, the attackers generated a fresh code at the moment the victim clicked the link, which raised their success rate.
The technique has moved from a niche tactic to a mass-market one.
Why it works
- The sign-in page is the real Microsoft (or other identity provider) page.
- The victim completes MFA themselves, so the attacker never needs the password or the second factor.
- The attacker receives tokens, including refresh tokens, that keep working until they are revoked or expire.
Defensive steps
- Block the device-code flow with Conditional Access for everyone who does not need it. Microsoft recommends blocking it wherever possible.
- Alert on device-code sign-ins from unusual locations, new devices or users who never use the flow.
- Revoke sessions quickly when you suspect compromise (in Microsoft Entra, revoke the user’s sign-in sessions), then force re-authentication.
- Shorten token lifetimes and enable continuous access evaluation where available.
- Train users: an unexpected request to “enter this code” on a Microsoft page is a red flag, even if the page is real.
# Example detection logic (pseudo-query)
SignInLogs
| where AuthenticationProtocol == "deviceCode"
| where UserType == "Member"
| summarize count() by UserPrincipalName, IPAddress, Country
| where Country !in (ExpectedCountries)
Key takeaways
- Disable sign-in flows you do not use; device code is rarely needed by normal users.
- Phishing-resistant MFA alone does not stop token theft through legitimate flows.
- Monitor authentication protocols and token use, not just failed logins.
Updated November 2026. Prepared with AI assistance and checked against the sources listed below.
Sources
Spotted an error or have more information? Contact the editor.