Skip to navigation

Threat reportPhishingTL-2026-7394

M365 Device Code Phishing Campaign Drives Hundreds of Rogue Entra ID Device Registrations (PRT Persistence)

highACTIVE

Huntress reports an active device code phishing campaign (NDA lures impersonating Microsoft and Adobe) that captures tokens via the Microsoft Authentication Broker and redeems them against the Device Registration Service to register rogue Entra ID devices holding Primary Refresh Tokens.

By

Key facts

IdentifiersTL-2026-7394
SeverityHIGH
First disclosed
Affected productsMicrosoft Microsoft Entra ID / Microsoft 365 (device code flow, Device Registration Service)
ToolsGraphSpy, ROADTools - S0684
MITRE ATT&CK techniquesT1078.004 Valid Accounts: Cloud Accounts, T1090.002 Proxy: External Proxy, T1098.005 Account Manipulation: Device Registration, T1528 Steal Application Access Token, T1550.001 Use Alternate Authentication Material: Application Access Token, T1566 Phishing, T1583 Acquire Infrastructure, T1588.002 Obtain Capabilities: Tool, T1684.001 Social Engineering: Impersonation
MotivationUNKNOWN
Target sectorscross-sector
Target regionsNorth America, Europe
Detection rules9 (1 shown free)
Sources11 cited sources

Detection coverage

As of 2026-12-03, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-7394 across Splunk SPL, Microsoft KQL and Sigma, covering 12 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: TL-2026-7394 Entra ID Device Code Sign-in from Scripted Client or Known Campaign IP

Detects OAuth device code flow sign-ins in Entra ID where the client is a programmatic user agent (python-requests, python-httpx, node-fetch, axios, undici, HeadlessChrome, node) or the source IP is one of the five Operation A scripted-redemption IPs from the Huntress M365 device code phishing campaign (181.214.147.42, 92.62.251.249, 37.252.11.196, 146.103.38.149, 193.109.193.166). The attacker redeems the victim-approved device code with python-requests (2.32.5 / 2.34.2) from datacenter hosting (BK Customers, FREAKHOSTING, Artnet, Datacamp), handing them access and refresh tokens via the Microsoft Authentication Broker. Aggregated per source IP so multi-account fan-out is visible.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1528, T1078.004, T1566
  • Data sources: Splunk index=azure sourcetype=azure:monitor:aad (SignInLogs, NonInteractiveUserSignInLogs), Microsoft Entra ID SigninLogs, Microsoft Entra ID AADNonInteractiveUserSignInLogs
  • Severity: high
  • Confidence: high

Splunk SPL

index=azure sourcetype="azure:monitor:aad" (category=SignInLogs OR category=NonInteractiveUserSignInLogs) earliest=-24h properties.originalTransferMethod=deviceCodeFlow
| eval src_ip='properties.ipAddress', ua='properties.userAgent', user='properties.userPrincipalName', app='properties.appDisplayName', err='properties.status.errorCode'
| eval ioc_ip=if(match(src_ip,"^(181[.]214[.]147[.]42|92[.]62[.]251[.]249|37[.]252[.]11[.]196|146[.]103[.]38[.]149|193[.]109[.]193[.]166)$"),1,0), scripted_ua=if(match(ua,"(?i)^(python-requests|python-httpx|node-fetch|axios|undici)|^node$|HeadlessChrome"),1,0)
| where ioc_ip=1 OR scripted_ua=1
| stats count AS events, dc(user) AS users, values(user) AS user_list, values(ua) AS user_agents, values(app) AS apps, values(err) AS error_codes, min(_time) AS first_seen, max(_time) AS last_seen BY src_ip
| convert ctime(first_seen) ctime(last_seen)

Microsoft KQL

union isfuzzy=true SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(24h)
| where OriginalTransferMethod =~ 'deviceCodeFlow'
| where IPAddress in ('181.214.147.42', '92.62.251.249', '37.252.11.196', '146.103.38.149', '193.109.193.166') or UserAgent matches regex @'(?i)^(python-requests|python-httpx|node-fetch|axios|undici)|^node$|HeadlessChrome'
| project TimeGenerated, UserPrincipalName, IPAddress, UserAgent, AppDisplayName, AppId, ResultType, ResultDescription, Location, AutonomousSystemNumber, CorrelationId
| order by TimeGenerated desc

Sigma

title: Entra ID Device Code Sign-in from Scripted Client or TL-2026-7394 Infrastructure
id: 7f3c1a52-8d4e-4b1a-9c6e-2a5d0e7b4c11
status: experimental
description: Detects device code flow sign-ins using programmatic user agents or originating from the datacenter IPs used to redeem phished device codes in the Huntress M365 device code phishing campaign.
references:
  - https://www.huntress.com/blog/device-code-phishing-m365-registrations
  - https://www.microsoft.com/en-us/security/blog/2025/02/13/storm-2372-conducts-device-code-phishing-campaign/
