# Device code phishing planted 468 rogue devices in 305 Entra ID tenants

Huntress says a campaign running through November registered rogue Windows devices on 326 Microsoft Entra ID identities, gaining sign-on access that survives a password reset.

Source: https://junglewise.ai/news/device-code-phishing-planted-468-rogue-devices-in-305-entra-id-tenants  
Byline: Junglewise News Desk, https://junglewise.ai/news  
Topic: Threat campaigns  
Published: 4 December 2026  
Reading time: 5 min

![A wall-mounted glass cabinet of labeled keys on hooks beside a 1972 calendar and an old typewriter](https://images.unsplash.com/photo-1720371145794-e6eb18fab392?ixid=M3w0NDU4NjF8MHwxfHNlYXJjaHwxfHxrZXlzJTIwb24lMjBob29rcyUyMGtleSUyMGNhYmluZXR8ZW58MXwwfHx8MTc5NjM5MDA1OHww&ixlib=rb-4.1.0&w=1600&q=80&fm=jpg&fit=crop)

Picture: Photo by [Diogo Cardoso](https://unsplash.com/@diogocardoso28?utm_source=junglewise&utm_medium=referral) on [Unsplash](https://unsplash.com/?utm_source=junglewise&utm_medium=referral)

A phishing campaign running through November registered 468 rogue Windows devices across 305 organisations' Microsoft Entra ID tenants, [BleepingComputer reported](https://bleepingcomputer.com/news/security/device-code-phishing-campaign-plants-rogue-devices-in-305-entra-tenants), affecting 326 separate user identities. The managed detection and response company Huntress, which is tracking the activity, said the attacker's goal appears to be stealing data from company resources including OneDrive, SharePoint and Exchange.

What makes this more than another credential theft story is what the attacker walks away with. By tricking a user into approving a device sign-in code, the attacker obtains tokens that let them enrol a device of their own in the tenant and collect a Primary Refresh Token (PRT), the credential Entra ID issues to a registered device so it can sign the user in to everything without asking again. That token keeps working after the victim changes their password, and it can satisfy Conditional Access policies that demand a registered device, [according to Help Net Security](https://helpnetsecurity.com/2026/12/04/microsoft-entra-id-device-code-phishing). The rogue device, in other words, becomes a trusted one.

Device code authentication exists for hardware that cannot comfortably show a password prompt, such as smart TVs and printers: the device displays a short code, the user types it into a Microsoft page on a phone or laptop, and the device is signed in. The attack simply borrows the mechanism. Victims see Microsoft's genuine authentication page, enter a code the attacker generated, and complete a legitimate sign-in on the attacker's behalf. Huntress [described one lure](https://huntress.com/blog/device-code-phishing-m365-registrations) posing as an Adobe-protected non-disclosure agreement.

Huntress has not tied the campaign to a known threat actor. Microsoft documented a similar attack chain in February 2025 and attributed it to a group it tracks as Storm-2372, but Huntress notes that one of the overlapping device naming patterns appears outside this campaign too, so the overlap does not definitively tie the activity to that group. One behavioural detail the data does support: registrations cluster on weekdays, with very few at weekends.

## What to do now

The order of remediation matters here more than usual, because the obvious first move is the wrong one.

1. **Delete rogue devices from Entra ID first.** Huntress recommends deleting the attacker's devices, then revoking user sessions, then resetting credentials. A PRT is invalidated by Microsoft when a password changes, but only if the token came from the password itself, not from a phished one. "A password reset alone doesn't remove the access; the device has to be deleted," Huntress said.
2. **Audit device registrations for the giveaways.** Look for devices named `MH-` followed by 16 uppercase hex characters, devices reporting Windows build `10.0.19041.928` (Windows 10 version 2004, out of servicing since 2021), and devices registered with no hardware identifiers at all.
3. **Block device code authentication where it is not needed.** Microsoft recommends doing this through Entra Conditional Access. Organisations with Entra ID P1 licensing or higher can apply such a policy. Note that Conditional Access [cannot require a compliant or hybrid-joined device for the device code flow](https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-conditional-access-grant), because the authenticating device cannot report its state, so Microsoft advises requiring multi-factor authentication for that flow instead.
4. **Tighten who can register devices.** Huntress suggests limiting which users may register or join devices, capping the number of devices per user, and requiring multi-factor authentication for device registration.
5. **Tell staff the rule for codes.** A device code should only ever be entered when the user started that sign-in themselves, or knows a trusted party did.

Do not rely on IP blocklists for this one. No single address was used against more than two victims.

## Technical details

Huntress said in its report: "throughout November 2026, we observed 468 registrations across 326 identities in 305 organizations." During the first two working weeks of November, 276 devices were registered at 168 organisations, all reporting Windows build `10.0.19041.928` and using the `MH-` prefix with 16 uppercase hex characters, for example `MH-51FB898341CEA47A`.

Device names were reused across unrelated victims. Forty-six `MH-` names appeared in more than one organisation; `MH-51FB898341CEA47A` turned up in 24 organisations over 10 days and `MH-AD72DAD766A59028` in 18 organisations over three days. Huntress said it does not know how the names are generated or why some are reused.

That Windows build is the hardcoded default in ROADtools, an open-source Entra ID toolkit built for both offensive and defensive work, one component of which can request tokens and register devices. "The threat actor appears to be leveraging the ROADtools public toolkit to register devices," Huntress said. ROADtools' own random names use letters and digits rather than hex, so the `MH-` pattern looks like a deliberate modification. ROADtools also registers devices with the user agent `Dsreg/10.0 (Windows 10.0.19041.928)`. Unit 42 has documented ROADtools registrations with the same build and a `python-requests` client.

Sign-ins arrived through the Microsoft Authentication Broker application, mostly from US and UK residential and business broadband via commercial proxy networks including DataImpulse, Oxylabs, NodeMaven, IPRoyal and Shifter. Victims typically hit the CMSI interrupt error `AADSTS50199` during interactive sign-in. After token redemption, non-interactive logs showed the session jump to an IP in Poland with a `python-requests` user agent, followed by device registration and then access to Azure Active Directory, Microsoft Office, OneDrive, SharePoint or Exchange.

The attacker also ran scripted sign-ins identifying as `python-requests/2.32.5` from rotating datacentre addresses: `181.214.147.42`, `92.62.251.249`, `37.252.11.196`, `146.103.38.149` and `193.109.193.166`, which was still active at publication. Together those five targeted 361 accounts at 337 organisations, logging 1,186 failed and 197 successful sign-ins.

Huntress grouped the activity into three related operations, one of which used devices named after the victim's username and email domain followed by a `DESKTOP-` device registered within 28 minutes, often via headless Chrome on Linux, and a third using `Device-` plus eight hex characters or `GraphSpy-Device` on build `10.0.26100`, resembling the open-source token-capturing tool GraphSpy.

Detection coverage was uneven. Of the organisations with an `MH-` device, only 36 had Microsoft Defender connected to Huntress; those held 47 victims, and Defender raised an incident on 25. Every Defender incident carried the title "User session compromised by device code phishing (attack disruption)" at high severity, and Microsoft had not classified any of them as of the report. Push Security separately uncovered a related campaign using the Kali365 phishing-as-a-service platform with fake OpenAI and SpaceX event invitations.
