Insufficient Security Event Logging
Overview
Security events that must be logged for compliance and incident response:
- Failed login attempts (with username and IP)
- Successful logins and logouts
- Password changes and resets
- Admin operations (user creation, deletion, privilege changes)
- Access control failures (403 responses)
Without adequate logging, attackers can conduct long-running attacks undetected, and post-incident forensics is impossible.
Detection Strategy
- Authentication handlers that don't call any logger on failure
- Admin operations without audit log entries
Remediation
Log all security-relevant events with: timestamp, user ID, IP address, action performed, success/failure.