🖥️Stalecollected in 23m

Phishing Bypasses Microsoft 365 MFA via OAuth

Phishing Bypasses Microsoft 365 MFA via OAuth
PostLinkedIn
🖥️Read original on Computerworld

💡OAuth phishing evades M365 MFA—secure your enterprise auth before attackers hit.

⚡ 30-Second TL;DR

What Changed

Abuses OAuth 2.0 Device Authorization Grant by pre-registering attacker device

Why It Matters

Enterprises using Microsoft 365 face elevated risk of account compromise, potentially exposing sensitive collaboration data. AI teams integrating with these services must prioritize auth hardening to prevent token-based breaches.

What To Do Next

Enable app consent policies in Microsoft Entra ID to allowlist only approved OAuth applications.

Who should care:Enterprise & Security Teams

Key Points

  • Abuses OAuth 2.0 Device Authorization Grant by pre-registering attacker device
  • Uses lures like salary bonuses or payments on fake emails
  • Legitimate microsoft.com login fools victims into authorizing access
  • Persistent token theft enables access to all account-linked apps
  • Microsoft admins can allowlist apps to block unauthorized OAuth grants

🧠 Deep Insight

Web-grounded analysis with 9 cited sources.

🔑 Enhanced Key Takeaways

  • The phishing campaign targets North American businesses using OAuth 2.0 Device Authorization Grant, where attackers pre-register a malicious app and provide a device code for victims to enter on the legitimate microsoft.com/devicelogin page, bypassing MFA[1][2][3].
  • Phishing lures include fake emails about salary bonuses, electronic funds payments, or voicemails, directing victims to authorize the attacker's device, granting persistent access to Outlook, Teams, and OneDrive via stolen OAuth access and refresh tokens[1][2][3].
  • This technique does not rely on credential theft but exploits post-MFA token issuance, allowing attackers to poll the token endpoint for real-time hijacking of valid tokens[1][2].
  • Defenses include Microsoft 365 admins using enterprise app allowlists to restrict OAuth consents, monitoring for anomalous device code usage, and revoking suspicious tokens[1][2][3].
  • Similar OAuth abuse has been observed in campaigns by Pawn Storm since 2015 and device code vishing targeting Entra ID accounts in technology sectors[2][6].

🛠️ Technical Deep Dive

  • Attackers register an OAuth app in Microsoft 365 to obtain a client_id, then generate a unique device_code and user_code using open-source tools[1][6].
  • Victim is phished to enter the user_code on https://microsoft.com/devicelogin, completing MFA on the legitimate site, which triggers token issuance to the attacker's polling endpoint[1][2][3][6].
  • Attacker polls Microsoft's token endpoint (e.g., via device_code polling flow in OAuth 2.0 RFC 8628) to capture access_token and refresh_token for persistent, bearer-token access without further auth[1][2].
  • Tokens enable API calls to Microsoft Graph for M365 services; they act as bearer credentials, blending with normal integration traffic and evading MFA[2][3].
  • Distinct from AiTM phishing, which uses reverse proxies for session cookies; this is pure device flow abuse post-legitimate auth[1][4].

🔮 Future ImplicationsAI analysis grounded in cited sources

This campaign highlights OAuth misconfigurations as a persistent blind spot despite MFA investments, likely driving adoption of conditional access policies, enhanced app consent prompts, and token lifecycle monitoring in enterprises. It may prompt Microsoft to tighten device code flows or introduce verification steps, increasing pressure on SaaS providers to secure API grants amid rising token theft in supply chain attacks.

Timeline

2015
Pawn Storm (APT28) begins leveraging OAuth in phishing campaigns, per Trend Micro analysis[2].
2024
Midnight Blizzard exploits forgotten test OAuth app for Microsoft executive email access[7].
2025-08
Salesloft-Drift OAuth breach impacts 700+ organizations, leading to Google Workspace token revocations[7].
2026-02
KnowBe4 detects sophisticated M365 device code phishing targeting North American businesses[1][2][3].
📰

Weekly AI Recap

Read this week's curated digest of top AI events →

👉Related Updates

AI-curated news aggregator. All content rights belong to original publishers.
Original source: Computerworld