bloodhound — collect the graph, find the path to DA#
Dump AD into a graph, then let Cypher walk you from a foothold to Domain Admin.
Get creds first (cheat nxc), roast/relay along the path (cheat ad).
Collect (the wrappers)#
bhce-collect <domain> <user> <pass> [dc-ip]— the one you want. Runsbloodhound-ce-python -d … -u … -p … [--dc dc-ip] -c all --zip→ drops a timestamped.zipfor the CE GUI.bh-collect <domain> <user> <pass> [dc-ip]— legacy collector (bloodhound-python … -dc dc-ip -c all --zip). Only for the old BloodHound.app +bh-start. Note the DC flag is-dc, not--dc.- Both default happily without the DC arg — omit it and the collector finds the DC via DNS. Pass it when name resolution is flaky.
bhce-collect corp.local jdoe 'Summer2026!' 10.10.11.50 # CE zip, targeted DC
bhce-collect corp.local jdoe 'Summer2026!' # let it autodiscover
Raw collector — the flags that matter#
When the wrapper's defaults don't fit (weird DNS, Kerberos-only, quiet runs), call it directly:
bloodhound-ce-python -d corp.local -u jdoe -p 'pw' -ns 10.10.11.50 -c all --zip
| Flag | Meaning |
|---|---|
-d |
AD domain (FQDN, e.g. corp.local) |
-u / -p |
username / password (add --hashes LM:NT for pass-the-hash) |
-dc |
domain controller hostname to query (not an IP) |
-ns |
nameserver IP for DNS — set to the DC's IP when AD DNS won't resolve |
-c all |
every collection method incl. sessions/LoggedOn — thorough but loud (touches every host) |
-c DCOnly |
LDAP-only, talks to the DC alone — quiet, use in stealth engagements |
-k / --zip |
Kerberos auth (needs a TGT) / bundle JSON into one importable zip |
-c allsprays SMB/RPC at every box to map sessions — noisy. On a careful engagement start with-c DCOnly, then widen.
Ingest into the CE GUI#
htb-bloodhound— starts the CE stack (Neo4j + BloodHound CE) and opens it. GUI at http://localhost:8081, Neo4j at http://localhost:7474 (neo4j/bloodhound).htb-bloodhound-downstops it.- In the CE web UI: ⚙ → Administration → File Ingest → Upload the
.zip. Wait for the ingest job to finish (progress bar), then the graph is queryable. - Legacy path only:
neo4j-start→bh-start(BloodHound.app) → drag thebh-collectzip onto the window.
Mark your wins, then chase the path#
Tag the principals you already control as Owned (right-click node → Mark as Owned, or via Cypher) so path queries can start from them:
MATCH (u:User {name:"JDOE@CORP.LOCAL"}) SET u.owned=true
Hunt — starter Cypher#
Paste into the CE Cypher tab. DA group objectid ends -512, Domain Users -513, Enterprise Admins -519.
Shortest paths from anything Owned → Domain Admins (the money query):
MATCH p=shortestPath((n {owned:true})-[*1..]->(g:Group))
WHERE g.objectid ENDS WITH "-512"
RETURN p
Kerberoastable users (have an SPN — offline-crackable, cheat ad):
MATCH (u:User {hasspn:true})
RETURN u.name, u.serviceprincipalnames
AS-REP roastable (pre-auth disabled — grab a hash with no creds):
MATCH (u:User {dontreqpreauth:true}) RETURN u.name
Unconstrained delegation (coerce a DC → full compromise), non-DC boxes:
MATCH (c:Computer {unconstraineddelegation:true}) RETURN c.name
Who can DCSync the domain (GetChanges + GetChangesAll → dump every hash):
MATCH p=(n)-[:DCSync|GetChanges|GetChangesAll]->(:Domain) RETURN p
Kerberoastable → Domain Admin paths (which roast actually gets you there):
MATCH p=shortestPath((u:User {hasspn:true})-[*1..]->(g:Group))
WHERE g.objectid ENDS WITH "-512"
RETURN p
Where Domain Users are local admin (quick lateral wins for any account):
MATCH p=(g:Group)-[:AdminTo]->(c:Computer)
WHERE g.objectid ENDS WITH "-513"
RETURN p
Owned principals with admin rights somewhere (map your blast radius):
MATCH p=(n {owned:true})-[:AdminTo]->(c:Computer) RETURN p
The graph is only as fresh as your zip — re-run
bhce-collectafter you own a new box and re-mark it Owned, then re-run the Owned→DA path. New edges appear as your foothold widens.