A device-code phishing campaign has enabled attackers to register hundreds of rogue Windows devices in Microsoft Entra ID environments belonging to 305 organizations, according to cybersecurity company Huntress. The registrations can give attackers a way to keep accessing Microsoft 365 resources even after victims change their passwords.
Huntress said it observed 468 suspicious device registrations linked to 326 identities across 305 organizations during November 2026. The activity targeted Microsoft 365 environments and appeared designed to reach company information stored in services such as OneDrive, SharePoint and Exchange.
The campaign starts when a victim is tricked into entering an attacker-provided device sign-in code on Microsoft’s legitimate authentication page. Completing that process gives the attacker valid access and refresh tokens. The attacker can then use those tokens to register a device inside the victim’s Entra ID environment.
Huntress found that many of the rogue devices used names beginning with “MH-” followed by 16 uppercase hexadecimal characters. The registrations also reported a Windows build associated with the ROADtools security toolkit. Researchers said the same device names appeared across unrelated organizations, with some reused in multiple environments.
Once registered, a malicious device can obtain a Primary Refresh Token, which supports single sign-on to Microsoft 365 services. Huntress said this token can remain valid after a password reset because it was obtained through the phishing process rather than directly from the user’s password. As a result, changing the password alone may not remove the attacker’s access.
The researchers observed sign-ins to Microsoft Entra ID and Microsoft Office, followed in many cases by access to OneDrive, SharePoint or Exchange. Huntress also identified activity involving residential proxy services and scripted sign-ins, but said it was tracking other clusters of suspicious device registrations whose connection to the same operator was not confirmed.
Huntress advised affected organizations to identify and remove unauthorized devices from Entra ID, revoke the related user sessions and reset compromised credentials. Microsoft also recommends restricting device-code authentication through Conditional Access policies when organizations do not need the feature.
The campaign adds to a growing set of attacks that abuse Microsoft account authentication flows. Abijita previously reported on phishing invitations used to steal Microsoft and Google accounts and on Microsoft’s addition of CAPTCHA checks to Entra ID multi-factor authentication.
Huntress published its technical findings in a report on the Microsoft 365 device-code phishing campaign.




