A Password Reset Won’t Evict Them: The Five Stages of the Campaign That Planted 468 Rogue Devices in Microsoft Entra ID
A device code phishing campaign registered 468 attacker-controlled devices in the Microsoft Entra ID tenants of 305 organizations in November, and the access survives a password change. Here is each stage of the attack and the defensive layer that stops it.
Here Is How Layered Defenses Shut the Door a Device Code Opens
When an employee’s Microsoft 365 account is phished, the usual reflex is to reset the password. In a campaign tracked by Huntress, that reflex left the attacker inside. During November, the operators registered 468 devices they controlled in the Microsoft Entra ID tenants of 305 organizations, tied to 326 user accounts. Help Net Security reported the findings, and Huntress published its full analysis, including how to hunt for the devices. Here is the attack in five stages, each paired with the layer that breaks it.
Stage 1: A document that needs a code
The lure posed as a non-disclosure agreement protected by Adobe. Instead of a fake login page, it walked the victim through device code sign-in, a real Microsoft feature built for devices like smart TVs and printers that can’t easily take a password. The victim enters a code on a genuine Microsoft page and signs in, and the person who generated that code receives the tokens.
The layer: block device code sign-in for everyone who doesn’t need it. Organizations with Entra ID P1 or higher can do this with a Conditional Access policy. Pair it with user training on one simple rule: never enter a sign-in code you didn’t request yourself.
Stage 2: Tokens redeemed from somewhere else
Once the victim approved the code, the attacker received access and refresh tokens linked to the Microsoft Authentication Broker app. An automated Python script then redeemed them from a different IP address. Sign-ins were routed through residential proxy networks, mostly US and UK home broadband, and no single address was used against more than two victims.
The layer: sign-in risk detection and alerting. Because the addresses changed constantly, blocking IPs alone won’t work. Alerts on unusual sign-in patterns, a device code sign-in followed by access from a new location, are far more useful.
Stage 3: A new device joins the tenant
With the tokens in hand, the script registered a new Windows device in the organization’s Entra ID. Each carried a name made of “MH-” plus 16 uppercase hexadecimal characters. Every one reported Windows build 10.0.19041.928, the default hardcoded in ROADtools, an open-source Entra ID toolkit that Huntress believes the attacker used. That build belongs to a Windows 10 release that left support in 2021, and the devices had no hardware identifiers.
The layer: tighten device registration. Huntress recommends limiting who can register or join devices, capping how many each user can add and requiring multifactor authentication to register a device. Then audit the device list on a schedule for names, builds and missing hardware details that don’t match your fleet.
Stage 4: A token that outlives the password
Registering the device gave the attacker a Primary Refresh Token, the credential Windows uses for single sign-on to Microsoft services. Obtained this way, it keeps working after the victim’s password changes, and it can satisfy Conditional Access rules that only admit registered devices. The attacker used it to get into Office, OneDrive, SharePoint and Exchange. “A password reset alone doesn’t remove the access; the device has to be deleted,” the researchers wrote.
The layer: an incident response playbook in the right order. If you find a rogue device, delete it in Entra ID first, then revoke the user’s sessions, then reset credentials. Also review the user’s other registered devices, sign-in methods and mailbox rules.
Stage 5: Moving quietly, sometimes unseen
The operators also ran scripted sign-ins from datacenter addresses, switching every few days. Five of those addresses targeted 361 accounts at 337 organizations, with 1,186 failed and 197 successful sign-ins. Monitoring coverage was thin: of the affected organizations, only 36 had Microsoft Defender XDR connected to Huntress. Those organizations held 47 of the victims, and Huntress says Defender raised an incident on 25 of them. Huntress hasn’t linked the activity to a known group. Microsoft documented a similar chain tied to a group it tracks as Storm-2372 in February 2025.
The layer: a monitoring layer that actually sees your identity logs. Tools such as Microsoft Defender XDR or Microsoft Sentinel are examples, but the principle is vendor-neutral. Only what is licensed, connected and watched produces an alert, so confirm sign-in and audit logs are flowing somewhere a person reviews them.
What this means for your company
This campaign beat the one control most small businesses rely on after a phish, the password reset, and it did so using a legitimate sign-in feature that few companies ever need. The fix is not one product; it is several modest settings working together. Turn off device code sign-in unless you have a documented reason to keep it. Require MFA to register devices and limit who can do it. Review your device list monthly. Make sure identity logs feed into monitoring someone watches. And rewrite your compromised-account checklist so it starts with removing unknown devices and revoking sessions, not just changing the password.
If you’d like to know whether a rogue device could already be sitting in your Microsoft 365 tenant, and which of these layers you have in place, we can check with you. Reach out to Layer 7 Data Solutions to discuss how we’ve helped companies similar to yours.