author: Threadlinqs Team
date: 2026-12-03
tags:
  - attack.credential-access
  - attack.t1528
  - attack.initial-access
  - attack.t1078.004
  - attack.t1566
logsource:
  product: azure
  service: signinlogs
detection:
  selection_flow:
    OriginalTransferMethod: deviceCodeFlow
  selection_ip:
    IPAddress:
      - '181.214.147.42'
      - '92.62.251.249'
      - '37.252.11.196'
      - '146.103.38.149'
      - '193.109.193.166'
  selection_ua:
    UserAgent|startswith:
      - 'python-requests/'
      - 'python-httpx/'
      - 'node-fetch/'
      - 'axios/'
      - 'undici'
  selection_ua_headless:
    UserAgent|contains: 'HeadlessChrome'
  condition: selection_flow and (selection_ip or 1 of selection_ua*)
falsepositives:
  - Legitimate automation or CLI tooling that intentionally uses device code flow
  - Developers using Azure CLI or PowerShell on headless hosts
level: high

Known false positives:

  • Sanctioned automation or developer tooling (Azure CLI, PowerShell, scripts) that legitimately uses device code flow with python or node clients
  • Shared egress IPs or security scanners that reuse a scripted client against several accounts

Tuning notes: Adjust the index and sourcetype to your Microsoft Cloud Services add-on or Event Hub ingestion. Allow-list known automation service accounts and approved egress IPs. Refresh the IP list as the actor rotates hosting (BK Customers leases ended 2026-11-09). Where device code flow is not needed, block it with Conditional Access and treat any hit as high priority.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • TL-2026-7394 Device Code Flow Success Against Microsoft Authentication Broker · unlock with TL Creds
  • TL-2026-7394 Multiple Entra ID Device Registrations by One Identity Within One Hour · unlock with TL Creds
  • TL-2026-7394 Scripted Client Fan-out Across Multiple Entra ID Accounts from One IP · unlock with TL Creds
  • TL-2026-7394 Entra ID Sign-in from Known Operation A Hosting Infrastructure · unlock with TL Creds
  • TL-2026-7394 Entra ID Audit Event Referencing Known Rogue Device Names · unlock with TL Creds
  • TL-2026-7394 Primary Refresh Token Sign-in from Scripted Client or Campaign IP · unlock with TL Creds
  • TL-2026-7394 Rogue Entra ID Device Registration (MH- Names, GraphSpy, ROADtools Default Builds) · unlock with TL Creds
  • TL-2026-7394 Sign-in Activity from Rogue Entra ID Device (MH- / GraphSpy-Device) · unlock with TL Creds

Indicators of compromise

As of 2026-12-03, Threadlinqs Intelligence tracks 12 indicators of compromise for TL-2026-7394.

Sample indicators (3 of 12)

  • IP address: 181.214.147[.]42
  • IP address: 92.62.251[.]249
  • IP address: 37.252.11[.]196

Defanged, TLP:CLEAR. Full set of 12 indicators: unlock with TL Creds.

12 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

In November 2026 Huntress observed 468 rogue device registrations across 326 identities in 305 organizations; access survives password resets and no actor attribution is made.

Huntress documented an active campaign abusing the OAuth device code flow in Microsoft 365. Victims receive a phishing email impersonating Microsoft and Adobe that presents a supposedly protected Non-Disclosure Agreement from a named sender. The victim is led to approve a device code sign-in, which hands access and refresh tokens to the attacker through the Microsoft Authentication Broker application. The victim's first interactive sign-ins show error AADSTS50199 (a CMSI interrupt). Victim sign-ins for the phishing step came from residential proxy IPs, mostly in the US and UK, from providers including DataImpulse, Oxylabs, NodeMaven, IPRoyal and Shifter; no single IP served more than two victims.

The attacker then redeems the token from a new IP (in Poland) using python-requests against the Device Registration Service and registers a rogue Windows device, typically using the public ROADtools toolkit with its default build 10.0.19041.928 (Windows 10 2004, out of servicing). The device carries no hardware identifiers and yields a Primary Refresh Token (PRT), which is used to sign in to Azure AD and Microsoft Office and reach OneDrive, SharePoint and Exchange. Because the PRT is bound to the rogue device, access survives password resets; deleting the device and revoking sessions is the reliable way to cut it off.

