SIEM & detection engineering

Log sources, writing detection rules, tuning out false positives, and mapping alerts to MITRE ATT&CK. A good detection story beats a tool list.

About 29 min read3-question knowledge check

The mental model

A SIEM (Security Information and Event Management) is a central nervous system for logs: every system sends its events to one place, where you write rules that turn a flood of raw activity into a small number of meaningful alerts. Detection engineering is the discipline of writing those rules well — catching the attack while staying quiet on the ocean of benign noise that looks superficially similar. The whole craft lives on one tension: a rule that catches everything drowns you in false positives; a rule that never false-positives probably misses the real attack. Getting that balance right, per rule, is the job.

The analogy that sticks: a SIEM is the security office of a large building watching every camera and door sensor at once. Raw logs are the firehose of footage. A detection rule is a trained guard's instruction — "alert me if someone badges into the server room *and* they are not on the ops team *and* it is 3am." A bad rule is "alert on every door opening," which pages the guard 10,000 times a night until they stop looking. Tuning is refining the instruction so it fires on the burglar and ignores the cleaning crew. MITRE ATT&CK is the shared catalogue of *how burglars actually operate* — the techniques (pick the lock, tailgate, disable the camera) — so you can check which ones you would actually catch and which you are blind to. And the deep truth interviewers listen for: a good detection story beats a tool list — anyone can name Splunk; the hire can explain why their rule fires on the attack and not on the VPN.

Why this matters: prevention always eventually fails, so detection is the backstop that decides whether a breach is a 20-minute incident or a 3-month one. Interviewers probe whether you think in log sources → detection logic → tuning → ATT&CK coverage, whether you can write a rule and defend its false-positive behaviour, and whether you understand that the metric that matters is not "how many alerts" but "how fast, and how much noise."

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision