Security

Device-code phishing registers 400 rogue Windows devices in Entra tenants

Huntress observed 468 registrations across 326 identities in 305 organizations since November, with attackers using Primary Refresh Tokens for persistent access.

Illustration: Microsoft Entra ID sign-in page
Illustration: Five Nines

Attackers have added over 400 rogue Windows devices to Microsoft Entra ID environments in 305 organizations through device-code phishing since November, according to BleepingComputer.

Huntress, a managed detection and response vendor, is monitoring the campaign. In November, the company saw 468 device registrations tied to 326 identities across 305 organizations. Huntress believes the attacker aims to steal data from company resources like OneDrive, SharePoint, and Exchange. In many instances, sign-ins to Microsoft Entra ID and Office preceded access to OneDrive, SharePoint, or Exchange.

In the first two workweeks of the month, 276 devices running Windows build 10.0.19041.928 were registered at 168 organizations. The device names followed a clear pattern: “MH-” followed by 16 uppercase hexadecimal characters.

Victims are lured into entering an attacker-supplied device sign-in code on Microsoft's real authentication page and finishing the sign-in. The attacker obtains valid access and refresh tokens, registers a rogue device in the victim’s Entra ID environment, and obtains a Primary Refresh Token. That token gives persistent access to company resources through single sign-on and can survive password resets if the rogue device is not removed.

Huntress found that every device registration reported the default Windows build from the open-source ROADtools toolkit for Entra ID. The toolkit helps administrators examine Entra environments and test Microsoft's sign-in, token, and device registration behavior. The researchers suspect attackers misused it to register the rogue devices.

The attackers used 46 distinct device names, some in as many as 24 unrelated organizations, and kept them active for up to 10 days.

Device-code phishing has become a common method for targeting Microsoft 365 accounts, and phishing-as-a-service operations such as Tycoon2FA, Greatness, and Kali365 have adopted it. Push Security recently detailed a Kali365 phishing campaign that lured victims with fake OpenAI and SpaceX event invitations into granting access to their work accounts.

Huntress advises affected organizations to remove the rogue devices from Entra ID, revoke user sessions, and reset passwords. Removing the device should come first, because the Primary Refresh Token can survive a password reset if the rogue device stays in place. Microsoft suggests disabling device-code authentication via Entra Conditional Access when it is not required.

Sources: BleepingComputer

Noor Haddad

Noor Haddad covers attacks, breach disclosures and exploited vulnerabilities for Five Nines. Noor writes from CISA and vendor advisories, SEC disclosures and published reporting.

Corrections. Report an error to corrections@thefivenines.com. We list substantive corrections on the corrections page.