← Course Index

3.1 Identity Attack Path Mapping:
BloodHound Enterprise, SharpHound Collectors & ACL Abuse Remediation

Modeling Identity Relationships as Attack Graphs, Finding Choke Points, Hunting ACL & Delegation Paths, and Severing Privilege Escalation

Module 3: Identity & PAM Attack Path Management BloodHound & SharpHound

1. Graph-Based Identity Attack Path Management

Attackers rarely compromise high-privilege accounts in a single step; instead, they chain together seemingly minor misconfigurations—nested group memberships, overly permissive Access Control Lists (ACLs), service accounts, session placements, and identity relationships—to reach critical targets. BloodHound (including BloodHound Community Edition and BloodHound Enterprise) models identities, groups, computers, GPOs, domains, and cloud/identity relationships as a graph so defenders can see multi-hop escalation paths before adversaries exploit them.

Focus on Choke Points: Rather than fixing isolated low-impact permissions at random, identify choke points—accounts, groups, or ACL edges that sit along many escalation paths—so a small number of targeted fixes severs large clusters of paths to Tier-0 / high-value assets.
DATA COLLECTORS SharpHound Groups, ACLs, Trusts, GPOs, Sessions, Local Admins Identity & Cloud Collectors Entra ID & Connected Identity Relationships ATTACK GRAPH & PATH ENGINE Nodes & Directed Edges Users • Groups • Computers • ACLs • Sessions Path & Choke Point Analysis Shortest Paths • Privilege Zones • Cypher Posture & Exposure Tracking Prioritize fixes • Verify path removal Monitor newly introduced drift REMEDIATION ACTIONS • Prune Excessive DACL Rights • Flatten Risky Group Nesting • Harden Tier-0 Boundaries • Isolate Admin Sessions • Re-Collect & Confirm Fix
Figure 3.1: Identity Attack Path Management Workflow from Collection and Graph Analysis to Targeted Remediation and Verification.

2. High-Impact ACL & Identity Edges to Audit and Remediate

Permission / Relationship What It Allows on a Target Object Defensive Remediation Approach
GenericAll Broad full control over the target object—such as resetting user passwords, modifying group members, or changing attributes. Audit who holds GenericAll on privileged users, groups, GPOs, or computers; remove unnecessary grants and enforce least privilege.
GenericWrite / WriteDacl / WriteOwner Allows modifying key attributes/scripts (GenericWrite), altering ACL permissions (WriteDacl), or taking ownership (WriteOwner). Restrict write/ACL/owner permissions on sensitive objects to explicit Tier-0/administrative roles; protect privileged accounts via AdminSDHolder/tiering.
AddMember / ForceChangePassword Enables adding a principal to a group (AddMember) or forcing a password reset on a user account (ForceChangePassword). Review delegated group/helpdesk permissions; separate standard user/helpdesk scope from Tier-0 and privileged service accounts.
ReadLAPSPassword / Sessions / Local Admin Exposes local administrator credentials, active privileged sessions, or administrative access on hosts. Scope LAPS read rights tightly, avoid logging privileged accounts onto standard workstations, and separate admin tiers.
Safe Collection Hygiene: When running SharpHound or directory collectors in enterprise environments, follow authorized change control, avoid noisy collection methods unless needed and approved, and store collected JSON/ZIP graph archives securely because they map your environment's privilege structure.

3. Practical SharpHound, Cypher & ACL Auditing Examples (10 Scenarios)

Example 1: Running SharpHound to Collect All Standard AD Data

Command Prompt / PowerShell (SharpHound.exe) — Collecting AD Graph Data
SharpHound.exe -c All --zipfilename ad_collection.zip
SAMPLE OUTPUT
[+] Initializing SharpHound at 09:40:12 on 11/26/2026
[+] Resolved Collection Methods: Group, LocalAdmin, Session, Trusts, ACL, Container, RDP, ObjectProps, DCOM, PSRemote, SPNTargets
[+] Status: 1,420 objects finished (+473 100%)/s -- Using 48 MB RAM
[+] Enumeration finished in 00:00:08.412
[+] Compressing data to .\ad_collection.zip

Example 2: Collecting Only ACLs and Group Memberships with SharpHound

Command Prompt (SharpHound.exe) — Targeted ACL & Group Collection
SharpHound.exe -c ACL,Group --zipfilename acl_groups.zip
SAMPLE OUTPUT
[+] Initializing SharpHound at 09:42:05 on 11/26/2026
[+] Resolved Collection Methods: Group, ACL
[+] Status: 1,420 objects finished (+710 100%)/s -- Using 36 MB RAM
[+] Enumeration finished in 00:00:03.184
[+] Compressing data to .\acl_groups.zip

Example 3: Cypher Query — Shortest Path from Non-Privileged Users to High-Value Groups

Cypher (Neo4j / BloodHound) — Finding Shortest Escalation Paths to High-Value Targets
MATCH (u:User), (g:Group {highvalue: true}),
      p = shortestPath((u)-[*1..8]->(g))
WHERE u <> g
RETURN p
LIMIT 50;
SAMPLE OUTPUT
# Returned Graph Paths (3 hops):
(HELPDESK_APP@CORP.EXAMPLE.COM) -[:GenericAll]-> (SERVER-OPERATORS@CORP.EXAMPLE.COM) -[:AdminTo]-> (APP-SRV-04.CORP.EXAMPLE.COM) <-[:HasSession]- (TIER0_ADMIN@CORP.EXAMPLE.COM) -[:MemberOf]-> (DOMAIN ADMINS@CORP.EXAMPLE.COM)

Example 4: Cypher Query — Principals with Direct Write/Control ACLs on Groups

Cypher — Hunting GenericAll, GenericWrite, WriteDacl, WriteOwner & AddMember on Groups
MATCH p = (n)-[r:GenericAll|GenericWrite|WriteDacl|WriteOwner|AddMember]->(g:Group)
RETURN p
LIMIT 100;
SAMPLE OUTPUT
# Matched Edges:
1) (HELPDESK_APP@CORP.EXAMPLE.COM) -[:GenericAll]-> (SERVER-OPERATORS@CORP.EXAMPLE.COM)
2) (IT-JUNIOR-OPS@CORP.EXAMPLE.COM) -[:AddMember]-> (VPN-USERS-PROD@CORP.EXAMPLE.COM)
3) (SVC_PROVISION@CORP.EXAMPLE.COM) -[:WriteDacl]-> (TIER1-APP-ADMINS@CORP.EXAMPLE.COM)

Example 5: Cypher Query — Users with ForceChangePassword or GenericAll Over Other Users

Cypher — Identifying Account Takeover / Password Reset Edges
MATCH p = (attacker)-[r:ForceChangePassword|GenericAll|WriteDacl]->(target:User)
WHERE attacker.name <> target.name
RETURN attacker.name, type(r), target.name
LIMIT 100;
SAMPLE OUTPUT
attacker.name                  | type(r)             | target.name
-------------------------------+---------------------+-------------------------------
HELPDESK_L1@CORP.EXAMPLE.COM   | ForceChangePassword | SVC_BACKUP@CORP.EXAMPLE.COM
HR_SYNC_SVC@CORP.EXAMPLE.COM   | GenericWrite        | J.DOE@CORP.EXAMPLE.COM

Example 6: Cypher Query — Computers with Local Admin Rights from Non-Admin Principals

Cypher — Auditing AdminTo Relationships Across Computers
MATCH p = (n)-[:AdminTo|MemberOf*1..5]->(:Group)-[:AdminTo]->(c:Computer)
RETURN n.name, c.name
LIMIT 100;
SAMPLE OUTPUT
n.name                         | c.name
-------------------------------+---------------------------------
DESKTOP-SUPPORT@CORP.EXAMPLE.COM | WKSTN-FIN-042.CORP.EXAMPLE.COM
SVC_BACKUP@CORP.EXAMPLE.COM      | DB-PROD-01.CORP.EXAMPLE.COM

Example 7: Cypher Query — Principals with ReadLAPSPassword Access

Cypher — Listing LAPS Password Readers in the Graph
MATCH p = (n)-[:ReadLAPSPassword|MemberOf*1..4]->(:Group)-[:ReadLAPSPassword]->(c:Computer)
RETURN n.name, c.name
LIMIT 100;
SAMPLE OUTPUT
n.name                           | c.name
---------------------------------+---------------------------------
TIER2-WORKSTATION-ADMINS@CORP... | WKSTN-FIN-042.CORP.EXAMPLE.COM
TIER1-SERVER-OPS@CORP.EXAMPLE... | APP-SRV-04.CORP.EXAMPLE.COM

Example 8: Auditing Object ACLs in Active Directory with PowerShell

PowerShell (ActiveDirectory Module) — Inspecting Non-Inherited ACEs on a Target Object
# Example: inspect explicit ACL entries on a sensitive AD group or user DN
$dn = "CN=Tier0-Admins,OU=Privileged,DC=corp,DC=example,DC=com"
(Get-Acl -Path "AD:\$dn").Access |
  Where-Object { -not $_.IsInherited } |
  Select-Object IdentityReference, ActiveDirectoryRights, AccessControlType, ObjectType |
  Format-Table -AutoSize
SAMPLE OUTPUT
IdentityReference       ActiveDirectoryRights AccessControlType ObjectType
-----------------       --------------------- ----------------- ----------
CORP\Domain Admins      GenericAll            Allow             00000000-0000-0000-0000-000000000000
CORP\Enterprise Admins  GenericAll            Allow             00000000-0000-0000-0000-000000000000

Example 9: Checking Privileged Group Membership with PowerShell

PowerShell (ActiveDirectory Module) — Enumerating Members of a Privileged Group
Get-ADGroupMember -Identity "Domain Admins" -Recursive |
  Select-Object Name, SamAccountName, ObjectClass, Enabled |
  Format-Table -AutoSize
SAMPLE OUTPUT
Name            SamAccountName  ObjectClass Enabled
----            --------------  ----------- -------
Administrator   Administrator   user          False
Tier0 Admin 01  svc_admin_tier0 user           True
BreakGlass 01   bg_tier0_01     user           True

Example 10: Querying BloodHound / Graph Ingestion Health via CLI

Shell (Docker Compose) — Checking BloodHound CE Container Status
docker compose ps
SAMPLE OUTPUT
NAME                     IMAGE                                  STATUS
bloodhound-app-db-1      postgres:16.1-alpine                   Up 4 days (healthy)
bloodhound-bloodhound-1  specterops/bloodhound:latest           Up 4 days (healthy)
bloodhound-graph-db-1    neo4j:4.4-community                    Up 4 days (healthy)

4. Interactive Attack Path & Remediation Simulator

Select an attack path pattern below to examine how an attacker could chain it and how defenders sever it cleanly:

← Previous: 2.5 Encrypted Traffic Analysis & NDR Next: 3.2 Tier-0 Active Directory Hardening →