Threat hunting
Threat hunting is the proactive search for malicious activity that automated detections haven’t found. It starts from an uncomfortable premise, assume breach: instead of waiting for an alert, the hunter asks a concrete question about how an adversary would act and tests it against the telemetry. A good hunt always leaves something behind, even if it finds nobody: a new detection, an identified visibility gap, or documented certainty that the technique isn’t happening.
What it solves
Section titled “What it solves”- What rules don’t cover: techniques without detection, thresholds set too high, living off the land activity that looks like legitimate administration.
- Long intrusions: in espionage cases the median dwell time was 122 days in 2025 (M-Trends 2026); hunting looks for what has been inside for months without making noise.
- Improving the system: every repeatable hunt becomes a rule (detection) and every hunt that fails for lack of data points to what should be logged.
Hunting vs detection
Section titled “Hunting vs detection”| Automated detection | Hunting | |
|---|---|---|
| Trigger | A rule matches | A hypothesis, new intelligence or a baseline |
| Question | “Did X happen?” | “Is there anything like X, or anything odd here?” |
| Who | The SIEM or EDR, continuously | A person, in time-boxed sessions |
| Outcome | Alert for triage | Finding, new detection, visibility gap or documented “clean” |
Hunt types: the PEAK framework
Section titled “Hunt types: the PEAK framework”PEAK (Prepare, Execute, and Act with Knowledge), published by Splunk’s SURGe team in 2023, organizes the work into three phases (prepare, execute, act) and distinguishes three hunt types. It presents itself as the successor to earlier frameworks such as Sqrrl’s (2015) and TaHiTI (2018).
| Type | Starting point | Example |
|---|---|---|
| Hypothesis-driven | A concrete assumption about an adversary | “LSASS is being dumped from processes that aren’t security tools” |
| Baseline (exploratory) | Understanding what’s normal in some data | Every parent → child process pair on the web servers |
| Model-assisted (M-ATH) | An algorithm (clustering, anomaly detection, classification) | Beaconing detection from connection periodicity |
flowchart LR
subgraph P["Prepare"]
T["Topic<br/>CTI, ATT&CK, incident"] --> H["ABLE hypothesis"]
H --> D{"Is there data?"}
end
subgraph E["Execute"]
Q["Queries"] --> A["Analysis<br/>stack counting,<br/>pivoting"]
end
subgraph AC["Act"]
R["Document"] --> O["New detection,<br/>visibility or<br/>response"]
end
D -->|Yes| Q
D -->|No| V["Visibility<br/>gap"]
A --> R
V --> R
To write hypotheses, PEAK uses ABLE:
| Element | Meaning | Example (LSASS dumping, T1003.001) |
|---|---|---|
| Actor | Who (or what kind of actor) | Ransomware operator with administrator access |
| Behavior | What they do | Opens lsass.exe with memory read rights and writes a dump |
| Location | Where it would show | Windows workstations and servers in the domain |
| Evidence | What data proves it | Sysmon 10 (TargetImage = lsass) and 11 (.dmp file), or equivalent EDR telemetry |
In practice: two hunts on real events
Section titled “In practice: two hunts on real events”The examples use the 278 attack recordings from EVTX-ATTACK-SAMPLES loaded into a SQLite table (Sysmon events, 1,491 process creations). In a real environment the base would be normal activity; here every recording is an attack, so they illustrate the method, not what’s actually “rare”.
Baseline hunt: children of server and Office processes
Section titled “Baseline hunt: children of server and Office processes”A web server, a database, Word or the WMI provider rarely spawn processes, and almost never command interpreters. The technique is stack counting: group, count, and look at the least frequent first.
SELECT base(ParentImage) AS parent, base(Image) AS child, count(*) AS n, count(DISTINCT Computer) AS hostsFROM sysmonWHERE EventID = 1 AND base(ParentImage) IN ('w3wp.exe','sqlservr.exe','winword.exe','excel.exe','wmiprvse.exe')GROUP BY parent, childORDER BY n, parent;parent | child | n | hostssqlservr.exe | cmd.exe | 1 | 1w3wp.exe | cmd.exe | 1 | 1w3wp.exe | powershell.exe | 1 | 1winword.exe | cmd.exe | 1 | 1winword.exe | rundll32.exe | 1 | 1wmiprvse.exe | calc.exe | 1 | 1wmiprvse.exe | svhost64.exe | 1 | 1wmiprvse.exe | rundll32.exe | 3 | 1wmiprvse.exe | cmd.exe | 8 | 2...(base() is a one-line function that returns the executable name without the path.)
Each row is a thread to pull. w3wp.exe → cmd.exe is the pattern of a webshell; wmiprvse.exe → cmd.exe is remote execution via WMI (T1047). And svhost64.exe, imitating svchost.exe, deserves a pivot:
Image: \Device\HarddiskVolumeShadowCopy7\Windows\Temp\svhost64.exeCommandLine: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy7\\Windows\Temp\svhost64.exeAn executable with a fake name, launched from inside a volume shadow copy (VSS) and via WMI: the attacker hides the binary where antivirus that only scans the live disk doesn’t look. None of those three signals is conclusive on its own; together, they are.
Hypothesis hunt: who opens LSASS
Section titled “Hypothesis hunt: who opens LSASS”SELECT base(SourceImage) AS source, GrantedAccess, count(*) AS nFROM sysmonWHERE EventID = 10 AND base(TargetImage) = 'lsass.exe'GROUP BY source, GrantedAccessORDER BY n DESC, source;source | GrantedAccess | nrundll32.exe | 0x001fffff | 4powershell.exe | 0x00001010 | 3andrewspecial.exe | 0x001fffff | 2outflank-dumpert.exe | 0x001fffff | 2procdump.exe | 0x001fffff | 2services.exe | 0x00001410 | 1taskmgr.exe | 0x001fffff | 1voice_mail.msg.exe | 0x001f1fff | 1...18 combinations from 14 different executables. The analysis splits them into three groups: what’s expected on a system (services.exe), what’s legitimate but needs justification (taskmgr.exe creating a dump: did an administrator do it?) and what has no explanation (rundll32.exe, powershell.exe, an executable with a double extension). In production, the first group is documented as baseline and excluded; the third is investigated and turned into a rule.
Emulation: generating what you want to hunt
Section titled “Emulation: generating what you want to hunt”Before calling a hunt “clean”, you need to know the telemetry would see the technique if it happened. For that, emulate in a lab or on a controlled machine:
- Atomic Red Team: small tests per technique. As of November 2026 it has 1,950 tests for 353 techniques and sub-techniques (1,324 for Windows); for T1003.001 alone there are 14, from ProcDump or
comsvcs.dllto Task Manager. - CALDERA (MITRE): chains techniques into full operations.
- Purple team: offense and defense together, executing and checking detection live.
From hunt to detection
Section titled “From hunt to detection”The LSASS hunt becomes the Sigma rule in the detection page: exclusions come from the baseline and the rule is tested against the same recordings. What can’t become a rule (because it needs human judgment) becomes a scheduled hunt: the same query every week, reviewed by a person.
| Hunt outcome | What gets delivered |
|---|---|
| Malicious activity | Escalation to response (incident management) and a new detection |
| Repeatable, precise pattern | Rule in the SIEM or EDR |
| Useful but noisy pattern | Scheduled hunt or dashboard |
| No data | Telemetry request (Sysmon, auditing) |
| Nothing found | Record: hypothesis, queries, period, data used |
Measuring hunting
Section titled “Measuring hunting”- Hunts completed and ATT&CK techniques they cover.
- New detections and visibility gaps closed as a result.
- Incidents discovered by hunting versus those discovered by alerts.
- Don’t measure “threats found”: a good program in a clean environment finds few, and rewarding findings pushes people to exaggerate.
Common mistakes
Section titled “Common mistakes”- Hunts without a hypothesis (“let’s see what comes up”): they burn hours and leave nothing.
- Calling clean something the telemetry wouldn’t have seen.
- Not documenting: the same hunt gets redone from scratch months later.
- Confusing hunting with working the alert backlog: that’s SOC triage.
Real cases
Section titled “Real cases”- Volt Typhoon (2023): the May 2023 joint advisory from US agencies and their partners included hunting guidance because the activity relied on built-in tools (
wmic,ntdsutil,netsh, PowerShell) that blend in with normal administration and that default logging barely records. Detection depended on baselines and on hunting behavior, not on signatures.
Checklist
Section titled “Checklist”- Hypothesis written with ABLE and an associated ATT&CK technique
- Required data identified and checked before starting
- Queries saved and reproducible
- Technique emulated to confirm the telemetry would see it
- Findings escalated to response
- Outcome turned into a rule, a scheduled hunt or a telemetry request
- Hunt recorded even with no findings
References
Section titled “References”- Splunk SURGe — The PEAK Threat Hunting Framework
- Splunk SURGe — Hypothesis-Driven Hunting with PEAK (ABLE)
- EVTX-ATTACK-SAMPLES — sbousseaden
- Atomic Red Team
- MITRE CALDERA
- CISA — PRC State-Sponsored Cyber Actor Living off the Land to Evade Detection (AA23-144A)
- MITRE ATT&CK — T1047 Windows Management Instrumentation