Device-Code Phishing Targets 305 Microsoft Entra Tenants
Huntress details an active device-code phishing campaign planting 468 rogue Windows devices across 305 Microsoft Entra ID corporate tenants.

Table of Contents
Key Takeaways
- Attackers registered 468 rogue Windows devices across 305 Microsoft Entra ID tenants.
- The campaign abuses legitimate OAuth 2.0 device code flows to bypass standard multi-factor authentication.
- Threat actors used the open-source ROADtools framework to register unauthorized endpoints.
- Password resets fail to evict attackers; administrators must manually delete rogue registered devices.
An ongoing OAuth 2.0 device-code phishing campaign has successfully compromised 326 corporate identities and registered 468 rogue Windows devices across 305 organizations. Security researchers at Huntress documented the active operation, which directly targets enterprise Microsoft 365 environments to maintain stealthy persistence.
First observed accelerating during November 2026, the intrusion leverages legitimate cloud authentication mechanisms rather than credential harvesting pages. By convincing users to approve device-login requests on genuine Microsoft login infrastructure, adversaries capture functional access tokens without interacting with victim passwords.
Technical Breakdown
The attack sequence begins with targeted phishing communications directing users to legitimate Microsoft authentication endpoints, specifically microsoft.com/devicelogin. Victims are instructed to enter a temporary, alphanumeric user code provided by the threat actor. When the victim authenticates and completes their standard multi-factor challenge on the authentic portal, the token authority issues valid OAuth 2.0 session and refresh tokens directly to the attacker’s client.
Rather than simply scraping email, the threat actor uses this authorized session to execute Steal Application Access Token (T1528) dynamics. Telemetry shows the adversaries interacting with victim tenants via the open-source toolkit ROADtools. Using the captured user context, the threat actor invokes cloud device registration endpoints, binding an external virtual workstation directly into the victim’s tenant directory within Microsoft Entra ID.
Rogue endpoints registered in this campaign display an identifiable naming convention: the prefix MH- followed by 16 uppercase hexadecimal characters. Once registered, these devices enable adversary access to Exchange Online, SharePoint, and OneDrive assets while blending into administrative device inventories. Operational timing analysis reveals the threat group functions primarily during standard business hours Monday through Friday, mirroring enterprise operational tempos to minimize anomalous off-hours alerts.
Impact Matrix
| Dimension | Intrusion Telemetry |
|---|---|
| Threat / Malware Family | OAuth 2.0 Device Code Hijacking / ROADtools |
| Initial Access Vector | Social engineering directing victims to genuine Microsoft device login |
| Confirmed TTPs | T1528 (Steal Application Access Token), T1078.004 (Cloud Accounts) |
| Targeted Platforms | Microsoft Entra ID, Microsoft 365 cloud tenants |
| Observed Impact | 468 unauthorized devices joined across 305 enterprise tenants |
| Primary Source | Huntress Threat Research |
Registering rogue machines into enterprise directories subverts basic zero-trust assumptions by creating authenticated internal beachheads. Traditional credential rotation leaves these joined endpoints completely active, requiring direct tenant-level device revocation.
— Texial Threat Research Desk
Immediate Actions
- Query the Microsoft Entra ID admin center or run PowerShell scripts to inspect all joined devices matching the naming filter
MH-[0-9A-F]{16}, and immediately delete any identified matches. - Revoke all active refresh tokens for compromised identities using the
Revoke-AzureADUserAllRefreshTokencmdlet or the Entra ID admin interface. - Audit sign-in logs for authentication attempts using the OAuth 2.0 Device Authorization Grant protocol and correlate them with non-standard geographic locations.
- Enforce Conditional Access policies that explicitly block or severely restrict the device code authentication flow, mandating compliant or hybrid joined devices for all cloud access.
- Review organizational security baselines using guidelines on managing patch lead times and compensating controls to secure administrative interfaces against token misuse.
Frequently Asked Questions
How does device-code phishing bypass MFA?
The victim completes standard multi-factor authentication directly on genuine Microsoft sign-in pages. Because the user authenticates successfully, the token generation service issues the final session token to the attacker device that requested the code.
Why does resetting user passwords fail to stop the intrusion?
Password resets invalidate credentials but do not automatically unregister devices from the directory. Adversaries maintain persistence through the newly registered rogue device, which retains authenticated standing until explicitly deleted by administrators.
What naming pattern identifies rogue devices in this campaign?
Targeted tenants display unauthorized Windows devices beginning with the prefix MH- followed by 16 hexadecimal characters. Administrators should query Microsoft Entra ID audit logs for this specific naming string.
Can organizations disable device code flows entirely?
Yes. Enterprise administrators can restrict OAuth 2.0 device code flows using Microsoft Entra ID Conditional Access policies, blocking the protocol for all accounts that do not strictly require headless device sign-in.
Keep your security team ahead of this threat.
Shreya Iyer
Cybersecurity policy and privacy reporter covering data breach disclosures, regulatory actions, and AI security governance for Texial Newsroom.


