IntelBase

News

Device-code phishing: why a password reset isn't enough

A November 2026 campaign registered rogue devices in 305 Microsoft Entra organizations. Delete the device first, then revoke sessions and reset the password.

IntelBase Team · · 5 min read

A registered-devices list with one unfamiliar Windows device flagged, and a status chip saying to delete the device first
In this post
  1. What happened in the device-code phishing campaign?
  2. How does device-code phishing work?
  3. Why does a rogue device survive a password reset?
  4. How do you spot a rogue device registration?
  5. What should security teams do now?
  6. How do you investigate the person who was targeted?
  7. FAQ
  8. Sources

Because the attacker's access lives on a device they registered, not in the password. In a campaign Huntress tracked through November 2026, attackers phished device sign-in codes, registered rogue Windows devices in the victims' Microsoft Entra ID, and kept a token that a password change doesn't cancel. The fix is to delete the rogue device first, then revoke sessions and reset credentials.

What happened in the device-code phishing campaign?

Huntress, a managed detection and response company, published research on 3 December 2026 describing an ongoing campaign against Microsoft 365 users. Throughout November 2026 it observed 468 rogue device registrations across 326 identities in 305 organizations.

The attackers appear to work on weekdays, with very few registrations at weekends. Once inside, they signed in to Microsoft Office and went after company data in OneDrive, SharePoint and Exchange. The report doesn't include a comment from Microsoft on the campaign.

How does device-code phishing work?

The device code flow exists so you can sign in on a device without a keyboard, such as a TV or a printer: the device shows a short code, and you enter it on Microsoft's real sign-in page from your phone or laptop. Attackers abuse it by generating the code themselves and persuading the victim to enter it.

  1. The attacker starts a sign-in and gets a device code from Microsoft.
  2. The victim gets a lure with the code and a link to the genuine Microsoft sign-in page.
  3. The victim enters the code and signs in, passing their own password and multi-factor check.
  4. The attacker receives valid tokens for the victim's account, because the sign-in the victim just approved was the attacker's.

Nothing about the page looks wrong, because it is Microsoft's own. The only warning sign is that the victim didn't start the sign-in.

Why does a rogue device survive a password reset?

In this campaign the attackers used the phished tokens to register a new Windows device in the organization's Entra ID. That gave them a Primary Refresh Token (PRT), which provides single sign-on to Microsoft services from that device.

Huntress explains that Microsoft cancels a PRT on a password change only when the token was obtained with the password. Here it came from a phished token instead, so a reset leaves it working. A PRT from a registered device can also satisfy Conditional Access rules that require a registered device. In Huntress's words, a password reset alone doesn't remove the access: the device has to be deleted.

Step taken Does it remove the attacker?
Reset the password only No: the device's token keeps working
Revoke sessions only Not on its own: Huntress says the device has to be deleted
Delete the rogue device, then revoke sessions and reset credentials Yes, this is the order Huntress recommends

Respond in this order: delete the rogue device in Entra ID, revoke the user's sessions, reset credentials, then block device-code sign-in where it isn't needed

The figure shows the same order as the table: the device goes first, then the sessions and credentials, and finally the setting that stops the next attempt.

How do you spot a rogue device registration?

Huntress published the patterns it saw, which are a useful starting point for checking your own Entra ID:

Signal What Huntress observed
Device name "MH-" followed by 16 uppercase hexadecimal characters; some names reused across up to 24 unrelated organizations
Reported Windows build 10.0.19041.928 on every registration, a Windows 10 build (version 2004) that is long out of support
Hardware identifiers Missing on the registrations
Sign-in pattern Interactive sign-ins through the Microsoft Authentication Broker with error AADSTS50199, then scripted sign-ins with a python-requests user agent from a new IP
Network Mostly residential proxy IPs in the US and UK, with no IP used for more than two victims
Tooling Consistent with ROADtools, a public toolkit for Entra ID

Where to look: the Entra and Microsoft 365 audit logs record every device registration with its name, Windows build, join type and hardware identifiers, and the sign-in logs let you follow a suspicious session. Microsoft Defender raised alerts such as "User session compromised by device code phishing", but only where it was connected: of the 47 victims Huntress could see in organizations with Defender data, Defender raised incidents for 25. Don't rely on an alert alone.

What should security teams do now?

  • Review registered devices in Entra ID for unfamiliar names, old Windows builds and missing hardware identifiers.
  • For each affected user: delete the rogue device, revoke sessions, reset credentials, in that order.
  • Check what else changed: new MFA methods, inbox rules and mailbox forwarding.
  • Block the device code flow with Conditional Access wherever your organization doesn't need it.
  • Limit who can register devices and require multi-factor authentication to register one.
  • Tell users to enter a device code only when they started the sign-in themselves.

How do you investigate the person who was targeted?

After containment, the useful question is how the attacker picked and reached this person. Start with the address the lure was sent to. An email lookup on IntelBase shows which sites that work address is registered on and whether it appears in data breaches or infostealer logs, which helps explain how it reached a phishing list and which other accounts need a password change. IntelBase never logs in, sends a password reset or triggers an email to the address you search. Treat what you find as leads, not proof.

FAQ

What is device-code phishing?

It's a phishing attack that abuses Microsoft's device code sign-in. The attacker generates a sign-in code and tricks the victim into entering it on Microsoft's real page, which hands the attacker valid tokens for the account.

Does multi-factor authentication stop device-code phishing?

Not on its own. The victim completes the multi-factor check themselves while signing in on the genuine page, so the attacker's session is approved. Blocking the device code flow where it isn't needed closes the gap.

Why didn't resetting the password remove the attacker?

The attacker registered a device and got a Primary Refresh Token from a phished token, not from the password. Huntress says such a token isn't cancelled by a password change, so the device must be deleted.

How many organizations were affected?

Huntress counted 468 rogue device registrations across 305 organizations in November 2026. Those are the organizations it could see, so the full number may be higher.

Sources

Look up an email or username

See the accounts linked to an email address or username, and what has leaked. Free to try, no account needed.