P.K. SHARMA

Cyber security intelligence, AI governance, practitioner analysis

Huntress says rogue Entra ID devices hit 305 organisations and outlast a password reset

Huntress says device code phishing registered 468 attacker devices across 305 organisations in November. A new password does not remove them; the device must go. Read on 4 December 2026.

By · LinkedIn · · 13 min read

468 registrations, 326 accounts, and a reset that does not reach them

Huntress says that in November 2026 it saw 468 rogue device registrations in Microsoft Entra ID, tied to 326 identities in 305 organisations. That is 142 more registrations than identities (derived: 468 minus 326), so at least some accounts gained more than one device. Its post, published on 3 December, says a password reset does not remove the access: the rogue device has to be deleted from the tenant by hand. This briefing rests on that post and on Microsoft's own documentation, read on Friday 4 December 2026 at about 13:12 UTC.

The count does not establish how many organisations were hit in all. It covers tenants that Huntress monitors. It also does not establish how many of the 326 accounts had mail or files read: Huntress says the attacker usually signed in to Azure Active Directory and Microsoft Office, often moving on to OneDrive, SharePoint or Exchange, and gives no count for data taken.

Huntress sells managed detection and response services, including the identity product whose logs surfaced this, so its advice to run an identity threat detection tool is advice within its own market. The site has covered device code lures before: Push Security's fake event pages and one fake Teams booking page seen by Huntress. Those pieces turn on how a victim is talked into entering a code. This one is about what the attacker builds afterwards, at scale, and what it takes to remove it.

From a code on a real Microsoft page to a joined device

Device code flow exists for hardware that is awkward to type on. Microsoft's protocol page gives smart TVs, IoT devices and printers as examples: the device shows a code, the person enters it in a browser elsewhere and signs in, and the device receives the tokens. The user has 15 minutes by default. In an attack, the party waiting for the tokens is the attacker.

Huntress's table of techniques says the lure posed as a document under an Adobe-protected Non-Disclosure Agreement, using Microsoft and Adobe branding and a named sender. The two companies are impersonated; the post accuses neither. Victims approved sign-ins to the Microsoft Authentication Broker application.

Drawn by this site from Huntress's post of 3 December 2026.

In one intrusion that Huntress lays out as a guide for hunting, the log sequence runs like this:

  1. Two interactive sign-ins show error code AADSTS50199, a confirmation prompt that the person is signing in to the Authentication Broker. They appear to come from an ordinary location but start at a residential or callback proxy.
  2. The token is redeemed at once, aimed at the device registration service.
  3. The non-interactive log shows the session move to a new address in Poland with a python-requests user agent.
  4. A device is registered, and its new token is used to sign in to Azure Active Directory and Microsoft Office.

Huntress says the easiest way to hunt is to follow the suspicious session ID.

Most rogue devices are named MH- followed by 16 uppercase hexadecimal characters. Every MH- registration Huntress found was joined to Entra ID and reported Windows build 10.0.19041.928, the default written into ROADtools, a public toolkit for Entra ID. The build belongs to Windows 10 version 2004, which left servicing in 2021. The devices also carried no hardware identifiers. A tool's default is a good search term and a weak one for the future: the operator already changed the default name and could change the build.

Why a new password does not end it

A registered device that a user signs in on can hold a Primary Refresh Token (PRT), which gives single sign-on to Microsoft services. Huntress says Microsoft ends a PRT on a password change only when the token was obtained with the password, and that this one came from a phished token. Microsoft's PRT page supports the rule in its own words: "If a user obtained the PRT with their password, the PRT is invalidated by Microsoft Entra ID when the user changes their password." Its list of events that invalidate a PRT is: a deleted or disabled user, a deleted or disabled device, that password change, and a TPM fault.

Huntress on why a password reset is not enough.
Microsoft's documentation: disabling the device, not only deleting it, invalidates the token.

Two further lines on the same page set the stakes. A PRT is valid for 90 days and is continuously renewed while the device is actively used; counted from 1 November, 90 days alone runs to 30 January 2027 (derived). And "Microsoft Entra Conditional Access policies aren't evaluated when PRTs are renewed." The page describes Microsoft's own client software and does not discuss an attacker's tool.

Drawn by this site from Microsoft Learn pages and Huntress's post.

What each containment step reaches, from Microsoft Learn and Huntress, read 4 December 2026

