Lesson · 14 pages · about 12 min
Security logging and detection
Log the security events that matter and never the secrets, ship them off the box into a SIEM, and turn them into alerts with rules written as code. Then make sure a person acts on each alert in time: detection only counts when someone responds.
- What it is
- Security logging records who did what, when and from where; detection turns those records into alerts that a person acts on.
- What it is for
- Most breaches leave traces in logs; without detection they are found weeks later, often by someone else.
- Use it when
- From the first production release: sign-ins, admin actions and data access deserve logs and at least a few alert rules.
- Not when
- Do not log everything at full detail forever: cost and privacy grow, and noisy rules bury the alerts that matter.
Words you’ll learn
- PostgreSQL
- Trace
- Request
- Secret
- Dwell time
- MFA
- Identity provider
- API key
- Database
- JWT