Skip to main content
Mallory
← Back to News
phishing-campaign-intelligenceidentity-authentication-vulnerabilitycredential-access-methoddetection-content-update

Microsoft OAuth Device Code Phishing Hijacks Microsoft 365 Sessions

Social Engineering & Fraud · 1 source · Updated 5mo ago · First seen Jun 2, 2026

Microsoft OAuth Device Code Phishing Hijacks Microsoft 365 Sessions

Attackers abused Microsoft’s OAuth 2.0 Device Authorization Grant flow to phish users into authorizing attacker-controlled sessions on legitimate Microsoft login pages, allowing them to capture access tokens, refresh tokens, and ID tokens without stealing passwords directly. In the observed campaign, victims received phishing emails, were routed through phishing landing pages and open redirects, and were told to enter attacker-supplied one-time device codes on Microsoft’s official device verification page before completing MFA.

The stolen tokens enabled access to Microsoft 365 services including email, OneDrive, and Teams. Researchers also observed a Brazil-focused variant that used cacoo.com, a legitimate Nulab-owned service, as an open redirect to phishing infrastructure. Recommended mitigations include training users to reject unsolicited device-code requests, reviewing redirect parameters and final destinations, monitoring DeviceCodeSignIn events, enforcing device-compliance controls, and disabling Device Code Flow in Microsoft Entra ID where it is not required.

Why it matters

Impact assessment

This campaign affects organizations using Microsoft 365 and Microsoft Entra ID, especially enterprises whose users can complete OAuth Device Code Flow sign-ins. The impact is high because attackers can obtain valid access, refresh, and ID tokens after the victim completes MFA on Microsoft’s legitimate page, enabling mailbox access, OneDrive file theft, Teams access, and persistent session reuse without password theft.

The exposure is targeted rather than indiscriminate, with observed activity from early April to mid-May 2026 and continued regional adaptation including a Brazil-focused variant. Exploitation in the wild is confirmed by researcher observations of active phishing operations using legitimate Microsoft infrastructure and open redirects to increase credibility.

Affected entities and business risk

  • Products/services affected: Microsoft 365, Microsoft Entra ID, Microsoft OAuth 2.0 Device Authorization Grant flow
  • User populations affected: users who can authorize device-code logins and complete MFA prompts
  • Industries at risk: broad cross-sector enterprise users of Microsoft 365; lures included legal-themed phishing suggesting business-targeted operations
  • Business impacts:
    • Unauthorized email access and email-sending from victim mailboxes
    • OneDrive data exfiltration
    • Access to Teams conversations
    • Persistent access through refresh tokens
    • Reputational and financial risk from account compromise and downstream fraud

Scope and observed activity

  • Observed campaign window: early April to mid-May 2026
  • Geographic tailoring observed: Brazil-focused variant
  • In-the-wild exploitation: yes
  • Abuse of legitimate services observed:
    • Microsoft official device login page
    • cacoo.com open redirect in Brazil-focused activity
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.

2 events · Jun 2, 2026
  1. Jun 2, 20266mo ago

    Brazil-focused variant uses cacoo.com open redirect

    The article describes a geographically adapted variant targeting users in Brazil that used cacoo.com, a legitimate Nulab-owned service, as an open redirect to phishing infrastructure. This variant was part of the broader device code phishing activity discussed in the report.

    When checking the URL isn’t enough: phishing via the Microsoft identity platform | Securelist
  2. Jun 2, 20266mo ago

    Device code phishing campaign targets Microsoft 365 users

    Securelist reported an observed phishing campaign that abused Microsoft’s OAuth 2.0 Device Authorization Grant flow to trick victims into authenticating attacker-controlled sessions on legitimate Microsoft login pages. The campaign was observed from early April to mid-May 2026 and resulted in attackers obtaining access, refresh, and ID tokens for Microsoft 365 resources.

    When checking the URL isn’t enough: phishing via the Microsoft identity platform | Securelist
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
OnedriveMicrosoft Entra Id

Organizations

1 linked
Microsoft Corporation
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.