Hackers in an ongoing device code phishing campaign registered more than 400 rogue Windows devices in Microsoft Entra ID environments across 305 organizations.
The operation started in November, and the attacker registered the devices to 326 Entra ID identities, allowing them to maintain access even after password resets.
Researchers at managed detection and response company Huntress are tracking the campaign and say that the threat actor's objective appears to be data theft from company resources, including OneDrive, SharePoint, and Exchange.
Huntress says that "throughout November 2026, we observed 468 registrations across 326 identities in 305 organizations."
During the workdays of the first two weeks of the month, the attacker registered 276 devices (Windows build 10.0.19041.928) at 168 organizations, using a recognizable naming pattern: “MH-” followed by 16 uppercase hex characters.
Registration of malicious devices
Source: Huntress
The attacks begin with victims being tricked into entering an attacker-generated device sign-in code on Microsoft's legitimate authentication page and completing the sign-in.
This allows the attacker to obtain valid access and refresh tokens, which are used to register a rogue device in the victim's Microsoft Entra ID environment and obtain a Primary Refresh Token (PRT).
In doing so, the threat actor enables persistent access to the victim's organization's resources through single sign-on.
Device code registration attack overview
Source: Huntress
This is a typical device code phishing attack chain, which has become a common attack method targeting Microsoft 365 accounts, with multiple phishing-as-a-service (PhaaS) operations adopting it (e.g., Tycoon2FA, Greatness, and Kali365).
In one recent campaign uncovered by Push Security, attackers used the Kali365 PhaaS and fake OpenAI and SpaceX event invitations to trick victims into authorizing access to their work accounts.
In the observed attacks, Huntress observed sign-ins to Microsoft Entra ID (formerly Azure Active Directory) and Microsoft Office, in many cases followed by access to OneDrive, SharePoint, or Exchange.
Huntress has found that all device registrations reported a Windows build that is the default in the ROADtools open-source security toolkit for Microsoft Entra ID.
The tool is used to inspect an organization’s Entra environment and test how Microsoft handles sign-ins, tokens, and device registration, but in these attacks, Huntress suspects it was abused to register rogue devices.
The researchers observed 46 device names across all attacks, with some used in up to 24 unrelated organizations and remaining in use for up to 10 days.
Huntress recommends that impacted organizations delete the rogue devices from Entra ID, revoke the user’s sessions, and reset their credentials.
If the rogue devices aren’t removed, the attacker’s Primary Refresh Token can survive a password reset, so device removal should be the first remediation step.
Users should enter device codes only when they started the sign-in process themselves or know that it was initiated by a trusted party.
Microsoft recommends blocking device-code authentication through Entra Conditional Access wherever it isn’t needed.
3,000 AI builds later, ask us anything
On December 15th, join Eoin Hinchy, our co-founder and CEO; Martin Moroney, our Head of AI Transformation; and Christina Troy, our Sr. Manager, IT for an open conversation about what worked, what didn't, and what we learned along the way.
Bring your questions and get candid insights!
Register and ask your question