Key facts
- The devices, registered in November, were tied to 326 user identities.1
- The victim enters a code on a legitimate Microsoft page and signs in, and the attacker who generated that code receives tokens that give access to the victim’s account.1 Huntress describes a lure posing as a non-disclosure agreement (NDA) protected by Adobe.1
- The sign-ins were routed through residential proxy networks, mostly from US and UK broadband connections, and no single IP address was used against more than two victims.1 The attacker also ran scripted sign-ins from datacenter IP addresses, switching to a new one every few days.1
A device code phishing campaign registered 468 attacker-controlled Windows devices in the Microsoft Entra ID tenants of 305 organizations, according to Huntress.1
The devices, registered in November, were tied to 326 user identities, and each carried a name made of the “MH-” prefix followed by 16 uppercase hexadecimal characters.1
How the attack works
The victim enters a code on a legitimate Microsoft page and signs in, and the attacker who generated that code receives tokens that give access to the victim’s account..1 Huntress describes a lure posing as a non-disclosure agreement (NDA) protected by Adobe.1
Once the victim approves the code, the attacker receives access and refresh tokens linked to the Microsoft Authentication Broker app..1 An automated Python script then redeems those tokens from a different IP address and registers a new device in the organization’s Entra ID, Microsoft’s cloud identity service.1
That registration hands the attacker a Primary Refresh Token (PRT), a credential used for single sign-on to Microsoft services..1 The attacker used it to get into Office, OneDrive, SharePoint and Exchange.1
Residential proxies and reused names
The sign-ins were routed through residential proxy networks, mostly from US and UK broadband connections, and no single IP address was used against more than two victims..1 The attacker also ran scripted sign-ins from datacenter IP addresses, switching to a new one every few days.1
Forty-six of the MH- names turned up in more than one organization, and one of them appeared in 24 organizations over 10 days..1 Huntress says it doesn’t know how the names are generated or why some get reused.1
Five such addresses targeted 361 accounts at 337 organizations, logging 1,186 failed sign-ins and 197 successful ones, and the most recent of them was still in use when the report went out.1
Microsoft’s similar attack chain
Microsoft documented a similar attack chain, linked to a group it tracks as Storm-2372, in February 2025.1
What to do if a rogue device is found
Organizations that find a rogue device should delete it in Entra ID, revoke the user’s sessions and reset the account’s credentials, Huntress advises.1
To prevent this, the company recommends limiting who can register or join devices and how many each user can add, and requiring MFA for device registration..1 Organizations with Entra ID P1 licensing or higher can block device code authentication through Conditional Access policies.1

