Use this when attacks go unnoticed due to missing logs or alerts (OWASP A09).
Logging & Monitoring Failures
Security logging and monitoring failures (OWASP A09) mean attacks go unnoticed because logins, access failures and high-value actions are not logged, monitored or alerted on.
1. Logging & monitoring failures: missing logs or alerts delay detection.
2. Log security events with context.
3. Central SIEM and alerts.
4. Protect logs.
5. Test detection with exercises.
security event → log → SIEM → alert → response
Context & applicabilityCommon mistakes · platform/version boundaries
- Logs stored only on the compromised server.
- No alerting, so breaches are found months later by third parties.
- Logging passwords, tokens or full card numbers.
- Clocks not synchronised, making correlation impossible.
- Log injection: user input with newlines forging log lines — encode or use structured (JSON) logging.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Log logins, access failures and high-value actions.
- Protect logs from tampering.
- Alert on suspicious patterns.
- Security event logging (auth, access control failures, input validation) — coverage
- Alerting on suspicious patterns — SIEM rules
- Log integrity and retention — storage
ReferenceWhy it matters1 section · depth on demand
What to log and watch
- Logins (success and failure), MFA events, password resets.
- Access-control failures and input validation failures.
- High-value actions: payments, permission changes, data exports.
Send logs to a central, tamper-resistant store, alert on patterns, and test that an attack (for example a brute-force) actually produces an alert someone handles.
ReferenceHow it works1 section · depth on demand
In depth
Security logging and monitoring failures mean attacks are not detected or cannot be investigated: login failures not logged, logs stored only locally, no alerting, or logs missing the information needed to reconstruct events. Many breaches are discovered months later by third parties for this reason.
Requirements:
- Log authentication events, access-control failures and high-value transactions with user, time and source.
- Use a consistent, parseable format and send logs to a central system.
- Protect logs from tampering and injection (encode user input).
- Alert on suspicious patterns and test that alerts reach someone who acts.
- Have an incident response plan that uses the logs.
ReferenceImportant terms & boundaries1 section · depth on demand
Log fields to include
| Field | Why |
|---|---|
| Timestamp (UTC, ISO 8601) | Correlation |
| User / service identity | Accountability |
| Source IP, user agent | Investigation |
| Action and object | What happened |
| Result (success/failure) | Detection |
| Request/correlation ID | Trace across services |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in OWASP → Logging & Monitoring Failures. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://owasp.org/www-project-application-security-verification-standard/ · confidence 94%