News

Device-code phishing plants rogue devices in 305 Entra tenants

The Back Room Tech Staff · Edited by Aseem Kishore
5 min read

The Back Room Tech is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

Throughout November 2026, a device code phishing campaign against Microsoft Entra ID (formerly Azure Active Directory) registered at least 468 rogue Windows devices. Security firm Huntress observed those devices in tenants belonging to 305 organizations and published its findings on December 3, and BleepingComputer reported it.

The short version for admins is that a password reset alone may not evict this attacker. You have to delete the rogue device first.

What Happened

The Huntress blog post is the primary technical source here. As of December 4, 2026, we found no campaign-specific Microsoft advisory. The most relevant Microsoft guidance is its general Conditional Access documentation.

Device code sign-in exists for hardware that can’t show a normal login page. The device shows a short code. You enter it at Microsoft’s real sign-in page from another machine. The device code flow docs describe it.

In this campaign, the attacker made the code and talked the victim into entering it. The page is really Microsoft’s. There’s no spoofed URL or fake login screen for the user to notice.

Microsoft Learn page "Microsoft identity platform and the OAuth 2.0 device authorization grant flow" showing the page title and the device code flow sequence diagram

The attack chain, per Huntress via BleepingComputer, works like this:

  • The victim enters the attacker’s code and completes sign-in.
  • The attacker captures valid tokens.
  • Those tokens register an attacker-controlled Windows device in the victim’s tenant.
  • That device gets a Primary Refresh Token (PRT), which grants ongoing single sign-on to Microsoft 365.

The PRT is what makes the attack stick. Because it’s bound to the registered device rather than the password, Huntress warns that a password reset alone may leave it usable while the device stays registered. Reporting confirms the attacker targeted or accessed OneDrive, SharePoint, and Exchange using those tokens.

Huntress counted 468 registrations tied to 326 user identities. The first two working weeks alone brought 276 registrations across 168 organizations.

Indicators you can search for

The rogue devices share two fingerprints:

  • Device name: MH- followed by 16 uppercase hex characters, such as MH-51FB898341CEA47A (regex: ^MH-[0-9A-F]{16}$).
  • OS version: Windows build 10.0.19041.928, which is Windows 10 version 2004. That release is long obsolete.

Huntress links that build number to ROADtools, an open-source Entra ID security-testing toolkit whose device-registration feature reports 10.0.19041.928 by default. That default match aligns with suspected ROADtools use, though the build string itself can also be supplied by other tools.

Because these indicators are campaign-specific and easy to change in a future wave, a clean search does not prove a tenant is safe. Treat the MH- naming pattern and Windows build string as an initial check alongside a broader review of device registration and sign-in logs.

How It Stacks Up

The Entra devices overview explains why device objects carry this much trust. The table below summarizes how common responses compare, based on Huntress’s remediation guidance. Exact token behavior depends on your tenant’s policies and revocation settings.

ResponseWhat it addressesWhat it leaves behind
Password reset onlyThe stolen credentialThe rogue device and its PRT, so access can continue
Revoke sessions, then resetActive sessions and the credentialThe registered device object, which may still be able to obtain new tokens
Delete device, revoke sessions, reset (Huntress order)Rogue device, PRT, active sessions, and credentialAny other persistence or unauthorized access requiring tenant-specific investigation
Block device code flow via Conditional AccessFuture device-code sign-in attempts onlyExisting rogue devices, tokens, and sessions, which still require separate remediation

The admin cost lands in two places. Cleanup is per-user work in the Entra admin center. Prevention depends on Conditional Access, which is tied to your Entra license tier. Confirm your tier includes it before you plan around it.

Microsoft Learn page "What is Conditional Access?" showing the page title and the conceptual diagram of signals, decisions, and enforcement

The Reaction

Independent public reaction from defenders and IT admins is still forming following Huntress’s disclosure and BleepingComputer’s report. For now, the primary operational guidance comes directly from Huntress’s write-up and Microsoft’s existing Entra ID documentation.

Huntress stresses that a password reset alone leaves rogue devices and their PRTs intact, making device deletion and session revocation essential first steps. With no campaign-specific Microsoft advisory found as of December 4, defenders are relying on its general guidance for Conditional Access authentication flows.

That documentation describes Conditional Access policies that can restrict device code flow, which some organizations still need for printers, meeting-room hardware, and similar devices. In affected tenants, the campaign abused a legitimate sign-in flow that was available for use, whether through default configuration or operational need.

Our Take

Verdict: Adopt the hunt and cleanup now, and pilot the Conditional Access block.

Searching your device inventory for the MH- pattern and build 10.0.19041.928 is a quick, low-cost first check in most tenants, though a clean result does not rule out compromise. If you find a match, follow Huntress’s recommended sequence: delete the device, revoke the user’s sessions, then reset the credential.

Reversing that order leaves the PRT working. Pair the cleanup with a tenant-specific investigation to confirm no other persistence or unauthorized access remains.

Blocking device code flow through Conditional Access authentication-flow policies prevents future device-code sign-ins, not existing compromises. Existing rogue devices, tokens, and sessions still require separate remediation.

The policy can also break legitimate workflows like conference room systems, some CLI tools, and shared devices. Scope it to users who don’t need the flow, run it in report-only mode first if your setup allows, and keep an exclusion list for real exceptions.

Then teach staff one rule. Only enter a device code when you started that sign-in yourself.

Wrapping Up

Check your Entra device list today, and clean up any matches in the right order. Then schedule a Conditional Access review this month.

The MH- fingerprint will probably change in the next wave. Wherever device code flow remains available without Conditional Access restrictions, that sign-in path stays open to abuse.