Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Detection Engineering

Direct answer

Detection engineering designs, tests and tunes the rules and analytics that find attacker behaviour in logs and telemetry — signatures, behavioural and anomaly detections, Sigma and YARA — with low false positives.

When to use this

Use this when building, testing and tuning detections for attacker behaviour.

First 30 seconds

1. Detection engineering builds, tests and maintains detections.

2. Start from threats and data.

3. Version, review, test.

4. Measure coverage and quality.

5. Iterate with incidents and red team.

Operational verification

threat → hypothesis → rule → test → deploy → tune

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Writing rules without checking the required log source exists and is complete.
  • No test data, so rules are never confirmed to fire.
  • Rules deployed without an owner or response playbook.
  • Measuring success by number of rules rather than detection coverage and precision.
Platform / version applicability
Security monitoring, detection and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSecurity monitoring, detection and operations
Scope / prerequisiteUse this when building, testing and tuning detections for attacker behaviour.
What next?2 suggested next steps
Child topics (this level)10
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic Detection Rule

A detection rule is logic that searches telemetry for a specific suspicious condition and raises an alert, with a description, severity, MITRE ATT&CK mapping, data source and tested response steps.

Subtopic Indicators of Compromise

Indicators of compromise (IOCs) are artefacts showing a system may be compromised — malicious hashes, IP addresses, domains, file paths or registry keys — used for searching and blocking.

Subtopic Indicators of Attack

Indicators of attack (IOAs) describe attacker behaviour in progress, such as credential dumping or lateral movement, rather than artefacts.

Subtopic Behavioral Detection

Behavioral detection looks for attacker techniques rather than specific files, such as Office spawning PowerShell or LSASS memory access, so it catches new malware using known methods.

Subtopic Signature Detection

Signature detection matches known patterns of malicious code or traffic, such as byte sequences or hashes.

Subtopic Sigma Rules

Sigma rules are a vendor-neutral YAML format for log detection rules, which tools like sigma-cli convert to Splunk, Elastic, Sentinel and other SIEM query languages.

Subtopic YARA

YARA is a pattern-matching language for identifying malware by strings, byte patterns and conditions in files or memory, widely used in malware research, scanning and incident response.

Subtopic Baseline

A baseline is the normal pattern of activity for a user, host or network — logons, processes, traffic volume — measured over time so detections can recognize what is unusual.

Subtopic Anomaly Detection

Anomaly detection in detection engineering flags activity that deviates statistically from a learned baseline, such as unusual logon times or data volumes, catching unknown attacks at the cost of more false positives.

Subtopic Detection Tuning

Detection tuning adjusts rules to cut false positives without losing real detections: add precise exclusions, adjust thresholds, enrich with context and retire rules that never produce useful alerts.

Key points
  • Behavioural detections outlast IOC-based ones.
  • Every rule needs test data and a response.
  • Tuning is ongoing, not a one-time job.
Key checks
  • Detection backlog and coverage map — ATT&CK
  • Detection tests (Atomic Red Team in lab) — validation
  • Rule repo with CI — detections as code
ReferenceWhy it matters1 section · depth on demand

Detection engineering lifecycle

1. Requirement: threat or technique to detect (ATT&CK, incident, threat intel).

2. Data: confirm the logs exist and are parsed.

3. Build: write the rule (Sigma, KQL, SPL) with exclusions.

4. Test: simulate the behaviour and benign activity.

5. Deploy with severity and response guidance.

6. Tune and retire: measure true/false positives, update or remove.

Store rules as code in Git with reviews (detection-as-code).

ReferenceHow it works1 section · depth on demand

In depth

Detection engineering is the discipline of designing, building, testing and maintaining detections that find malicious activity in security telemetry. It treats detections as software: version-controlled, tested, reviewed and measured.

Lifecycle:

StageActivity
RequirementThreat or technique to detect (ATT&CK)
DataConfirm required telemetry exists
DevelopmentWrite rule (Sigma, KQL, SPL, EQL)
TestingSimulate the technique; check for false positives
DeploymentThrough CI/CD to the SIEM/EDR
MaintenanceTune, retire, measure true-positive rate

The topics in this group cover detection rules, indicators, behavioural detection, Sigma and YARA.

ReferenceImportant terms & boundaries1 section · depth on demand

Detection-as-code workflow

1. Write the rule in a portable format (Sigma) with metadata and ATT&CK mapping.

2. Store in Git; peer review via pull request.

3. Test in CI against sample logs (true positive and benign samples).

4. Deploy to the SIEM via pipeline (e.g. sigma convert -t splunk).

5. Monitor alert volume and precision; retire or tune.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docSecurity monitoring, detection and operations current

Authoritative/upstream documentation reviewed for bounded claims in Detection Engineering. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://sigmahq.io/docs/basics/rules.html · confidence 94%
Confirmation

Confirm action

Continue?