What problem does it solve?
This Skill helps identify and prevent vulnerabilities related to insufficient logging, log injection, secrets in logs, and log tampering, ensuring your application's security events are properly recorded and protected.
Core Features & Use Cases
- Detect Log Injection: Find instances where user input can manipulate log entries (CWE-117).
- Identify Insufficient Logging: Ensure critical security events like authentication and authorization failures are logged (CWE-778).
- Prevent Secrets in Logs: Detect and help redact sensitive information (passwords, tokens) from log files (CWE-532).
- Mitigate Log Tampering: Identify potential weaknesses that could allow attackers to alter or delete logs.
- Ensure Proper Alerting: Verify that security-relevant events trigger appropriate alerts.
- Use Case: During a whitebox penetration test, you discover that failed login attempts are not logged. This skill provides the patterns to find where authentication is handled and highlights the missing logging statements, guiding the developer to add them.
Quick Start
Analyze the codebase for any instances of log injection vulnerabilities.