# Device-code phishing campaign planted rogue devices in 305 Microsoft 365 organizations, Huntress says

Huntress counted 468 rogue device registrations in 305 organizations in November, after victims were tricked into approving device sign-in codes. A password reset does not end the access.

By [AI Security Times](https://aisecuritytimes.com/authors/ai-security-times) · Published 2026-12-04T05:42:00Z
Canonical: https://aisecuritytimes.com/cybersecurity/huntress-device-code-phishing-rogue-entra-devices

A phishing campaign is registering attackers' own Windows devices in the Microsoft 365 environments of hundreds of organizations, the security company Huntress said on Dec 3. "In November 2026, we observed 468 rogue device registrations tied to this campaign, across 326 identities in 305 organizations," it wrote.

Huntress calls the campaign "active" and says the attacker "appears to work weekdays". The registered devices keep working after a password reset, so a reset alone does not lock the attacker out.

## How the attack works

It starts with device code phishing. The victim is tricked into approving a sign-in code, which hands the attacker tokens for the victim's account. In this campaign, the sign-ins went through the Microsoft Authentication Broker application and came mostly from residential and business broadband addresses in the US and UK, many of them in commercial residential proxy networks. "No IP address served more than two victims, so IP blocklists won't stop this activity," Huntress writes.

The attacker then uses the stolen token to register a device in the victim's Entra ID, Microsoft's identity service. Huntress believes the tool is ROADtools, a public toolkit for Entra ID. A registered device receives a Primary Refresh Token, which gives single sign-on to the user's Microsoft 365 apps. That token survives a password change here because it came from a phished token, not from the password. It can also satisfy Conditional Access policies that require a registered device.

From there, the attacker usually signed in to Azure Active Directory and Microsoft Office and often moved on to OneDrive, SharePoint or Exchange.

## Easy to spot, if you look

The rogue devices share clear marks:

- Most names are "MH-" followed by 16 uppercase hexadecimal characters, such as MH-51FB898341CEA47A, which Huntress found in 24 organizations. 46 names were registered in more than one organization.
- Every device reported Windows build 10.0.19041.928, the default hard-coded in ROADtools. That build is Windows 10 version 2004, which Microsoft stopped servicing in 2021: "A legitimate, patched Windows machine would not report this build."
- None of the devices carried hardware identifiers.

The attacker also ran scripted sign-ins with the user agent `python-requests/2.32.5` from five data-centre addresses, switching every few days. Those five addresses tried to sign in to 361 accounts in 337 organizations, with 1,186 failures and 197 successes.

## What Microsoft Defender saw

Only 36 of the affected organizations had Microsoft Defender connected to Huntress. They held 47 victims, and Defender raised its own incident for 25 of them, titled "User session compromised by device code phishing (attack disruption)". In those cases Microsoft contained the account automatically. "As of this writing, Microsoft has not classified any of the incidents," Huntress writes.

Huntress has not tied the campaign to a named group. It notes that Microsoft described the same chain, device code phishing for the Authentication Broker followed by a device registration, for the actor it calls Storm-2372 in February 2025. Because ROADtools is public, other attackers can produce the same defaults.

## What to do

Huntress recommends searching Entra ID audit logs for device registrations that match the name pattern or report the build below without hardware identifiers, and sign-in logs for the listed addresses. If a rogue device turns up, delete it in Entra ID, revoke the user's sessions and reset the credentials. Also check the account's registered MFA methods and inbox rules.

To prevent it, Huntress suggests limiting who can register or join devices and how many, requiring MFA to register a device, and, with Entra ID P1 or higher, using Conditional Access to block device code authentication. Organizations below P1 should turn on Microsoft's security defaults. Our step-by-step guide covers each of these: [How to block device code phishing in Microsoft Entra ID and remove rogue devices](/guides/block-device-code-phishing-entra-id).

| Indicator | Type |
|---|---|
| `^MH-[0-9A-F]{16}$` | Device name pattern |
| `10.0.19041.928` | Reported Windows build (ROADtools default) |
| `181.214.147.42` | Scripted sign-in IP (BK Customers) |
| `92.62.251.249` | Scripted sign-in IP (FREAKHOSTING LTD) |
| `37.252.11.196` | Scripted sign-in IP (Artnet Sp. z o.o.) |
| `146.103.38.149` | Scripted sign-in IP (BK Customers) |
| `193.109.193.166` | Scripted sign-in IP (Datacamp Limited) |
| `python-requests/2.32.5` | User agent of scripted sign-ins |

## Sources

1. [Huntress: M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations (Dec 3, 2026)](https://www.huntress.com/blog/device-code-phishing-m365-registrations) (Research)

Topics: [Phishing](https://aisecuritytimes.com/topics/phishing), [Identity](https://aisecuritytimes.com/topics/identity), [Cloud](https://aisecuritytimes.com/topics/cloud)
