मुख्य सामग्री पर जाएँ
Skillpedia
डॉक्यूमेंटेशन35k · #7672

attacking-entra-id-with-roadtools

यह क्या करती है

यह टूल Microsoft Entra ID (पहले Azure AD के नाम से जाना जाता था) सिस्टम की जांच करने और उसमें access पाने में मदद करता है। यह users और settings की जानकारी जमा कर सकता है, और access tokens को बदलकर दूसरे resources तक पहुंच सकता है।

कब इस्तेमाल करें

  • ✓अनुमति प्राप्त security tests के दौरान Microsoft Entra ID सिस्टम पर।
  • ✓जब आपके पास compromised credentials हों और सिस्टम को खंगालना हो।
  • ✓यह जांचने के लिए कि access tokens अलग-अलग Microsoft services के बीच कैसे इस्तेमाल होते हैं।

Skill का लिंक

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/attacking-entra-id-with-roadtools/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/attacking-entra-id-with-roadtools/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं एक Microsoft Entra ID सिस्टम की जांच करना चाहता हूं जिसकी मुझे अनुमति है, और उसके लिए मेरे पास जो credentials हैं उन्हें इस्तेमाल करके।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

टूल Microsoft Entra ID सिस्टम से connect होता है, users, groups और settings का डेटा इकट्ठा करता है, और access tokens प्राप्त या exchange कर सकता है। ये tokens आपको दूसरी services तक इस तरह पहुंच देते हैं जैसे आप कोई असली user हों।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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


…
अक्सर पूछे जाने वाले सवाल

क्या इस टूल का इस्तेमाल करने के लिए अनुमति चाहिए?

हां, किसी भी सिस्टम पर इस टूल को चलाने से पहले लिखित अनुमति लेना बेहद जरूरी है। बिना अनुमति इसका इस्तेमाल गैरकानूनी है।

'tokens' क्या होते हैं?

Tokens डिजिटल चाबी जैसे होते हैं जो साबित करते हैं कि आप कौन हैं, और जिनसे आप हर बार login किए बिना अलग-अलग services का इस्तेमाल कर सकते हैं।

क्या मैं इसे किसी भी Microsoft account पर इस्तेमाल कर सकता हूं?

नहीं, यह टूल केवल उन Microsoft Entra ID (Azure AD) सिस्टम पर इस्तेमाल के लिए है जिनकी जांच करने की आपको साफ अनुमति है।

जानकारी

लेखक का मूल विवरण

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.

repo: mukul975/Anthropic-Cybersecurity-Skills

लोकप्रियता

GitHub स्टार
35k
रैंकिंग में स्थान
#7672
लाइसेंस
Apache-2.0
अपडेट की गई
31/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills