
Active Directory Attacks
Active Directory attack notes for red team operations, covering Kerberoasting, AS-REP Roasting, NTLM relay, ACL abuse, ADCS, delegation and ticket attacks.
Overview
Active Directory (AD) handles authentication and authorization for most corporate Windows networks, so it is where most internal tests end up. Control of AD usually means control of every domain-joined host and account. These notes cover the techniques I use to get there, grouped roughly by where they sit in an engagement.
Kerberos attacks
- Kerberoasting - Request service tickets for accounts with SPNs and crack them offline
- AS-REP Roasting - Crack AS-REP data for accounts without pre-authentication
- Kerberos delegation - Abuse unconstrained, constrained and resource-based constrained delegation
- Pass-the-Ticket - Export Kerberos tickets from memory and reuse them elsewhere
- Silver Ticket - Forge service tickets with a service account hash
- Golden Ticket - Forge TGTs with the KRBTGT hash
- KrbRelayUp - Kerberos relay for local privilege escalation
Credential attacks
- Password spraying - Try one or two passwords across many accounts without tripping lockout
- Pass-the-Hash - Authenticate with an NTLM hash instead of the password
- DCSync - Pull password hashes from a domain controller through replication rights
Relay attacks
- NTLM relay - Relay captured NTLM authentication to another service
Permission and certificate abuse
- ACL abuse - Exploit misconfigured AD object permissions
- DNSAdmins exploitation - Load a DLL into the DNS service through DNSAdmins membership
- ADCS attacks - Escalate through misconfigured certificate templates and CA settings (ESC1 to ESC8)
Attack methodology
Lateral movement chaining walks through how these pieces fit together on a real path to Domain Admin. The phases below are the short version.
Phase 1: enumeration
Map the domain with BloodHound and PowerView. Look for:
- Trust relationships
- Group memberships
- ACL misconfigurations
- Kerberoastable accounts
Phase 2: initial access
- Password spraying
- Credential harvesting
- Phishing for domain credentials
Phase 3: privilege escalation
- Kerberoast service accounts
- Abuse ACL misconfigurations
- Exploit trust relationships
Phase 4: lateral movement
- Remote execution with Impacket
- Pass-the-Hash and Pass-the-Ticket
- RDP or WinRM with compromised credentials
Phase 5: persistence
- Golden and Silver Tickets
- DCShadow
- ACL backdoors
Tools reference
| Tool | Primary use |
|---|---|
| BloodHound | Attack path visualization |
| PowerView | AD enumeration and exploitation |
| Impacket | Protocol-level attacks |
| Hashcat | Crack Kerberos tickets |
Related notes
- Windows security - Local privilege escalation
- Network protocol attacks - SMB and RDP exploitation
Ramblings of a Professional Hacker
Working notes from an offensive security consultant: methodology, tooling and techniques for penetration testing and red teaming, plus what defenders can do about them.
Active Directory ACL abuse: from misconfigured ACEs to Domain Admin
How to find and abuse dangerous ACEs in Active Directory with PowerView, BloodHound and Impacket, and how defenders can detect and remove them.