Red Team

Device code phishing plants rogue Entra devices in 305 organisations

Huntress tracked 468 attacker-registered Windows devices in 305 Entra ID tenants, giving tokens that survive password resets. What UK firms should do.

Illustration of a network with an unrecognised device joining a corporate Microsoft 365 tenant, headlined Rogue devices outlive the password reset

A device code phishing operation spent November quietly enrolling its own Windows machines into victims’ Microsoft Entra ID tenants, reaching 305 organisations. Because each rogue device earns a long-lived sign-in token, changing the victim’s password does not remove the intruder.

What happened

On 3 December 2026 the managed detection firm Huntress described a campaign it had been tracking across the Microsoft 365 tenants it monitors. Over November the operators registered 468 attacker-controlled Windows devices against 326 user identities in 305 separate organisations. Registrations clustered on weekdays, suggesting an organised team keeping office hours.

The lure was mundane but effective: messages dressed up with Microsoft and Adobe branding, presenting an “Adobe-protected” non-disclosure agreement from a named sender. Opening it led the target into Microsoft’s genuine device code sign-in flow; nothing about the login page was fake.

Huntress has not attributed the activity to a named group. It notes, however, that the chain is the one Microsoft documented in February 2025 for Storm-2372, a cluster Microsoft has since assessed, in a July 2026 update to that research, to be an initial access sub-cluster of Midnight Blizzard, which Microsoft links to Russian state interests. Huntress stresses the overlap is not conclusive, as the tooling is public.

The technical picture

Device code authentication exists for TVs, printers and other kit without a keyboard: the device displays a short code and the user approves it on another screen. Phishing abuses that trust by having the victim approve a code the attacker generated. The victim completes a real Microsoft sign-in, MFA included, and the tokens land with the attacker.

What makes this wave nasty is the next move. The operators request the code for the Microsoft Authentication Broker application, whose tokens can be exchanged for access to the Device Registration Service. That lets them enrol a machine of their own into the victim’s Entra ID tenant. A registered device receives a Primary Refresh Token (PRT), the credential Windows uses for single sign-on across Microsoft 365. According to Huntress, a PRT obtained this way is not invalidated when the user’s password changes, because it was never derived from the password in the first place.

Huntress grouped the activity into three operations. The main one, Operation A, names its devices “MH-” followed by 16 hexadecimal characters and reports Windows build 10.0.19041.928, which is the default baked into ROADtools, a public Entra ID research toolkit. That build is Windows 10 version 2004, out of servicing since 2021, so no patched corporate laptop should ever present it. The same device names turned up in unrelated tenants: 46 names appeared in more than one organisation, and one was reused in 24.

The infrastructure was split in two. Victim-facing sign-ins came through residential and callback proxies, mostly on UK and US broadband, with no single exit address used against more than two victims, which defeats simple reputation and threshold rules. Behind that sat a scripted backend identifying itself as python-requests, latterly running from one data centre address at a time and rotating every few days. Five such addresses touched 361 accounts in 337 organisations; 197 of those sign-in attempts succeeded and 1,186 failed. After registration, the attackers used the fresh PRT to move into Office, OneDrive, SharePoint and Exchange.

Operation B enrols a first machine labelled with the victim’s own username and domain, then a second “DESKTOP-” machine within half an hour. Operation C uses GraphSpy defaults and is only loosely linked to the rest.

Flow diagram showing five stages of the device code phishing campaign, from a fake NDA lure to rogue device enrolment and access to Microsoft 365 data

Why it matters for UK organisations

Huntress does not publish a victim breakdown by country, so the UK share of the 305 organisations is unknown. But the choice of UK broadband exit points is telling. Microsoft’s original Storm-2372 research observed the actor picking proxies that are regionally appropriate for its targets, precisely so that a sign-in from a British user appears to come from Britain. With many victim-facing sign-ins routed through UK connections, it is likely, though unconfirmed, that UK tenants were among those hit.

The bigger issue is the incident response reflex. In most UK organisations the standard playbook for a phished Microsoft 365 account is still “reset the password, re-register MFA, close the ticket”. Against this tradecraft that leaves the attacker’s device, and its token, sitting in the tenant. The NDA theme also suits UK professional services, where staff open confidentiality agreements daily.

Finally, the visibility gap is real. Only 36 of the affected organisations had Microsoft Defender XDR connected to Huntress, and Defender raised incidents for 25 of the 47 victims in those tenants. Many smaller UK firms have no equivalent telemetry at all.

Expert view

Device code phishing is not new; we have been using it on authorised engagements for several years because it sidesteps most MFA deployments without needing a lookalike login page. What has changed is the industrialisation. This is a crew running public research tooling at scale, rotating infrastructure on a schedule and tweaking default device names to look less obvious, while still leaving the tell-tale ancient Windows build in place.

In my experience, device registration is one of the least scrutinised settings in an Entra ID tenant. When we test, we routinely find that any user can join or register devices, there is no per-user limit worth the name, and registration does not demand fresh MFA. Those defaults turn one approved code into durable access. The persistence angle is what should worry incident responders most: if your containment step does not include reviewing and deleting devices tied to the compromised identity, you have not contained anything.

I would also caution against reading too much into the Storm-2372 comparison. The technique is documented, the tools are open source, and a criminal access broker and a state service can now look identical in the logs. Defend against the technique, not the attribution.

What to do now

  1. Block device code flow with Conditional Access for everyone except a named exception group for genuine kiosk or meeting room devices (Cyber Essentials: secure configuration).
  2. Lock down device registration: limit which users may join or register machines, set a low per-user cap and demand MFA at enrolment (Cyber Essentials: user access control).
  3. Prefer compliant or managed device requirements over “registered device” alone in Conditional Access, so an attacker-enrolled machine does not tick the box.
  4. Update your phishing playbook: for any compromised Microsoft 365 account, review and delete unrecognised devices, revoke sessions, then reset credentials and check MFA methods and inbox rules.
  5. Run a quick hunt for “MH-” device names and for registrations claiming the ROADtools Windows build without hardware IDs; Huntress lists the full indicators.
  6. Brief staff that a genuine Microsoft page asking them to enter a code they did not request is a red flag, whatever document it claims to unlock.
  7. Tenants without Entra ID P1 should at least enable Security Defaults.

Bottom line

This campaign shows how far a modest, well-documented trick can go when it is paired with device registration: a single approved code becomes a persistent, password-proof foothold in Microsoft 365. Most of the defences are configuration changes that cost nothing. The most important is cultural: a password reset is no longer proof that the attacker has gone.

Sources