StepWhat the record says it endsWhat it does not establish
Reset the passwordA PRT obtained with the password; refresh tokens tied to the passwordHuntress: it does not remove this access, because the PRT did not come from the password
Revoke sessionsThe user's refresh tokensMicrosoft's PRT page does not list it as an event that invalidates a PRT. Application session cookies are the application's to revoke
Delete or disable the deviceThe PRT obtained on that deviceDoes not undo mail rules, MFA methods or other devices the attacker may have added
Disable the userThe user's PRT; no new tokensAccess tokens already issued last until expiry, 1 hour by default

One trap sits inside the word reset. Microsoft's refresh token table treats a token obtained without a password differently by route: it stays alive when the user changes the password, does a self service reset, or an admin resets it in the Azure portal, and is revoked when an admin resets it in the Microsoft Entra or Microsoft 365 admin centres, or revokes all refresh tokens. That table covers refresh tokens, not the PRT. A ticket that says "password reset" does not say which tokens ended.

The same applies to the label "registered device". Huntress says a PRT of this kind can satisfy Conditional Access policies that require a registered device. If anyone with a phished token can register one, the policy checks that a device exists, not that your organisation issued it. Neither source says whether these devices could satisfy a policy that requires a compliant device.

What the record states, and what it does not

Huntress's post of 3 December 2026, read 4 December

QuestionStatedNot stated
Scale468 registrations, 326 identities, 305 organisations in NovemberVictims outside Huntress's view; their countries or sectors
Device names46 MH- names appeared in more than one organisation; one in 24 organisations over 10 daysHow names are generated or why they repeat (Huntress says it does not know)
ProxiesSign-ins mostly from US and UK broadband; no address served more than two victimsThat any proxy company took part knowingly
Scripted sign-ins5 datacentre addresses against 361 accounts at 337 organisations: 1,186 failures, 197 successesHow those accounts' passwords or tokens were first obtained, in each case
MFAAdvises requiring MFA to register a deviceWhether victims had MFA, or whether that rule would have stopped these registrations
WhoThree operations grouped; no named threat actorAny attribution

On the scripted sign-ins, 86 per cent of the 1,383 attempts failed (derived). Among the successful sessions, 38 had an additional DESKTOP- device registered and 71 had other suspicious sign-in activity.

Detection by Microsoft's own product was partial in the slice Huntress could see. Of the organisations with an MH- device, 36 had Defender XDR connected to Huntress. They held 47 victims, and Defender raised an incident on 25: 53 per cent, leaving 22 with none (derived). Huntress notes that Defender only sees what a tenant licenses and connects, so this is not a test of Defender in general. On one account the device was registered at 02:39:15 UTC and Defender raised an incident at 02:44:19, 5 minutes 4 seconds later (derived), and contained the account. Microsoft had not classified any of the incidents when Huntress wrote.

The three operations as Huntress groups them

Operation and devicesWhat links themHuntress's confidence
A: MH- plus 16 hex, and part of the DESKTOP- plus eight setResidential proxy phishing sign-ins; the same rotating datacentre addressesHigh for MH-; moderate for DESKTOP-
B: username plus domain plus eight hex, then DESKTOP- plus sixBoth devices on the same 13 accounts, the second within 28 minutesHigh
C: Device- plus eight hex, and GraphSpy-DeviceSimilar method; datacentre sign-ins; no shared infrastructureLow

Where the sources differ or stop short

  • Delete, or delete or disable. Huntress says the device has to be deleted. Microsoft says deleting or disabling a device invalidates the PRT obtained on it. This site's suggestion: disable first if you need to keep the device record for investigation, note its identifiers, then delete.
  • The list of repeated names. Huntress says 46 MH- names appeared in more than one organisation. Its table of indicators names 27 (derived count), and its shorter top table skips one name that the indicator list puts at 11 organisations. Search for the pattern, not for the list.
  • First two weeks and whole month. Huntress's first chart totals 276 registrations, 184 identities and 168 organisations for the first two weeks. The 468, 326 and 305 are the November figures.

