Active Directory Attack Surface
How AD trust and auth can be abused.
Active Directory Attack Surface is a free Cyber Security Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Why AD Is a Prime Target
Active Directory (AD) is the identity backbone of most enterprises. It governs authentication, authorization, and policy for users, computers, and services. Because nearly every resource trusts AD, a single domain compromise often equals full network compromise.
From a red-team perspective, AD is attractive because trust is transitive and misconfigurations accumulate over years. Blue teams must understand the same surface to defend it.
- One forest can contain multiple domains linked by trusts.
- Domain Controllers (DCs) hold the authoritative copy of all secrets.
- Group Policy pushes configuration to every joined host.
Core Building Blocks
To reason about attacks you must know the objects involved. AD stores everything as objects with attributes in a hierarchical LDAP database.
- Users and computers are security principals with SIDs.
- Groups grant rights transitively (nested membership).
- Organizational Units (OUs) structure objects and bind GPOs.
- krbtgt account holds the key that signs all Kerberos tickets.
The krbtgt account is the crown jewel: its hash enables Golden Ticket forgery.
Authentication Protocols
AD supports two main authentication protocols, and both have abuse paths.
- NTLM is a challenge-response scheme based on the user password hash. It enables relay and pass-the-hash attacks.
- Kerberos is ticket-based and preferred, but exposes Kerberoasting, AS-REP roasting, and ticket forgery.
Defenders should disable NTLMv1, monitor NTLM usage, and enforce SMB signing to blunt relay attacks.
Enumeration With LDAP
Authenticated enumeration is usually the first step after gaining any domain foothold. Even a low-privileged user can read most of the directory by default.
Tools query LDAP to map users, groups, ACLs, and trust paths.
# BloodHound SharpHound collector (run as domain user)
SharpHound.exe -c All --zipfilename loot
# PowerView: find users with SPNs (kerberoastable)
Get-DomainUser -SPN | select samaccountname,serviceprincipalnameACLs and Privilege Paths
Beyond group membership, AD objects carry Access Control Lists (ACLs). Misconfigured ACLs grant attack paths that are invisible to traditional audits.
- GenericAll / GenericWrite let a principal reset passwords or set SPNs.
- WriteDacl lets an attacker rewrite an object ACL and grant themselves rights.
- DCSync rights (Replicating Directory Changes) let you pull all hashes remotely.
BloodHound visualizes these as graph edges, exposing the shortest path to Domain Admin.
Domain Trusts
Trusts link domains and forests so principals in one can access resources in another. They are a major lateral-movement vector.
- Parent-child trusts are bidirectional and transitive within a forest.
- External and forest trusts cross security boundaries.
- SID History abuse and inter-realm TGTs allow crossing trust boundaries.
The forest, not the domain, is the true security boundary. Trusting a weaker domain can expose the whole forest.
Common Misconfigurations
Most AD compromises exploit configuration drift, not zero-days. Recurring issues include:
- Service accounts with weak passwords and SPNs (Kerberoastable).
- Accounts with
DONT_REQ_PREAUTHset (AS-REP roastable). - Excessive nested group membership granting hidden admin rights.
- Passwords stored in GPP
cpasswordor in SYSVOL scripts. - Unconstrained delegation on non-DC servers.
Delegation Risks
Kerberos delegation lets a service act on behalf of a user. Misused, it becomes a privilege-escalation primitive.
- Unconstrained delegation caches user TGTs on the server; compromising it yields any authenticating user, including admins.
- Constrained delegation limits targets but can be abused via S4U2Self/S4U2Proxy.
- Resource-Based Constrained Delegation (RBCD) can be configured by anyone with write rights on a computer object.
Defensive Visibility
Defenders reduce the attack surface with tiering and monitoring.
- Implement the tiered admin model: Tier 0 (DCs, identity) credentials never touch lower tiers.
- Use Protected Users group and disable NTLM for sensitive accounts.
- Monitor event IDs
4768/4769(TGT/TGS requests),4662(DCSync), and4624logon types. - Deploy LAPS so local admin passwords are unique and rotated.
Attack Lifecycle in AD
A typical AD engagement follows a repeatable lifecycle. Knowing it helps both attack simulation and detection engineering.
- Foothold: phishing or exposed service yields a low-priv account.
- Enumerate: BloodHound maps paths.
- Escalate: Kerberoast, ACL abuse, or delegation.
- Dominate: DCSync, then Golden/Diamond tickets for persistence.
Mapping the Surface Safely
When authorized to test AD, scope and logging matter. Capture a baseline, get written authorization, and avoid destructive actions like password resets on production accounts.
Run collectors during agreed windows and store loot encrypted. Always reset any temporary objects (lab users, RBCD entries) you create during the test.
# Enumerate trusts and forest topology (PowerView)
Get-DomainTrust
Get-ForestDomain
# Find unconstrained delegation hosts
Get-DomainComputer -Unconstrained | select dnshostnameQuick Check
Test your understanding of the AD attack surface.
Recap
You explored why AD is a high-value target and the surface that makes it abusable.
- AD trust is transitive; the forest is the real security boundary.
- NTLM and Kerberos each expose distinct abuse paths.
- ACLs, delegation, and stale service accounts create hidden privilege paths.
- BloodHound maps these paths; tiering, LAPS, and event monitoring defend them.
Next, we drill into Kerberos and Kerberoasting.
Frequently asked questions
Is the “Active Directory Attack Surface” lesson free?
Yes — the full text of “Active Directory Attack Surface” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.
What will I learn in “Active Directory Attack Surface”?
How AD trust and auth can be abused. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Cyber Security Academy?
No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Active Directory Attack Surface” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Cyber Security Academy lesson?
Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Active Directory Attack Surface
- Kerberos and Kerberoasting
- Pass-the-Hash and Pass-the-Ticket
- Privilege Escalation and Domain Dominance