Device Code Phishing Campaign Plants Rogue Devices in Hundreds of Microsoft 365 Tenants
Huntress is tracking an active device code phishing campaign that has produced hundreds of rogue device registrations in Microsoft 365 environments. In November 2026 it observed 468 registrations across 326 identities in 305 organisations. The attacker appears to work weekdays, with very few registrations on weekends.
Victims are lured through the device code sign-in flow, which hands access and refresh tokens to the attacker. The attacker appears to use ROADtools, a public Entra ID toolkit, to redeem the token and register a device. Once registered, the device receives a Primary Refresh Token (PRT), which enables single sign-on to the user's Microsoft 365 apps. The attacker then logged into Azure Active Directory and Microsoft Office, often reaching OneDrive, SharePoint or Exchange.
The rogue device is the persistence mechanism. Microsoft invalidates a PRT on a password change only when the token was obtained with the password, and here it came from a phished token. A PRT can also satisfy Conditional Access policies that require a registered device. A password reset alone therefore does not remove access; the device must be deleted manually.
The campaign is easy to hunt for. Most devices are named MH- followed by 16 uppercase hex characters, such as MH-51FB898341CEA47A, are joined to Entra ID, and report Windows build 10.0.19041.928, the default hardcoded in ROADtools. That build is Windows 10 version 2004, which left Microsoft servicing in 2021. Sign-ins mostly came through the Microsoft Authentication Broker application from residential proxy networks in the US and UK, with no IP serving more than two victims, so IP blocklists will not stop it. In one case, the token was redeemed from Poland with a python-requests user-agent.
Why it matters
Many incident playbooks treat a password reset as the end of account compromise, but here the attacker holds a device-bound PRT that survives it, and it may even satisfy device-based Conditional Access. Any Microsoft 365 tenant where users can approve device code sign-ins and register devices is exposed, and IP blocklists are no defence because the proxies are rarely reused. Response must now include reviewing and removing devices, not just credentials.
What to do
- Search Entra ID device lists for names starting with MH- followed by 16 uppercase hex characters.
- Look for devices joined to Entra ID that report Windows build 10.0.19041.928 and have no hardware identifiers.
- Delete rogue devices manually after resetting the password of any affected account.
- Hunt sign-ins via Microsoft Authentication Broker showing AADSTS50199, then a non-interactive python-requests sign-in, by following the suspicious session ID.