A device-code phishing operation has registered hundreds of rogue Windows devices in Microsoft Entra ID tenants, giving the attackers persistent access to Microsoft 365 data that outlasts password resets, according to research published by managed detection and response firm Huntress on December 3, 2026. Huntress says it observed 468 registrations across 326 identities in 305 organisations throughout November, and that the campaign is still running.
No software vulnerability is involved, so there is no patch. The attack abuses legitimate Microsoft sign-in and device registration features, and Huntress believes the attackers used the open-source ROADtools toolkit to register the devices. Microsoft’s own guidance is to block the device code authentication flow with Conditional Access wherever it is not required.
What happened
Device-code authentication is designed for hardware such as smart TVs and printers that cannot easily display a browser: the user types a short code into Microsoft’s genuine sign-in page on another device. In this campaign, the attacker generates that code and persuades the victim to enter it. Once the victim completes the sign-in, the attacker receives access and refresh tokens for the account.
According to Huntress, the attacker then uses those tokens to join a fake Windows device to the victim’s Entra ID tenant and obtain a Primary Refresh Token (PRT). A PRT provides single sign-on to Microsoft cloud services and can satisfy Conditional Access policies that require a registered device. Huntress notes that Microsoft only invalidates a PRT on password change when the token was obtained with the password, which is not the case here.
Huntress found the activity after Microsoft Defender XDR flagged accounts for device-code phishing and suspicious device registration. The Entra audit logs for those accounts showed new devices reporting Windows build 10.0.19041.928, a Windows 10 version 2004 build that Microsoft stopped servicing in 2021, with no hardware identifiers. That build is the default in ROADtools. The researchers then hunted for the same pattern across every tenant they monitor.
The sign-ins arrived through the Microsoft Authentication Broker application from residential proxy services, mostly on US and UK broadband, with no proxy address used against more than two victims. Activity then moved to scripted requests using a python-requests user agent from rotating datacentre addresses that targeted the device registration service, followed by access to OneDrive, SharePoint and Exchange. Huntress says the apparent goal is data theft. The operator works mostly on weekdays: in the first two weeks of November alone, 276 devices were registered at 168 organisations on working days.
Who is affected
Any organisation using Microsoft 365 with Entra ID is a potential target if users can complete device-code sign-ins and register or join devices. Huntress did not name targeted sectors or countries and has not attributed the campaign to a known threat actor. Rogue devices in the main cluster are named MH- followed by 16 uppercase hexadecimal characters; 46 such names were seen, some reused in up to 24 unrelated organisations for as long as 10 days. Huntress also linked at least some devices following the ROADtools default naming pattern DESKTOP- to the same activity.
Severity and exploitation
The campaign is active. Huntress published five datacentre IP addresses used for scripted sign-ins, which together targeted 361 accounts in 337 organisations, with 1,186 failed and 197 successful sign-ins: 181.214.147.42, 92.62.251.249, 37.252.11.196, 146.103.38.149 and 193.109.193.166. Because the initial phishing sign-ins came from rotating residential proxies, the researchers warn that IP blocklists alone will not stop the attack. Among affected organisations with Defender connected to Huntress, Defender raised high-severity “User session compromised by device code phishing” incidents for about half of the victims.
BleepingComputer notes that device-code phishing has also been adopted by phishing-as-a-service kits such as Tycoon2FA, Greatness and Kali365, which lowers the bar for other criminals to run similar operations.
What defenders should do now
- Search Entra ID for devices named to match
^MH-[0-9A-F]{16}$, devices reporting build 10.0.19041.928 without hardware identifiers, and recently registered devices nobody recognises. - For any compromised account, delete the rogue device first, then revoke all sessions and reset credentials. If the device stays, the PRT survives the reset.
- Block the device code authentication flow with Entra Conditional Access for all users who do not need it.
- Restrict who can register or join devices, limit the number of devices per user and require MFA for device registration.
- Hunt sign-in logs for device-code sign-ins followed by programmatic user agents such as
python-requests, and for the five IP addresses published by Huntress. - Check compromised accounts for new MFA methods and inbox rules, and tell staff to enter device codes only for sign-ins they started themselves.
SCVM analysis
This campaign shows why identity incidents need a different playbook from classic credential theft. The victim never types a password into a fake page, so phishing-resistant MFA and password resets offer little protection once the code is entered, and the registered device becomes a durable foothold that Conditional Access may even trust. The scale, more than 300 organisations in a month from one largely weekday operator, suggests a repeatable, tool-driven process rather than hand-crafted intrusions. Most organisations have no business need for device-code sign-ins outside a handful of meeting-room or kiosk devices, so a narrowly scoped exception and a default block is a cheap, high-value control. Equally important is treating the device inventory in Entra ID as security-relevant data that is reviewed, not an administrative afterthought.
Sources
- Huntress: M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations
- BleepingComputer: Device-code phishing campaign plants rogue devices in 305 Entra tenants
About this article: produced by the SCVM Newsroom with AI assistance from the public sources linked above, enriched with NVD, FIRST EPSS and CISA KEV data, and checked by automated quality controls under our editorial policy. Spotted an error? Request a correction.

