Device Code Phishing Drives Microsoft 365 Account Takeovers and SharePoint Extortion
Vulnerability Disclosure · 9 sources · Updated 4mo ago · First seen Jul 21, 2026

Researchers and incident responders are warning that attackers are increasingly abusing Microsoft Entra ID's OAuth 2.0 device code flow to hijack Microsoft 365 accounts through legitimate sign-in prompts rather than malware or software exploits. In these attacks, victims are tricked via vishing or phishing into entering an attacker-supplied code at Microsoft's device login page and approving MFA, which issues the attacker valid access and refresh tokens. Security firms say the technique can provide broad access to services including Microsoft Graph, Exchange Online, OneDrive, and SharePoint, and that password resets alone may not fully contain the intrusion because refresh tokens can persist across services.
The activity has been tied to data theft and follow-on abuse. ReliaQuest reported that the Helix extortion group used device code phishing, MFA abuse, and rogue authenticator registration to access victim Microsoft 365 tenants, enumerate SharePoint, and exfiltrate data before extortion; reported victims include Medtronic, Nissan, NAIC, Kodak, Infinite Campus, and the University of Nottingham. Separate investigations documented attackers signing in from foreign locations, registering multiple devices, creating hidden inbox rules to suppress replies, and using compromised mailboxes to send phishing messages at scale. Microsoft and security researchers recommend blocking or restricting device code authentication with Conditional Access, limiting SharePoint and device registration to managed devices, and monitoring Entra ID telemetry for AuthenticationProtocol set to device code, unusual travel, mailbox rule changes, and spikes in device registrations.
Why it matters
Impact assessment
Device code phishing is driving high-impact Microsoft 365 account takeovers by abusing legitimate Microsoft Entra ID authentication flows rather than malware or software exploits. Organizations heavily dependent on Microsoft 365 are most exposed, especially those using Exchange Online, SharePoint, OneDrive, Microsoft Graph, and permissive device registration or unmanaged-device access.
The business impact is severe because attackers can obtain valid access and refresh tokens, maintain access after password changes, steal email and files, conduct internal and external phishing, and extort victims after SharePoint data theft. Exposure is broad across sectors rather than limited to a niche target set, and multiple real-world incidents and named victims have been reported.
Affected populations
- Microsoft 365 and Entra ID tenants
- Organizations using Exchange Online, SharePoint, OneDrive, and Microsoft Graph
- Environments that allow OAuth 2.0 device code flow
- Environments permitting unmanaged-device access or broad device registration
- Sectors explicitly reported as targeted: MSSPs, manufacturing, technology, government, healthcare, consulting
- Reported geographic focus: U.S. organizations, though the technique is broadly applicable
Severity and scope
- Account takeover occurs without endpoint compromise and can evade traditional phishing controls because users authenticate on a legitimate Microsoft page
- Stolen refresh tokens can preserve access across services and outlast password resets if sessions are not explicitly revoked
- Follow-on impacts include business email compromise, invoice/payment fraud, internal spear-phishing, data theft, and extortion
- SharePoint-focused theft increases risk of sensitive document exposure, regulatory consequences, and reputational damage
- Activity is widespread enough to support phishing-as-a-service and kit-based operations, including Kali365
Known exploitation and incidents
- Exploitation in the wild is established across multiple sources
- Helix used device code phishing, MFA abuse, and rogue authenticator registration to access Microsoft 365 tenants and extort victims after SharePoint exfiltration
- Reported Helix victims: Medtronic, Nissan, NAIC, Kodak, Infinite Campus, University of Nottingham
- Trend Micro documented post-compromise foreign sign-ins, multiple device registrations, hidden mailbox rules, and phishing sent from compromised mailboxes
- ANY.RUN reported more than 80 public sandbox sessions per week associated with Kali365 activity


