Defensive Security

Detection Engineering: Turning Telemetry Into Alerts That Matter

Most organisations discover the same thing a few months after deploying a detection platform: default rules generate either too much noise or too little signal. Detection engineering is the discipline that closes that gap — treating detections as code that is written, tested, versioned and retired deliberately rather than accumulated by accident.

Detection Engineering: Turning Telemetry Into Alerts That Matter

Why default rules are not enough

Out-of-the-box content is written for a generic environment. Yours is not generic: it has administrative tooling that looks suspicious, scheduled jobs that resemble persistence, and legitimate scripts that trip generic heuristics.

The result is predictable. Teams either suppress broadly, creating blind spots, or leave the noise in place until analysts learn to ignore that rule entirely — which is functionally the same as disabling it, but harder to audit.

The pyramid of pain, applied

A useful model for prioritising what to detect ranks indicators by how costly they are for an attacker to change.

File hashes are trivial to alter. IP addresses and domains are cheap to rotate. Tools take more effort to replace. Techniques and behaviours — how an attacker actually achieves persistence or moves laterally — are expensive to change because they reflect how the intrusion works.

Detections built on behaviour therefore survive far longer than detections built on indicators. Indicator feeds still have a place, but a detection programme resting entirely on them is rebuilt continuously.

Behaviour-based detection outlasts indicator-based detection
Behaviour-based detection outlasts indicator-based detection

The detection lifecycle

  1. Hypothesis — state the behaviour you want to catch, ideally mapped to a specific ATT&CK technique relevant to your threat model.
  2. Data check — confirm you actually collect the telemetry required. Most detection ideas die here, and that is useful information about coverage gaps.
  3. Write — express the logic, preferably in a portable format such as Sigma so it is not locked to one platform.
  4. Test positively — generate the behaviour safely in a lab or with an atomic test and confirm the rule fires.
  5. Test negatively — run it against historical data to measure how often it fires on normal activity. This is the step most often skipped, and it determines whether analysts will trust the rule.
  6. Document — record what it detects, what it does not, and exactly what an analyst should do when it fires.
  7. Maintain — review periodically. Environments change and rules silently rot.

Writing rules analysts can act on

  • Every alert needs a triage path. If the documentation cannot say what to check first, the rule is not finished.
  • Include context in the alert — the account, host, parent process and preceding activity — so triage does not begin with ten minutes of manual lookup.
  • Set severity honestly. If everything is critical, nothing is.
  • Prefer several precise rules over one broad rule with many exceptions; exceptions accumulate and become impossible to reason about.
  • Track per-rule false-positive rates and treat a rising rate as a defect to fix, not noise for analysts to absorb.
Untested rules are assumptions, not defences
Untested rules are assumptions, not defences

Measuring coverage honestly

Mapping detections to ATT&CK produces a coverage map, which is genuinely useful — provided it is read carefully. A technique marked "covered" by one narrow rule addressing one variant is not the same as robust coverage.

The honest version records what each detection catches and what it misses, and pairs the map with validation results proving the rule fires against a real test. Purple-team exercises are the most direct way to produce that evidence.

Related from TechBiz Security

Sources & further reading

Frequently asked questions

What is detection engineering?
It is the practice of designing, writing, testing and maintaining the rules that convert security telemetry into alerts — treating detections as code with a lifecycle rather than as one-off configuration.
What is Sigma?
Sigma is an open, vendor-neutral format for writing detection rules. Because rules can be converted to different platform query languages, detection logic stays portable rather than locked to a single SIEM.
Why are behaviour-based detections better than indicator-based ones?
Indicators such as hashes, IP addresses and domains are cheap for an attacker to change, so detections built on them decay quickly. Behavioural detections target how an intrusion works, which is far more costly to alter.
How do we know our detections actually work?
By testing them. Generate the behaviour safely and confirm the rule fires, then run it against historical data to measure false positives. Purple-team exercises validate detection at scale against realistic attack chains.

Related reading

0 comments

Leave a comment

Comments are moderated before appearing.