Skip to main content
Mallory
← Back to News
identity-authentication-vulnerabilityphishing-campaign-intelligencevoice-social-engineeringdata-exfiltration-method

Device Code Phishing Drives Microsoft 365 Account Takeovers and SharePoint Extortion

Vulnerability Disclosure · 9 sources · Updated 4mo ago · First seen Jul 21, 2026

Device Code Phishing Drives Microsoft 365 Account Takeovers and SharePoint Extortion

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
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

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

4 events · Apr 4, 2026 – Jul 22, 2026
  1. Jul 22, 20264mo ago

    Gurucul identifies Kali365 device-code phishing kit targeting U.S. organizations

    Gurucul described Kali365 as a high-severity phishing-as-a-service kit targeting U.S. organizations through Microsoft device code phishing, enabling attackers to obtain OAuth access and refresh tokens for persistent Microsoft 365 access. The report also published associated domains and URLs and provided detection queries for identifying related activity.

    Kali365 Targets US Organizations with Data Theft via Device Code Phishing | Community Portal | Gurucul
  2. Jul 22, 20264mo ago

    Trend Micro documents device-code phishing leading to mailbox abuse

    Trend Micro reported on an investigated device-code phishing case in which an attacker gained cloud account access, later signed in from abroad, registered multiple devices, created a hidden inbox rule, and used the compromised mailbox to send phishing emails to hundreds of external recipients. The report provided identity-focused detection guidance and recommended disabling device-code flow where unnecessary.

    Device Code Phishing: Turning a Convenience Feature Into an MFA Bypass | Trend Micro (US)
  3. Jul 19, 20264mo ago

    Researchers identify Helix targeting SharePoint via vishing and MFA abuse

    Researchers identified a new data extortion group called Helix that steals Microsoft 365 access through social engineering methods including vishing, device code phishing, and MFA abuse rather than software exploitation. Reported victims included Medtronic, Nissan, NAIC, Kodak, Infinite Campus, and the University of Nottingham, with activity focused on SharePoint data theft and extortion.

    Helix Data Extortion Group Targets Microsoft SharePoint Using Vishing and MFA Abuse - CySecurity News - Latest Information Security and Hacking Incidents
  4. Apr 4, 20268mo ago

    TrustedSec details M365 device code phishing technique

    TrustedSec published an analysis of how attackers abuse Microsoft Entra ID's OAuth 2.0 device code flow to phish users into approving legitimate sign-ins, yielding access and refresh tokens for Microsoft 365 services. The article also highlighted detection opportunities in Entra ID logs and recommended blocking device code flow with Conditional Access.

    TrustedSec | The New Hotness in Phishing: Device Code Attacks in M365
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 →

Threat actors

2 linked

Affected products

3 linked
Microsoft Entra IdSharepointMicrosoft 365

Organizations

5 linked
MedtronicMicrosoft CorporationNissan Motor CorporationEastman Kodak CompanyInfinite Campus

Breaches

1 linked
MEDTRONIC-2026-04

Observables

46 linked

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

Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
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.