Earlier this week we explained how device code phishing tricks people into handing over a Microsoft 365 sign-in with a short code instead of a password. Now security firm Huntress has shown what attackers do next: they add their own “device” to your Microsoft 365 organisation, and that device can keep them signed in even after you reset the password.
What happened
On 3 December 2026, Huntress published research on an active device code phishing campaign. BleepingComputer reported it the same day.
- Throughout November 2026, Huntress saw 468 device registrations across 326 user accounts in 305 organisations.
- The victim is sent a lure and enters an attacker-generated code on Microsoft’s real sign-in page. Huntress says some lures were disguised as an “Adobe-protected Non-Disclosure Agreement”.
- With the tokens from that sign-in, the attacker registers a rogue Windows device in the victim’s Microsoft Entra ID (the directory behind Microsoft 365) and gets a Primary Refresh Token. That token gives single sign-on and can satisfy Conditional Access rules that require a registered device.
- The rogue devices were named “MH-” followed by 16 letters and numbers (for example MH-51FB898341CEA47A) and all reported Windows build 10.0.19041.928. Huntress says that build is the default in ROADtools, an open-source Entra testing toolkit it believes was abused.
- Huntress has not tied the campaign to a named threat actor.
Why a password reset is not enough
Huntress says it plainly: “Password resets alone do not remove the threat actor’s access.” Microsoft cancels a Primary Refresh Token on a password change only when the token was obtained with the password. Here it came from a phished code. So the rogue device has to be deleted, and that should be the first step.
Who is affected
Any business using Microsoft 365, especially small teams without someone watching sign-in logs. Users never type their password on a fake site, so normal “check the web address” training doesn’t catch this.
What to do
- Look for rogue devices now. In the Microsoft Entra admin center, open Devices > All devices. Look for names starting with MH-, or devices on OS version 10.0.19041.928 that nobody in your team owns. Huntress also lists builds 10.0.19045.2006, 10.0.19045.0 and 10.0.26100 with no hardware details as suspicious.
- If you find one, act in this order: delete the device in Entra ID, revoke the user’s sessions, then reset their password.
- Check the account for leftovers. Review the user’s registered devices and MFA methods and remove any you don’t recognise. Check their mailbox for suspicious inbox rules.
- Search the sign-in logs. Look for device code sign-ins, and for non-interactive sign-ins where the app changes to “python-requests” or “node”.
- Block device code sign-in where you don’t need it. With Entra ID P1 or higher, use Conditional Access to block the device code flow. Below P1, turn on Security defaults if they are off.
- Limit device registration. In Entra device settings, limit who can register or join devices, lower the maximum devices per user, and require MFA to register a device.
- Tell your team one rule: only enter a Microsoft sign-in code if you started the sign-in yourself on a device in front of you. A code that arrives in an email, chat or “document” is a red flag.
If you use an outside IT provider, forward them this article and ask them to run steps 1 to 4 this week.
Frequently asked questions
What is device code phishing? The attacker starts a real Microsoft sign-in and sends you the short code. When you enter it on microsoft.com/devicelogin and approve, the attacker’s session is signed in as you, MFA included.
I reset the user’s password. Am I safe? Not necessarily. Huntress found the rogue device’s token can survive a password reset. Delete the device first, then revoke sessions and reset the password.
Does MFA stop this? No. The victim completes MFA themselves, and the approval goes to the attacker’s session. Blocking device code sign-in and limiting device registration help much more.
Sources: Huntress, “M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations” (3 Dec 2026); BleepingComputer (3 Dec 2026).

