sc-ldap

Detect LDAP injection vulnerabilities in search filters and DN construction.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kocakburhan/emlakdefter --skill sc-ldap-kocakburhan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-ldap
Source: https://github.com/kocakburhan/emlakdefter/tree/main/.agents/skills/security-check/skills/sc-ldap
Command: npx skills add https://github.com/kocakburhan/emlakdefter --skill sc-ldap-kocakburhan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LDAP injection vulnerabilities in LDAP operations such as search filters, DN construction, and bind flows can enable authentication bypass and data disclosure.

Core Features & Use Cases

  • Detects LDAP injection in search filters and DN construction across languages and platforms.
  • Recommends escaping routines and safe APIs to prevent injection, plus code-level mitigations.
  • Use Case: A web application authenticates users against an LDAP directory and must avoid injection-based bypass.

Quick Start

Run a scan of your codebase to identify insecure LDAP usage patterns and generate remediation guidance.

Frequently Asked Questions about sc-ldap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is LDAP injection and how does it affect authentication flows?

LDAP injection targets search filters and DN construction in directory queries to bypass authentication or expose data. It occurs when user input is not properly escaped, allowing attackers to manipulate LDAP operation logic and gain unauthorized access.

How do I detect LDAP injection vulnerabilities in a multi-language application?

Detect LDAP injection by scanning your codebase for insecure LDAP usage patterns across Java, Python, PHP, C#, and Node.js. The scan identifies unsafe search filters and bind flows, then generates specific remediation guidance to secure directory queries.

Does this LDAP injection detection work with Python and Node.js applications?

Yes, this LDAP injection detection applies to multi-language applications including Python and Node.js. It covers authentication, directory queries, and user management operations across Java, PHP, and C# platforms.

How to prevent LDAP injection in search filters and DN construction?

Prevent LDAP injection by escaping user input with language-specific LDAP escape functions, applying strict input validation, and utilizing parameterized LDAP APIs for secure search filter and DN construction operations.

What is the best way to secure user authentication against an LDAP directory?

The best way to secure LDAP authentication is to implement parameterized LDAP APIs and apply language-specific escaping routines to user inputs. This prevents injection-based bypass during directory bind flows and user management queries.

Why does user input validation fail to stop LDAP injection in some cases?

Input validation fails to stop LDAP injection when language-specific escape functions are not applied to search filters and DN construction. Relying solely on validation without parameterized LDAP APIs leaves directory queries vulnerable to malicious input manipulation.