Skip to navigation

Threat reportCloud SecurityTL-2026-0561

ROADtools Misuse in Cloud Intrusions — Nation-State Abuse of the Open-Source Entra ID Offensive Toolkit (Unit 42)

highACTIVE

Unit 42 documents multiple nation-state actors — Cloaked Ursa (Midnight Blizzard/APT29), Curious Serpens (Peach Sandstorm/APT33), UTA0355, and Void Blizzard — integrating the open-source ROADtools framework (roadrecon, roadtx, roadlib) into Microsoft Entra ID intrusions. Operators use ROADtools to enumerate Entra ID tenants, register rogue devices, acquire and exchange OAuth refresh/access tokens including Primary Refresh Tokens (PRTs), and bypass MFA — all through legitimate Microsoft APIs that closely mimic typical administrative traffic and resist detection.

Key facts for ROADtools Entra ID abuse

IdentifiersTL-2026-0561
Also known asROADtools abuse, roadrecon enumeration, roadtx device registration, Entra ID PRT theft via roadtx
SeverityHIGH
Exploitation statusExploited in the wild
Affected productsMicrosoft Entra ID (Azure Active Directory); Microsoft Microsoft Graph API; Microsoft Azure AD Graph API (deprecated); Microsoft Azure Device Registration Service
Weaknesses (CWE)CWE-287, CWE-294, CWE-522, CWE-862
AttributionAPT29, APT33 (high confidence)
Nation-state nexusRussia, Iran
ToolsOAuth device code flow, ROADTools - S0684, roadlib, roadrecon, roadtx
MITRE ATT&CK techniquesT1069 Permission Groups Discovery, T1071 Application Layer Protocol, T1078 Valid Accounts, T1087 Account Discovery, T1098 Account Manipulation, T1110 Brute Force, T1136 Create Account, T1213 Data from Information Repositories, T1526 Cloud Service Discovery, T1528 Steal Application Access Token, T1530 Data from Cloud Storage, T1539 Steal Web Session Cookie and 5 more in the attack flow
MotivationESPIONAGE
Target sectorsgovernment, diplomatic, defense, energy, financial-services, technology, ngo, research
Target regionsNorth America, Europe, Middle East, Asia-Pacific
Detection rules9 (1 shown free)
Sources8 cited sources

Detection coverage for ROADtools Entra ID abuse

As of 2026-05-22, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0561 across Splunk SPL, Microsoft KQL and Sigma, covering 26 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: Bursty Microsoft Graph Enumeration with High-Privilege Scopes — C2/Lateral Movement Phase

Detects roadrecon-style bursty paginated enumeration of Entra ID directory objects (/users, /groups, /devices, /servicePrincipals, /applications, /policies/conditionalAccessPolicies, /directoryRoles) — over 100 Microsoft Graph calls from a single principal within 5 minutes, correlated with a recent OAuth token grant containing the high-privilege scope combination Directory.ReadWrite.All + Device.ReadWrite.All + Application.ReadWrite.All. This is the post-PRT lateral-movement signature documented by Unit 42 (TL-2026-0561) where the operator pivots from device registration to tenant-wide discovery and persistence pivots (service principal credential injection, conditional access modification).

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1087.004, T1069.003, T1526, T1580, T1071.001
  • Data sources: microsoft_graph_activity_logs, azure_aad_signinlogs
  • Severity: critical
  • Confidence: high

Splunk SPL

index=azure sourcetype="azure:graph:activity"
    requestUri IN ("*/users*", "*/groups*", "*/devices*", "*/servicePrincipals*", "*/applications*", "*/policies/conditionalAccessPolicies*", "*/directoryRoles*", "*/oauth2PermissionGrants*")
