红蓝攻防
点击放大


![build]()
ADPathFinder is an attack mapping tool for pentesters and red teamers. It analyses SharpHound data and unifies it with OpenGraph plugins to surface attack paths to high-value targets such as Domain Admins and Domain Controllers, starting from low-pri users and computers. MSSQLHound and ConfigManBearPig are supported natively, extending co across AD, ADCS, SCCM, and MSSQL.
> Blog: OpenGraph attack-path mapping in BloodHound CE
<p align="center">
<a href="docs/images/demo-slideshow.mp4">
<img src="docs/images/demo-slideshow.webp" alt="ADPathFinder CLI demo showing grouped risk findings and attack paths" width="850">
</a>
</p>
Jump to: Quickstart · Co · How it works · Reports · Configuration · Contributors
| Area | Examples |
| --- | --- |
| Core AD | Escalation paths, delegation, admin rights, BadSuccessor, exposed high-value sessions |
| Passwords | Weak passwords, blank passwords, reuse, username similarity, LM hash use, Kerberoast and AS-REP exposure paired with weak passwords |
| ADCS | ESC-style certificate template and CA risks |
| MSSQL (MSSQLHound OpenGraph data) | Logins, linked servers, impersonation, relay, and pri escalation paths |
| SCCM (ConfigManBearPig OpenGraph data) | Takeover and relay paths, PXE-enabled distribution points, and management point policy retrieval |
| Across domains | Trusts, shared passwords, and escalation paths between domains |
neo4j://localhost:7687.<details open>
<summary><strong>Install from source</strong></summary>
</details>
<details>
<summary><strong>Configure BloodHound API access</strong></summary>
This stores the BloodHound CE API settings used for import and delete operations.
</details>
<details>
<summary><strong>Import SharpHound data</strong></summary>
Multiple SharpHound and OpenGraph plugin zip files can be imported in one command:
</details>
<details>
<summary><strong>Import data and run a full audit</strong></summary>
Use only the zip files you have. The --pwd value is not the AD domain; it is a comma separated list of company, brand, or organisation terms to flag in cracked passwords.
</details>
<details>
<summary><strong>Run a domain audit</strong></summary>
</details>
<details>
<summary><strong>Run a password audit</strong></summary>
Use --unsafe-report only when reports should include cleartext passwords.
</details>
<details>
<summary><strong>Write diagnostics</strong></summary>
</details>
| Stage | What happens |
| --- | --- |
| Ingest | Merges SharpHound and supported OpenGraph zips into one graph. MSSQLHound and ConfigManBearPig data are supported directly |
| Map | Finds the shortest paths from users and computers to high-value targets. You can configure the edge set to remo edges like HasSession |
| Group | Groups accounts that share a path, so repeated paths are reported as one finding instead of many near-duplicates |
| Pair | Compares NTDS hashes and hashcat potfiles with graph data to show which paths are usable during the assessment |
| Layer | Reports standalone findings such as SMB signing disabled or default pri groups, and raises the se when the same host or group also sits on a path to high-value targets |
| Render | Writes HTML reports with SVG path graphs, mitigation notes, PowerShell steps, and remediated state tracking, plus text, JSON, and diagnostics outputs |
<p align="center">
<img src="docs/images/workflow.svg" alt="ADPathFinder workflow diagram" width="850">
</p>
<p align="center">
<a href="docs/images/ad-report-slideshow.mp4">
<img src="docs/images/ad-report-slideshow.webp" alt="ADPathFinder AD report walkthrough showing o, mitigation, and confirmation steps" width="850">
</a>
</p>
<p align="center">
<a href="docs/images/password-audit-slideshow.mp4">
<img src="docs/images/password-audit-slideshow.webp" alt="ADPathFinder password audit report walkthrough showing cracked categories, policy compliance, password lengths, and roastable accounts" width="850">
</a>
</p>
ADPathFinder reads config.ini from the working directory. can also be set with ADPF_* en .
Run this to configure BloodHound CE API access for imports and deletes:
See Configuration on the wiki for all options, Neo4j connection settings, file permissions, and example configs. See Excluded relationships for filtering attack path output.
Reports are written to report_<domain>/, for example report_training.local/.
| Output | Purpose |
| --- | --- |
| <domain>_AD_report.html | HTML report for clients with grouped findings, path graphs, mitigation notes, steps, and remediated state tracking |
| <domain>_domain_audit.txt / <domain>_domain_audit.json | Text and JSON domain audit outputs for review, automation, and later analysis |
| <domain>_password_audit.html / <domain>_password_audit.txt / <domain>_password_audit.json | Password audit outputs when NTDS hashes and a hashcat potfile are provided |
| <domain>_*_unsafe.* | Optional unsafe reports generated only with --unsafe-report; these may include cleartext passwords |
| diagnostics.json | Optional run statistics and debugging data generated with --diagnostics |
Handle NTDS data, potfiles, and generated reports as sensiti data. The --unsafe-report flag writes cleartext passwords into the output files; only use it when you specifically need cleartext in the report, and store the resulting _unsafe files accordingly.
See sample_reports/ for example domain audit and password audit output.
Checks are small classes that register with a decorator, declare their data requirements, and return finding dictionaries. Platform checks declare their datasource, so normal AD audits skip MSSQL or SCCM checks when the matching OpenGraph data is not present.
See Adding new checks, Working with OpenGraph plugins, and the Framework Guide on the wiki.
pip install -e ".[test]" then pytest tests/ -m "not neo4j and not integration" runs the fast framework tests without Neo4j. See tests/README.md for the Neo4j fixture suite and the full local test workflow.
ADPathFinder builds on data collected by other projects; thanks to their authors and the SpecterOps team:
开发语言:Python
Star 数:243
该项目属于红蓝攻防方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Attack path mapping for Active Directory, ADCS, SCCM, and MSSQL using BloodHound CE + OpenGraph data.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | AD-PathFinder - Attack path mapping for Active Directory, ADCS, SC |
| 所属分类 | 红蓝攻防 |
| 发布作者 | admin |
| 发布时间 | 2026-10-06 00:45:59 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 502 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |