Active Directory privilege escalation is graph work, not single-exploit work. A low-privilege account rarely owns a direct path to Domain Admins. It owns one edge, a write over a group, a service account with a weak password, a delegation setting, or a trust, and that edge leads to another edge. This skill teaches you to collect the graph, read it as paths, pick the shortest reliable path, and prove each hop before you take it. Everything here is for authorized assessments, labs, and CTFs only. Never run these techniques against a directory you do not have explicit written permission to test, and never use a discovered path outside the agreed scope, even if a shorter path crosses into another domain or forest.
Quick Workflow
- Confirm scope and identity first - record your current user, groups, domain, and forest, and confirm which domains, trusts, and tiers are in scope.
- Collect graph data with a read-only collector - BloodHound style collection or LDAP queries run as your current user, with no writes and no password spraying.
- Load the graph and query for shortest paths to Domain Admins, Enterprise Admins, and other high-value groups, and list every first hop you control.
- Classify each first hop by type - ACL write, group membership control, Kerberoastable account, AS-REP roastable account, delegation, or trust edge.
- Verify each hop by hand with a targeted LDAP or PowerShell check before you act on it - graph data can be stale, and a stale edge wastes time and creates noise.
- Walk the path one hop at a time, re-collecting after each hop, because group membership and control often change what you can see and do.
- Stop at the objective named in scope, capture evidence for each hop, and write detection notes for the report - which event IDs and controls would have caught each step.
1. Collecting the graph without writing anything
The first collection must be read-only. A collector running as a normal domain user can usually read most directory objects, group memberships, ACLs, and trust objects, because Active Directory is readable by authenticated users by default. That is a design property to document, not a flaw to celebrate.
whoami /user
whoami /groups
nltest /domain_trusts
nltest /dsgetdc:example.local
Record the output before you touch any collector tooling. The domain trusts output tells you whether a path can leave the current domain, and the group list tells you which high-value memberships you already hold. If you already sit in a privileged group, the assessment changes - report that finding directly instead of hunting for a longer chain.
For LDAP enumeration from a Linux attack host, a targeted query keeps noise low and avoids dumping the whole directory when you only need one object class.
ldapsearch -x -H ldap://dc01.example.local -D "user@example.local" -W \
-b "DC=example,DC=local" "(objectClass=group)" cn member
Replace the domain, host, and base DN with the real values from scope. Never run this against a controller outside scope, and never store the bind password in a script or shell history file on a shared host.
2. Reading ACL abuse as paths
ACL abuse is the most common Active Directory escalation family, and also the easiest to misread. An ACE grants a principal a right over an object. The rights that matter most for escalation are GenericAll, GenericWrite, WriteDACL, WriteOwner, AddSelf, ForceChangePassword, and control over group membership through WriteProperty on the member attribute.
Get-ADUser -Identity targetuser -Properties nTSecurityDescriptor |
Select-Object -ExpandProperty nTSecurityDescriptor |
ForEach-Object { $_.Access } |
Where-Object { $_.IdentityReference -match "lowprivgroup" } |
Format-Table IdentityReference, ActiveDirectoryRights, AccessControlType
Worked reading - if a low-privilege group holds GenericWrite over a user object, any member of that group can reset that user's password or change attributes that lead to control, subject to password policy and protected-group rules. If the same right exists over a group object, a member can add themselves or a controlled account to that group. If it exists over a computer object, constrained delegation settings or resource-based constrained delegation may become reachable. Always check who the target object is before you act - writing over a service account and writing over a Domain Admin are very different findings, and the second is usually blocked by AdminSDHolder protections.
Key ACL edges to query in the graph, in priority order:
- GenericAll or GenericWrite over a user who is a member of a privileged group, or over a group that nests into a privileged group.
- WriteDACL or WriteOwner over any object on the path, because ownership lets you rewrite the DACL and then take the GenericWrite edge anyway.
- ForceChangePassword over a user, which converts directly into a credential for that account when password history and policy allow it.
- AddSelf or WriteProperty on the member attribute of a group, which is self-addition to that group without needing full write over the object.
- WriteProperty over servicePrincipalName, msDS-AllowedToDelegateTo, or msDS-AllowedToActOnBehalfOfOtherIdentity, which are delegation edges, not generic writes.
3. Group nesting and transitive membership
Groups nest, and nesting hides privilege. A user in Group A, which is a member of Group B, which is a member of Domain Admins, is effectively a Domain Admin, even though no direct membership line says so. Graph tools compute this transitively. Manual checks miss it, which is why manual group listing alone is not enough.
Get-ADGroupMember -Identity "Domain Admins" -Recursive |
Select-Object SamAccountName, objectClass
Get-ADPrincipalGroupMembership -Identity lowprivuser |
Select-Object Name
The recursive listing shows the full transitive set, while the second command shows only direct memberships for one user. Compare the two when a path looks short on paper but fails in practice - a nested group may be distribution rather than security, may sit in another domain, or may be filtered by SID history rules across a trust. Also check for circular nesting and for groups whose membership is controlled by an automated process that will revert a manual addition within minutes. A path that reverts itself is not a reliable path, and forcing it repeatedly creates noisy replication events.
Detection note for this section - group membership changes generate event 4728 and 4732 on domain controllers for members added to security groups, and 4756 for universal groups. A defender watching those events, especially additions to privileged groups outside change windows, catches most nesting-based escalations at the moment of the hop, not at the end of the chain.
4. Kerberoasting and AS-REP roasting paths
Service accounts with Service Principal Names (SPNs) let any authenticated user request a service ticket encrypted with the account password hash. That ticket can be cracked offline, so a weak service account password becomes a credential. Accounts with Kerberos pre-authentication disabled let any unauthenticated requester obtain an AS-REP encrypted with the account password hash, with the same offline cracking consequence and no authentication at all.
GetUserSPNs.py -dc-ip 10.0.0.10 example.local/lowprivuser -request
python3 -m impacket.examples.GetNPUsers example.local/ -usersfile users.txt \
-format hashcat -outputfile asrep.txt -dc-ip 10.0.0.10
Replace the domain, controller address, and usernames with scope values, and run the cracking step only against hashes you obtained inside scope. In practice, Kerberoasting is a path, not a guarantee - strong, long, randomly generated service account passwords resist cracking, and managed service accounts rotate automatically. Treat every roastable account as a candidate, crack with a wordlist and ruleset appropriate to the engagement, and report uncracked accounts as exposure findings with the ticket-request evidence, not as confirmed compromises. The same discipline applies to AS-REP roasting - a roastable account with a strong password is still a hardening finding, because disabling pre-authentication is rarely intentional.
Prioritize roastable accounts by what they unlock, not by crack speed. A cracked service account that is a local admin on one server is a foothold. A cracked account that is a member of a privileged domain group, or that holds delegation rights, is a path hop. Check group membership and delegation attributes for every cracked account before you decide whether the path continues.
5. Trust abuse and path-to-DA mapping
Trusts turn a single-domain graph into a multi-domain graph. A forest trust, external trust, or shortcut trust carries SID filtering rules, and those rules decide whether a privileged SID from one domain is honored in another. SID history abuse, where a migrated account carries an old privileged SID, is the classic trust edge, but modern defaults filter SID history across forest trusts, so verify the trust type and filtering state before building a plan on it.
Get-ADTrust -Filter * | Select-Object Name, Direction, TrustType, SIDFilteringForestAware
nltest /domain_trusts /all_trusts
Map paths in this order - first within the current domain to Domain Admins, then to Enterprise Admins through the forest root, then across each trust to the trusted domain's Domain Admins, and only then back into the original domain through a second trust if the scope explicitly allows it. Draw the map as hops, not as a narrative. Each hop needs a principal, a right or credential, a target object, and the verification command that proved it. A map with an unverified hop is a hypothesis, and hypotheses go in the report as hypotheses, not as findings.
Detection note for this section - trust abuse generates cross-domain ticket activity, including TGS requests for services in the trusted domain and unusual inter-domain logons. Defenders should alert on SID history present in tickets, on foreign security principals appearing in privileged groups, and on trust creation or modification events. As the tester, keep cross-trust activity inside the agreed scope and timestamp it, so the blue team can separate test activity from real activity in their timeline.
6. Delegation edges that look like ordinary settings
Unconstrained delegation lets a service impersonate any user who authenticates to it, including Domain Admins, if an admin ever authenticates to that service. Constrained delegation limits impersonation to listed services, and resource-based constrained delegation lets the resource owner decide who may impersonate to it. All three are escalation paths when the service account or the computer object is controllable by a low-privilege principal.
Get-ADComputer -Filter {TrustedForDelegation -eq $true} -Properties TrustedForDelegation |
Select-Object Name, TrustedForDelegation
Get-ADUser -Filter {TrustedToAuthForDelegation -eq $true} |
Select-Object SamAccountName
If you control a computer object with resource-based constrained delegation configured in your favor, or a service account with constrained delegation to a privileged service, that is a hop, not a configuration note. Verify it with a targeted impersonation test inside scope, and report the delegation setting itself as the root cause, because removing the delegation breaks the path even if the account stays compromised.
Edge cases
- AdminSDHolder protects members of protected groups by resetting their ACLs every hour - an ACL edge over a Domain Admin usually reverts, so check protected status before planning around it.
- Graph data goes stale fast in active directories - re-collect after each hop and after any password change, because membership and ACLs may have changed.
- Distribution groups do not grant access tokens - a nesting path through a distribution group is not a privilege path, even if the graph draws the edge.
- SID filtering across forest trusts blocks most SID history paths by default - verify the trust attributes rather than assuming a migrated SID will be honored.
- Kerberoasting needs a valid domain account and network access to a controller - a roastable account behind a firewall rule or in a disabled state is not reachable in practice.
- Password policy, fine-grained password policies, and lockout policy can block ForceChangePassword and password-spray style follow-ups - read the policy before attempting a reset.
- Cross-domain paths may be out of scope even when technically reachable - stop at the trust boundary unless the scope names the other domain explicitly.
- Some ACL edges require the attacker to already hold a specific token privilege or to act from a domain-joined host - test from the same context the graph assumes, not from a more privileged one.
Key references
- MITRE ATT&CK T1078 (Valid Accounts), T1558 (Steal or Forge Kerberos Tickets), T1558.003 (Kerberoasting), T1484 (Domain or Tenant Policy Modification)
- BloodHound documentation - https://bloodhound.specterops.io
- HackTricks Active Directory methodology - https://book.hacktricks.xyz/windows-hardening/active-directory-methodology
- Microsoft Active Directory ACL documentation - https://learn.microsoft.com/en-us/windows/win32/secauthz/access-control-lists
- Impacket examples - https://github.com/fortra/impacket
- AD security guidance on delegation - https://learn.microsoft.com/en-us/windows-server/security/kerberos/kerberos-constrained-delegation-overview
