Bezpečnostní logování a monitoring umožňují detekovat bezpečnostní hrozby a incidenty a reagovat na ně. Bez dostatečného logování/monitoringu zůstanou útoky nepovšimnuté — proto je „nedostatečné logování a monitoring“ uznáváno jako bezpečnostní riziko (OWASP).
Proč na bezpečnosti záleží logování a monitoring
You can't respond to (or even know about) attacks you can't DETECT:
→ without logging/monitoring, breaches go UNNOTICED (often for months) → far more damage
→ "Security Logging and Monitoring Failures" is an OWASP Top 10 risk
→ detection is essential — you can't stop every attack, but you must DETECT and respond.
Co logovat a monitorovat
✓ AUTHENTICATION events → logins, failures, lockouts (detect brute force/credential stuffing)
✓ ACCESS to sensitive data/actions → audit trail (who did what, when)
✓ AUTHORIZATION failures → repeated denied access (probing/attacks)
✓ Anomalies → unusual patterns, spikes, suspicious behavior, errors
✓ ADMINISTRATIVE/privileged actions; config changes; security-relevant events
⚠️ but DON'T log sensitive data (passwords, full card numbers, secrets) — that's a risk itself
