Device code phishing registers rogue Entra devices in 305 orgs: how to find and delete them
Huntress counted 468 rogue device registrations in November 2026; a password reset does not remove the attacker's token, so admins must delete the devices.
· 7 min read
Written by AI from the sources linked below. How we use AI
On this page
Security firm Huntress reported on 3 December 2026 that a device code phishing campaign has registered attacker-controlled Windows devices inside hundreds of companies' Microsoft Entra ID tenants. Huntress counted 468 rogue device registrations, 326 compromised identities and 305 organizations in November 2026. The registrations matter because each rogue device gives the attacker a Primary Refresh Token (PRT) that keeps working after the victim changes their password. The only step that removes it is deleting the device.
Key points
- Huntress reports 468 rogue device registrations across 326 identities in 305 organizations in November 2026.
- The rogue devices are named
MH-followed by 16 uppercase hex characters and report Windows build 10.0.19041.928, the default in the open-source ROADtools toolkit. - "Password resets alone do not remove the threat actor's access," Huntress writes: the device itself must be deleted from Entra ID.
- The lure is a fake Adobe-protected non-disclosure agreement that walks the victim through Microsoft's real device code sign-in page.
- Microsoft's documentation recommends blocking device code flow with Conditional Access wherever it is not needed, starting in report-only mode.
What to do
Who is affected: any Microsoft 365 tenant where users can complete a device code sign-in and where ordinary users can register devices. Huntress says Entra ID P1 and above lets you block device code flow; tenants below P1 can turn on Security Defaults.
- Hunt for the devices. In the Entra audit log for device registrations, look for names matching
^MH-[0-9A-F]{16}$and for Windows builds 10.0.19041.928, 10.0.19045.2006, 10.0.19045.0 or 10.0.26100 with no hardware identifiers. Also look atDESKTOP-names with 8 random characters (the ROADtools default) or 6 characters (a second pattern Huntress describes). - If you find one: delete the device in Entra ID first, then revoke the user's sessions, then reset their credentials. Huntress says deletion is the only step that removes PRT-based access. Then review the user's registered devices, MFA methods and inbox rules.
- Check sign-in logs for a device code sign-in that moves from a normal browser user agent to a programmatic one such as
python-requests,node,axiosorundici, and for errorAADSTS50199on the Microsoft Authentication Broker app. Huntress lists five datacenter IP addresses in its report; compare them against your logs. - Block device code flow. Microsoft's steps: in the Entra admin center go to Entra ID, Conditional Access, Policies, New policy. Include all users, exclude break-glass accounts, target all resources, and under Conditions, Authentication flows, select Device code flow. Grant: Block access. Create it in Report-only, review the impact, then switch it On. Microsoft says to allow device code flow only in documented, secured cases such as legacy tooling that cannot be updated.
- Limit device registration. Huntress advises restricting who can register or join devices, capping devices per user and requiring MFA to register one.
What happened
Huntress describes an operation that starts with a phishing lure disguised as an Adobe-protected non-disclosure agreement. The victim is led into a device code flow through the Microsoft Authentication Broker app. They enter an attacker-generated code on Microsoft's genuine sign-in page, so the page itself looks legitimate.
According to Huntress, the first two interactive sign-ins show error AADSTS50199, and they come from residential or callback proxies in the US and UK. Providers named include DataImpulse, Oxylabs, NodeMaven, IPRoyal and Shifter, and no single IP served more than two victims.
The attacker then redeems the captured token almost immediately against the device registration service. The non-interactive logs show a new IP, located in Poland, and a python-requests user agent. A rogue device is registered, a PRT is issued, and the attacker signs in to Azure AD and Microsoft Office to reach OneDrive, SharePoint or Exchange. Huntress adds that a PRT can also satisfy Conditional Access policies that require a registered device.
The devices have a recognisable shape. Names follow MH- plus 16 hex characters, for example MH-51FB898341CEA47A. Every registration reported build 10.0.19041.928, which Huntress says is the hardcoded default in ROADtools and corresponds to Windows 10 version 2004, which left servicing in 2021. None carried hardware identifiers.
Huntress found 46 MH- names that appeared in more than one organization. Some stayed in use for over a week, while others hit several organizations within two hours.
Background
Device code flow was designed for devices that cannot show a browser, such as TVs or command-line tools: the user types a short code on another screen. Attackers turned that into a phishing tool because the victim signs in on a real Microsoft page and approves a code the attacker generated.
Microsoft documented a state-linked version in February 2025. It said a cluster it called Storm-2372 had run device code phishing since August 2024, and that in February 2025 the actor shifted to the Microsoft Authentication Broker client ID so it could register a device in Entra ID and obtain a PRT. A July 2026 update on that post says Microsoft later assessed Storm-2372 as an initial access sub-cluster of Midnight Blizzard.
Palo Alto Networks' Unit 42 wrote on 22 May 2026 that the ROADtools roadtx module can register new devices and acquire PRTs, giving "a durable means of persistence", and that the default device attributes (Windows, OS version 10.0.19041.928, a DESKTOP- name with random digits) help detection but are easy to change. Huntress says the November campaign's devices carry exactly those defaults.
Huntress has not attributed the operations to a named actor and notes that ROADtools and GraphSpy are public tools, so other operators could produce the same defaults.
The numbers
Huntress's table shows how some device names were reused across many unrelated organizations. The ten most widely reused names:
The scripted sign-ins came from datacenter IPs, one at a time, rotated every few days. Together the five IPs Huntress lists made 361 account sign-in attempts across 337 organizations, with 1,186 failed sign-ins and 197 successful ones. Huntress also reports that 38 successful sessions had an additional DESKTOP- device and that 71 had other suspicious sign-in activity.
Microsoft Defender saw part of it. Only 36 organizations with an MH- device had Defender connected to Huntress, holding 47 victims. Defender raised high-severity incidents on 25 of those victims, titled "User session compromised by device code phishing (attack disruption)", and attack disruption automatically contained the accounts. In one example, a device was registered at 02:39:15 UTC and the incident raised at 02:44:19 UTC. Huntress notes that Defender confirms a compromise, but identity logs are still needed to identify the specific device to delete.
What it means
For administrators, the practical lesson is that resetting a password is not containment here. A registered device with a PRT is its own credential, and it survives resets, so incident playbooks for Microsoft 365 account takeover need a "list and delete registered devices" step.
For defenders, the MH- pattern and the stale build number are easy detections today, but both are defaults. Huntress describes two related operations that use different names and builds (including 10.0.19045.2006 and 10.0.26100), so detections that only match one pattern will miss them. Unit 42 makes the same point about the ROADtools defaults.
For users, the advice is simple: enter a device code only when you started the sign-in yourself, or a trusted person did. A document that asks you to sign in with a code is the warning sign.
Both Huntress and Microsoft point the same way on prevention: block device code flow unless there is a documented need, require managed and compliant devices, and use phishing-resistant MFA. Unit 42 additionally recommends Entra token protection, which binds refresh tokens to a device.
What we don't know yet
- Who is behind it. Huntress has not named an actor, and it says it cannot confirm whether the hosting customer behind two of the IP blocks is the actor or a reseller.
- What data was actually taken. Huntress says the attacker reached OneDrive, SharePoint or Exchange, and the goal looks like data theft, but the report does not quantify losses.
- Whether the campaign continues. One of the five IPs was marked "ongoing" at publication, and Microsoft had not classified the Defender incidents at that time.
- How many victims lacked Defender visibility. Huntress's Defender figures cover only the 36 organizations connected to it.
What to watch next
Watch for Microsoft's classification of the Defender incidents, for further indicators from Huntress, and for changes to the default device names and builds as the operators adapt. If you run Entra ID, review your device registration settings and device code flow now rather than after an incident.
Sources
- Huntress: Device code phishing M365 registrations (primary source, 3 December 2026)
- BleepingComputer: Device-code phishing campaign plants rogue devices in 305 Entra tenants
- Microsoft Learn: Block authentication flows with Conditional Access policy
- Microsoft Security blog: Storm-2372 conducts device code phishing campaign
- Palo Alto Networks Unit 42: ROADtools cloud attacks
Written by
The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.
Read next
PxHlpa64.sys boot failure: Windows 11 KB5127936 and the fix
Microsoft confirms some Windows 11 PCs with an old disc-burning driver may not start with VBS on; here is how to check and the recovery workaround.
audiotale.net team7 min read
Microsoft: AI-assisted attackers breached an ISP's Linux servers in 13 minutes (CyberStrikeAI)
Microsoft traced an ISP intrusion to a CyberStrikeAI console and found seven more likely AI-driven attacks. What happened, how much was AI, and what to harden.
audiotale.net team6 min read
Entra ID adds CAPTCHA to SMS and voice MFA (MC1551151): allow arkoselabs.com
Microsoft is showing a risk-based Arkose Labs CAPTCHA before sending SMS or voice MFA; filtered networks can block it, and phone MFA is retired from 1 February 2027.
audiotale.net team9 min read