Device-Code Phishers Plant 468 Rogue Devices in 305 Entra Tenants
Huntress tracked device-code phishing that registered 468 rogue devices to 326 Microsoft 365 identities in November. Look for MH- device names on build 10.0.19041.928 and delete them before resetting passwords.
One device-code phishing operation registered 468 rogue Windows devices to 326 Microsoft 365 identities at 305 organizations in November, Huntress says. Victims typed an attacker’s code into Microsoft’s real sign-in page; the attacker then joined a fake device to Entra ID, which keeps working after a password reset. Most of the devices share a giveaway name, “MH-” plus 16 hex characters, which makes this one very huntable. BleepingComputer has more.
For defenders
The chain: the lure walks the victim through Microsoft’s device-code flow for the Microsoft Authentication Broker app (interactive sign-ins show error AADSTS50199), usually from a residential or callback proxy. The attacker redeems the tokens from a new IP and country with a python-requests user agent, registers a device and gets a Primary Refresh Token (PRT), then uses it to reach OneDrive, SharePoint and Exchange. Because the PRT came from a phished token, not the password, a password reset doesn’t kill it. Deleting the device does.
Fingerprints (per Huntress): device names matching ^MH-[0-9A-F]{16}$, all Entra-joined, all reporting Windows build 10.0.19041.928 (the ROADtools default, a Windows 10 build out of support since 2021) and none carrying hardware identifiers. The same names turned up in unrelated tenants; one was used in 24. Huntress ties some DESKTOP- devices to the same operator and describes two other groups using similar tooling, including GraphSpy. Residential proxy IPs never served more than two victims, so blocklists won’t help there; the scripted sign-ins came from five datacenter IPs rotated every few days.
193.109.193[.]166181.214.147[.]42
92.62.251[.]249
37.252.11[.]196
146.103.38[.]149Attribution: none. Huntress notes the chain matches what Microsoft documented for Storm-2372 in 2025 but says the public tooling means that’s no link. Defender XDR raised “User session compromised by device code phishing” on 25 of the 47 victims in tenants Huntress could see it in.
ATT&CK (per Huntress): T1528 (Steal Application Access Token), T1098.005 (Account Manipulation: Device Registration), T1078.004 (Valid Accounts: Cloud Accounts), T1550.001 (Use Alternate Authentication Material: Application Access Token), T1090.002 (Proxy: External Proxy). Device-code phishing keeps coming back; see our coverage of SkyW4lker.
What it means for you
A device code is a short code you type into a Microsoft page to sign in a TV, printer or app. Scammers send you one and ask you to “verify” a document. The page is genuinely Microsoft’s, which is why it’s convincing, but typing the code signs the scammer in as you. If your work account uses Microsoft 365, the rule is simple: only enter a code if you started the sign-in yourself on a device in front of you.
Do this now
- Admins: search Entra audit logs for device names starting
MH-or reporting build 10.0.19041.928 with no hardware IDs. Delete any you find first, then revoke sessions and reset credentials. - Block device-code authentication with Conditional Access wherever you don’t need it, and require MFA to register or join devices.
- Limit who can register devices and how many each user can add.
- Everyone: never enter a sign-in code someone else sent you.
Source article: M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations
Publisher: Huntress
Published: Dec. 3, 2026
URL: https://www.huntress.com/blog/device-code-phishing-m365-registrations
Executive Summary
Huntress is tracking an active device-code phishing campaign against Microsoft 365 that produced 468 rogue Entra ID device registrations across 326 identities in 305 organizations during November 2026; it has not been tied to a named threat actor (Huntress notes the chain matches Microsoft’s 2025 reporting on Storm-2372 but says public tooling makes that overlap inconclusive), and Huntress groups the activity into three operations, with the “MH-” operation (A) the largest. Victims are lured, in one case with a fake Adobe-protected NDA, into completing Microsoft’s device-code flow for the Microsoft Authentication Broker application, typically from a residential or callback proxy in the US or UK, which hands the operator access and refresh tokens. The operator immediately redeems them from a different IP and country with a python-requests user agent against the Device Registration Service, joins a device named “MH-” plus 16 uppercase hex characters that reports Windows build 10.0.19041.928 (the ROADtools default) and carries no hardware identifiers, and uses the resulting Primary Refresh Token for single sign-on to Office, OneDrive, SharePoint and Exchange. Scripted sign-ins came from five rotating datacenter IPs that together touched 361 accounts in 337 organizations. The objective appears to be data theft, and the impact is persistence that survives password resets until the device is deleted. Hunt leads, false positive expectations and indicators are detailed below; the source published indicators and hunting guidance but no YARA or Sigma rules.
ATT&CK chain: Resource Development → Initial Access → Credential Access → Persistence → Lateral Movement → Collection
Hunt Lead Grid
| Hunt Lead Level | Hunt Lead Name | ATT&CK | Risk of False Positives |
|---|---|---|---|
| 1 (Junior) | Rogue MH- Device Registrations in Entra Audit Logs | T1098.005 (Account Manipulation: Device Registration) | Low. No legitimate patched Windows device reports build 10.0.19041.928, and real hardware carries identifiers; the MH- pattern is attacker-chosen. Lab use of ROADtools by your own red team is the main exception and should be in engagement records. |
| 1 (Junior) | Sign-ins From Campaign Datacenter IPs | T1078.004 (Valid Accounts: Cloud Accounts) | Low. The five IPs are hosting addresses Huntress tied to scripted sign-ins; staff rarely sign in from them. Addresses get reassigned over time, so treat older hits as stronger than ones well after the campaign. |
| 2 (Pro) | Programmatic Token Redemption Against Device Registration | T1550.001 (Use Alternate Authentication Material: Application Access Token) | Medium. Automation, scripts and some management tools use python-requests or node user agents; anchoring on the Device Registration Service as the resource and on a preceding device-code sign-in narrows it sharply. |
| 3 (Elite) | Device-Code Sign-in to Rogue Device to PRT Session Sequence | T1528 (Steal Application Access Token), T1098.005 (Account Manipulation: Device Registration) | Medium. Users do legitimately use device-code flows for conference room and shared devices; the sequence anchors on the country and IP change between victim and redemption, a programmatic user agent and a device registration within minutes. |
Rogue MH- Device Registrations in Entra Audit Logs
Every rogue device in Operation A was Entra-joined, named “MH-” followed by 16 uppercase hex characters (for example MH-51FB898341CEA47A, seen in 24 organizations over 10 days), reported Windows build 10.0.19041.928 and carried no hardware identifiers. That build is hardcoded in ROADtools and corresponds to Windows 10 version 2004, which left servicing in 2021, so a patched machine would not report it. Huntress also saw ROADtools-default DESKTOP- plus eight characters, DESKTOP- plus six after a username-named device (Operation B, builds 10.0.19041.928 and 10.0.19045.2006), and Device- plus eight hex or GraphSpy-Device with build 10.0.26100 (Operation C). Search Entra audit logs for “Add device” and “Register device” events and the device inventory for names matching ^MH-[0-9A-F]{16}$, GraphSpy-Device, or any of the builds 10.0.19041.928, 10.0.19045.2006, 10.0.19045.0 or 10.0.26100 with empty hardware identifiers.
Sweep back to at least October 1, 2026, since the first datacenter IP lease began on October 7, and keep the query running, because Huntress describes the campaign as active. Scope across every tenant you manage; device names repeat across unrelated organizations, so a match in one tenant is a reason to check others. Do not rely on a password reset or session revocation as the fix: the device and its PRT must be deleted first, then sessions revoked and credentials reset, as Huntress advises. Blocking the device name alone is pointless because the operator changes names. Any match should be treated as a confirmed compromise of the owning identity and escalated, with a review of OneDrive, SharePoint and Exchange access and of inbox rules and MFA methods added since the registration.
Hunt Lead Level: 1 (Junior Analyst)
ATT&CK: Persistence → T1098.005 (Account Manipulation: Device Registration) (mapping per source article)
Sources: “M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations”, Huntress, Dec. 3, 2026, https://www.huntress.com/blog/device-code-phishing-m365-registrations (source article); “Device-code phishing campaign plants rogue devices in 305 Entra tenants”, BleepingComputer, Dec. 3, 2026, https://www.bleepingcomputer.com/news/security/device-code-phishing-campaign-plants-rogue-devices-in-305-entra-tenants/ (additional source, same campaign)
Sign-ins From Campaign Datacenter IPs
Alongside the proxied device-code sign-ins, Operation A ran scripted sign-ins with python-requests/2.32.5 from one datacenter IP at a time, rotating every few days: 181.214.147[.]42 (BK Customers, 16 days), 92.62.251[.]249 (FREAKHOSTING LTD, 8 days), 37.252.11[.]196 (Artnet Sp. z o.o., 4 days), 146.103.38[.]149 (BK Customers, 5 days) and 193.109.193[.]166 (Datacamp Limited, ongoing at publication). Together they tried 361 accounts in 337 organizations, with 1,186 failed and 197 successful sign-ins. Search interactive and non-interactive Entra sign-in logs for these addresses and pull the account, result code, application, resource and user agent for every hit.
Sweep from October 1, 2026 to the present. A successful sign-in from any of these IPs is a compromise; a failed one means the account’s tokens or credentials were targeted, so check that account for device registrations and recent device-code authentications as well. Blocking these five addresses is reasonable but will not stop the campaign, because the operator rotates hosting and the phishing sign-ins come from residential proxies that Huntress says never served more than two victims; do not try to block residential proxy ranges wholesale. Escalate successful hits and run the device-registration lead on the same identity.
Hunt Lead Level: 1 (Junior Analyst)
ATT&CK: Initial Access → T1078.004 (Valid Accounts: Cloud Accounts); Resource Development → T1583 (Acquire Infrastructure) (mapping per source article)
Sources: “M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations”, Huntress, Dec. 3, 2026, https://www.huntress.com/blog/device-code-phishing-m365-registrations (source article)
Programmatic Token Redemption Against Device Registration
Right after the victim completes the device-code flow, the operator redeems the token from a new IP and location (Poland in the intrusion Huntress walked through) with an automated user agent, targeting the Device Registration Service. Huntress lists the user agents seen on these steps across the three operations, including python-requests/<version>, python-httpx/<version>, node, node-fetch, undici, axios/<version>, ROADtools’ own Dsreg/10.0 (Windows <version>), headless Chrome on Linux, and outdated Edge and WebView strings. The detection is a non-interactive sign-in whose resource is the Device Registration Service, or whose application is the Microsoft Authentication Broker, carrying one of these programmatic user agents, especially when the same user had a device-code authentication in the preceding hour.
Use Entra non-interactive sign-in logs, which Huntress says show the pivot from a normal to a programmatic user agent, and the authentication protocol field to identify device-code flows. Allowlist known automation by service principal and by the managed IP ranges it runs from, not by user agent string, since the attacker controls that string. Scope first to users who are not administrators or developers, where scripted clients are rare. A hit followed by a device registration is a confirmed compromise; a hit without one still warrants revoking that session and confirming with the user. Blocking device-code flow in Conditional Access for users who don’t need it removes most of this attack surface and is the stronger control.
Hunt Lead Level: 2 (Pro)
ATT&CK: Lateral Movement → T1550.001 (Use Alternate Authentication Material: Application Access Token) (mapping per source article)
Sources: “M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations”, Huntress, Dec. 3, 2026, https://www.huntress.com/blog/device-code-phishing-m365-registrations (source article)
Device-Code Sign-in to Rogue Device to PRT Session Sequence
Huntress recommends following the suspicious session ID through the logs. The full sequence it documented is: two interactive sign-ins to the Microsoft Authentication Broker returning AADSTS50199 (the CMSI interrupt confirming a broker sign-in) from a residential or callback proxy in a plausible location; within minutes, non-interactive sign-ins from a new IP and country with a programmatic user agent; an Entra device registration with the fingerprints above; then sign-ins using the new device’s Primary Refresh Token to Azure Active Directory and Office, followed by OneDrive, SharePoint or Exchange access. In Operation B the same account received a username-named device and then a DESKTOP- plus six device, usually within a minute and always within 28 minutes. Defender XDR raised its incident about five minutes after registration in one case, so the window is short.
Correlate Entra interactive and non-interactive sign-in logs, Entra audit logs and Microsoft 365 unified audit logs by user and session ID over a 60-minute window, and alert on the sequence of device-code broker sign-in, location or IP change with a programmatic client, and device registration. Baseline which users legitimately use device-code flows (meeting room panels, shared devices, some CLI tools) and exclude them by named account rather than by application. Two device registrations on one account within 30 minutes is a strong standalone signal worth adding. The wrong control is relying solely on Defender’s automatic disruption, which only fires where the tenant has Defender licensed and connected; Huntress found it on 25 of 47 victims it could compare. Any full-sequence hit is a confirmed account takeover: delete the device, revoke sessions, reset credentials, review data accessed and inbox rules. The detection generalizes to any device-code phishing kit that ends in device registration.
Hunt Lead Level: 3 (Elite)
ATT&CK: Credential Access → T1528 (Steal Application Access Token); Persistence → T1098.005 (Account Manipulation: Device Registration); Command and Control → T1090.002 (Proxy: External Proxy) (mapping per source article)
Sources: “M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations”, Huntress, Dec. 3, 2026, https://www.huntress.com/blog/device-code-phishing-m365-registrations (source article)
Indicators
Datacenter IPs used for scripted sign-ins (Operation A, in order of first use)
181.214.147[.]42 # BK Customers, 16 days in use
92.62.251[.]249 # FREAKHOSTING LTD, 8 days
37.252.11[.]196 # Artnet Sp. z o.o., 4 days
146.103.38[.]149 # BK Customers, 5 days
193.109.193[.]166 # Datacamp Limited, ongoing as of Dec. 3, 2026
Device name patterns and names seen in more than one organization
^MH-[0-9A-F]{16}$ # Operation A naming pattern
MH-51FB898341CEA47A # 24 organizations
MH-AD72DAD766A59028 # 18 organizations
MH-4AE06D5094ABCAD7 # 17 organizations
MH-F80EA97CA5FB3E90 # 14 organizations
MH-8588A5E037F15197 # 11 organizations
MH-0355F2C9C8243D00 # 6 organizations
MH-0A25978CCAE9BF67 # 6 organizations
MH-88FC3793D7573345 # 6 organizations
MH-711B0E99A370D9AE # 6 organizations
MH-565CE7A7663C3537 # 6 organizations
MH-5A7AEAE27625C08C # 5 organizations
GraphSpy-Device # Operation C (GraphSpy default name)
Windows build 10.0.19041.928 / 10.0.19045.2006 / 10.0.19045.0 / 10.0.26100 with no hardware identifiers
Huntress lists further MH- names seen in two or three organizations in its IOC table.
Hash Appendix
No file hashes were published by the source article; the activity is identity-based and uses public tooling (ROADtools, GraphSpy), which should not be hash-blocked.
References Appendix
- “M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations”, Huntress, Dec. 3, 2026, https://www.huntress.com/blog/device-code-phishing-m365-registrations
- “Device-code phishing campaign plants rogue devices in 305 Entra tenants”, BleepingComputer, Dec. 3, 2026, https://www.bleepingcomputer.com/news/security/device-code-phishing-campaign-plants-rogue-devices-in-305-entra-tenants/