On this page
Threat hunting is the proactive search for attacker activity that your existing detections did not catch. It starts from the assumption that something may already be inside, and it asks questions of the data instead of waiting for alerts. A good hunting program finds intrusions occasionally, and something more valuable every time: new detections, fixed data gaps, and a much better understanding of what normal looks like.
This guide covers how to structure hunts, how to run a program around them, and how to make sure every hunt leaves something behind. It assumes reasonable telemetry (SIEM and log sources) and a working detection engineering process to hand results to.
When you are ready to hunt
Hunting on top of a SOC that cannot keep up with its alert queue is a luxury that rarely lasts. Prerequisites:
- EDR telemetry and identity logs searchable for at least 30 days, ideally 90.
- Analysts who can write queries fluently in your SIEM or data platform.
- Protected time: hunting that only happens "when the queue is quiet" never happens.
- A place for results to go: a detection backlog, a data gap list, an incident process.
If those are not in place, invest there first. A small team can start with one hunt per month and still get value.
Three kinds of hunts
The PEAK framework, published by Splunk's SURGe team (Prepare, Execute, and Act with Knowledge), describes three hunt types that cover most practice.
Hypothesis-driven hunts
Start with a testable statement about attacker behavior, usually derived from threat intelligence or an ATT&CK technique you have no detection for.
Hypothesis: an attacker with access to a workstation is using scheduled tasks created remotely to execute payloads on servers (T1053.005), and our current detection only covers tasks created locally.
You then identify the data that would show it, write queries, analyze results, and conclude: found, not found (with the confidence and limits of the data), or unable to test (data gap).
Baseline hunts
Also called exploratory or anomaly hunts. You characterize normal behavior for some aspect of the environment, then look for outliers. Examples:
- Every parent-child process pair seen on servers in the last 30 days, sorted by rarity.
- Every service installed on domain controllers.
- All outbound connections from servers to destinations seen on fewer than three hosts.
Baseline hunts often produce the most surprising findings, including non-malicious ones: forgotten software, misconfigurations, shadow IT. Those findings are still valuable.
Model-assisted hunts
Use statistical or machine learning models to surface candidates for human review: clustering command lines, scoring domain names for randomness, detecting beaconing intervals. The model narrows the haystack; the hunter decides.
A worked example: rare process lineage
A baseline hunt for unusual parent-child relationships on Windows servers, in KQL against EDR process events:
DeviceProcessEvents
| where Timestamp > ago(30d)
| where DeviceName in~ (ServerList) // replace with your server device list or a watchlist join
| summarize Hosts = dcount(DeviceName), Executions = count(),
SampleCmd = any(ProcessCommandLine)
by InitiatingProcessFileName, FileName
| where Hosts <= 2
| order by Executions asc
The same idea on endpoints running osquery, to list processes whose binary no longer exists on disk (often a sign of in-memory or deleted payloads):
SELECT pid, name, path, cmdline, parent
FROM processes
WHERE on_disk = 0;
Velociraptor can run equivalent artifacts across thousands of endpoints at once, which helps when the evidence you need is not in the SIEM (scheduled tasks, autoruns, prefetch, file system timelines).
Running hunts with a framework
Two public frameworks are worth reading before you design your process.
PEAK structures each hunt into Prepare (select topic, research, scope, plan), Execute (gather data, analyze, escalate critical findings), and Act (preserve the hunt, document, create detections, communicate). Its emphasis on knowledge throughout is the important part: every phase both uses and produces documentation.
TaHiTI (Targeted Hunting integrating Threat Intelligence), published by the Dutch financial sector, defines a three-phase process (initiate, hunt, finalize) with a strong link to threat intelligence as the trigger for hunts and a hunting backlog as the central artifact.
Pick one, adapt it, and use it consistently. The value is in the repeatability, not the specific framework.
The hunt backlog
Maintain a backlog of hunt ideas, each with:
- Trigger: intel report, ATT&CK gap, incident lesson, red team finding, analyst intuition.
- Hypothesis or question.
- Data required and whether you have it.
- Priority: threat relevance times likely impact times feasibility.
Sources of good ideas:
- Techniques used by adversaries targeting your sector, with no detection or only a low-confidence one.
- Post-incident reviews ("how would we have found this earlier?").
- Public reports on intrusions and new techniques.
- The ATT&CK coverage map: techniques with data but no detection are ideal hunt targets.
Documenting a hunt
Every hunt gets a short record, stored where future hunters will find it (a wiki, a Git repository, or Jupyter notebooks):
## Hunt H-2026-031: Remote scheduled task creation on servers
- Type: hypothesis-driven
- ATT&CK: T1053.005 (Scheduled Task), T1021 (Remote Services)
- Hypothesis: attackers create scheduled tasks remotely on servers to execute payloads.
- Data: EDR process events, Windows Security 4698, Task Scheduler operational log
- Time range: 2026-08-01 to 2026-11-01
- Queries: link to repository path
- Findings: 3 hosts with remote task creation by backup service account (benign, documented)
- Data gaps: Task Scheduler operational log not collected from 40 percent of servers
- Outputs: detection DET-212 created; log gap ticket raised with platform team
- Confidence: medium (data gap above)
The "outputs" line is the key. A hunt with no output is a hunt nobody learns from.
What hunts should produce
Every hunt ends with at least one of:
- An incident, handed to response with the evidence collected.
- A new or improved detection, handed to detection engineering with the query and the benign patterns found.
- A data gap, raised with the platform team.
- A hygiene or hardening finding, raised with the owning team.
- A documented negative, with the data and time range examined, so the question does not get re-asked blindly.
Converting hunts into detections is how a hunting program pays for itself: the hunter does the expensive work once, and the detection keeps watching.
Measuring the program
Avoid counting "threats found" as the main metric; most hunts in a well-run environment find no intrusion, and rewarding finds encourages hunting where it is easy, not where it matters. Better measures:
- Hunts completed per quarter, by trigger type.
- Detections created or improved from hunts.
- Data gaps identified and closed.
- ATT&CK techniques covered by a hunt in the last twelve months.
- Time from hunt idea to completion.
Report these alongside the SOC metrics, and show leadership a few concrete examples per quarter of what changed because of a hunt.
Staffing
Dedicated hunters are a luxury for small teams. Rotating analysts into hunting for a week per month spreads skills, improves triage quality, and is one of the better retention tools available; see roles and shift models. Pair a less experienced analyst with a senior one for their first few hunts.
References
Filed underdetectionthreat-intelsoc
Written by
Florian AmetteSecurity engineer writing practical, vendor-neutral guidance on building and running Security Operations Centers: detection engineering, SIEM, triage, incident response and SOC metrics.