Microsoft 365 phishers make themselves at home in hundreds of corporate networks
More than 300 organizations had some unwelcome additions to their Microsoft 365 environments in November: devices registered by phishers intent on sticking around.
Researchers at Huntress said on Thursday they'd spotted 468 instances of miscreants registering their own devices in victims' Microsoft Entra ID environments, giving themselves persistent access to corporate cloud services. The researchers traced the activity to 326 compromised user accounts across 305 organizations in November alone, and say the campaign is ongoing.
The attackers are exploiting Microsoft's device code authentication mechanism, which lets users sign in on devices that lack a suitable interface for entering credentials.
Victims are tricked into authorizing a login on Microsoft's legitimate authentication page, handing hackers session tokens without needing to steal passwords. One lure was a bogus non-disclosure agreement supposedly protected by Adobe, which victims were told they needed to authenticate with Microsoft to access.
Rather than simply hijack an account, the crooks appear to be using the publicly available ROADtools toolkit to register their own Windows devices in victims' Entra ID tenants. That means they can keep access even if the victim changes their password.
That's thanks to Microsoft's Primary Refresh Token (PRT), which facilitates single sign-on across applications. In the attacks observed by Huntress, the crooks used their newfound access to get into Microsoft Office and, in some cases, OneDrive, SharePoint, and Exchange.
"Microsoft invalidates a PRT on a password change only when the token was obtained with the password, and here it comes from a phished token instead," the researchers explained.
The attackers have left some fairly conspicuous clues for sysadmins. Their purported Windows machines report a build number associated with a version of Windows 10 that Microsoft stopped servicing in 2021. It's also the default build number used by ROADtools. Most rogue device names also began with MH- followed by 16 uppercase hexadecimal characters.
The crooks appear to keep office hours, with Huntress recording little activity over weekends. Most initial suspicious sign-ins came from US and UK home and business broadband connections, though that tells us little about the attackers' actual location.
The crooks are making liberal use of residential proxies too, but huntress didn't see any residential proxy IP used against more than two victims, limiting the usefulness of IP blocklists.
Huntress hasn't attributed the campaign to a known threat group, although the researchers noted similarities to a device code phishing operation documented by Microsoft in February 2025 and attributed to a crew it tracks as Storm-2372.
The Register asked Microsoft whether it's aware of the latest campaign and whether it plans to change its authentication mechanisms to prevent this type of abuse, but hasn't received a response.
The availability of the tools used in these attacks makes attribution difficult. Huntress is tracking two additional clusters of suspicious device registrations, though it's unclear whether the same miscreants are responsible.
The security firm is urging admins to scrutinize Entra audit logs for suspicious device registrations, review authentication methods and mailbox rules on compromised accounts, and restrict who can enroll new devices. Those paying for Microsoft's Conditional Access capabilities can block device code authentication altogether.
For those who've already fallen victim, add another item to the incident response checklist: alongside revoking sessions and resetting credentials, admins need to delete the offending device from Entra ID. (R)