Phishing Attacks Exploiting OAuth Device Code Authorization for Microsoft 365 Account Takeover
Social Engineering & Fraud · 21 sources · Updated 4mo ago · First seen Dec 18, 2025

Threat actors are increasingly leveraging OAuth 2.0 device code authorization flows to compromise Microsoft 365 accounts through sophisticated phishing campaigns. Proofpoint researchers have observed both state-aligned and financially motivated groups using social engineering tactics to trick users into granting access to malicious applications, resulting in account takeovers, data exfiltration, and broader SaaS supply chain abuse. Attackers initiate these campaigns with phishing messages containing URLs or QR codes that, when followed, prompt users to authorize access for rogue applications, ultimately handing over OAuth tokens to the adversaries.
Industry analysis highlights that identity-first intrusions, including device code flow phishing and illicit OAuth consent, have driven significant data breaches and business email compromise incidents in 2025. Notable cases include the exploitation of connected apps to exfiltrate data from Salesforce tenants and major financial impacts on organizations such as Marks & Spencer. Security experts recommend enforcing phishing-resistant MFA, governing OAuth consent, and deprecating device code flows where feasible to mitigate these risks. Regulatory changes are also pushing organizations to strengthen identity and SaaS governance in response to these evolving threats.
Why it matters
Impact assessment
Device code phishing against Microsoft 365 is now a widespread, high-confidence account takeover risk affecting organizations across government, education, transportation, think tanks, small business, and general enterprise environments. The impact is severe because successful authorization gives attackers valid OAuth tokens for cloud services, enabling persistent access, business email compromise, data theft, lateral movement, and SaaS abuse without stealing passwords or presenting a fake Microsoft login page.
Summary
This exposure primarily affects Microsoft 365 and Entra ID tenants where OAuth device code flow is enabled for users who do not legitimately need it. Scope is broad rather than narrowly targeted: Proofpoint reported hundreds of campaigns across industries worldwide, with both state-aligned and financially motivated actors actively exploiting the technique in the wild.
Supporting details
- Affected products and populations:
- Microsoft 365 accounts authenticated through Microsoft Entra ID
- Exchange Online, Microsoft Graph, OneDrive for Business, Outlook, Teams, and SharePoint reachable through granted tokens
- Organizations allowing OAuth 2.0 Device Authorization Grant / Device Code Flow
- Affected sectors observed in reporting:
- Government and military-linked targets
- Think tanks and higher education
- Transportation
- Small businesses
- Broad enterprise users across multiple industries globally
- Severity and business consequences:
- Account takeover without password theft
- Persistent access via refresh tokens even after password changes
- Data exfiltration from mailboxes, files, and SaaS APIs
- Business email compromise and fraud
- Lateral movement and downstream SaaS supply-chain abuse
- Reputational and financial damage from identity-led intrusions
- Scope of exposure:
- Proofpoint reported hundreds of campaigns and rapid proliferation since late 2024 and through 2025-2026
- Public kits and phishing-as-a-service offerings lowered the barrier to entry
- Dynamic device-code generation removed the earlier 15-minute scaling constraint
- Exploitation in the wild:
- Yes; multiple active campaigns were documented by Proofpoint, eSentire, LevelBlue, and others
- Threat actors and services named include TA4903, TA2723, UNK_AcademicFlare, EvilTokens, Tycoon 2FA, ODx/Storm-1167/FlowerStorm, Kali365, ARTokens, and prior Russian clusters including Storm-2372, APT29, UTA0304, and UTA0307
- Reporting ties the broader identity-first intrusion trend to major 2025 losses, including Salesforce token abuse and significant operational disruption at Marks & Spencer


