Overview
Active Directory is one of the most common identity management solutions used in enterprise environments. Understanding how attackers enumerate, identify privilege escalation opportunities, and eventually compromise a domain is essential for both penetration testers and blue team defenders.
Lab Environment
- Windows Server 2022
- Windows 11 Client
- Kali Linux
- BloodHound
- Neo4j
- Impacket
- NetExec
Initial Enumeration
Always begin by identifying available hosts, services, SMB shares, and domain information.
nmap -Pn -sC -sV 10.10.10.161
SMB Enumeration
Use NetExec to enumerate SMB shares, users, sessions, and domain information.
netexec smb 10.10.10.161
LDAP Enumeration
LDAP provides valuable information about users, groups, computers, and domain structure.
ldapsearch -x
BloodHound Analysis
Collect Active Directory data using SharpHound and import the results into BloodHound to visualize attack paths.
Kerberoasting
Identify Service Principal Names (SPNs) and request service tickets for offline password cracking.
GetUserSPNs.py DOMAIN/user:password
Privilege Escalation
After obtaining valid credentials, enumerate ACLs, misconfigurations, delegation settings, and administrative privileges.
secretsdump.py administrator@dc
Mitigation
- Apply Least Privilege.
- Disable unnecessary SPNs.
- Enable SMB Signing.
- Monitor Kerberos abuse.
- Regularly audit Active Directory permissions.
Conclusion
Active Directory remains one of the most valuable targets for attackers. Understanding the attack chain allows defenders to strengthen their environments while helping penetration testers perform realistic security assessments.