본문으로 건너뛰기
Skillpedia
문서화35k · #7672

attacking-entra-id-with-roadtools

하는 일

이 도구는 Microsoft Entra ID(이전 이름 Azure AD) 시스템을 조사하고 접근하도록 돕습니다. 사용자와 설정에 대한 정보를 수집하고, 액세스 토큰을 조작해 다른 리소스에 접근할 수 있습니다.

사용하는 경우

  • ✓승인된 Microsoft Entra ID 보안 테스트를 진행할 때.
  • ✓침해된 자격 증명을 가지고 있어 시스템을 탐색해야 할 때.
  • ✓서로 다른 Microsoft 서비스 간에 액세스 토큰이 어떻게 사용되는지 테스트할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/attacking-entra-id-with-roadtools/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“권한이 있는 Microsoft Entra ID 시스템을 제가 확보한 자격 증명으로 조사해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 Microsoft Entra ID 시스템에 연결해 사용자, 그룹, 설정에 대한 데이터를 수집합니다. 액세스 토큰을 얻거나 교환할 수 있으며, 이 토큰으로 정상 사용자처럼 다른 서비스에 접근할 수 있습니다.

기술 내용 (원본 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


…
자주 묻는 질문

이 도구를 사용하려면 허가가 필요한가요?

네, 어떤 시스템에서든 이 도구를 사용하려면 서면 승인이 꼭 필요합니다. 허가 없이 사용하면 불법입니다.

'토큰'이란 무엇인가요?

매번 로그인하지 않아도 여러 서비스에 접근할 수 있게 해 주고, 본인임을 증명하는 디지털 열쇠와 같습니다.

아무 Microsoft 계정에나 사용할 수 있나요?

아니요, 이 도구는 명시적인 테스트 허가를 받은 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
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