Skip to main content
Mallory
← Back to News
phishing-campaign-intelligencecredential-access-methodidentity-authentication-vulnerabilitypersistence-method

Microsoft Device Code Phishing Abused Legitimate Login to Steal OAuth Tokens

Social Engineering & Fraud · 6 sources · Updated 5mo ago · First seen Jul 6, 2026

Microsoft Device Code Phishing Abused Legitimate Login to Steal OAuth Tokens

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
Is your org in this campaign?Get the infrastructure and lures behind it.
Hunt this campaign
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Jul 6, 2026 – Jul 7, 2026
  1. Jul 7, 20265mo ago

    DEBULL-linked device code phishing targets Microsoft 365 accounts

    From late June 2026 into early July, attackers used collaboration-, payment-, and shared-folder-themed lures to drive victims through Microsoft's legitimate device login flow via a compromised Croatian rental website. ZeroBEC linked the activity to reusable DEBULL phishing infrastructure, with overlap to Storm-2372 tradecraft and likely use of GraphSpy or related post-exploitation tooling.

    DEBULL Tooling Abuses Microsoft Device-Code Flow to Target M365 Accounts
  2. Jul 6, 20265mo ago

    Brazil-focused variant uses legitimate cacoo.com redirects

    A related variant adapted the same device code phishing technique for Brazilian targets. It used lures that abused legitimate redirect links on cacoo.com to route victims into the attack flow.

    Когда недостаточно проверить URL: фишинг через Microsoft Identity Platform | Securelist
  3. Jul 6, 20265mo ago

    Attackers gain persistent Microsoft access via issued tokens

    After victims completed normal Microsoft authentication and MFA, the attackers received access_token, refresh_token, and id_token values. These tokens enabled ongoing access to Microsoft services including email, OneDrive, and Teams.

    Когда недостаточно проверить URL: фишинг через Microsoft Identity Platform | Securelist
  4. Jul 6, 20265mo ago

    Device code phishing campaign targets Microsoft users

    From early April to mid-May 2026, attackers ran a phishing campaign abusing Microsoft's OAuth 2.0 Device Authorization Grant flow. Victims were lured with legal-notification-themed emails and redirected to enter a one-time device code on the legitimate microsoft.com/devicelogin page.

    Когда недостаточно проверить URL: фишинг через Microsoft Identity Platform | Securelist
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Affected products

2 linked
Microsoft AccountMicrosoft 365

Organizations

1 linked
Microsoft Corporation

Observables

15 linked

Indicator values are masked on this page. View all 15 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Get the infrastructure, lures, and IOCs behind this campaign, ready to push into your email and identity stack.
Hunt This Campaign
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.