BloodHound Basics: Map Active Directory Attack Paths in Your Own Lab


Active Directory is a maze. Users belong to groups, groups belong to other groups, computers trust each other, and permissions pile up over years. An attacker does not need to find a single magic vulnerability — they just need one chain of small permissions that leads to Domain Admin. BloodHound is the tool that draws that chain for you, and learning it in your own lab is one of the best ways to understand how real Windows networks get owned.

What BloodHound Does

BloodHound collects information about your Active Directory — users, groups, computers, sessions, group policies, and the permissions connecting them — and turns it into a graph. You can then ask questions like "show me every path from this user to Domain Admin" and get a visual answer in seconds.

The collector is called SharpHound. It runs on a Windows machine inside the domain and gathers the data. The BloodHound Community Edition server stores the graph, and you explore it in a browser. The free edition covers everything a beginner needs.

Setting It Up in Your Lab

Build a small lab first: one Windows Server as a domain controller, one or two Windows clients, and a few test users and groups. Never run SharpHound against a network you do not own — that is exactly the kind of thing that gets people in trouble. Your lab only.

  1. Install BloodHound CE on a Linux machine with Docker — the project ships a ready-made setup, and it runs on one command.
  2. On a domain-joined Windows machine in your lab, run the SharpHound collector. It saves a zip file full of JSON data.
  3. Upload that zip into BloodHound, wait for the graph to build, and open the web interface.

Reading Your First Attack Path

Start with the built-in queries. "Find All Domain Admins" shows who holds the keys. "Shortest Path to Domain Admin" from any user shows the exact chain. Common beginner findings include:

  • A helpdesk user who can reset a service account's password, and that service account is a Domain Admin. One password reset is the whole attack.
  • A user logged into a server where a Domain Admin also has a session, which means stealing a session token gets you admin rights.
  • Nested groups that nobody remembers, where a contractor's group is buried three levels deep inside a privileged group.

Each path is a fix list. Remove the bad permission, and the path disappears.

How Defenders Use It

The real value of BloodHound is on the defense side. Run it regularly in your own environment, fix the shortest paths first, and watch your attack surface shrink. Pair it with the principle of least privilege: nobody should hold permissions they do not actually use, and service accounts should never be Domain Admins.

BloodHound does not hack anything by itself. It shows you the map. What you learn from that map — in your own lab, on systems you own — is what makes you better at defending real networks.

Comments

Popular Posts