Microsoft Device Code Phishing Abused Legitimate Login to Steal OAuth Tokens
Social Engineering & Fraud · 6 sources · Updated 5mo ago · First seen Jul 6, 2026

A phishing campaign abused Microsoft's OAuth 2.0 Device Authorization Grant (Device Code Flow) to capture valid Microsoft account tokens without sending victims to a counterfeit login page. Victims received emails posing as legal notifications, including password-protected PDF attachments, and were funneled through phishing pages that displayed a one-time device code before directing them to the legitimate microsoft.com/devicelogin page. After victims entered the code and completed normal MFA on Microsoft's real site, the attackers obtained access_token, refresh_token, and id_token values tied to attacker-controlled applications.
The stolen tokens enabled persistent access to Microsoft services including email, OneDrive, and Teams, allowing attackers to read messages, access files, and monitor conversations. Researchers said the activity was observed from early April to mid-May 2026 and included a Brazil-focused variant that used legitimate redirect links, including on cacoo.com, to add credibility to the lure chain. Defenders were urged to reject unexpected device authorization prompts, inspect redirect parameters in otherwise legitimate URLs, disable Device Code Flow in Microsoft Entra ID where it is not needed, and monitor DeviceCodeSignIn and anomalous sign-in activity for signs of compromise.
Why it matters
Impact assessment
Device code phishing against Microsoft 365 and Microsoft account users enables account takeover without password theft and can neutralize the practical protection users expect from MFA because victims complete authentication on Microsoft's legitimate login page. Affected organizations include any tenant that permits Device Code Flow, with observed targeting spanning legal-themed lures, collaboration/payment/shared-folder pretexts, and prior sector overlap with government, defense, healthcare, telecommunications, higher education, IT, energy, and NGOs.
Business impact summary
Successful compromise gives attackers direct access to Exchange Online mailboxes, OneDrive content, Teams messages, and the ability to send email as the victim. This creates immediate risk of data theft, internal surveillance, business email compromise, fraud, lateral phishing from trusted accounts, and persistent access via refresh tokens.
Scope and severity
The exposure is broad because it abuses legitimate Microsoft OAuth functionality rather than a software flaw, and any organization using Microsoft identity services can be targeted if Device Code Flow is enabled or insufficiently restricted. Reporting indicates multiple active campaigns in 2026, including activity from early April to mid-May and another wave from late June to early July, plus region-specific adaptation for Brazil.
Known in-the-wild activity
Researchers from Kaspersky/Securelist and ZeroBEC reported active exploitation in the wild. The tradecraft overlaps with Microsoft's previously documented Storm-2372 activity, while newer reporting attributes some operations to reusable phishing infrastructure branded DEBULL, indicating the technique is being operationalized beyond a single actor.
Structured facts
- Affected products: Microsoft Identity Platform, Microsoft Entra ID, Microsoft 365, Exchange Online, OneDrive, Microsoft Teams
- Affected users: Microsoft account and Microsoft 365 users who can complete Device Code Flow authorization
- Industries previously associated with similar tradecraft: government, defense, healthcare, telecommunications, higher education, information technology, energy, NGOs
- User populations observed: general enterprise users, Brazil-focused targets, collaboration/payment/shared-folder lure recipients
- Impact types: account takeover, email theft, file theft, Teams message access, email sending as victim, persistence via refresh tokens, BEC risk
- Scope: widespread technique, not limited to a single tenant or sector
- Exploitation status: yes, observed in the wild during 2026