| bucket _time span=5m
| stats count AS graph_calls dc(requestUri) AS unique_endpoints values(clientRequestId) AS client_req_ids values(ipAddress) AS src_ips BY _time, userId
| where graph_calls > 100 AND unique_endpoints >= 4
| join type=left userId [
    search index=azure sourcetype="azure:aad:signin" earliest=-1h
    | rex field=authenticationProcessingDetails "Directory\.ReadWrite\.All"
    | rex field=authenticationProcessingDetails "Device\.ReadWrite\.All"
    | rex field=authenticationProcessingDetails "Application\.ReadWrite\.All"
    | eval high_priv_scope_combo=1
    | stats values(high_priv_scope_combo) AS high_priv_scope_combo BY userId
  ]
| eval severity=if(high_priv_scope_combo=1, "critical", "high")
| table _time userId graph_calls unique_endpoints src_ips client_req_ids high_priv_scope_combo severity

Microsoft KQL

let highPrivPrincipals = SigninLogs
    | where TimeGenerated > ago(1h)
    | extend scopes = tostring(AuthenticationProcessingDetails)
    | where scopes contains "Directory.ReadWrite.All" and scopes contains "Device.ReadWrite.All" and scopes contains "Application.ReadWrite.All"
    | distinct UserId;
MicrosoftGraphActivityLogs
| where TimeGenerated > ago(24h)
| where RequestUri has_any ("/users", "/groups", "/devices", "/servicePrincipals", "/applications", "/policies/conditionalAccessPolicies", "/directoryRoles", "/oauth2PermissionGrants")
| summarize graph_calls = count(),
            unique_endpoints = dcount(tostring(split(RequestUri, "?")[0])),
            client_req_ids = make_set(ClientRequestId, 50),
            src_ips = make_set(IPAddress, 25)
            by UserId, bin(TimeGenerated, 5m)
| where graph_calls > 100 and unique_endpoints >= 4
| extend high_priv_scope_combo = iff(UserId in (highPrivPrincipals), 1, 0)
| extend severity = iff(high_priv_scope_combo == 1, "critical", "high")
| project TimeGenerated, UserId, graph_calls, unique_endpoints, src_ips, client_req_ids, high_priv_scope_combo, severity
| order by graph_calls desc

Sigma

title: Bursty Microsoft Graph Enumeration from Single Principal — roadrecon Fingerprint
id: 7a2d4e9c-1c01-4561-aa01-roadrecon-burst003
status: experimental
description: Detects more than 100 Microsoft Graph calls within 5 minutes from a single principal spanning /users /groups /devices /servicePrincipals /applications endpoints — the roadrecon bulk enumeration fingerprint described in TL-2026-0561.
references:
    - https://unit42.paloaltonetworks.com/roadtools-cloud-attacks/
    - https://attack.mitre.org/techniques/T1087/004/
author: AII-Detector — ThreadLinqs Intelligence
date: 2026/05/22
tags:
    - attack.discovery
    - attack.lateral_movement
    - attack.t1087.004
    - attack.t1069.003
    - attack.t1526
    - attack.t1580
    - attack.t1071.001
logsource:
    product: azure
    service: MicrosoftGraphActivityLogs
detection:
    selection_endpoints:
        RequestUri|contains:
            - '/users'
            - '/groups'
            - '/devices'
            - '/servicePrincipals'
            - '/applications'
            - '/policies/conditionalAccessPolicies'
            - '/directoryRoles'
    timeframe: 5m
    condition: selection_endpoints | count() by UserId > 100
fields:
    - UserId
    - RequestUri
    - ClientRequestId
    - IPAddress
    - ResponseStatusCode
falsepositives:
    - Sanctioned identity governance scans (Microsoft Entra Permissions Management, Defender for Cloud Apps discovery jobs)
    - SIEM/HRIS reconcilers that paginate the directory on a schedule (allowlist by service principal objectId)
level: high

Known false positives:

  • Sanctioned governance scanners (Microsoft Entra Permissions Management, MCAS/Defender for Cloud Apps)
  • HRIS/IAM reconciliation jobs paginating the directory (allowlist service principal IDs)
  • Microsoft Graph PowerShell cmdlets executed during legitimate IR/admin work

