Skip to content

Latest commit

 

History

History
153 lines (106 loc) · 7.04 KB

File metadata and controls

153 lines (106 loc) · 7.04 KB
cover ../../.gitbook/assets/RootGuardTHLandingPage.png
coverY 0
layout
width cover title description tableOfContents outline pagination metadata
default
visible size
true
hero
visible
true
visible
true
visible
true
visible
true
visible
true
visible
true

Threat Detection

The practice of designing, building, and maintaining detection logic that identifies threats in your environment—turning threat intelligence into actionable alerts.


What is Detection Engineering?

Detection Engineering bridges the gap between knowing a threat exists and actually detecting it. It's the systematic process of translating adversary behaviours, TTPs, and indicators into detection rules that generate high-fidelity alerts.

Threat Intelligence Detection Logic Actionable Alert
ATT&CK technique KQL / SPL / YARA rule Triageable event
IOC feed Correlation rule Enriched alert
IR findings Behavioural analytic Investigation trigger

The goal: Detect real threats with minimal false positives, enabling analysts to focus on what matters.


Why It Matters

Without detection engineering, SOCs drown in vendor-default rules that generate noise without context. Effective detection engineering delivers:

  • Coverage — Mapped detection across MITRE ATT&CK tactics
  • Precision — Reduced false positives through environmental tuning
  • Context — Alerts enriched with investigative guidance
  • Resilience — Detections that survive adversary evasion
  • Measurability — Quantified detection gaps and coverage metrics

Core Responsibilities

Rule Development

Writing detection logic in KQL, SPL, Sigma, YARA, or Snort/Suricata syntax based on threat intelligence and attack patterns.

Tuning & Optimisation

Reducing false positives by understanding environmental baselines, excluding known-good activity, and refining thresholds.

Coverage Analysis

Mapping existing detections to MITRE ATT&CK, identifying gaps, and prioritising development based on threat relevance.

Validation & Testing

Using atomic tests, purple team exercises, and attack simulations to verify detections fire correctly.

Documentation

Maintaining detection metadata: intent, data sources, false positive guidance, and response procedures.


The Detection Lifecycle

┌─────────────┐    ┌─────────────┐    ┌─────────────┐    ┌─────────────┐
│  Research   │ →  │   Develop   │ →  │   Validate  │ →  │   Deploy    │
│             │    │             │    │             │    │             │
│ Threat intel│    │ Write logic │    │ Test against│    │ Production  │
│ ATT&CK TTPs │    │ Tune for env│    │ atomic tests│    │ monitoring  │
│ IR findings │    │ Add context │    │ Purple team │    │ Feedback    │
└─────────────┘    └─────────────┘    └─────────────┘    └─────────────┘
                                                               │
                         ┌─────────────┐                       │
                         │   Maintain  │ ←─────────────────────┘
                         │             │
                         │ Review FPs  │
                         │ Update logic│
                         │ Retire stale│
                         └─────────────┘

Detection Types

TypeDescriptionExample
SignatureKnown-bad indicatorsHash, IP, domain blocklist
BehaviouralSuspicious activity patternsLSASS access from unusual process
AnomalyDeviation from baselineFirst-time PowerShell execution by user
CorrelationMultiple events combinedFailed logins + successful auth + data access
ThresholdVolume-based triggers>10 failed logins in 5 minutes

Best practice: Layer detection types—signatures catch known threats, behavioural catches novel attacks.


Key Frameworks & Tools

CategoryTools
Detection LanguageKQL, SPL, Sigma, YARA, Snort/Suricata
SIEM/XDRSentinel, Defender XDR, Splunk, Elastic
TestingAtomic Red Team, MITRE Caldera, Stratus Red Team
Coverage MappingDeTT&CT, ATT&CK Navigator
Rule ReposSigma HQ, Elastic Detection Rules, Azure Sentinel

From SOC Analyst to Detection Engineer

Detection engineering is a natural progression for analysts who want to move from reactive alert handling to proactive defence.

Skills to develop:

  • Query languages — KQL, SPL, or your platform's syntax
  • Log source knowledge — Understanding what telemetry exists and what it captures
  • ATT&CK fluency — Mapping techniques to data sources and detection opportunities
  • Scripting — Python/PowerShell for automation and validation
  • Adversary mindset — Thinking like an attacker to anticipate evasion

{% hint style="info" %} Start here: Take alerts you've triaged, identify the detection logic behind them, and propose improvements based on false positive patterns or missed context. {% endhint %}


Measuring Success

Metric What It Tells You
MITRE coverage % Gaps in detection capability
Mean time to detect (MTTD) Speed of threat identification
False positive rate Rule precision and tuning needs
Detection-to-incident ratio Signal quality
Rule validation pass rate Detection reliability

Quick Wins

  1. Document FP patterns — Track why alerts are closed as false positives; feed back into tuning
  2. Build a Sigma library — Platform-agnostic rules you can take anywhere
  3. Map one tactic — Pick a MITRE tactic, audit coverage, build detections for gaps
  4. Automate validation — Schedule atomic tests against your detection rules
  5. Create runbooks — Pair every detection with analyst response guidance

Detection engineering transforms SOC operations from alert-driven chaos to intelligence-led defence.