Device code phishing registers rogue Entra ID devices, Huntress says
- Vendor
- Microsoft
Attackers are tricking Microsoft 365 users into approving device code sign-ins, then registering their own Windows devices in the victims’ Entra ID tenants, Huntress says. In November it counted 468 such devices across 326 accounts in 305 organizations, most named MH- plus 16 hexadecimal characters. A registered device gets a Primary Refresh Token, which keeps working after a password reset, so the device itself has to be deleted.
The victim approves a sign-in code from a phishing lure, which hands the attacker tokens for the Microsoft Authentication Broker app. The attacker then uses them with the device registration service, from a new IP address and a python-requests user agent, and registers a device. Huntress says the devices report the Windows build that ROADtools, a public Entra ID toolkit, uses by default, and carry no hardware identifiers. With the device’s token, the attacker signed in to Office right away and reached services such as OneDrive, SharePoint and Exchange.
The phishing sign-ins came mostly from residential and business broadband addresses in the US and UK, through commercial proxy networks. No IP address served more than two victims, so Huntress says blocklists won’t stop them. Scripted sign-ins came from five datacenter addresses, which together tried 361 accounts in 337 organizations, and lately from one at a time, switched every few days. Huntress found 46 device names registered in more than one organization, one of them in 24.
Of the victims, 47 were in the 36 organizations that had connected Microsoft Defender XDR to Huntress. Defender raised a high-severity device code phishing incident for 25 of them and contained those accounts automatically, Huntress says. It adds that the Entra ID logs are what show which device to delete.
Huntress hasn’t tied the activity to a named group. Microsoft described the same chain in February 2025, from a group it tracks as Storm-2372, but Huntress says the tools are public, so the overlap doesn’t tie the two. It also tracks two other clusters of rogue devices with their own naming patterns, which may or may not be the same attacker. It hasn’t said what the attackers did with the mail and files they reached.
- Vendor
- Microsoft
What to do
8 steps
Indicators
IPs copy defanged. Use Copy raw for queries.
| Type | Value | Note |
|---|---|---|
| IP address | Datacenter address for scripted sign-ins, used for 16 days | |
| IP address | Datacenter address for scripted sign-ins, used for 8 days | |
| IP address | Datacenter address for scripted sign-ins, used for 4 days | |
| IP address | Datacenter address for scripted sign-ins, used for 5 days | |
| IP address | Datacenter address for scripted sign-ins, still in use when Huntress published | |
| User agent | Scripted sign-ins, a common library, so low fidelity on its own | |
| User agent | ROADtools default for device registration, per Huntress |
- IP addressDatacenter address for scripted sign-ins, used for 16 days
- IP addressDatacenter address for scripted sign-ins, used for 8 days
- IP addressDatacenter address for scripted sign-ins, used for 4 days
- IP addressDatacenter address for scripted sign-ins, used for 5 days
- IP addressDatacenter address for scripted sign-ins, still in use when Huntress published
- User agentScripted sign-ins, a common library, so low fidelity on its own
- User agentROADtools default for device registration, per Huntress
Sources
- Huntress researchPrimary source huntress.com