Skip to main content
Hypothesis-Driven Threat Hunting
Lesson 12 of 13

Hypothesis-Driven Threat Hunting

Formulate testable threat-hunting hypotheses grounded in MITRE ATT&CK, run baseline and outlier queries in Splunk and Elastic telemetry, and convert validated findings into durable detections.

Advanced 28 min Blue Team / SOC

Learning objectives

  • Distinguish reactive alert triage and indicator sweeps from proactive, hypothesis-driven threat hunting
  • Formulate a scoped, falsifiable hunting hypothesis using MITRE ATT&CK techniques and endpoint telemetry
  • Execute frequency-stacking and outlier queries in Splunk SPL and Elastic EQL to uncover persistence mechanisms
  • Convert validated hunt findings into tuned Sigma or SIEM rules while documenting telemetry gaps

Recommended first: Splunk (SPL) & Elastic Security (KQL/EQL) OperationsMITRE ATT&CK Mapping, IoCs & Operational Threat IntelDetection Engineering & Portable Rules with Sigma

#Why this matters

Automated SIEM correlation rules catch known bad patterns, yet skilled adversaries routinely blend into normal system administration. They invoke signed binaries such as powershell.exe, schtasks.exe, or reg.exe, stage payloads in user-writable folders, and stay below brute-force volume thresholds. Waiting for an alert to fire leaves defenders blind to quiet persistence and lateral movement.

Hypothesis-driven threat hunting turns detection from passive waiting into structured inquiry. Instead of running aimless searches across terabytes of logs, an analyst starts from an adversary behaviour, predicts what traces it must leave in available telemetry, and tests whether those traces exist in the environment.

#From indicator sweeps to behavioural hunts

Earlier modules covered IOCs and Sigma rules. Checking whether a known malicious IP address or SHA-256 hash appears in yesterday's logs is useful, yet an indicator sweep has a short shelf life because attackers rotate infrastructure and recompile payloads daily. Behavioural threat hunting targets tactics, techniques, and procedures (TTPs) mapped in MITRE ATT&CK, which change much more slowly.

Hunt style Starting point Typical signal Shelf life
Indicator sweep Threat feed IP, domain, or hash Exact string match in proxy or EDR logs Hours to days
Anomaly hunt Environmental statistics Rare parent-child process or unusual logon hour Weeks to months
Hypothesis hunt ATT&CK technique plus local threat model Specific behaviour contradicting normal baseline Months to years

A mature hunt follows a closed loop so every session improves the SOC whether an intrusion is found or not:

  1. ObserveThreat intel, ATT&CK TTP, or new asset rollout
  2. HypothesizeDefine behaviour, host scope, and log fields
  3. InvestigateQuery baseline and inspect rare outliers
  4. ValidateConfirm benign admin activity or escalate incident
  5. OperationalizeShip tuned detection rule and fix log gaps

#Anatomy of a testable hypothesis

A vague question such as "Are there any hackers in our network?" cannot be tested in a SIEM. A practical hunting hypothesis specifies four elements:

  1. Adversary behaviour (TTP): Which technique are we testing, such as Registry Run key persistence (T1547.001) or Scheduled Task creation (T1053.005)?
  2. Scope: Which host group, operating system, user tier, and time window are included?
  3. Required telemetry: Which log sources and fields must exist to observe the technique, such as Sysmon Event ID 1 (process creation) and Event ID 13 (registry value set), or Windows Security Event ID 4688 and 4698?
  4. Falsification criteria: What separates expected administrative baselines from suspicious outliers?

Before running broad queries, verify that the required telemetry actually arrives from the scoped hosts. If half of the workstation fleet lacks Sysmon Event ID 13 or Windows command-line auditing (4688), zero results prove a visibility gap, not a clean environment.

#Hunting persistence with frequency stacking