Huntress compares the chain with one Microsoft described in February 2025 for a group it calls Storm-2372: a device code token for the Authentication Broker, then a registered device, then a PRT (Microsoft's post). That page now carries an update dated 31 July 2026 assessing Storm-2372 as a sub-cluster of Midnight Blizzard, which Huntress does not mention. Neither source ties the November campaign to either name. Huntress says public tools produce the same defaults and that the overlap does not definitively connect them. Help Net Security's report of 4 December summarises the Huntress post and adds no separate evidence that this briefing relies on.

If you find one: containment in order

Huntress's instruction is short: delete the device, revoke the user's sessions, reset their credentials, and check registered devices, MFA methods and inbox rules. The order and the detail below are this site's suggestion, built on that and on Microsoft's pages on revoking access and managing devices.

Take this with you

Containment, this site's suggested order

  • Record the rogue device's name, device ID, object ID, registration time, owner and source address from the audit log before changing anything.
  • Disable the account while you work if the evidence shows current use.
  • Disable or delete every device the account holder does not recognise. A Cloud Device Administrator or Intune Administrator can do either.
  • Revoke sessions: use Revoke sessions on the user page, or the Microsoft Graph PowerShell command Revoke-MgUserSignInSession.
  • Reset the credentials, and in a hybrid estate follow Microsoft's on premises steps as well.
  • Review the account's MFA methods and inbox rules, and remove what the owner did not add.
  • End sessions inside applications that keep their own session cookies.
  • Search sign-in and audit logs from the registration time for what the account reached, and decide whether personal data was accessed.
  • Search every other account for the same device pattern, build, addresses and session behaviour.

Closing the door: the settings

Microsoft's guidance is to get as close as possible to a unilateral block on device code flow, after checking who still needs it. It describes a Conditional Access policy: include all users, exclude emergency access accounts, target resources set to All resources, set the condition Authentication Flows to Device code flow, grant Block access, start in report-only mode, then turn it on.

The resource choice matters here. Microsoft says enforcement of these policies on the Device Registration Service "applies only to policies which target all resources in the resource picker". A block scoped to a few named applications looks like a block and leaves registration outside it. Check the exclusions too. The same page tells organisations that use device code flow to register devices to exempt the Device Registration Service from such a policy. This site's reading: where that exclusion exists, the block does not cover the step this campaign depends on. Huntress puts this control at Entra ID P1 and above. Below that it advises security defaults, and Microsoft's security defaults page confirms they block device code flow.

Device registration settings, defaults as Microsoft's pages state them

SettingDefaultWhat to do
Users may join devices to Microsoft Entra IDAllLimit to the people or groups who enrol hardware
Maximum number of devices per user50Lower it to what people use
Require MFA to register or join devices (device setting)NoRequire MFA, preferably through the Conditional Access user action

If you use the Conditional Access user action Register or join devices, Microsoft's instructions say the older device setting must be set to No, or the policy is not properly enforced. This site's reading: because the person completing a device code approval is the real user, do not assume an MFA rule stops this attack: test it in report-only mode and block the flow itself. Huntress also advises requiring managed and compliant devices, sign-in location rules and, with Entra ID P2, risk based policies.

What to search for

These are the values Huntress prints that narrow a search fastest. Addresses are defanged here. The operator rotated addresses every few days and the fifth was still in use when Huntress wrote, so an empty result proves little. Huntress also lists many programmatic and old browser user agents; read them in its post.

Text
Device name pattern
^MH-[0-9A-F]{16}$

Reported OS builds, with no hardware identifiers
10.0.19041.928
10.0.19045.2006
10.0.19045.0
10.0.26100

Datacentre addresses for scripted sign-ins, in order of first use
181[.]214[.]147[.]42   BK Customers
92[.]62[.]251[.]249    FREAKHOSTING LTD
37[.]252[.]11[.]196    Artnet Sp. z o.o.
146[.]103[.]38[.]149   BK Customers
193[.]109[.]193[.]166  Datacamp Limited

Two of the repeated device names
MH-51FB898341CEA47A    24 organisations
MH-AD72DAD766A59028    18 organisations
Values as Huntress printed them in its post of 3 December 2026, read 4 December; addresses defanged by this site.

Huntress prints no queries. The three below are this site's suggestion, written in Kusto for a workspace that receives Entra audit and sign-in logs, using column names from Microsoft Learn. They have not been run against live data. The first looks for the name pattern in registrations; the build may appear in the changed properties or additional details, so read both.

kusto
AuditLogs
| where OperationName in ("Register device", "Add device")
| mv-expand Target = TargetResources
| extend DeviceName = tostring(Target.displayName)
| where DeviceName matches regex @"^MH-[0-9A-F]{16}$"
| project TimeGenerated, OperationName, Result, DeviceName, InitiatedBy,
          AdditionalDetails, Changes = Target.modifiedProperties, CorrelationId
This site's suggestion, not from Huntress. Column names from Microsoft Learn, read 4 December 2026.

The second finds sign-ins, failed or successful, from the five listed addresses. It rewrites each logged address into the defanged form before comparing.

kusto
let Listed = dynamic(["181[.]214[.]147[.]42", "92[.]62[.]251[.]249", "37[.]252[.]11[.]196",
                      "146[.]103[.]38[.]149", "193[.]109[.]193[.]166"]);
union SigninLogs, AADNonInteractiveUserSignInLogs
| where replace_string(IPAddress, ".", "[.]") in (Listed)
| project TimeGenerated, Type, UserPrincipalName, IPAddress, UserAgent,
          AppDisplayName, ResourceDisplayName, ResultType, SessionId
This site's suggestion. Addresses from Huntress; column names from Microsoft Learn.

The third shows where device code flow is used at all, including later requests in a session that began with it. Run it before blocking, to find legitimate users, and again afterwards. Compare each hit's address and user agent: Huntress says a switch from a normal browser to node or python-requests in the non-interactive log is a common sign.

kusto
union SigninLogs, AADNonInteractiveUserSignInLogs
| where AuthenticationProtocol == "deviceCode" or OriginalTransferMethod == "deviceCodeFlow"
| project TimeGenerated, Type, UserPrincipalName, IPAddress, UserAgent,
          AppDisplayName, ResourceDisplayName, ResultType, SessionId
This site's suggestion. Field values from Microsoft's sign-in documentation, read 4 December 2026.

The question to put to the last phishing ticket

A reset closes a ticket neatly. It changes a password and leaves a list of devices that nobody was asked to read. So take the last account your team recovered from a phishing alert and ask: who looked at the devices registered to it, and which of them did the owner recognise? If no one can answer, the incident is not shown to be over.

Key facts

Sources

  1. PrimaryDevice code phishing campaign post of 3 December 2026: counts, sequence, indicators, adviceHuntressaccessed 2026-12-04
  2. PrimaryPrimary Refresh Token concepts: lifetime, invalidation, renewalMicrosoft Learnaccessed 2026-12-04
  3. PrimaryRefresh tokens: what each password and revocation event revokesMicrosoft Learnaccessed 2026-12-04
  4. PrimaryRevoke user access: sessions, devices, access token lifetimeMicrosoft Learnaccessed 2026-12-04
  5. PrimaryManaging device identities: disable, delete, registration settingsMicrosoft Learnaccessed 2026-12-04
  6. PrimaryDevice authorisation grant (device code flow) protocolMicrosoft Learnaccessed 2026-12-04
  7. PrimaryBlock authentication flows with Conditional AccessMicrosoft Learnaccessed 2026-12-04
  8. PrimaryAuthentication flows condition, including enforcement on Device Registration ServiceMicrosoft Learnaccessed 2026-12-04
  9. PrimaryRequire MFA for device registrationMicrosoft Learnaccessed 2026-12-04
  10. PrimarySecurity defaults, including the device code flow blockMicrosoft Learnaccessed 2026-12-04
  11. PrimaryAuditLogs table columns used in the suggested queryMicrosoft Learnaccessed 2026-12-04
  12. PrimarySigninLogs table columns used in the suggested queriesMicrosoft Learnaccessed 2026-12-04
  13. PrimaryNon-interactive sign-in table columnsMicrosoft Learnaccessed 2026-12-04
  14. PrimaryAudit activity names for device registrationMicrosoft Learnaccessed 2026-12-04
  15. PrimaryFields inside an audit target resourceMicrosoft Learnaccessed 2026-12-04
  16. PrimarySign-in field values for device code flowMicrosoft Learnaccessed 2026-12-04
  17. PrimaryStorm-2372 device code phishing post, with updates of February 2025 and July 2026Microsoftaccessed 2026-12-04
  18. Reported byNews report of 4 December 2026 on the Huntress postHelp Net Securityaccessed 2026-12-04

Share this briefing

Know someone who owns this problem? Send it to them.

Related briefings

The briefing, in your inbox

Practitioner analysis of cyber and AI security news. No vendor noise.

How often

Every new briefing in one email, at 7am, or at 7am, 12:30pm and 6pm. Nothing is sent when nothing is new. Unsubscribe any time.