URGENT RELEASE
On December 3, 2026, security company Huntress reported that a device-code phishing campaign made 468 rogue Windows device registrations in the Microsoft 365 environments of 305 organizations in November alone. An employee enters a sign-in code on Microsoft’s real login page, the attacker gets in, and then registers a fake device. Resetting the password does not remove that device, so the attacker keeps their access until someone deletes it. The fixes are well known, and a few settings changes can shut this door.
Key takeaways
- What happened: Huntress observed 468 rogue device registrations across 326 identities in 305 organizations during November 2026. It describes the campaign as active. BleepingComputer, The Register, and CSO Online all covered it.
- Why it’s different: The employee never types a password into a fake site. They enter a code on Microsoft’s genuine sign-in page and approve the sign-in themselves, so the usual “check the web address” advice doesn’t help.
- Why a password reset isn’t enough: The attacker’s fake device holds a long-lived sign-in token that keeps working after a password change. The device has to be deleted.
- What to do: Employees should never enter a sign-in code they didn’t request. IT should block device-code sign-in, limit who can register devices, and review the registered-device list now.
What did Huntress find?
Huntress, a managed detection and response company, published its findings on December 3, 2026. Throughout November, it saw 468 rogue device registrations across 326 identities in 305 organizations. The attacker appears to work on weekdays. Huntress describes the campaign as active.
Once inside, Huntress says the attacker usually signed in to Azure Active Directory and Microsoft Office and often went on to reach OneDrive, SharePoint, or Exchange (where email lives). BleepingComputer reports that the attacker’s goal appears to be data theft from company resources.
Most of the fake devices share a recognizable look. Their names start with “MH-” followed by 16 uppercase hexadecimal characters (0-9 and A-F), and every one Huntress found reported the same old Windows 10 build, which a normal, up-to-date computer would not. Huntress also found other naming patterns, so a missing “MH-” name is not an all-clear. Huntress says it is tracking two other clusters of rogue device registrations that may or may not be the same attacker.
How does device-code phishing work?
The device code sign-in is a real Microsoft feature. It exists so devices without a keyboard, like smart TVs and printers, can sign in. The scam turns it around:
- The lure. The victim gets a message that looks like routine business. Huntress saw one disguised as a non-disclosure agreement protected by Adobe, with instructions to authenticate with Microsoft to open it.
- The code. The attacker has started a real Microsoft sign-in on their own end. The lure hands the victim a code and sends them to Microsoft’s genuine sign-in page.
- The approval. The victim enters the code and approves the sign-in, including any MFA prompt. They believe they are opening a document. They are actually signing the attacker in.
- The fake device. The attacker receives the victim’s sign-in tokens and immediately uses them to register a rogue Windows device in the company’s Microsoft Entra ID (the identity system behind Microsoft 365).
- The access. A registered device earns a Primary Refresh Token, a long-lived credential that signs a user in to Microsoft 365 apps without asking again.
Why doesn’t a password reset remove the attacker?
Because the attacker never needed the password. Huntress explains that Microsoft invalidates a Primary Refresh Token on a password change only when the token was obtained with the password. Here, it comes from a phished sign-in instead. That token can even satisfy Conditional Access rules that require a registered device.
Frank Dickson of Dickson Research put it this way to CSO Online: “Changing the locks does not help when the burglar installed his own door.” The standard first move after a suspected compromise, resetting the password, is not enough on its own. The rogue device has to be found and deleted.
For more on why a password alone is not enough, see Your Password Is the Key Under the Doormat.
How does this connect to the FBI’s alert on automated AI attacks?
On December 5, the FBI warned that cyber actors are using super intelligence to automate attacks. Our post, FBI Warns Cyber Actors Are Using Super Intelligence to Automate Attacks, covers the FBI’s PSA and what to do about it.
Neither the FBI nor Huntress links this Microsoft 365 campaign to the actors in that alert, and we are not claiming a connection. But the lesson is the same. Attackers are going after sign-ins and identities, and they are automating the work. In this campaign, Huntress says the attacker redeemed stolen tokens with an automated Python script. The accounts, devices, and sign-in settings in your Microsoft 365 are the front door, and they deserve the same attention as the firewall.
What should every employee do?
Here is the one rule to teach everyone: never enter a sign-in code you didn’t request.
The Huntress researchers advise entering a device code only when you started the sign-in yourself or know that a trusted party started it, as reported by BleepingComputer and CSO Online. Some practical habits:
- If a document, email, or chat message asks you to enter a code to open a file, stop. A real document doesn’t need you to enter a sign-in code.
- Don’t rely on the page looking right. In this scam, the sign-in page really is Microsoft’s.
- Approving an MFA prompt does not protect you here, because you are approving the attacker’s sign-in.
- If you already entered a code, tell IT right away. Don’t wait to see whether anything happens.
What three fixes should your IT team make now?
1. Block device-code sign-in
Microsoft recommends blocking device code flow wherever possible. In Microsoft Entra, create a Conditional Access policy, set Conditions to Authentication flows, select Device code flow, and set the grant control to Block access. Microsoft’s step-by-step guide suggests starting in report-only mode and excluding emergency access accounts.
Microsoft advises getting as close as possible to a full block and allowing device-code sign-in only for well-documented, secured uses, such as legacy tools that can’t be updated. Analyst Frank Dickson told CSO Online that most users do not need it. Conditional Access requires Microsoft Entra ID P1 licensing or higher, according to Huntress and Help Net Security. For organizations licensed below Entra ID P1, Huntress recommends turning on Microsoft Security defaults.
2. Restrict who can register or join devices
Huntress recommends limiting who can register or join devices to Entra, capping how many devices each person can add, and requiring MFA to register one. These are settings in the device section of Microsoft Entra. They make it much harder for an attacker with one stolen sign-in to plant a device.
3. Review registered devices now
Open the list of devices in your Entra admin center and look for any you don’t recognize. Huntress says to watch for:
- Names starting with “MH-” followed by 16 characters
- Devices that report Windows build 10.0.19041.928 (or other builds Huntress lists) with no hardware identifiers
- Other unfamiliar names, since Huntress saw several naming patterns
Also search the Entra sign-in logs for device-code sign-ins you can’t explain. An IT provider with identity monitoring can do this faster than a person scrolling a list.
What if you think someone has already been phished?
Huntress recommends this order:
- Delete the rogue device from Entra ID. Do this first.
- Revoke the user’s sessions.
- Reset the user’s credentials.
- Check for leftovers. Look for new inbox rules and MFA methods the attacker may have added, and remove anything unrecognized.
How can Fairoaks IT help?
We always try to stay ahead of threats like this. If you would like a calm, plain-English look at how your Microsoft 365 handles device-code sign-in, device registration, and the devices already on your list, we’re happy to help. You can see how we approach this on our managed security services page. If you want to tighten another Microsoft 365 weak spot while you’re at it, our free email security check shows whether someone could send email that looks like it came from your company. For the bigger picture on AI-driven attacks, listen to our podcast episode on AI cyberattacks and small businesses.
Fairoaks IT has been in business since 1991. Founded by Tom Crossley and led today by Tom Crossley and CEO Adam Crossley, we help businesses across Eastern Massachusetts, Rhode Island, and Charlotte, NC protect their technology and plan for what comes next.
Frequently asked questions
What is device-code phishing?
Device-code phishing tricks someone into entering an attacker’s sign-in code on Microsoft’s real login page. The person completes the sign-in, and the attacker receives the access tokens. The device code feature exists so devices without keyboards, like TVs and printers, can sign in, and attackers have found a way to abuse it.
What did Huntress find in the Microsoft 365 device-code phishing campaign?
Huntress reported 468 rogue device registrations across 326 identities in 305 organizations during November 2026. The fake devices usually have names starting with “MH-” and report an old Windows 10 build. Huntress describes the campaign as active.
Why doesn’t resetting the password remove the attacker?
The attacker’s fake device holds a Primary Refresh Token that came from a phished sign-in rather than from the password. Microsoft invalidates that kind of token on a password change only when it was obtained with the password. The device has to be deleted from Entra ID.
Does MFA stop device-code phishing?
Not by itself. The employee completes the sign-in, including the MFA approval, on the attacker’s behalf. Blocking device-code sign-in with Conditional Access and restricting device registration are stronger defenses against this particular attack.
How do I block device-code sign-in in Microsoft 365?
In Microsoft Entra, create a Conditional Access policy that uses the Authentication flows condition, selects Device code flow, and blocks access. Start in report-only mode, exclude emergency access accounts, and allow only devices that truly need it. This requires Microsoft Entra ID P1 licensing or higher.
How do I check for rogue devices in my Microsoft 365?
Review the device list in your Entra admin center for anything you don’t recognize. Huntress says to look for names starting with “MH-” and 16 characters, or devices reporting Windows build 10.0.19041.928 with no hardware identifiers. It also saw other naming patterns, so treat any unfamiliar device as suspicious.
What should I do if an employee entered a code they didn’t request?
Tell your IT provider right away. They should delete any rogue device from Entra ID first, then revoke the user’s sessions and reset their credentials. They should also check for new inbox rules and MFA methods that the attacker may have added.
Are small businesses at risk from this campaign?
Any organization using Microsoft 365 where device-code sign-in is allowed could be exposed. Huntress’s write-up does not break down the 305 organizations by size or sector, and the attack doesn’t depend on either. It depends on one employee entering a code.
Ready to check your Microsoft 365?
You don’t have to tackle all of this at once. If you want a calm, plain-English check of how your Microsoft 365 is set up against this scam, let’s talk. Book a free 15-minute discovery call with Adam or Tom. We serve businesses across Eastern Massachusetts, Rhode Island, and Charlotte, NC.
Sources: Huntress, “M365 Device Code Phishing Campaign Leads to Hundreds of Rogue Entra ID Registrations,” December 3, 2026; Bill Toulas, “Device-code phishing campaign plants rogue devices in 305 Entra tenants,” BleepingComputer, December 3, 2026; Sinisa Markovic, “Hackers plant rogue devices in Microsoft Entra ID across 305 organizations,” December 4, 2026; Carly Page, “Microsoft 365 phishers make themselves at home in hundreds of corporate networks,” The Register, December 4, 2026; Taryn Plumb, “Microsoft 365 attackers are bypassing password resets by registering their own rogue devices,” CSO Online, December 3, 2026; Microsoft Learn, “Block authentication flows with Conditional Access policy”; Microsoft Learn, “Authentication flows as a condition in Conditional Access policy”; FBI IC3, PSA I-120526-PSA, December 5, 2026.





















