Device-code phishing campaign plants rogue devices in 305 Entra tenants
Huntress observed 468 rogue Windows device registrations across 305 Microsoft Entra ID tenants in a November device-code phishing campaign targeting M365 data.
By Dillip Chowdary • Dec 03, 2026 • Source: BleepingComputer

At a glance
- Campaign window
- November 2026
- Organizations hit
- 305 Entra ID tenants
- Rogue registrations
- 468 across 326 identities
- Host prefix
- MH- plus 16 hex characters
- Reported build
- Windows 10.0.19041.928 (ROADtools)
- Max persistence
- Up to 10 days per device
In this post
Security researchers at Huntress have uncovered an ongoing device-code phishing campaign that planted more than 400 rogue Windows devices inside Microsoft Entra ID environments across 305 organizations, as detailed in BleepingComputer's report. The operation began in November 2026 and compromised 326 Entra ID identities, giving attackers persistent access that survives standard password resets.
This analysis breaks down how the campaign abuses Microsoft's device-code authentication flow and Primary Refresh Tokens, which artifacts defenders can hunt for in Entra logs, and why remediation must start with device deletion. It is intended for identity administrators, incident responders, and security operations teams protecting Microsoft 365 tenants.
01Scale of the November device registrations
Throughout November 2026, Huntress recorded 468 malicious device registrations tied to 326 user identities across 305 victim organizations. During the workdays of the first two weeks of the month alone, the threat actor registered 276 rogue endpoints across 168 organizations.
Huntress analysts tracked a consistent naming convention across those enrollments, with devices labeled using an "MH-" prefix followed by 16 uppercase hexadecimal characters. All observed enrollments also reported Windows build 10.0.19041.928, a signature detail that tied disparate incidents together.
Across the full campaign, the researchers cataloged 46 distinct device names that were reused across victims. Several of those hostnames appeared in as many as 24 unrelated organizations and stayed active inside compromised environments for up to 10 days.
02Device-code lures and Primary Refresh Tokens
The intrusion chain begins when an attacker generates a legitimate device sign-in code and persuades a targeted employee to enter that code on Microsoft's real authentication portal. Once the victim completes the login prompt in their browser, the attacker receives valid access and refresh tokens for that account.
With those initial tokens in hand, the threat actor registers a rogue Windows device directly inside the victim organization's Microsoft Entra ID tenant. That registration yields a Primary Refresh Token, granting persistent single sign-on access to corporate resources without requiring the user's password again.
Huntress observed attackers using these sessions to sign into Microsoft Entra ID and Microsoft Office services. In many incidents, those logins were followed quickly by access to OneDrive, SharePoint, and Exchange mailboxes, pointing to corporate data theft as the primary goal.
03Shared PhaaS tactics and ROADtools abuse
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
Device-code phishing has expanded rapidly across Microsoft 365 environments as phishing-as-a-service platforms adopt the technique. Operations such as Tycoon2FA, Greatness, and Kali365 have all integrated device-code flows to bypass traditional credential and MFA defenses.
In a separate campaign documented by Push Security, threat actors used the Kali365 toolkit alongside fake OpenAI and SpaceX event invitations to trick targets into authorizing account access. Those social engineering lures succeed precisely because the victim interacts with Microsoft's genuine sign-in domain rather than a spoofed login page.
In the 305-tenant operation, Huntress noted that Windows build 10.0.19041.928 is the default value emitted by ROADtools, an open-source Entra ID security assessment utility. While security teams use ROADtools to inspect token handling and device registration behavior, Huntress suspects the attacker abused it to automate rogue device enrollment.
04Why password resets fail alone
Standard incident response playbooks often prioritize forcing a password reset as soon as suspicious sign-ins appear. Under a device-code registration attack, however, changing a user's password does not invalidate the attacker's Primary Refresh Token tied to the newly enrolled device.
As long as the rogue Windows entry remains registered in Entra ID, the threat actor can continue minting fresh tokens and maintaining access to Exchange, SharePoint, and OneDrive. Because the device names were recycled across up to 24 companies and persisted for up to 10 days, delayed cleanup significantly widens the data-exposure window.
Security teams auditing November activity should query Entra ID audit and sign-in logs specifically for new device registrations matching the "MH-" prefix or Windows build 10.0.19041.928. Correlating those enrollments with unexpected device-code authentication events can surface hidden persistence even when user credentials were already rotated.
05Mandatory device removal and Conditional Access
Huntress advises impacted organizations to follow a strict order of operations during containment so attackers cannot re-authenticate through lingering tokens.
- Delete rogue devices Remove all unauthorized or unrecognized Windows devices from Microsoft Entra ID first, specifically hunting for "MH-" hostnames and build 10.0.19041.928.
- Revoke active sessions Invalidate all active refresh tokens and user sign-in sessions for every affected Entra ID identity immediately after device deletion.
- Reset user credentials Force password resets for compromised accounts and verify multi-factor authentication methods to ensure no unauthorized factors were added.
- Restrict device-code flows Configure Microsoft Entra Conditional Access policies to block device-code authentication everywhere it is not operationally required.
Beyond technical controls, Microsoft and Huntress emphasize training employees never to enter a device sign-in code unless they personally initiated the authentication flow or verified it with a trusted administrator. Organizations that still require device-code login for headless hardware or legacy kiosks should scope Conditional Access exceptions narrowly to specific accounts and compliant network locations.
Frequently asked questions
How many organizations were affected by the Entra ID device-code phishing campaign?
Huntress observed 468 rogue device registrations across 326 user identities in 305 organizations during November 2026.
Why does a password reset fail to kick out attackers after device-code phishing?
The attacker uses initial stolen tokens to register a rogue device and obtain a Primary Refresh Token, which survives password resets until the rogue device itself is deleted from Entra ID.
What indicators of compromise did Huntress associate with these rogue devices?
Researchers observed 46 reused device names following an "MH-" prefix with 16 uppercase hex characters and Windows build 10.0.19041.928, the default build in ROADtools.
How can Microsoft Entra ID admins prevent device-code phishing attacks?
Microsoft recommends blocking the device-code authentication flow via Entra Conditional Access policies wherever it is not strictly needed, and Huntress urges deleting rogue devices before revoking sessions and resetting passwords.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement