What’s new. Huntress published research on Dec 3 on an active Microsoft 365 device-code phishing campaign. In November it saw 468 rogue device registrations across 326 identities in 305 organizations (per Huntress and BleepingComputer). The operator works weekdays. The goal looks like data theft: after getting in, the attacker signed into Entra ID and Office and often moved on to OneDrive, SharePoint and Exchange. Attribution: no named actor. Huntress notes the chain matches what Microsoft documented for Storm-2372 in February 2025, but says the overlap is not enough to tie them together.
Why a password reset doesn’t work. The lure (in one case, a fake Adobe-protected NDA) sends the victim to Microsoft’s real device-login page to enter a code the attacker generated. Approving it hands the attacker access and refresh tokens for the Microsoft Authentication Broker app. Those tokens are then used against the Device Registration Service to join a fake Windows device, which gets a Primary Refresh Token (PRT). A PRT gives SSO into every M365 app and can satisfy Conditional Access rules that just require a “registered device.” Microsoft only invalidates a PRT on password change when the PRT was obtained with the password, and this one wasn’t. So the device has to be deleted.
What to hunt for today.
- Entra audit logs: device names matching
^MH-[0-9A-F]{16}$, or registrations reporting OS build 10.0.19041.928 (the ROADtools default, Windows 10 2004, out of servicing since 2021) with no hardware identifiers. Huntress also flags 10.0.19045.2006, 10.0.19045.0 and 10.0.26100 on devices with no hardware IDs, plusDESKTOP-andGraphSpy-Devicenames. - Sign-in logs, including non-interactive: device-code authentications, then a switch to
python-requests,nodeorDsreg/10.0user agents. - IPs for scripted sign-ins: 181.214.147.42, 92.62.251.249, 37.252.11.196, 146.103.38.149, 193.109.193.166. Phishing sign-ins came from residential proxies (DataImpulse, Oxylabs, NodeMaven, IPRoyal, Shifter), and no single IP served more than two victims, so blocklists alone won’t catch it.
- Also check for new MFA methods and inbox rules on any account you flag.
Remediation order matters. Delete the rogue device in Entra ID, then revoke sessions, then reset credentials. If you reverse it, the attacker keeps SSO through the PRT.
Prevention. If nobody in your tenant uses device-code flow (most users don’t; it’s for TVs, CLIs and conference-room gear), block it with Conditional Access, as Microsoft recommends. Limit who can register or join devices, cap devices per user, and require MFA to register a device. Don’t treat “registered device” as a trust signal; require compliant or managed instead. One gap to note: Defender XDR caught it (“User session compromised by device code phishing”) and auto-contained 25 of 47 victims in the 36 orgs that had it connected. It only sees what you license and connect.
