If you administer a Microsoft 365 tenant, today's job is something almost nobody looks at: the list of registered devices. There may be one in there that isn't yours.
What happened
Researchers at Huntress counted, in November alone, 468 cases of attackers registering their own devices inside other people's Microsoft Entra ID environments. The trail leads to 326 compromised user accounts across 305 organisations, and the campaign is still running. It was reported by The Register.
The mechanism being abused is the device code flow: the one that exists so you can sign in on gadgets without a decent keyboard — a TV, a terminal, an IoT box — where the device shows you a code and you type it on another screen. Here the device belongs to the attacker. The victim gets a lure — in the observed cases, a fake non-disclosure agreement supposedly protected by Adobe, which you had to "authenticate with Microsoft" to open — and ends up approving the code on Microsoft's genuine sign-in page. No password is stolen: a session token is handed over.
And here comes the ugly part. Instead of hijacking the account and riding it until it gets locked, the attackers use ROADtools, a publicly available toolkit, to register a Windows machine of their own in the victim's tenant. That gets them a Primary Refresh Token (PRT), the token behind single sign-on across applications. Microsoft invalidates a PRT on a password change only if that token was obtained with the password; when it comes from a phished token, the password reset doesn't touch it. Translated: the user changes their password, relaxes, and the attacker is still inside Office — and in some cases OneDrive, SharePoint and Exchange.
The indicators Huntress saw are almost comically obvious: the supposed Windows machines report a build number from a version of Windows 10 that Microsoft stopped servicing in 2021 — which happens to be the ROADtools default — and most names begin with "MH-" followed by 16 uppercase hexadecimal characters. The attackers keep office hours: barely any weekend activity. Initial suspicious sign-ins come from US and UK home and business broadband, with heavy use of residential proxies; no residential IP was seen against more than two victims, so IP blocklists are near useless. Huntress hasn't attributed the campaign to any known group, although it resembles a device code phishing operation Microsoft documented in February 2025 and pinned on Storm-2372. The Register asked Microsoft whether it plans to change the mechanism: no reply.
What changes for a Spanish SME, and what to do
What changes is that "we've already reset the sales rep's password" stops being the end of the incident. If someone in your company took the bait, the attacker may still be reading mail from a laptop that is listed, fully blessed, as an organisation device.
What I'd do this week, in order:
- Open the Entra ID audit log and filter for device registrations over the last three months. Look for names matching "MH-" plus hex, old Windows builds and, above all, any machine nobody recognises. In a thirty-person company you can review the whole list in ten minutes.
- Restrict who can register devices. By default, any user can. In most SMEs I see there isn't a single reason for that to be open: leave it to the administrator or a specific group.
- Block the device code flow with Conditional Access, if you're licensed for it. It's an authentication flows policy and, unless you use keyboard-less devices against Microsoft 365, you'll never notice it's gone. Microsoft's documentation is at authentication flows in Conditional Access.
- Add a step to your incident playbook: revoke sessions, reset credentials and delete the device from the tenant. If you don't delete the device, you haven't closed anything.
- Review authentication methods and mailbox rules on any affected account. Auto-forwarding to an external address is still the classic that sits there for months.
What doesn't change
This isn't a Microsoft 365 flaw that exposes you while you do nothing: an employee has to approve a code. Nor is it an indiscriminate mass attack: 305 organisations worldwide in a month is a serious campaign, not an epidemic.
And an important counterweight: MFA doesn't save you here, but not because it's broken. The user genuinely authenticates, with their second factor, on the real Microsoft page. What fails is that they're authorising someone else. So the answer isn't "more MFA", it's closing the flow you don't use.
The published indicators — the "MH-", the 2021 build — are defaults of a public tool. The moment someone changes two lines, they vanish. Building your detection on those patterns is putting an expiry date on your own control.
Our take
The underlying problem isn't the campaign, it's the PRT rule. That a token is or isn't invalidated on a password change depending on how it was obtained is exactly the kind of nuance no administrator has in their head at two in the morning during an incident. It's correct from the spec's point of view and it's a trap from the operational one. And Microsoft not answering when asked whether it will change anything tells me the device code flow will stay on by default for a good while yet.
My position: device code flow should ship off and be switched on by hand by the handful who need it. Same story as Exchange's legacy authentication protocols, which dragged on for years because "some printer used them". This will age just as badly, and in two years we'll read the announcement that Microsoft is disabling it by default and we'll all say it was about time.
Meanwhile, the mindset shift that really matters: a new device registered in the tenant is a security event, not paperwork. It should raise an alert, just like a sign-in from another country. It's what we find every time we take over an inherited Microsoft 365: the audit log has been running for years and nobody has ever opened it. You don't need to buy anything to start looking.
Any questions, tell me and we'll go through it.
Best, Vicente.
