Device-code phishing campaign plants rogue devices in 305 Entra tenants
Huntress researchers have identified an ongoing device-code phishing campaign that registered more than 400 rogue Windows devices in Microsoft Entra ID environments across 305 organizations. The operation began in November, with the attacker registering devices to 326 Entra ID identities, allowing persistent access even after password resets. The threat actor's objective appears to be data theft from company resources, including OneDrive, SharePoint, and Exchange.
Throughout November 2026, Huntress observed 468 device registrations across 326 identities in 305 organizations. During the workdays of the first two weeks of the month, the attacker registered 276 devices (Windows build 10.0.19041.928) at 168 organizations, using a recognizable naming pattern: "MH-" followed by 16 uppercase hex characters. The attacks begin with victims being tricked into entering an attacker-generated device sign-in code on Microsoft's legitimate authentication page and completing the sign-in, which allows the attacker to obtain valid access and refresh tokens used to register a rogue device in the victim's Microsoft Entra ID environment and obtain a Primary Refresh Token (PRT).
Huntress has found that all device registrations reported a Windows build that is the default in the ROADtools open-source security toolkit for Microsoft Entra ID. The tool is used to inspect an organization's Entra environment and test how Microsoft handles sign-ins, tokens, and device registration, but in these attacks, Huntress suspects it was abused to register rogue devices. The researchers observed 46 device names across all attacks, with some used in up to 24 unrelated organizations and remaining in use for up to 10 days. Huntress recommends that impacted organizations delete the rogue devices from Entra ID, revoke the user's sessions, and reset their credentials.
If the rogue devices aren't removed, the attacker's Primary Refresh Token can survive a password reset, so device removal should be the first remediation step. Users should enter device codes only when they started the sign-in process themselves or know that it was initiated by a trusted party. Microsoft recommends blocking device-code authentication through Entra Conditional Access wherever it isn't needed. The campaign reflects a typical device-code phishing attack chain that has become a common attack method targeting Microsoft 365 accounts, with multiple phishing-as-a-service operations adopting it, such as Tycoon2FA, Greatness, and Kali365.
Source credits
By Bill Toulas from BleepingComputer. Edited by SetuGeo.