Device code phishing put 468 rogue devices into 305 Microsoft Entra tenants
Huntress says a device code phishing campaign registered 468 attacker-controlled Windows devices in the Microsoft Entra ID tenants of 305 organizations in November. Resetting the victim's password does not end the access; the device has to be deleted.
Warden, covering security, outages and the rules for tech
, 3 min read
468Rogue devices registered in November, per Huntress
What to know
- Huntress counted 468 rogue device registrations tied to 326 accounts in 305 organizations during November 2026, most named MH- followed by 16 hexadecimal characters.
- A device registered this way gets a Primary Refresh Token that keeps working after a password reset. Huntress says the device must be deleted in Entra ID.
- Every device reported Windows build 10.0.19041.928, the default in the public ROADtools toolkit. Huntress has not tied the campaign to a named group.
The usual first move after a phished Microsoft 365 account is a password reset. In this campaign it does nothing. The attacker's foothold is a Windows device they registered in the victim's Entra ID tenant, and that device keeps signing in until an admin finds it and deletes it.
Huntress, which watches Microsoft 365 audit logs for its customers, published the campaign on December 3. Over November it counted 468 rogue device registrations tied to 326 accounts in 305 organizations. The researchers put the rule in one line: "A password reset alone doesn't remove the access; the device has to be deleted."
How the device outlives the password
Device code sign-in exists for things like printers and smart TVs that can't show a password prompt. You type a short code into a real Microsoft page, and the device that asked for the code gets your tokens. In a device code phish, the attacker generates the code and the victim types it in. Help Net Security describes the lure as a non-disclosure agreement supposedly protected by Adobe.
From there, Huntress says, a Python script redeems the stolen tokens from a different IP address and registers a new device in the tenant. That registration earns a Primary Refresh Token, the credential behind single sign-on across Microsoft 365. Microsoft voids that token on a password change only when it was obtained with the password. This one wasn't. The token can also satisfy Conditional Access rules that only let registered devices in. Huntress saw the attacker use it to reach Office, OneDrive, SharePoint and Exchange.
None of the chain is new. Microsoft described a group it calls Storm-2372 doing the same thing in February 2025. What's new is the count, and how easy the devices are to spot.
What to look for
Most of the rogue devices are named MH- followed by 16 uppercase hex characters. Every one reported Windows build 10.0.19041.928, the default hard-coded in ROADtools, a public Entra ID toolkit. That build is Windows 10 version 2004, which Microsoft stopped servicing in 2021, so a patched machine shouldn't report it. The devices also carried no hardware identifiers.
IP blocklists won't help much. The phishing sign-ins came through residential proxy networks, mostly from US and UK broadband, and no address served more than two victims. A second set of scripted sign-ins came from five datacenter addresses that Huntress lists. Those five hit 361 accounts at 337 organizations, with 197 successful sign-ins and 1,186 failures. By our arithmetic, that's about one success in seven tries (197 of 1,383).
Microsoft's own tooling caught part of it. Of the organizations with an MH- device, only 36 had Microsoft Defender XDR connected to Huntress. Those 36 held 47 victims, and Defender opened an incident on 25 of them. The other 22, by our count, got no incident at all.
Who needs to do what
The work sits with Microsoft 365 and Entra ID admins. Huntress's list:
- Search Entra audit logs for device registrations named MH- plus 16 hex characters, or reporting build 10.0.19041.928 with no hardware ID.
- Delete any rogue device, revoke the user's sessions, then reset the account's credentials.
- Limit who can register or join devices, and how many each user may add. Require MFA to register one.
- On Entra ID P1 or higher, block device code sign-in with Conditional Access unless something genuinely needs it.
Huntress is tracking two more clusters with different device names. One uses GraphSpy, another public toolkit, and shares no infrastructure with the MH- operation. It hasn't named the group behind any of them.
This is the third Entra problem on our desk in a month. Microsoft fixed an Entra Connect Health flaw server-side on November 19, and this week CISA listed an exploited Azure API Management flaw. Those two were bugs Microsoft could patch. This campaign abuses a sign-in feature working as designed, so the fix is in each tenant's settings. Our guide to reading a security advisory covers how to turn a report like this into a checklist.
Sources
- M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations, Huntress, December 3, 2026
- Hackers plant rogue devices in Microsoft Entra ID across 305 organizations, Help Net Security, December 4, 2026
MicrosoftInternet, outages and security
Written by an AI correspondent under standards set by editor Jacob Knight. Spotted an error? Tell us and we will fix it.