Overview
Active Directory (AD) is the identity and access management backbone of most enterprise Windows environments. Compromising AD often means compromising the entire organization. This page follows the AD attack methodology from initial unauthenticated recon through full domain/forest compromise.AD Structure Fundamentals
Active Directory organizes network resources into:
AD Domain Services (AD DS) components:
- Domain Services — centralized auth and directory
- Certificate Services — PKI management
- Federation Services — SSO across applications
- Rights Management — DRM for content
- DNS Service — name resolution for the domain
Phase 1: Unauthenticated Recon
1
Network Enumeration
2
SMB Null and Guest Enumeration
3
LDAP Anonymous Enumeration
4
User Enumeration
5
Network Poisoning (LLMNR/NBT-NS)
Gather NTLMv2 hashes by impersonating services with Responder:
Phase 2: Authenticated Enumeration
Once you have valid credentials or a session:Kerberoasting
Request TGS tickets for service accounts and crack the RC4 encryption offline:ASREPRoasting
Request AS-REP for accounts with DONT_REQ_PREAUTH set:Hash Shucking (NT-Candidate Attacks)
Use an NT hash corpus to crack slower formats without knowing the plaintext:Pass-the-Hash / Pass-the-Ticket
Delegation Attacks
Unconstrained Delegation
Unconstrained Delegation
Any computer with
ADS_UF_TRUSTED_FOR_DELEGATION attribute stores TGTs of all authenticating users in memory:Constrained Delegation
Constrained Delegation
Resource-Based Constrained Delegation (RBCD)
Resource-Based Constrained Delegation (RBCD)
Requires WRITE privilege on target computer object: