A still-active phishing campaign is quietly attaching attacker-controlled Windows devices to Microsoft Entra ID accounts, giving the operators a foothold that can outlast a password reset. Huntress, the managed detection and response firm that uncovered the activity, counted 468 of those rogue registrations in November 2026, tied to 326 accounts in 305 separate tenants.
What happened
The campaign relies on device-code phishing, a technique that has become a frequent path into Microsoft 365 accounts. A target is talked into typing an attacker-generated code on Microsoft's genuine sign-in page. Once that approval goes through, the operators receive working access and refresh tokens for the account.
The stolen tokens are then spent to add a Windows device to the victim's Entra ID tenant and to obtain a Primary Refresh Token, or PRT. That token is what a trusted computer uses for single sign-on. It can also keep the attacker inside after a password change. Microsoft will drop a PRT after a reset only if the token was minted with the password. In these incidents it was issued from a phished session, so changing the password does not cut the operators off.
Huntress says the operators appear to work mainly on weekdays, with almost no registrations over weekends. In the first two workweeks of November alone, BleepingComputer reports, they enrolled 276 devices at 168 organizations. After signing in to Entra ID and Microsoft Office, the attackers frequently moved on to OneDrive, SharePoint, or Exchange. BleepingComputer reports that Huntress sees data theft from those services as the likely goal.
The researchers also found two additional clusters of suspicious device enrollments during the same period. They have not determined whether those clusters belong to the same operators.
How the attack works
The enrolled machines are easier to spot than a typical hijacked mailbox because they share a distinctive fingerprint. Names usually open with the prefix MH- and continue with a 16-character uppercase hex string. Huntress cites MH-51FB898341CEA47A as one example. Each of the registrations the firm reviewed was Entra-joined, advertised the 10.0.19041.928 OS version, and carried no hardware identifiers.
That same build number is hard-coded as the default in ROADtools, a public toolkit researchers and testers use to map an Entra tenant and experiment with login, token, and enrollment behavior. The number maps to Windows 10 2004, a release Microsoft retired from support in 2021, which means an up-to-date office PC should not be advertising it. Huntress believes the operators leaned on the toolkit to finish the unauthorized enrollments.
The same device names turned up in unrelated tenants. Huntress recorded 46 "MH-" names used at more than one organization. One name appeared in 24 different tenants and stayed in circulation for as long as 10 days. Other names were reused across several organizations within two hours.
Huntress's review of the lures and follow-on traffic adds more detail. In some of the cases the firm mapped, the lure looked like a confidentiality agreement wrapped in Adobe protection, complete with Microsoft and Adobe branding, to nudge the victim into the device-code flow. Initial sign-ins often arrived through the Microsoft Authentication Broker app and came from residential or business broadband addresses in the United States and the United Kingdom, many of them tied to commercial proxy services. Huntress says no single one of those addresses was used against more than two victims, which limits the value of simple IP blocklists.
Soon after a victim approved the code, scripted follow-up traffic using the python-requests/2.32.5 user-agent redeemed the stolen token against Microsoft's device registration service. In one intrusion Huntress examined, those scripted requests came from a new address in Poland. The operators then used the newly issued PRT to reach Azure AD and the Microsoft Office apps, and from there other cloud services.
A rotating set of five datacenter addresses handled much of that scripted activity, with the operators typically using one address at a time and changing it every few days. Huntress has not tied the campaign to a named group. Microsoft previously documented a similar sequence, involving the actor tracked as Storm-2372, in February 2025, and other public toolkits can produce some of the same default device settings, so the overlap is not enough to pin this activity on a known actor.
Why it matters
The most dangerous part of this campaign is not the initial phish, which defenders have seen many times, but what happens after the device is enrolled. A password reset, the standard first response to a compromised Microsoft 365 account, does not evict the attacker if the rogue device is still sitting in Entra ID. The PRT can also help satisfy Conditional Access rules that require a registered device, giving the operators a path around controls that would otherwise block an unfamiliar sign-in.
Microsoft Defender did surface part of the activity. Out of the 326 identities Huntress marked as compromised, Defender opened a case for 25 of them, and in one example the alert arrived roughly five minutes after the enrollment. Coverage was uneven, though: in the Huntress sample, Defender was feeding the firm's platform in just 36 of the tenants that contained an MH- named device, so a large share of victims would not have received that automatic containment.
Because the enrollments look like ordinary user-driven device joins in the audit log, a busy IT team can easily miss them unless it is specifically hunting for the naming pattern, the outdated Windows build, or the missing hardware identifiers.
How to defend against it
If a rogue device turns up, Huntress says to remove it from Entra ID first. Session revocation and a credential reset should come next. If the device is left in the directory, the attacker's PRT can keep working.
The firm also recommends that organizations:
- In Entra interactive and non-interactive sign-in logs, look for device-code logins and abrupt changes to scripted clients such as python-requests. In the audit log, flag enrollments whose names fit the MH- prefix and a 16-digit hex tail, or that advertise builds 10.0.19041.928, 10.0.19045.2006, 10.0.19045.0, or 10.0.26100 without any hardware identifiers.
- Check authentication logs against the five datacenter IPs Huntress listed: 181.214.147.42, 92.62.251.249, 37.252.11.196, 146.103.38.149, and 193.109.193.166.
- On any account that may be involved, inventory enrolled devices and MFA methods, and scan for mailbox rules the user did not create.
- Restrict which accounts are allowed to enroll or join machines, set a ceiling on how many devices one person can add, and require multifactor authentication before a device can be registered.
- Where licensing allows, use Entra Conditional Access to block device-code authentication if the organization does not need it, require managed and compliant devices, and, for Entra ID P2, turn on risk-based policies. Organizations below the P1 tier can enable Microsoft's security defaults.
Microsoft also urges organizations to turn off device-code authentication in Conditional Access unless a business process truly depends on it. Staff should type a device code only if they launched that login themselves, or if they are certain a trusted colleague started it.


Comments
Read or add a comment →