Huntress says a device code phishing campaign registered 468 rogue devices on 326 identities across 305 organizations in November, and that resetting a password does not remove the access those devices hold.

In a December 3 post, Huntress says victims approved a sign-in code on a phishing page, handing the actor tokens. The actor then used ROADtools, a public Entra ID toolkit, to register its own Windows devices in the tenant. Most device names start with MH- followed by 16 uppercase hex characters, and every one reported Windows build 10.0.19041.928, the ROADtools default, which left Microsoft servicing in 2021.

A registered device receives a Primary Refresh Token, which gives single sign-on to Microsoft 365 apps. Huntress says Microsoft invalidates that token on a password change only when the token was obtained with the password, and here it came from a phished token. The access therefore survives a reset, and Huntress says the device has to be deleted. The actor then often reached OneDrive, SharePoint or Exchange.

Why it matters

Only 36 affected organizations had Microsoft Defender connected to Huntress, and Defender raised an incident for 25 of the 47 victims in them. Huntress says the identity logs enumerated the rest. Huntress has not tied the activity to a named actor and notes that ROADtools and GraphSpy are public tools others can use.

Huntress advises deleting the rogue device, revoking sessions and resetting credentials, then requiring MFA to register devices and, with Entra ID P1 or higher, blocking device code authentication in Conditional Access. We covered the same sign-in flow in Group-IB’s report on the MadApe phishing kit and the lasting access it gives in Huntress’s token replay findings.

In our reading, the useful hunt for most teams is a query on Entra audit logs for device registrations that match the naming pattern or the old build and carry no hardware identifiers, because the logs show which device to delete.

Source: Huntress, “M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations”