attacking-entra-id-with-roadtools
Was er macht
Dieses Tool hilft dabei, Microsoft-Entra-ID-Systeme (früher Azure AD) zu untersuchen und sich Zugriff darauf zu verschaffen. Es kann Informationen über Benutzer und Einstellungen sammeln und Zugriffstokens manipulieren, um auf andere Ressourcen zuzugreifen.
Wann du ihn nutzt
- ✓Bei autorisierten Sicherheitstests von Microsoft-Entra-ID-Systemen.
- ✓Wenn du kompromittierte Zugangsdaten hast und das System erkunden musst.
- ✓Um zu testen, wie Zugriffstokens zwischen verschiedenen Microsoft-Diensten verwendet werden.
Link zum Skill
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/attacking-entra-id-with-roadtools/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ich möchte ein Microsoft-Entra-ID-System untersuchen, für das ich eine Berechtigung habe, und dafür die Zugangsdaten verwenden, die ich erhalten habe.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Das Tool verbindet sich mit dem Microsoft-Entra-ID-System, sammelt Daten zu Benutzern, Gruppen und Einstellungen und kann Zugriffstokens beschaffen oder austauschen. Mit diesen Tokens kannst du auf andere Dienste zugreifen, als wärst du ein legitimer Benutzer.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Attacking Entra ID with ROADtools
Authorized use only: ROADtools interacts with live Microsoft Entra ID (Azure AD) tenants and can register devices, mint and exchange tokens, and enumerate directory objects. Use it solely against tenants you own or are explicitly authorized in writing to test. Unauthorized access to a cloud tenant is illegal.
Overview
ROADtools (by Dirk-jan Mollema) is the de facto offensive toolkit for Microsoft Entra ID. It has two main components:
- ROADrecon — authenticates to Entra ID, gathers the full directory into a local SQLite database via the Azure AD Graph API, and serves an Angular GUI to explore users, groups, roles, applications, service principals, conditional-access policies, and device objects offline. A plugin system exports to BloodHound and analyzes CA policies.
- roadtx (ROADtools Token eXchange) — acquires and exchanges Entra-issued tokens across the many OAuth flows (ROPC, device code, auth-code, refresh-token exchange, app/federated app), performs device registration, and handles Primary Refresh Token (PRT) operations including PRT-based SSO and cookie minting. Its FOCI (Family of Client IDs) awareness lets a refresh token for one first-party client be redeemed for another resource.
Together they cover the Discovery phase against cloud identity: enumerate the tenant (T1087.004 Account Discovery: Cloud Account) and obtain/manipulate the tokens needed to reach Microsoft Graph, Azure Resource Manager, and other resources. ROADrecon's offline database makes recon stealthy and fast; roadtx makes token theft, PRT abuse, and cross-resource pivoting practical.
When to Use
- During an authorized Azure / Entra ID red-team or cloud penetration test.
- When you have a foothold credential, refresh token, or PRT and need to enumerate the tenant.
- When you must pivot a token from one resource (e.g., Azure CLI) to another (e.g., Microsoft Graph).
- When validating that conditional-access, device-compliance, and token controls actually constrain an attacker.
- When mapping Entra attack paths (export to BloodHound for graph analysis).
Prerequisites
- Written authorization and defined scope for the target tenant.
- A starting credential: username/password (no MFA flows), a device code session, a refresh/access token, or a registered device's PRT.
- Python 3.7+ (roadtx Selenium flows need a matching geckodriver/Firefox).
# Core install (roadlib is a shared dependency, pulled in automatically)
python -m pip install roadrecon
python -m pip install roadtx
# Verify
roadrecon --help
roadtx --help
Objectives
- Authenticate to Entra ID via the appropriate flow (device code preferred for MFA).
- Gather the full directory with ROADrecon and analyze it in the GUI.
- Export the directory to BloodHound and run CA-policy analysis plugins.
- Acquire tokens with roadtx and exchange refresh tokens across resources/clients.
- Demonstrate PRT-based SSO and document the resulting access.
MITRE ATT&CK Mapping
| ID | Tactic | Official Technique Name | Role in this skill |
|---|---|---|---|
| T1087.004 | Discovery | Account Discovery: Cloud Account | ROADrecon enumerates tenant users/accounts |
| T1069.003 | Discovery | Permission Groups Discovery: Cloud Groups | ROADrecon enumerates Entra groups and roles |
| T1538 | Discovery | Cloud Service Dashboard | GUI exploration of tenant configuration |
| T1550.001 | Defense Evasion / Lateral Movement | Use Alternate Authentication Material: Application Access Token | roadtx refresh-token exchange across resources |
| T1528 | Credential Access | Steal Application Access Token | roadtx PRT/token acquisition |
Workflow
Step 1: Authenticate with ROADrecon
Pick the flow that matches your foothold. Device code supports MFA; ROPC (-u/-p) does not.
# Username/password (legacy, no MFA)
roadrecon auth -u user@tenant.onmicrosoft.com -p 'Password123!'
# Device-code flow (supports MFA)
roadrecon auth --device-code
# From a stolen access or refresh token
roadrecon auth --access-token <JWT>
roadrecon auth --refresh-token <refresh_token>
# From a PRT (with session key) for SSO-grade access
roadrecon auth --prt <prt> --prt-sessionkey <session_key>
Authentication writes .roadtools_auth in the working directory.
Step 2: Gather the directory
# Full gather into roadrecon.db (default)
roadrecon gather
…
Häufige Fragen
Brauche ich eine Berechtigung, um dieses Tool zu verwenden?
Ja, es ist unbedingt nötig, für jedes System eine schriftliche Genehmigung zu haben. Die Nutzung ohne Erlaubnis ist illegal.
Was sind „Tokens“?
Tokens sind wie digitale Schlüssel, die deine Identität belegen und dir den Zugriff auf verschiedene Dienste ermöglichen, ohne dass du dich jedes Mal neu anmelden musst.
Kann ich das bei jedem Microsoft-Konto verwenden?
Nein, das Tool ist nur für Microsoft-Entra-ID-Systeme (Azure AD) gedacht, für die du eine ausdrückliche Testberechtigung hast.
Details
Originalbeschreibung des Autors
Enumerate Microsoft Entra ID (Azure AD) tenants with ROADrecon and acquire, exchange, and abuse tokens (including primary refresh tokens) with roadtx. Use for authorized red-team enumeration of a tenant's directory objects or for token-based identity attacks against Entra ID you are explicitly authorized to test.
Beliebtheit
- GitHub-Sterne
- 35k
- Platz im Ranking
- #7672
- Lizenz
- Apache-2.0
- Aktualisiert
- 31.8.2026
Kommentare
- …
Weitere Skills aus diesem Repository
abusing-dpapi-for-credential-access
35kGibt deinem KI-Agenten fertige Anweisungen für eine bestimmte Aufgabe, damit er sie besser und schneller erledigt.
abusing-shadow-credentials-for-privesc
35kBringt deinem KI-Agenten bei, klare und gut strukturierte Texte zu schreiben.
achieving-cmmc-level-2-compliance
35kHilft deinem Agenten, eine Umgebung für CMMC-Level-2-Konformität vorzubereiten. Setzt Sicherheitsanforderungen um und verwaltet nötige Dokumentation.
acquiring-disk-image-with-dd-and-dcfldd
35kHilft deinem Agenten, exakte Festplattenkopien zu erstellen. Wichtig, damit bei Ermittlungen keine Informationen verloren gehen oder verändert werden.
Ähnliche Skills
technical-documentation
394kHilft deinem Agenten, klare technische Dokumentation und Agenten-Anleitungen zu schreiben und zu prüfen, damit Menschen und KI-Tools leicht folgen können.
architecture-decision-records
280kLässt deinen Agenten wichtige Entscheidungen zur Projektstruktur festhalten. So bleibt nachvollziehbar, warum etwas so gewählt wurde, und die Änderungen sind klar dokumentiert.
code-tour
280kLässt deinen Agenten Schritt-für-Schritt-Erklärungen des Codes mit genauen Datei- und Zeilenangaben erstellen. Nützlich für Einführungen, Erklärungen und Reviews.