Tuning notes: Baseline per-principal Graph call rate over 14 days and alert on >3 sigma deviation rather than a static 100-call threshold for low-volume tenants. Allowlist documented governance service principals. Promote to critical when correlated with a recent rogue device registration (TL-2026-0561-SPL-002) or high-privilege scope grant within 1 hour.

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)
  • Entra ID Sign-In with ROADtools / Python User-Agent — Exploitation Phase · unlock with TL Creds
  • Entra ID Rogue Device Registration — roadtx Defaults — Post-Exploitation Phase · unlock with TL Creds
  • High-Privilege OAuth Scope Combo Granted to Token Request — C2/Lateral Movement Phase · unlock with TL Creds
  • Sigma — Azure Device Registration Service POST From Non-Browser Client — Exploitation Phase · unlock with TL Creds
  • Sigma — roadrecon.db SQLite Artifact and ROADtools Process Tradecraft — Post-Exploitation Phase · unlock with TL Creds
  • Sigma — Bursty Microsoft Graph Enumeration Followed by Service Principal Credential Addition — C2/Lateral Movement Phase · unlock with TL Creds
  • ROADtools User-Agent on Entra ID Sign-In or Microsoft Graph Call — Exploitation Phase · unlock with TL Creds
  • Entra ID Rogue Device Registration — roadtx Default Fingerprint — Post-Exploitation Phase · unlock with TL Creds

Indicators of compromise for ROADtools Entra ID abuse

As of 2026-05-22, Threadlinqs Intelligence tracks 26 indicators of compromise for TL-2026-0561.

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

How ROADtools Entra ID abuse works

ROADtools is an open-source Python toolkit originally developed by Dirk-jan Mollema for offensive and defensive research against Microsoft Entra ID (formerly Azure AD). It comprises three primary modules — roadrecon for discovery and enumeration, roadtx for token acquisition/exchange and device registration, and roadlib as the low-level authentication and API library. Because every component speaks directly to legitimate Microsoft authentication endpoints (login.microsoftonline.com, graph.microsoft.com, enterpriseregistration.windows.net), ROADtools traffic is indistinguishable from normal Entra ID administrative activity unless defenders inspect granular signals such as user-agent strings, device registration metadata, OAuth scope combinations, and API call cadence.

Unit 42 (Palo Alto Networks) published a May 22, 2026 retrospective consolidating multiple public incidents in which state-sponsored threat actors leveraged ROADtools across the intrusion lifecycle. Microsoft first reported Cloaked Ursa (Midnight Blizzard / APT29 / Nobelium) abusing ROADtools in late 2021 after a spear-phishing initial-access stage to enumerate target Entra ID tenants. In 2023, Iranian-aligned Curious Serpens (Peach Sandstorm / APT33) followed password-spray initial access with roadrecon-based directory enumeration. In early 2025, Volexity reported on UTA0355 — a state-affiliated actor whose targeted phishing operation produced session-stealing artifacts whose token-handling behavior matched roadtx capabilities; the operator registered a rogue device into Entra ID and obtained an access token with full Microsoft Graph permissions. Void Blizzard activity has also been correlated to ROADtools-style tradecraft.

The end-to-end attack chain typically begins with credential theft (spear-phishing AiTM kits, password spray, or session cookie exfiltration). Once the operator holds a refresh token or session, roadtx is used to authenticate to the Azure Device Registration Service (urn:ms-drs:enterpriseregistration.windows.net) and register a new rogue device — defaults produce OS=Windows, OS Version=10.0.19041.928, and device names of the form DESKTOP-<RANDOM 8 DIGITS>. The registration returns a device-bound Primary Refresh Token (PRT) plus session transport key. With a device-bound PRT the operator can silently mint new access tokens for arbitrary first-party Microsoft scopes (Microsoft Graph, Azure AD Graph, Exchange Online, SharePoint, Teams) without re-triggering interactive sign-in or MFA challenges, achieving programmatic, tenant-wide persistence that survives standard credential reset.

With authenticated access in hand, roadrecon performs bulk enumeration of users, groups, directory roles, devices, service principals, applications, OAuth permission grants, conditional access policies, and tenant settings, storing results in a local SQLite database (roadrecon.db) and exposing a Flask/React web UI for offline analysis. Operators frequently target high-privilege OAuth scopes — Directory.ReadWrite.All, Device.ReadWrite.All, Application.ReadWrite.All, AuditLog.ReadWrite.All, Policy.ReadWrite.All — which together enable directory manipulation, persistence via service-principal credential injection, and audit-log tampering. roadtx also supports OAuth flow abuse including device code phishing, OBO (on-behalf-of) token exchange, and refresh-token replay across resource boundaries.

Detection is non-trivial because every ROADtools interaction is a legitimate API call from Microsoft's perspective. Reliable hunting pivots include: (1) Device Registration Service events from non-corporate locations or with default 10.0.19041.928 / DESKTOP- device names; (2) sign-ins or graph API calls with user-agent strings containing 'python', 'requests', 'urllib', 'curl', or literal 'roadtools'; (3) bursty Microsoft Graph enumeration of /users, /groups, /devices, /servicePrincipals, /applications endpoints exceeding tenant baselines; (4) OAuth token grants containing the high-privilege scope combinations above; (5) Entra ID Protection 'unfamiliar sign-in properties' or 'anonymous IP' risk events on accounts immediately followed by device registration. Recommended mitigations include enforcing token protection (client claims that bind refresh tokens to a device), Conditional Access policies that restrict device code flow and require compliant/Intune-managed devices for privileged scopes, strict OAuth app review with delegated/application-permission audits, PIM/just-in-time elevation for directory roles, and SIEM-side correlation of AzureActiveDirectorySignInLogs, MicrosoftGraphActivityLogs, AuditLogs, and OfficeActivity.

MITRE ATT&CK techniques by tactic:

Discovery

T1069 Permission Groups Discovery; T1087 Account Discovery; T1526 Cloud Service Discovery; T1580 Cloud Infrastructure Discovery

Command and Control

T1071 Application Layer Protocol

Initial Access

T1078 Valid Accounts; T1566 Phishing

Persistence

T1098 Account Manipulation; T1136 Create Account

Credential Access

T1110 Brute Force; T1528 Steal Application Access Token; T1539 Steal Web Session Cookie

Collection

T1213 Data from Information Repositories; T1530 Data from Cloud Storage

lateral-movement

T1550 Use Alternate Authentication Material

defense-impairment

T1578 Modify Cloud Compute Infrastructure

Resource Development

T1588 Obtain Capabilities

Remediation for ROADtools Entra ID abuse

Immediate actions

  • Enable Conditional Access policy requiring compliant or Hybrid Azure AD Joined devices for all Microsoft Graph and Azure management scopes
  • Block or scope down OAuth device code flow via Conditional Access (auth method: deviceCode -> block) except for explicitly enrolled service accounts
  • Audit all devices registered in the last 90 days; quarantine those with OS Version 10.0.19041.928 and DESKTOP-<8 digit> naming pattern that lack Intune compliance
  • Revoke refresh tokens and sign-in sessions (Revoke-AzureADUserAllRefreshToken / Revoke-MgUserSignInSession) for any user accounts implicated in suspicious device registrations
  • Hunt for sign-ins and Graph API calls with user-agent containing python, python-requests, urllib, curl, or literal roadtools
  • Review consented OAuth applications holding Directory.ReadWrite.All, Device.ReadWrite.All, Application.ReadWrite.All, AuditLog.ReadWrite.All, Policy.ReadWrite.All

Workarounds

  • Where token protection cannot yet be enabled, restrict Microsoft Graph high-privilege scopes via app consent policies and admin-consent workflow
  • Block sign-ins from non-corporate ASNs / anonymizer (Tor) IPs via Conditional Access named locations + risk-based policies
  • Disable user-initiated device registration where business need does not exist (Entra ID -> Devices -> Device settings -> Users may register their devices: None or Selected)

Longer-term hardening

  • Enforce Entra ID token protection (sign-in session token binding / client claims) on all sensitive resources to defeat refresh-token replay from non-original devices
  • Adopt phishing-resistant MFA (FIDO2 / Windows Hello for Business / certificate-based) to break AiTM session theft prerequisites
  • Deploy Privileged Identity Management (PIM) with just-in-time elevation, approval workflows, and access reviews for all Entra ID directory roles
  • Centralize AzureActiveDirectorySignInLogs, MicrosoftGraphActivityLogs, AuditLogs, IdentityRiskEvents, and OfficeActivity into a SIEM with correlation rules for ROADtools tradecraft
  • Adopt continuous access evaluation (CAE) so revoked sessions/tokens propagate to resource providers within minutes rather than hours
  • Implement Microsoft Entra Workload Identity Protection and Defender for Cloud Apps anomaly policies tuned for unusual Graph enumeration volume

Affected and fixed versions

  • Microsoft — Entra ID (Azure Active Directory)
    Vulnerable versions: all tenants without token protection / phishing-resistant MFA / device code flow restriction
  • Microsoft — Microsoft Graph API
    Vulnerable versions: v1.0; beta
  • Microsoft — Azure AD Graph API (deprecated)
    Vulnerable versions: all
    Fixed in: deprecated; migrate to Microsoft Graph
  • Microsoft — Azure Device Registration Service
    Vulnerable versions: urn:ms-drs:enterpriseregistration.windows.net

Timeline of ROADtools Entra ID abuse

  • Dirk-jan Mollema releases locked-ioc-23 (locked-ioc-24) as an open-source Entra ID / Azure AD enumeration and offensive research toolkit on GitHub.
  • Microsoft Threat Intelligence reports Cloaked Ursa (Midnight Blizzard / APT29 / Nobelium) using locked-ioc-23 for Entra ID enumeration following spear-phishing initial access.
  • Dirk-jan Mollema releases locked-ioc-26, adding OAuth token acquisition, exchange, refresh-token replay, and Entra ID device registration to the locked-ioc-23 framework.
  • Microsoft publishes Peach Sandstorm (Curious Serpens / APT33) campaign report describing password-spray initial access followed by locked-ioc-23/locked-ioc-24 enumeration of victim Entra ID tenants.
  • locked-ioc-23 msgraph branch last updated; community forks maintain partial functionality as Microsoft accelerates Azure AD Graph deprecation.
  • Volexity discloses UTA0355 targeted phishing campaign that stole refresh tokens, registered a rogue device with Entra ID via Azure Device Registration Service, and obtained Microsoft Graph access tokens with full-tenant scope — tradecraft matching locked-ioc-26 token-management capabilities.
  • Void Blizzard activity correlated to ROADtools-style tradecraft against NGO and government targets in Europe.
  • Unit 42 publishes 'Paved With Intent: locked-ioc-23 and Nation-State Tactics in the Cloud', consolidating multi-actor abuse pattern, hunting queries (Cortex XQL), and defensive guidance.
  • As of 2026-05-29, this remains ACTIVE: the Unit 42 "Paved With Intent" report (May 22, 2026) is verified and locked-ioc-23 stays freely available on GitHub, abusing legitimate Entra ID APIs with no possible patch (config-only defenses). Attributed actors APT29, APT33, UTA0355 and Void Blizzard are all currently operating, so the technique is a live concern.

Sources cited for ROADtools Entra ID abuse

More from APT29

Previous and next in cloud

Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

[ 0 threats ] [ 0 det ] [ CRIT: 0 ] [ HIGH: 0 ]
// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats