3 - AD Enumeration
Last updated
Last updated
Never use tools and techniques on real IP addresses, hosts or networks without proper authorization!❗
Active Directory (AD) is the backbone of many enterprise IT infrastructures, managing user authentication, authorization, and resource access. During penetration testing or red team engagements, enumerating Active Directory is a critical step for gathering intelligence about the environment. This process involves systematically identifying valuable information that can be used to map out the network, discover potential attack paths, and exploit misconfigurations or vulnerabilities.
Why Enumerate Active Directory? Active Directory is complex and interconnected, making it a prime target for attackers. Enumeration helps uncover:
Domain structure and trust relationships.
User accounts, groups, and their permissions.
Domain Controllers (DCs) and critical services like DNS, LDAP, SMB, and Kerberos.
Misconfigurations, such as weak passwords, open shares, and insecure policies.
Key Enumeration Goals:
Map the Environment: Identify key assets, including Domain Controllers and critical servers.
Identify Users: Discover domain accounts and their roles.
Assess Permissions: Look for overprivileged users, groups, or objects.
Locate Weaknesses: Misconfigurations, legacy systems, or unpatched vulnerabilities.
Set the Stage for Attacks: Gather the information needed for credential attacks, privilege escalation, or lateral movement.
Common Enumeration Tools and Techniques: Enumeration can be performed using a variety of tools and techniques, including:
Nmap for network scanning and service discovery.
SMB and LDAP enumeration tools to query shared resources and directory structures.
BloodHound for mapping AD relationships and privilege escalation paths.
Kerberos-based tools like Kerbrute to discover valid accounts through pre-authentication failures.
PowerShell scripts for gathering system and domain information.
Reconnaissance Without Credentials: Even without valid domain credentials, attackers can leverage null sessions, misconfigured services, and network discovery tools to gain valuable information. These findings often serve as a foothold to further access.