In November 2026 Huntress counted 468 rogue device registrations across 326 identities in 305 organizations, mostly on weekdays; 46 MH- device names appeared in more than one organization. Huntress separates the activity into three operations. Operation A uses device names matching ^MH-[0-9A-F]{16}$ (a deliberate departure from the ROADtools default DESKTOP-+8 naming, with some DESKTOP-+8 devices linked at moderate confidence), the ROADtools default build, python-requests/2.32.5 and residential proxies. Operation B names devices username+domain+8 hex, then DESKTOP-+6, uses ROADtools build 10.0.19041.928 then 10.0.19045.2006, headless Chrome on Linux and python-requests/2.34.2, hit the same 13 accounts, and registered a second device within 28 minutes of the first. Operation C (low confidence) uses Device-+8 hex and GraphSpy-Device names, GraphSpy-style tooling, build 10.0.26100 and datacenter IPs, with no shared infrastructure with A or B.

Operation A scripted sign-ins came from five rotating datacenter IPs (BK Customers, FREAKHOSTING LTD, Artnet Sp. z o.o., Datacamp Limited) that touched 361 accounts in 337 organizations with 1,186 failed and 197 successful sign-ins; two of the BK Customers IPs came from blocks assigned to the same hosting customer within the same second on October 7. The lease on those two blocks ended on the morning of November 9 and the Artnet IP went into use less than two hours later; the Datacamp IP was still in use at publication. Of the affected organizations, only 36 had Defender connected to Huntress (47 victims); Defender raised incidents on 25, titled 'User session compromised by device code phishing (attack disruption)', with alerts such as 'Suspicious Entra device join or registration'. In one example the device was registered at 02:39:15 UTC and the Defender incident was raised about five minutes later.

Huntress makes no attribution. The chain resembles Microsoft's February 2025 Storm-2372 reporting (device code phishing against the Authentication Broker followed by device registration for a PRT), and Unit 42 has documented ROADtools registrations with the same build, but because ROADtools and GraphSpy are public, Huntress does not link the campaign to Storm-2372. No CVE is involved; this is abuse of legitimate authentication flows.

MITRE ATT&CK techniques by tactic:

Initial Access

T1078.004 Valid Accounts: Cloud Accounts; T1566 Phishing

Defense Evasion

T1078.004 Valid Accounts: Cloud Accounts; T1684.001 Social Engineering: Impersonation

Command and Control

T1090.002 Proxy: External Proxy

Persistence

T1098.005 Account Manipulation: Device Registration

Credential Access

T1528 Steal Application Access Token

Lateral Movement

T1550.001 Use Alternate Authentication Material: Application Access Token

Resource Development

T1583 Acquire Infrastructure; T1588.002 Obtain Capabilities: Tool

Remediation

Immediate actions

  • Delete rogue devices in Entra ID (names matching ^MH-[0-9A-F]{16}$, ROADtools default builds with no hardware IDs, GraphSpy-Device)
  • Revoke the affected user's sessions and refresh tokens (revokeSignInSessions), then reset credentials
  • Audit the affected account's registered devices, MFA methods and inbox rules
  • Search sign-in logs for 181.214.147.42, 92.62.251.249, 37.252.11.196, 146.103.38.149 and 193.109.193.166

Workarounds

  • Without Entra ID P1: enable Security Defaults
  • User awareness: do not enter device codes from unsolicited NDA or document emails

Longer-term hardening

  • Restrict who can register or join devices and cap devices per user
  • Require MFA to register or join a device
  • With Entra ID P1 or higher: block device code authentication flow and require managed and compliant devices, MFA and location rules
  • With Entra ID P2: add risk-based Conditional Access
  • Hunt audit logs for device registrations with builds 10.0.19041.928, 10.0.19045.2006, 10.0.19045.0, 10.0.26100 lacking hardware IDs
  • Hunt sign-ins for programmatic user agents (python-requests, python-httpx, node, node-fetch, undici, axios, Dsreg/10.0)

Affected and fixed versions

  • Microsoft — Microsoft Entra ID / Microsoft 365 (device code flow, Device Registration Service)
    Vulnerable versions: Tenants permitting device code flow and unrestricted device registration

Timeline

  • Microsoft publishes Storm-2372 device code phishing report; a Feb 14 update describes Authentication Broker client use, device registration and PRT acquisition, the chain Huntress finds similar
  • Cloud Security Alliance publishes a research note on a surge in OAuth device code phishing, showing the technique was already trending before this campaign
  • Two BK Customers IP blocks ([IP address withheld] and [IP address withheld]) are assigned to the same hosting customer within the same second, per Huntress
  • Month-long window in which Huntress observed 468 rogue device registrations across 326 identities in 305 organizations (mostly on weekdays)
  • Lease on the two BK Customers blocks ends that morning; Artnet IP [IP address withheld] goes into use less than two hours later, showing deliberate infrastructure rotation
  • End of the November 2026 observation window; 46 MH- device names seen in more than one organization
  • Huntress publishes the campaign analysis; [IP address withheld] (Datacamp Limited) still in use at publication

Sources cited

AI-drafted from 11 cited sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats