Actively exploited Security news
Device code phishing registered 468 rogue devices in Entra ID across 305 organisations – and a password reset won't lock the attacker out
On 3 December 2026 Huntress documented a campaign where device code phishing doesn't stop at a stolen token. The attacker registers their own 'computer' in the victim's Entra ID, obtains a Primary Refresh Token for it and keeps access to mail and files even after the victim changes their password. In November 2026 alone, Huntress counted 468 such devices across 326 accounts in 305 organisations.
Key points
- Huntress, 3 Dec 2026: device code phishing (lures included an 'Adobe-protected NDA') led to 468 rogue device registrations across 326 accounts in 305 organisations, all in November 2026.
- Using the stolen token, the attacker registers a device via Microsoft Authentication Broker and obtains a Primary Refresh Token. Access to Outlook, OneDrive and SharePoint then survives a password reset.
- Devices are named MH- plus 16 hex characters and report Windows build 10.0.19041.928, the hardcoded default of the open-source ROADtools toolkit. Some names recur in up to 24 unrelated organisations.
- Huntress's order of response: delete the device first, then revoke sessions and reset credentials. Prevention: block device code flow, require MFA for device registration and restrict who can register devices.
Huntress researchers Andrea Hatcher, Matt Poto and Andrew Schwartz published a write-up on 3 December 2026 of a campaign that takes device code phishing one step further. A one-off token isn't the goal. The attacker registers their own device in the victim's Entra ID tenant and gains access that the usual phishing response, a password reset, does not end.
From our SOC experience: after a Microsoft 365 phish, teams often reset the password and close the ticket. Here that isn't enough. While the rogue device stays in the tenant, the attacker still has a way in.
What happened
- In November 2026 Huntress saw 468 rogue device registrations across 326 accounts in 305 organisations, mostly on weekdays.
- Lures included a fake Adobe-protected NDA. Victims typed the code on Microsoft's real sign-in page and completed authentication, MFA included.
- Five datacentre IPs used for scripted sign-ins targeted 361 accounts in 337 organisations (1,186 failed and 197 successful sign-ins).
- Huntress also describes two smaller variants (a pair of DESKTOP- devices, and Device- and GraphSpy-Device names). According to Huntress the operators rely on public tooling, ROADtools and GraphSpy, rather than custom malware.
How the attack works
Microsoft described the same chain in February 2025 in its post on Storm-2372: the actor switched to the Microsoft Authentication Broker client because its refresh token can request a token from the device registration service and enrol an attacker-controlled device.
How to tell if you're affected
Registered devices (Entra ID audit log):
- names matching
^MH-[0-9A-F]{16}$, or unfamiliarDESKTOP-,Device-plus 8 hex characters, orGraphSpy-Device, - build
10.0.19041.928(Windows 10 2004, out of servicing since 2021),10.0.19045.2006,10.0.19045.0or10.0.26100with no hardware identifiers, - registration user agent
Dsreg/10.0 (Windows 10.0.19041.928).
Sign-in logs: error AADSTS50199 on the Microsoft Authentication Broker app at first sign-in, then non-interactive sign-ins from a different IP with user agents such as python-requests, python-httpx, node, axios or undici. Victims signed in via residential proxies, the attacker from datacentre servers.
Selected indicators from the write-up (defanged; see Huntress for the full list):
181.214.147[.]42 scripted sign-ins (BK Customers)
92.62.251[.]249 scripted sign-ins (FREAKHOSTING LTD)
37.252.11[.]196 scripted sign-ins (Artnet Sp. z o.o.)
146.103.38[.]149 scripted sign-ins (BK Customers)
193.109.193[.]166 scripted sign-ins (Datacamp Limited), still active per Huntress
MH-51FB898341CEA47A device name (24 organisations)
MH-AD72DAD766A59028 device name (18 organisations)
MH-4AE06D5094ABCAD7 device name (17 organisations)
MH-F80EA97CA5FB3E90 device name (14 organisations)
MH-8588A5E037F15197 device name (11 organisations)
Our IOC extractor pulls IPs and names out of exported logs in seconds.
What to do
- Find and delete rogue devices in Entra ID. Only then revoke the user's sessions and reset credentials. Huntress stresses that a password reset alone does not remove a device holding a Primary Refresh Token.
- Block device code flow with Conditional Access wherever nobody needs it, starting in report-only mode (Microsoft Learn).
- Restrict device registration: limit who can register or join devices and how many, and require MFA to register. Without Entra ID P1, at least turn on Security Defaults. With P1 or higher, require managed and compliant devices; with P2, add risk-based Conditional Access.
- Review what the account did: inbox rules and forwarding, new MFA methods, access to OneDrive, SharePoint and Exchange.
- Tell your users: only enter a device code when you started the sign-in yourself. The same technique powers the MadApe phishing kit.
FAQ
Why isn't a password reset enough?
The attacker holds more than an access token: a registered device with a Primary Refresh Token, which provides single sign-on for that device. According to Huntress a password reset does not remove it. As long as the device exists in Entra ID the attacker can come back, so delete the device first, then revoke sessions, then reset the password.
How do we check whether we're affected?
Review registered devices in Entra ID: names matching MH- plus 16 characters 0–9 and A–F, builds 10.0.19041.928, 10.0.19045.2006, 10.0.19045.0 or 10.0.26100 with no hardware identifiers, and unfamiliar DESKTOP-, Device- or GraphSpy-Device names. In sign-in logs, look for error AADSTS50199 on the Microsoft Authentication Broker app followed by sign-ins with python-requests or node user agents.
Is this a Microsoft 365 vulnerability?
No. The victim enters the code on Microsoft's genuine page and completes the sign-in. The attacker then uses standard Entra ID features. Microsoft described the same chain in February 2025 in its write-up on Storm-2372.
Sources
- Huntress – Device code phishing campaign registering rogue devices in Microsoft 365 (3 Dec 2026)
- Microsoft Security Blog – Storm-2372 conducts device code phishing campaign (13 Feb 2025, updated 14 Feb 2025)
- Microsoft Learn – Block authentication flows with Conditional Access policy
- BleepingComputer – Device-code phishing campaign plants rogue devices in 305 Entra tenants (3 Dec 2026)
Spotted a mistake? Let us know and we will correct it openly.