A. Conduct input sanitization.
E. Deploy a WAF.
LDAP (Lightweight Directory Access Protocol) injection is a type of attack in which an attacker manipulates LDAP statements using input fields in an application. This can lead to security vulnerabilities, like bypassing authentication or revealing sensitive data.
Conducting input sanitization (A) is one of the most effective measures against LDAP injection. This involves cleaning up user input to remove or encode characters that have special meaning in LDAP queries.
Deploying a Web Application Firewall (WAF) (E) can also be effective in preventing LDAP injection attacks. A WAF can be configured to detect and block suspicious requests that look like LDAP injection.
While using containers (C) could help with some aspects of application security, it does not directly address LDAP injection issues. Patching the OS (D) is always a good practice, but it does not necessarily protect against LDAP injection. Deploying a SIEM (B), IDS (G), or reverse proxy (F) might help detect or potentially mitigate some kinds of attacks, but they don't provide specific protections against LDAP injection.