Print-ready version Back to the article
HMMNM Security
hmmnm.com

Security

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

By Prabhu Kalyan Samal | Published 23 November 2026 | 7 min read

https://hmmnm.com/bloodhound-first-run-map-the-shortest-path-from-domain-user-to-domain-admin/

8 min read · 1,435 words

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:

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:

# 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

HMMNM Security · Independent security research and education · hmmnm.com
Printed from https://hmmnm.com/bloodhound-first-run-map-the-shortest-path-from-domain-user-to-domain-admin/
© 2026 HMMNM Security. For personal and internal team use. Please link to the original article when sharing.