A device-code phishing campaign struck more than 300 organizations worldwide in November 2026. Attackers registered unauthorized Windows devices within victims’ Microsoft Entra ID environments — achieving persistent access to Microsoft 365 that survives even a password reset.
How the Attack Works: Device-Code Phishing Explained
The Deception Mechanism
Research by Huntress documented 468 rogue devices registered across 326 compromised identities spanning 305 separate organizations.
The technique is straightforward yet highly effective. The attacker sends the victim an authentication code. The victim approves it on a legitimate Microsoft sign-in page — and that is the critical point: because the page is genuine, the user notices nothing out of the ordinary.
Yet by approving the code, the victim unwittingly hands the attacker a valid authentication token. Armed with that token, the attacker registers their own Windows device within the target organization. Microsoft Entra ID then treats it as a fully legitimate corporate device.
The Role of Primary Refresh Tokens
Once the rogue device is enrolled, the attacker obtains a Primary Refresh Token (PRT). The PRT enables Microsoft 365 single sign-on, meaning access automatically extends to Exchange, SharePoint, OneDrive, and Teams.
One fact deserves particular emphasis: resetting the user’s password does not revoke this access. The PRT remains valid until the rogue device is explicitly removed and all user sessions are manually revoked.
Scale of the Operation and Threat Context
A Broad, Opportunistic Campaign
The spread of this attack across 305 organizations points to opportunistic targeting rather than sector-specific selection. No specific threat group has been attributed. The actors relied on residential proxy infrastructure to obscure their activity and leveraged the publicly available ROADtools toolkit to manage device registrations.
BleepingComputer independently confirmed the technical findings reported by Huntress. Motivations remain unclear — financial gain and espionage are both plausible drivers.
A Paradigm Shift in Cloud Attacks
This operation reflects a broader trend that security teams cannot afford to ignore. Attackers are moving away from credential theft and instead choosing to abuse legitimate authentication flows. This shift renders many traditional defenses ineffective.
Microsoft 365 environments are particularly attractive targets. A single compromised identity opens the door to every connected service. The risk extends well beyond email — it encompasses the organization’s entire productive infrastructure.
How to Defend Against It: Controls and Priorities for CISOs
Block the Device-Code Flow
Microsoft recommends blocking the device-code flow wherever it is not strictly required. Where specific applications — such as Teams Rooms devices — genuinely need it, exceptions should be tightly scoped. Enforcing Conditional Access policies with minimal scope is non-negotiable.
Organizations must also adopt phishing-resistant MFA. Passkeys and FIDO2 security keys are the preferred options. Disabling legacy authentication further reduces the attack surface.
Monitoring and Detection
Continuous monitoring of Entra ID logs is essential. Security teams should actively look for:
- Unusual device-code flow authentication attempts
- Unexpected new device registrations
- Activity originating from residential proxy IP addresses
- Anomalous device naming patterns
- Suspicious access to Exchange, SharePoint, and OneDrive
In parallel, organizations should configure alerts and approval workflows for every new device registration — particularly for privileged accounts.
The Incident Response Playbook
When a device-code phishing attack is detected, the sequence of actions is critical.
First: identify and remove all rogue devices. Then immediately revoke refresh tokens and active sessions. Next, audit MFA methods and application consent grants. Finally, review mailbox and cloud file access, and preserve all available logs.
One point must be stressed: a password reset alone is not enough. As long as valid tokens or active rogue devices exist, the attacker retains access. Security teams must act on both fronts simultaneously.
Conclusion
The November 2026 campaign makes it clear that controlling the identity plane is now an enterprise-level priority. Protecting passwords is no longer sufficient. CISOs must actively govern device registration, authentication tokens, and cloud access flows — or risk leaving the door open long after the initial breach.
Sources:
- Huntress – Device Code Phishing M365 Registrations
- BleepingComputer – Device-Code Phishing Campaign Plants Rogue Devices in 305 Entra Tenants
- CSO Online – Microsoft 365 Attackers Are Bypassing Password Resets
Campaigns like this device-code phishing operation highlight how critical it is for organizations within the same sector to share threat intelligence rapidly and reliably. IsacChain enables the secure, traceable exchange of indicators of compromise between ISACs and member organizations, backed by blockchain verification that guarantees the integrity of every shared data point and an automated NIS2 compliance engine that maps each threat to applicable regulatory obligations. In an environment where response speed is the difference between a contained incident and a full-scale breach, having a trusted collaboration platform is an operational priority for every CISO. Discover how IsacChain can help your organization at www.isacchain.com