Review agent · Identity & access
Directory & LDAP integration
Reviews Active Directory and LDAP code for injection, cleartext binds and hard-coded credentials.
Illustrative example of how this agent reviews a finding.
Why this agent matters
In companies that use a directory, it is the keys to everything: user lookup, group membership, sign-in. LDAP injection or a cleartext bind can expose or bypass it.
It only applies to repos that integrate with a directory, which is exactly why it gets a specialist — generic reviewers rarely know LDAP filter escaping or the LDAP vs LDAPS distinction.
What it checks
- User input placed in LDAP filters or DNs without escaping
- Cleartext LDAP instead of LDAPS
- Hard-coded bind credentials
- Weak or omitted bind authentication
When it marks a finding as a likely false positive
- Filter and DN input is escaped
- Binds use LDAPS with credentials from a secrets manager
The fix it suggests
- Escaping LDAP filter and DN input
- Switching to LDAPS
- Sourcing bind credentials from a secrets manager
Scope and limits
This agent judges findings the scanners report (Semgrep for code, secrets and IaC/config, OWASP ZAP for passive website scans, our rules for imported API collections); it doesn't hunt for new bugs on its own. A finding reaches it when its scanner, CWE or rule/path keywords match this vulnerability class. It sees only the minimal code or evidence around the finding, with secrets redacted, and Claude, via Amazon Bedrock, returns a verdict with a confidence score, a plain-English explanation and a suggested fix.
Common questions
Does this agent run on every repository?
Only findings that match LDAP / directory CWEs or keywords are routed to it, so repos without a directory integration never use it.
How do I prevent LDAP injection?
Escape user input before it goes into an LDAP search filter or a distinguished name (DN), instead of building filters from raw strings. The agent flags filter and DN input that reaches the directory unescaped.
Why use LDAPS instead of plain LDAP?
Plain LDAP sends bind credentials and directory data unencrypted, so anyone on the network path can read them. The agent recommends LDAPS, with bind credentials taken from a secrets manager rather than hard-coded.
Related agents
- Authentication & JWT — Checks that identity, tokens and sessions are actually verified and hardened.
- Access control & authorization — Checks that each sensitive action is authorized for the specific object, not just a logged-in user.
See all 21 review agents → · Agent setup reviewer · How the pipeline works
Run the Directory & LDAP integration agent on your repository
100 free credits, no credit card. Every finding comes with a verdict and a fix.
Get started free