Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Practice library / Active Directory and Windows attacks

Workbook · Hard · 5 hoursFree account

Active Directory Enumeration & Attacks

Enumerate AD with BloodHound, escalate through roasting, ACL and delegation abuse, and reach domain dominance with DCSync.

  • active-directory
  • bloodhound
  • powerview
  • kerberoasting
  • dacl-abuse
On this page 6 sections
  1. ·About This Workbook
  2. ·Chapter 1 — Initial Enumeration
  3. Locked: Chapter 2 — Foothold Attacks
  4. Locked: Chapter 3 — Privilege Escalation
  5. Locked: Chapter 4 — Domain Dominance
  6. Locked: Key terms

Before you start

After the first domain foothold, every Active Directory engagement becomes a graph problem. A single user account can see thousands of objects, and one of them — a service principal with a weak password, an overprivileged ACL, a resource-based constrained delegation, or an exposed certificate template — usually leads to Domain Admin. BloodHound and PowerView turn that graph into a picture, and Kerberoasting, ASREP roasting, DACL abuse, DCSync and ADCS misconfigurations turn a picture into a privileged shell. This workbook strings those techniques into one methodology, from the first LDAP query to the moment the domain is yours. Each chapter also names the event ID or log source a defender reads to catch the same step, so attack and detection grow together.

What You'll Learn

  • Enumerate users, groups, sessions, and trusts from a single foothold
  • Turn a foothold into more access with roasting and credential attacks
  • Escalate privileges by abusing ACLs, delegation, and certificate templates
  • Reach and abuse domain dominance with DCSync and persistence techniques

About This Workbook

Active Directory Basics covered the first foothold: finding the domain controller, reading users and groups, and a first look at Kerberoasting. This workbook goes further. It strings the individual AD techniques into a methodology: how an authorised tester moves from one domain user to Domain Admin, one misconfiguration at a time, and what a defender sees at each step.

Each chapter explains one stage of that path, works through one example end to end, and ends with practice questions. The matching labs — AD Enumeration with BloodHound, Kerberos Attacks, and DACL Attacks in Active Directory — give you the hands-on steps. Each lab tells you how to build its own target.

Authorised lab targets only. Every command and technique in this workbook targets an isolated Active Directory lab domain, such as the CORP.LOCAL domain used in the matching labs, never a production network. Run these techniques only against a domain that you own or have written permission to test. The worked examples use example names and addresses (CORP.LOCAL, alice, 10.0.0.10). To repeat them, build a small AD lab on your own machine with a domain controller, a few users and groups, and an SPN account, then replace the example names and addresses with your own.

Chapter 1 — Initial Enumeration

You will be able to:

  • Explain what a tester learns from a foothold before touching any exploit
  • Read BloodHound's graph to find the shortest path to a privileged group
  • Name the log sources a defender uses to catch enumeration

Explanation

A foothold is one authenticated domain account, nothing more: no admin rights, no special group membership. From that single account, an authorised tester can read most of the domain, because Active Directory is a directory. Users must be able to look up other users, groups and computers for normal applications to work. The tester's first job is not to exploit anything. It is to map the domain: who exists, what groups they belong to, where they are logged on, and which domains trust this one.

Three questions drive this stage:

QuestionWhat it finds
Users and groupsWho has privileged group membership (Domain Admins, Enterprise Admins, and custom admin groups)
Sessions and rightsWhich computers a privileged user is logged on to, and who has local admin rights where
Trust mappingWhich other domains or forests trust this domain, and in which direction

A tester can answer all three with PowerView (a PowerShell module) run from a domain-joined machine, or with BloodHound collectors run from Linux or Windows. BloodHound stores the results as a graph in a Neo4j database and draws the shortest path from the tester's current user to any target group. A path of five or six steps — "Alice is a member of IT_HELPDESK, which has GenericAll on the SERVER01 computer object, which a Domain Admin is logged on to" — is often invisible to a human reading raw group membership, but obvious once BloodHound draws it as a graph.

BloodHound finds attack paths, not single vulnerabilities. One weak link rarely matters; a short chain of ordinary-looking rights usually does. Read the whole path before deciding what to attack first.

A defender cannot stop a user from querying their own directory — that would break the domain. Detection here relies on volume and pattern, not on blocking any single query:

  • A domain controller can log an expensive or inefficient LDAP search (Event ID 1644) when LDAP diagnostics logging is enabled. A single account that suddenly runs many broad, unindexed searches is a signal.
  • SAMR enumeration (the protocol tools such as crackmapexec use to list users over SMB) from one workstation account against many hosts in a short window is unusual for a normal user.
  • Many organisations plant honeytoken accounts: accounts that no legitimate process ever queries. BloodHound and PowerView read every account they can see, including the honeytoken, so a query or logon attempt against it is a strong signal.

Worked example

This walks through reading a BloodHound collection, the way a tester reads it after ad-bloodhound finishes collecting data.

# Collect data as a low-privileged domain user (see the AD Enumeration with
# BloodHound lab for the full collection walkthrough)
bloodhound-python -u alice -p 'Lab2026!' -d CORP.LOCAL -ns 10.0.0.10 -c All

Example output:

INFO: Found AD domain: corp.local
INFO: Connecting to LDAP server: dc01.corp.local
INFO: Found 42 users
INFO: Found 9 groups
INFO: Found 12 computers
INFO: Done in 00M 18S

After uploading the resulting JSON files to BloodHound, the tester runs the built-in query "Shortest Paths to Domain Admins" from their own user. BloodHound draws a chain such as:

alice@CORP.LOCAL --(MemberOf)--> IT_SUPPORT
IT_SUPPORT --(GenericAll)--> FILE01.CORP.LOCAL
FILE01.CORP.LOCAL --(HasSession)--> jsmith_adm@CORP.LOCAL
jsmith_adm@CORP.LOCAL --(MemberOf)--> DOMAIN ADMINS

Read right to left: Alice is a member of IT_SUPPORT, which has GenericAll (full control) over the computer object FILE01. A Domain Admin account, jsmith_adm, has an active session on FILE01. If the tester can get code running as local admin on FILE01 — which GenericAll over the computer object allows, through a technique called resource-based constrained delegation (Chapter 3) — they can steal jsmith_adm's credentials from that session. No single step here is a software vulnerability. Each step is an ordinary administrative convenience; the chain is the problem.

Practice questions

1. Why can a low-privileged domain user read almost the entire directory, including group membership of Domain Admins?

Answer

By default, Active Directory grants all authenticated users read access to most directory attributes, because many ordinary applications need to look up users, groups and computers. Reading is not the same as changing. This default is why enumeration is nearly always possible from any foothold, and why a tester starts there.

2. BloodHound draws a path: bob --(MemberOf)--> HELPDESK then HELPDESK --(ForceChangePassword)--> jdoe_adm. In plain words, what can Bob do, and what should he check before using this right?

Answer

Bob, through the HELPDESK group, can reset jdoe_adm's password without knowing the current one. Before using it, he should confirm jdoe_adm's privileges and check whether resetting the password would be noticed immediately (for example, if jdoe_adm is actively used) — an authorised test still aims to cause the least disruption needed to prove the path.

3. A defender cannot block ordinary LDAP reads without breaking the domain. Name two things a defender can still monitor to catch a BloodHound-style collection.

Answer

Any two of: an unusual volume of LDAP searches from one account in a short time (Event ID 1644 for expensive searches), SAMR enumeration against many hosts from one source, or any query or logon attempt against a honeytoken account that no real process should ever touch.

Sign in to continue

4 more sections are for signed-in members. It is free: sign in with Google.

Related