LDAP Targeted Misconfiguration Searches
Once you have authenticated access, run targeted LDAP filters against known misconfiguration patterns. These queries go beyond broad enumeration and directly identify conditions that enable credential extraction, relay attacks, and privilege escalation. Run them as a checklist — each one answers a specific question about the environment's security posture.
Credentials in attributes
Administrators routinely store passwords in description, info, and comment fields. These attributes are readable by all domain users by default.
LAPS
LAPS stores auto-rotated local administrator passwords in ms-MCS-AdmPwd on computer objects. Normally ACL-restricted, but over-permissioned OUs are common. A successful read gives you the current local admin password for that host.
LDAP 10.10.10.10 389 DC01 [*] Getting LAPS Passwords LDAP 10.10.10.10 389 DC01 Computer: WS01$ LAPS Password: xK9#mP2!vL
Account control weaknesses
These filters identify accounts with dangerous configurations that enable immediate attacks or credential-free authentication.
adminCount=1 marks accounts that are or were members of privileged groups. These accounts have their ACLs reset by AdminSDHolder and are often overlooked in access reviews. They are high-value targets even if they no longer appear in Domain Admins — check their ACLs via ACL Abuse Privilege Escalation. Accounts with no pre-auth set are AS-REP Roastable — see AS-REP Roasting. Accounts with SPNs are Kerberoastable — see Kerberoasting.
Machine Account Quota
The ms-DS-MachineAccountQuota attribute controls how many computer objects a regular user can create in the domain. The default is 10. A value above 0 enables Resource-Based Constrained Delegation abuse — you can create a machine account and use it for privilege escalation.
ms-DS-MachineAccountQuota: 10
MAQ > 0 enables Resource-Based Constrained Delegation abuse — create a machine account and use it to impersonate any user on the target.
ADCS — certificate template enumeration
Active Directory Certificate Services templates with dangerous configurations (ESC1-ESC8) allow privilege escalation to Domain Admin via certificate abuse. This check identifies whether ADCS is present and which templates are published.
For ESC attack analysis, see ADCS Misconfiguration Discovery.
LDAP signing and channel binding
Disabled LDAP signing allows NTLM relay attacks targeting the LDAP service. This is one of the most common and impactful domain misconfigurations found in real environments.
LDAP 10.10.10.10 389 DC01 LDAP signing NOT enforced (vulnerable) LDAP 10.10.10.10 389 DC01 LDAPS channel binding NOT required (vulnerable)
If LDAP signing is not enforced, the domain is vulnerable to NTLM relay via LDAP. See LDAP Signing and Channel Binding for the full vulnerability confirmation workflow and LDAP Relay and Signing Abuse for exploitation.
References
-
NetExec — GitHubgithub.com/Pennyw0rth/NetExec (opens in new tab)
ldap-checker, adcs, maq, laps modules documentation
-
NetExec Machine Account Quota — netexec.wikiwww.netexec.wiki/ldap-protocol/machine-account-quota (opens in new tab)
MAQ enumeration and RBCD attack path
-
Check LDAP Signing — netexec.wikiwww.netexec.wiki/ldap-protocol/check-ldap-signing (opens in new tab)
LDAP signing check module documentation
Was this helpful?
Your feedback helps improve this page.