Throughout November 2026, security researchers at Huntress tracked an active OAuth 2.0 device-code phishing campaign that planted 468 rogue Windows devices across 326 compromised identities inside 305 distinct Microsoft Entra ID organizations. During the business days of the first two weeks of November alone, attackers registered 276 unauthorized devices across 168 tenants, aiming to steal corporate files and email from OneDrive, SharePoint, and Exchange.
What makes this campaign particularly dangerous for both everyday Microsoft 365 users and IT responders is that victims authenticate on Microsoft's real microsoft.com/devicelogin page and complete their normal multi-factor authentication (MFA). Once attackers exchange the captured session for a rogue device registration and a Primary Refresh Token (PRT) using the open-source ROADtools toolkit, resetting the user's password alone fails to evict the intruder.
How Device-Code Phishing Captures Sessions on a Real Microsoft URL
The OAuth 2.0 Device Authorization Grant was built for input-constrained hardware—such as smart TVs, printers, and conference-room displays—that lack a convenient keyboard. A device requests a short code from Microsoft, displays it to the owner, and waits while the owner signs in from a phone or laptop browser.
Phishing-as-a-service operations (including kits like Tycoon2FA, Greatness, and Kali365) and targeted intrusion groups flip that legitimate workflow into a three-stage takeover:
- Trusted-domain lure: The attacker emails or messages a target—often using a fake protected NDA or shared-document notification—telling the recipient to visit the authentic
microsoft.com/deviceloginaddress and enter a short verification code. Because the domain and TLS certificate belong to Microsoft, link scanners and browser warnings remain silent. - Token handover after MFA: The victim enters the code, signs in with valid credentials, and approves their regular MFA prompt. Microsoft then issues valid OAuth access and refresh tokens directly to the attacker's waiting session without the attacker ever needing a fake login page.
- Persistent rogue device enrollment: Using the captured tokens and ROADtools, the attacker registers a synthetic Windows machine inside the victim's Microsoft Entra ID tenant. That enrollment grants a Primary Refresh Token (PRT) enabling long-term single sign-on to Microsoft Office apps, OneDrive, SharePoint, and Exchange.
Forensic Indicators and Why Standard Password Resets Fail
Comparing conventional credential phishing against device-code PRT persistence explains why routine help-desk resets leave compromised tenants wide open.
| Security Dimension | Traditional Password Phishing | Device-Code Rogue Device Campaign (Nov–Dec 2026) |
|---|---|---|
| Login page visited by victim | Lookalike spoofed domain | Genuine microsoft.com/devicelogin URL |
| Standard MFA prompt | Often blocks login unless proxied | Approved legitimately by victim during code entry |
| Persistence artifact | Stolen password or short-lived cookie | Enrolled rogue Entra ID device + Primary Refresh Token (PRT) |
| Observed device fingerprint | Varies by attacker browser | Prefix MH- + 16 uppercase hex chars; Windows build 10.0.19041.928 (ROADtools default) |
| Result of password reset alone | Usually locks attacker out | Fails — rogue device PRT stays active until device record is deleted |
Huntress noted that every unauthorized device in the observed cluster reported Windows build 10.0.19041.928—the hardcoded default inside ROADtools—alongside missing hardware identifiers and the distinctive MH- plus 16 uppercase hex characters naming scheme. Defenders searching Microsoft Entra ID device registries and audit logs can spot that pattern in seconds.
Exact Remediation Order and Preventive Controls
If an employee or personal Microsoft 365 account enters a suspicious device code, executing recovery steps in the wrong sequence leaves the attacker's PRT alive. Huntress and Microsoft guidance establish a strict cleanup and hardening sequence:
- Remove the rogue device from Entra ID first. Inspect the compromised user's registered devices in Microsoft Entra ID for unfamiliar entries—especially names beginning with
MH-or reporting OS version10.0.19041.928—and delete the unauthorized device record before changing passwords. - Revoke all active sessions and refresh tokens. Immediately run session revocation in Entra ID so any remaining access or refresh tokens tied to Exchange, SharePoint, or OneDrive expire.
- Force a fresh password reset and audit mailbox rules. After device deletion and token revocation, set a unique high-entropy replacement password (using a generator such as the VPNRice Password Generator) and inspect Exchange inbox forwarding rules, delegate permissions, and newly consented OAuth applications.
- Block the OAuth device-code flow in Conditional Access. Under Microsoft Entra ID Conditional Access, target the Authentication flows → Device code flow condition and set the grant action to Block for all users who do not explicitly run legacy or headless devices.
- Restrict device registration and train staff on one rule. Limit Entra ID device join/registration permissions to authorized endpoints, require phishing-resistant MFA (FIDO2 keys or passkeys), and enforce a simple user habit: never enter a Microsoft device code that you did not personally generate on a screen sitting in front of you.
Network Hygiene and Honest Boundaries of a VPN Against OAuth Phishing
Clear security boundaries protect teams from relying on the wrong layer. No VPN can prevent a user from entering an attacker's code on Microsoft's real microsoft.com/devicelogin portal, nor can network encryption revoke a Primary Refresh Token already enrolled inside a cloud identity directory.
Where kernel-level WireGuard transport on VPNRice adds practical defense is around the administrative and remote-work connections surrounding cloud accounts:
- Protecting emergency incident-response sessions on shared Wi-Fi. IT engineers and remote staff responding to security alerts from airports, hotels, or cafés frequently open Microsoft Entra admin portals, revoke tokens, and rotate credentials over untrusted wireless networks. WireGuard encryption shields DNS lookups, session handshakes, and metadata from local network eavesdropping or rogue hotspots.
- Reducing IP correlation during remote account audits. Encrypting outbound client traffic keeps home or travel network metadata separate from routine web browsing and SaaS diagnostics.
- Verifying clean browser interfaces before admin logins. Before opening cloud identity consoles on a laptop or mobile device, confirm your external IP and browser network interfaces are clean with the free What Is My IP tool and WebRTC Leak Test.
Blocking unused OAuth device-code flows in Conditional Access, auditing Entra ID for MH- / 10.0.19041.928 rogue devices, deleting unauthorized endpoints before resetting passwords, and encrypting remote admin connections over WireGuard close both the identity persistence loophole and the surrounding network exposure.