Endpoint fleets exhibit strong regularity: software deployment tools, login scripts, and signed updaters run the same commands on dozens or hundreds of hosts. Adversaries, by contrast, rarely deploy an identical custom persistence command across an entire university network. Stacking (long-tail frequency analysis) counts unique combinations of fields and sorts from rarest to most common.

Consider hunting Windows persistence via schtasks.exe (T1053.005) and Registry Run keys (T1547.001). In Splunk SPL, an analyst can stack registry modifications touching Run keys by modifying process, target key, and value data:

sql
index=sysmon EventCode=13 TargetObject="*\\CurrentVersion\\Run*"
| stats count values(host) as hosts by Image, TargetObject, Details
| sort count

In Elastic Security, Event Query Language (EQL) expresses process-relationship hunts cleanly across normalized ECS fields. The following query looks for Office or script hosts spawning task-scheduling or registry utilities:

sql
process where host.os.type == "windows" and
  process.parent.name : ("winword.exe", "excel.exe", "wscript.exe", "powershell.exe") and
  process.name : ("schtasks.exe", "reg.exe")

When reviewing exported endpoint logs during triage or offline lab hunts, analysts often combine quick CLI filtering with SIEM pivots:

Inspecting exported Sysmon Run-key events from a lab fleet
$ jq -r 'select(.EventID==13 and (.TargetObject | test("CurrentVersion\\\\Run"))) | [.UtcTime, .Computer, .Image, .Details] | @tsv' lab-sysmon.jsonl | sort -k3
2026-11-10T08:14:02Z	wks-104.lab.local	C:\Program Files\CampusSync\updater.exe	"C:\Program Files\CampusSync\updater.exe" --silent
2026-11-10T08:14:05Z	wks-119.lab.local	C:\Program Files\CampusSync\updater.exe	"C:\Program Files\CampusSync\updater.exe" --silent
2026-11-10T09:42:18Z	wks-042.lab.local	C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe	"C:\Users\Public\netdiag.exe" -bg

The first two lines reflect expected campus software across many workstations. The third line stands out immediately: powershell.exe wrote a Run-key entry pointing to C:\Users\Public\netdiag.exe on a single host (wks-042.lab.local).

#Turning hunt results into durable detections

A threat hunt creates lasting value only when findings feed back into engineering and operations. Every completed hunt should produce one or more concrete outputs:

  • Detection rule: If the hunt uncovered a malicious or high-risk behaviour with a clean baseline, translate the query into a portable Sigma rule or scheduled SIEM search, adding verified benign exclusions.
  • Telemetry ticket: If certain subnets or Linux/Windows servers lacked required logs (for example, PowerShell Script Block Logging Event ID 4104 or auditd execve rules), file an engineering task specifying the exact missing source and fields.
  • Baseline documentation: Record newly discovered legitimate admin scripts and IT tools so future shifts do not waste triage time re-investigating them.

#Common mistakes

  • Skipping telemetry validation: Assuming logs are complete across every host, then declaring the network clean when an index actually covers only half the fleet.
  • Querying without scope: Searching raw process logs across 90 days with leading wildcards (*exe*), exhausting SIEM search capacity without testing a specific hypothesis.
  • Alerting before baselining: Promoting a raw hunt query straight into a high-severity SOC alert without filtering known IT deployment tools, creating alert fatigue.
  • Stopping after one IOC: Finding a single suspicious binary and stopping, instead of pivoting on its parent process, network destinations, and persistence keys across all peers.

#Summary

  • Hypothesis-driven threat hunting shifts the SOC from reactive alert handling to structured, ATT&CK-grounded investigation.
  • Every strong hypothesis defines a specific adversary technique, host and time scope, required log fields, and clear falsification criteria.
  • Frequency stacking separates rare persistence commands and abnormal parent-child process trees from high-volume administrative baselines.
  • A completed hunt always produces durable outcomes: tuned Sigma or SIEM detections, documented baselines, and tracked visibility-gap fixes.

Knowledge check

Sign in to take the test, complete lessons and save your progress. Log in

Practice: test your knowledge