LDAP reconnaissance is the process of querying directory services to collect information about users, groups, computers, permissions, and relationships. Attackers use that data to map an Active Directory environment, identify valuable targets, and plan follow-on actions such as privilege escalation or lateral movement.
Expanded Definition
ldap reconnaissance is not just “looking up users.” It is the structured interrogation of directory services to enumerate identities, group membership, computer objects, service accounts, and trust relationships that reveal how an environment is organised. In NHI operations, that makes it a discovery phase for both defenders and attackers, because directory data often exposes who can reach what, which systems are privileged, and where stale or overbroad access persists.
Definitions vary across vendors when directory enumeration is discussed alongside Active Directory assessment, but the underlying security issue is consistent: LDAP queries can turn a legitimate protocol into an intelligence source. NHI Management Group treats LDAP reconnaissance as a visibility problem with direct privilege implications, especially when coupled with agent execution, delegated access, or weakly governed service identities. For a broader governance lens, the NIST Cybersecurity Framework 2.0 remains the most useful external anchor for mapping discovery activity to asset and access risk.
The most common misapplication is assuming LDAP reconnaissance only matters after an intrusion, which occurs when directory exposure is left unmonitored during routine administration and attacker-style queries blend into normal operations.
Examples and Use Cases
Implementing directory visibility controls rigorously often introduces administrative friction, requiring organisations to weigh faster troubleshooting and access discovery against the risk of revealing the exact structure an attacker wants to map.
- A red team queries LDAP to enumerate privileged groups, then compares those results with an NIST Cybersecurity Framework 2.0 access review to show where entitlements exceed job need.
- A security team analyses directory search logs to identify repeated object discovery against accounts that should never browse sensitive organizational units.
- During an incident, analysts correlate LDAP enumeration with lateral movement indicators to determine which computers and users were mapped before privilege escalation.
- In NHI hygiene reviews, defenders use insights from the DeepSeek breach to reinforce why exposed discovery surfaces can accelerate follow-on compromise.
- An IAM team validates whether service accounts can query more directory data than their automation tasks require, then trims those rights to reduce reconnaissance value.
LDAP reconnaissance is also relevant when agents or integrations inherit directory read access by default, because broad query rights can disclose targets that were never intended for autonomous use.
Why It Matters in NHI Security
Directory reconnaissance is a force multiplier for attackers because it shortens the time between initial access and meaningful control. Once an adversary can enumerate users, groups, nested roles, and host relationships, the environment becomes easier to segment by privilege and easier to abuse by service account. That matters in NHI security because non-human identities often have predictable naming, broad read permissions, and overly persistent access that makes mapping straightforward.
NHIMG research shows how quickly exposed identity material can be operationalised: in the LLMjacking: How Attackers Hijack AI Using Compromised NHIs research, public AWS credentials were attempted within an average of 17 minutes. The same attacker mindset applies to LDAP surfaces, where rapid enumeration can feed immediate privilege abuse, especially when directories are open to service accounts, internal apps, or agents that were never designed with strict read boundaries. For related secrets governance context, see The State of Secrets in AppSec, which highlights how fragmented control and delayed remediation amplify identity exposure.
Organisations typically encounter the operational cost of LDAP reconnaissance only after an account is compromised and directory mapping is already complete, at which point the term becomes operationally unavoidable to address.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST SP 800-63 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 | Directory enumeration exposes NHI inventory and privilege paths. |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege access limits what LDAP queries can reveal. |
| NIST Zero Trust (SP 800-207) | SC-7 | Zero trust treats directory visibility as a controlled resource, not a default entitlement. |
| NIST SP 800-63 | Identity proofing and lifecycle governance reduce stale directory objects. | |
| OWASP Agentic AI Top 10 | A10 | Agents with directory access can amplify recon into unsafe tool use. |
Limit directory read rights to need-to-know accounts and review them regularly under PR.AC-4.