Short answer: yes, and a password reset won’t stop them. If someone gets into a Microsoft 365 account and registers their own device, changing the password can leave their access working. That’s the whole problem, and it’s why I’m writing about it now.
If you’ve ever cleaned up after a phished account, you know the usual first move: reset the password and move on. This campaign was built to beat that move.
What happened
According to a CSO Online report on research from the security company Huntress, an active phishing campaign has been registering rogue devices inside Microsoft 365 environments. Huntress found more than 450 of them in Microsoft Entra ID, across 305 organizations. The devices were attached to 326 different identities. The campaign started in November, and the apparent goal is stealing data from OneDrive, SharePoint and Exchange (your files and your email).
Here is how it works, in plain terms:
- The attacker starts a real Microsoft sign-in using the “device code” method. That method exists so things like smart TVs and printers, which have no keyboard, can sign in.
- The victim gets a message that looks like routine business, such as opening a document or joining a meeting. It tells them to type a code into a genuine Microsoft page.
- The victim enters the code and approves the sign-in. They did everything on a real Microsoft page. No fake site, no stolen password.
- The attacker now holds the tokens from that session. They use them right away to register their own Windows device in your Entra ID.
A device registered to your account gets a Primary Refresh Token. That’s a long-lived credential that signs a user into Microsoft 365 apps without asking again. The password was never part of it, so changing the password doesn’t cancel it. The source says it can even satisfy Conditional Access rules that require a registered device.
One analyst quoted in the article put it this way: “Changing the locks does not help when the burglar installed his own door.”
Huntress says the attackers appear to use ROADtools, a public open-source toolkit for working with Entra ID. It was originally designed for defenders. The article also notes this style of attack isn’t new. Microsoft documented a similar one in February 2025, and a phishing kit described in April 2026 generates the code the moment the victim clicks, which gets around the old 15-minute expiry on these lures.
How to tell if it affects you
If you use Microsoft 365 with Entra ID, the attack path exists for you. Whether anyone has used it against you comes down to two things: whether your staff have approved a code they didn’t start themselves, and what your logs and device list show.
Ask your people one question: has anyone entered a code on a Microsoft sign-in page because a message, email or chat told them to? If yes, treat that account as suspect.
The logs and lists I’d check
This is general practice for an analyst reviewing a Microsoft 365 tenant, guided by what Huntress recommends in the article. You’ll need an admin account in the Microsoft Entra admin center.
- Sign-in logs, both kinds. Huntress says to search interactive and non-interactive sign-in logs for suspicious device code authentications. The non-interactive log matters because token-based access shows up there, not just in the logins people do by hand. In practice, I’d look for sign-ins that used the device code method for people who have no reason to use it. Nobody in an office with laptops and phones should be signing in the way a printer does.
- The device list. Look at the devices registered to each user. Anything you don’t recognize is a problem. Check the name, the owner, and when it was registered, and compare that date with any odd sign-ins. The researchers published the naming pattern they saw, so it’s worth reading their write-up if you manage a larger tenant.
- MFA methods. For any account you suspect, look at the registered authentication methods. A new phone number or authenticator app that the user doesn’t remember adding is a red flag.
- Inbox rules. Check for rules that forward, hide or delete mail. These are a common thing to find after a business email compromise.
The analyst quoted in the article said the attacker “does leave fingerprints that are easy to find.” That’s the good news. You just have to look.
What to do today
These are the settings and habits the sources recommend. Some need a paid Entra license, which I’ll flag.
- Turn off device code sign-in for people who don’t need it. You do this with Conditional Access policies in Entra. The analysts quoted say most users don’t need it. Blocking it with Conditional Access requires Entra ID P1 licensing or above, so check what your plan includes.
- Require managed, compliant devices. With P1 or above, Conditional Access can demand that a device be managed and compliant, not merely registered. A rogue device the attacker registered themselves won’t meet that bar.
- Limit who can register devices. Cap how many devices each user can add, and require MFA to register one.
- Move to phishing-resistant MFA. That means FIDO2 security keys or passkeys. Ordinary approval prompts can be talked out of people, as this campaign shows.
- Tell your staff one rule. Only enter a device code if you started that sign-in yourself, or you know for certain a trusted party did. If a message asks you to enter a code, stop and check with the person by another route.
- Know how your cleanup will go. See the next section. Do it in the right order.
Signs something already went wrong
- A device in Entra you can’t match to a person or a machine you own.
- Device code sign-ins for accounts that never use that method.
- A user says they entered a code from a message about a document or meeting.
- New MFA methods nobody admits to adding.
- Inbox rules the user didn’t create.
- Customers or colleagues getting odd email from a staff member’s address.
If you find a rogue device, the order matters. The article gives it as: remove the device, kill the user’s sessions, then change the password. Huntress also says to delete it from Entra ID, revoke sessions and reset credentials. Then keep looking. Check for a new MFA method or an inbox rule the attacker planted. One of the analysts called deleting the device “necessary” but only the start. Resetting the password alone, or deleting the device but leaving sessions alive, can leave a gap.
When to get help
If you find a rogue device, or can’t tell whether one exists, bring in someone who handles Microsoft 365 incidents. The source says incident response has to account for stolen tokens and persistent sessions, which is more than a password change. Active sessions and refresh tokens must be revoked, rogue registrations removed, and compromised accounts and applications reviewed. If the account touched client files or sent email as you, that review is also what tells you what was exposed, and that can matter for your obligations to your own customers.
The line from the article I keep coming back to: in Microsoft 365, “the password is no longer the key, the device is.” Look at your device list this week.
Sources
Featured image: Image by AS_Photography from Pixabay.


