mapping-attack-paths-with-bloodhound-ce
它能做什么
这个工具可以帮你找到黑客可能用来访问重要系统的隐藏路径。它会梳理用户和计算机之间的连接关系,以及它们各自拥有的权限。
适用场景
- ✓在获得授权的前提下,测试网络安全性时。
- ✓想了解攻击者如何一步步获得更高权限时。
- ✓想弄清楚本地系统与云端系统混合的网络存在哪些风险时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/mapping-attack-paths-with-bloodhound-ce/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我列出成为管理员的最短路径。”
每周 5 个新技能,1 分钟读完。
工作原理
它会用程序收集本地网络和云端网络中用户与权限的信息,然后把这些信息整理成可视化的图谱,展示可能的攻击路线。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Mapping Attack Paths with BloodHound CE
Legal Notice: This skill is for authorized security testing, red-team engagements, and educational purposes only. Active Directory and Entra ID reconnaissance reveals privilege-escalation chains that lead to full domain/tenant compromise. Use only against environments you own or have explicit written authorization (rules of engagement) to test. Unauthorized use violates the Computer Fraud and Abuse Act and equivalent laws.
Overview
BloodHound Community Edition (CE) is SpecterOps's graph-based attack-path-management platform. It models security principals (users, computers, groups, OUs, GPOs, Entra ID users/groups/apps/roles) as nodes and the permissions, group memberships, sessions, trusts, and ACLs between them as edges. By framing Active Directory and Entra ID as a directed graph, BloodHound turns the question "can this low-privileged account reach Domain Admins / Global Administrator?" into a shortest-path query that finds escalation chains a human reviewer would miss.
BloodHound CE replaced the legacy Neo4j-only BloodHound with a containerized stack: a Go API server, a PostgreSQL relational store, and a Neo4j graph database, all behind a modern web UI and REST API. Data is gathered by two collectors maintained by SpecterOps:
- SharpHound (the CE/.NET collector, run on or against a domain-joined Windows host) gathers on-prem AD: objects, group membership, ACLs, sessions, local-admin rights, trusts, GPOs, certificate services (ADCS), and LAPS readability. It emits a ZIP of JSON.
- AzureHound (a cross-platform Go binary) gathers Entra ID and Azure Resource Manager data via the Microsoft Graph and Azure REST APIs: users, groups, app registrations, service principals, directory roles, subscription/role assignments, and key vaults. It emits a single JSON file.
As of recent CE releases, when both an AD domain and its synced Entra ID tenant are ingested, BloodHound automatically renders Hybrid Attack Paths — chains that cross the on-prem/cloud boundary (for example, an on-prem user synced to a cloud account that holds a privileged Entra role). Mapped to MITRE ATT&CK, the core activity is T1069 – Permission Groups Discovery, supported by T1087 (Account Discovery), T1482 (Domain Trust Discovery), and T1018 (Remote System Discovery).
When to Use
- During an authorized internal penetration test or red-team engagement after obtaining any domain foothold or Entra credentials
- When you need to prioritize escalation routes from owned principals to Tier-0 assets (Domain Admins, Global Administrator)
- When assessing hybrid identity risk where on-prem AD is synced to Entra ID
- During purple-team exercises to validate that detections fire on collection and on path-execution steps
- When producing attack-path evidence and remediation guidance for a defensive client
Prerequisites
- Authorized scope covering AD/Entra reconnaissance
- A foothold: any valid domain user (for SharpHound) and/or valid Entra credentials or a token (for AzureHound)
- Docker + Docker Compose on the analysis workstation
- The collectors:
# Deploy BloodHound CE (pulls Postgres, Neo4j, and the BloodHound API) curl -L https://ghst.ly/getbhce -o docker-compose.yml docker compose pull docker compose up -d # Reveal the randomly generated initial admin password docker compose logs bloodhound | grep -i "Initial Password" # AzureHound (download the release binary for your OS from the GitHub releases page) # https://github.com/SpecterOps/AzureHound/releases chmod +x ./azurehound # SharpHound CE collector: download SharpHound.zip from the BloodHound CE # web UI (Administration -> Download Collectors), transfer to a domain-joined host.
Objectives
- Deploy BloodHound CE and authenticate to the web UI and API
- Collect AD data with SharpHound and Entra data with AzureHound
- Ingest both datasets and mark compromised principals as Owned
- Run built-in analysis (Shortest Path to Domain Admins, Kerberoastable accounts, ADCS abuse)
- Author custom Cypher queries for bespoke and hybrid attack paths
- Prioritize and document escalation routes for the engagement report
MITRE ATT&CK Mapping
| ID | Technique | Application in this skill |
|---|---|---|
| T1069 | Permission Groups Discovery | Enumerating AD/Entra group memberships and the permissions between principals to build the attack graph |
…
常见问题
什么是“攻击路径”?
攻击路径是攻击者从有限权限一步步走到完全控制某个系统或网络所经过的一系列步骤。
使用这个工具需要是安全专家吗?
建议具备基础的网络和安全知识,因为这个工具是用于获得授权的安全测试。
可以在任何网络上使用吗?
不可以,你只能在自己拥有或获得明确书面授权测试的网络上使用这个工具。
详情
作者的原始描述
Collect Active Directory data with SharpHound and Entra ID data with AzureHound, ingest into BloodHound Community Edition, and analyze on-prem, cloud, and hybrid attack paths using built-in queries and custom Cypher. Use during authorized red-team or penetration-test engagements to map privilege-escalation chains toward domain/tenant compromise.
热度
- GitHub 星标
- 35k
- 排名
- #8158
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。