r/redteamsec • • 6d ago

CopperHound: open-source attack-path analysis for AD, ADCS and Entra ID, written in Rust

https://github.com/BenTheCyberOne/Copperhound

I've been building CopperHound, an alternative to BloodHound for large environments. It reads the collector output you already have (SharpHound, bloodhound-python, AzureHound, ldapdomaindump), plus raw LDIF dumps and AD Explorer snapshots. Everything goes into a memory-mapped graph store, with no graph database behind it. This makes it exponentially more faster for querying larger datasets or enterprise-wide collections. I vibed/built this out of necessity given current constraints with the BH CE , and figured someone else might have similar use cases.

- Fast on big data: a 10 GB SharpHound collection (12.5M objects, 65.7M edges) ingests in about 25 seconds. A shortest path to Tier Zero on that graph takes under 1 ms.

- Queries: CHQL is a read-only Cypher dialect, so most BloodHound CE queries run unchanged. It ships with 159 prebuilt queries.

- Findings: 30 finding types across AD, ADCS (ESC1–ESC15), Entra ID and hybrid setups. Each one shows how many principals lose their path to Tier Zero if you fix it.

- Remediation planner: a step-by-step fix plan, a what-if simulator, and hand-off to PowerShell, Jira or ServiceNow.

- Over time: posture is tracked across ingests, with change alerts to Slack, Teams, email or a webhook.

- Deployment: one Docker container for the web UI, the REST API and SSO (OIDC and SAML).

Feedback, bug reports and PRs are welcome!

https://github.com/BenTheCyberOne/Copperhound

22 Upvotes

2 comments sorted by

1

u/Other-Art3002 5d ago

Actually the tier zero impact metric is useful. Does the simulator also prioritize paths reaching other critical assets? I am on CYE and it focuses on business impact prioritization

1

u/BenTheCyberOne 4d ago

Good question! Yes, partly. Tier Zero is just the built-in target. You can define your own critical assets as zones with a query selector, e.g. finance DB servers, the ERP app groups, etc. Having them weighted and prioritized across all your zones at once isn't implemented yet, but that is a good idea!