Threat Hunting: A Practitioner's Guide

What threat hunting is, the three ways to start a hunt, the data it needs, a worked hunt from hypothesis to query, how to turn every hunt into a detection, and how to measure a hunt program.

Last reviewed December 2026

Threat hunting is the proactive, human-led search through your own telemetry for attacker activity that your existing detections did not catch.

The key word is proactive. Alert triage starts from something a rule already flagged. A hunt starts from a question: if an attacker were doing this here, what would it look like, and is it in our data? A good hunter answers that question, writes down the answer, and leaves something behind that keeps answering it after the hunt is over.

That last part is where most hunt programs fall short, and it is the angle of this guide. A hunt's real output is detection work. If you find an intrusion, you also learn what should have caught it. If you find nothing, you still come away with a rule, a data gap, or a confirmed fact about your coverage. Hunting is one of the best sources of new rules a detection engineering team has, as long as someone closes the loop.

Hunting, triage and detection: where the lines are

The three activities share data and often people, so be precise.

Starts fromOutput
Alert triageAn alert a rule producedA disposition: true positive, false positive, benign
Detection engineeringA behavior worth catchingA tested rule that fires on your data
Threat huntingA question no rule answers yetFindings, plus new rules, data gaps and coverage facts

Triage is reactive by design (see our alert triage guide). Detection engineering is automated vigilance: once a rule exists, the SIEM asks the question for you every few minutes. Hunting sits in front of both. It covers the ground rules cannot reach yet, either because the behavior is too noisy to alert on, too new to have a rule, or too context-dependent to express as a single query.

Three ways to start a hunt

Most hunts begin in one of three ways. They are not exclusive, and a mature program runs all three.

Hypothesis-driven

You state a testable claim about attacker behavior in your environment, then look for evidence for or against it. The hypothesis usually comes from a technique in MITRE ATT&CK, a red team finding, or a gap you already suspect.

A useful hypothesis is specific enough to disprove. "Attackers might be in our network" is not one. "An attacker with user-level access has created a scheduled task that runs a binary from a user-writable directory" is: it names a technique, an artifact, and a place to look.

Intelligence-driven

You start from a report about a specific actor, campaign or tool and ask whether its behavior appears in your data. Indicators (hashes, domains, IPs) are the quick first pass, but they age fast. The more durable hunt targets the behaviors underneath them: how the actor got in, how it persisted, how it moved. David Bianco's Pyramid of Pain makes the same point. Indicators near the bottom are cheap for an attacker to change; tools and behaviors near the top are not.

Data-driven (anomaly)

You start from the data itself, with no specific technique in mind, and look for things that are rare, new or out of pattern: a parent-child process pair seen on one host, a service account logging in interactively for the first time, a host talking to a domain nobody else contacts. The classic technique is stacking: count occurrences of a value across the estate and read the long tail.

Data-driven hunts find things hypotheses miss, and a lot of strange-but-benign software. Every benign oddity you explain is a future exclusion already researched.

Hunting frameworks worth knowing

You do not need a formal framework to hunt, but a written loop keeps hunts comparable and makes sure the last step happens.

  • PEAK (Prepare, Execute, Act with Knowledge), published by Splunk's SURGe team in 2023, names three hunt types that line up with the ones above: hypothesis-driven, baseline (exploratory data analysis), and model-assisted. Its "Act" phase is explicitly about documenting findings and turning them into detections.
  • TaHiTI (Targeted Hunting integrating Threat Intelligence) came out of the Dutch financial sector in 2018. It runs in three phases, Initiate, Hunt and Finalize, and is built around threat intelligence as the trigger for hunts.

Both share the same shape: define the hunt, run it, then hand off what you learned. If your team adopts nothing else, adopt the hand-off.

What you need before you hunt

Hunting is limited by the data you keep, more than by skill. Before you plan a hunt program, check three things.

The right telemetry. Endpoint process creation with full command lines is the single most useful source for most hunts. After that: authentication logs from your identity provider and domain controllers, DNS and proxy logs, cloud control-plane logs (CloudTrail, Azure Activity, Google Cloud audit logs), and email. If a hunt needs a source you do not collect, that is the finding.

Retention long enough to look back. Attackers are often present for weeks before anything alerts. A hunt over seven days of data can only rule out the last seven days. Know your hot and searchable retention per source, and whether older data can be queried at all or has to be restored first.

Consistent fields. A hunt query that assumes a field name works only where that field is populated. The same problem silently breaks rules: in our Detection Debt Report, 29% of deployed, enabled rules were broken, and missing or renamed fields were a common cause. Check field population per source before you trust a zero.

A worked hunt: scheduled tasks from user-writable paths

Here is one hunt end to end, written the way you would record it.

Hypothesis. An attacker with user-level access on a Windows endpoint has used schtasks.exe to create a scheduled task that executes a binary or script from a user-writable directory, for persistence (ATT&CK T1053.005, Scheduled Task).

Data. Process creation events with command lines. In Microsoft Defender for Endpoint that is the DeviceProcessEvents table. With Sysmon, event ID 1.

Scope. All Windows endpoints and servers, last 30 days.

Query. Find schtasks create commands that reference common user-writable locations, then stack them so the rare ones rise to the top:

DeviceProcessEvents
| where Timestamp > ago(30d)
| where FileName =~ "schtasks.exe"
| where ProcessCommandLine contains "/create"
| where ProcessCommandLine matches regex @"(?i)\\(AppData|Temp|Users\\Public|ProgramData)\\"
| summarize Hosts = dcount(DeviceName),
            Executions = count(),
            FirstSeen = min(Timestamp),
            LastSeen = max(Timestamp),
            SampleCommand = take_any(ProcessCommandLine)
    by InitiatingProcessFileName, AccountName
| order by Hosts asc, Executions asc

The equivalent in Splunk over Sysmon data:

index=sysmon EventCode=1 Image="*\\schtasks.exe" CommandLine="*/create*"
| regex CommandLine="(?i)\\\\(AppData|Temp|Users\\\\Public|ProgramData)\\\\"
| stats dc(host) AS hosts count AS executions min(_time) AS first_seen max(_time) AS last_seen values(CommandLine) AS commands BY ParentImage User
| sort hosts executions

Index and field names depend on your ingest setup; adjust both.

Reading the results. The top of the list is where to look: a parent process and account pair seen on one or two hosts. Typical benign hits are per-user installers and updaters that register their own tasks from AppData, and IT scripts that stage files in ProgramData. Suspicious hits look like a task created by cmd.exe or powershell.exe launched from an Office application, a random-looking task name, or a target binary with a name pretending to be a system file.

Positive control. Before you conclude "nothing found", prove the query can find something. Create a test task on a lab host (Atomic Red Team has tests for T1053.005) and confirm it appears. A zero from a query that cannot match is not evidence of absence.

Turning the hunt into detections

Whatever the hunt found, it ends with a hand-off. There are four possible outcomes, and each produces something.

OutcomeWhat you leave behind
Found malicious activityAn incident, plus a rule that would have caught it
Found nothing, query works, noise is lowA scheduled rule built from the hunt query
Found nothing, query works, noise is highA hunting query on a schedule, or a lower-severity signal for correlation, plus the exclusions you researched
Could not answer the questionA data-gap finding: which source, which field, which hosts, and who owns fixing it

For the worked hunt, the second or third row is the likely result. Turning it into a rule means narrowing the time window to the rule's schedule, adding the benign updaters you identified as named exclusions with a reason for each, and raising an alert per event instead of a summary:

DeviceProcessEvents
| where Timestamp > ago(1h)
| where FileName =~ "schtasks.exe"
| where ProcessCommandLine contains "/create"
| where ProcessCommandLine matches regex @"(?i)\\(AppData|Temp|Users\\Public|ProgramData)\\"
// Exclusions researched during the hunt, one per benign parent, each with a ticket reference
| where not(InitiatingProcessFolderPath contains @"\ExampleVendor\Updater\")   // HUNT-142: vendor updater, per-user install
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, ProcessCommandLine

Treat the exclusion list as the risky part: it is the place coverage quietly disappears, so it deserves review like any other change. If you manage rules as code, the hunt's positive control becomes the rule's test case, and the hunt write-up becomes the rule's documentation. If you write portable rules, the same logic translates to a Sigma rule on the process_creation logsource.

A coverage fact is also a real output. "We hunted for T1053.005 across all Windows hosts for 30 days, with a working positive control, and found only these known updaters" is something your ATT&CK coverage map can record, with a date.

Measuring a hunt program

Counting hunts measures activity, not value. Track what hunts leave behind:

  • Detections created or improved from hunts, per quarter.
  • Data gaps found, and closed. A gap that stays open is a known blind spot; report its age.
  • Techniques hunted with a working positive control, mapped to ATT&CK, so coverage claims have evidence behind them.
  • Incidents found by hunting rather than by alerts. Expect this number to be small. A program judged on it alone will look like a failure in a quiet quarter.
  • Survival of hunt-born rules. Are rules created from hunts still firing on test data six months later? Rules break as data changes, so test them like any other rule.
  • Time from hunt to deployed rule. A finding that waits two months for a rule is a finding you are paying for twice.

Common mistakes

  • Hunting without a hypothesis or a stopping point. Open-ended browsing feels productive and produces nothing reusable. Even data-driven hunts need a scope and a time box.
  • Indicator sweeps called hunts. Searching for a list of hashes from a report is worth doing, but it is a lookup. The hunt is the behavior behind the indicators.
  • Trusting a zero. No results can mean no activity, a wrong field name, a missing source or too-short retention. Run a positive control.
  • No write-up. If the hypothesis, query, data checked and result are not recorded, the next hunter repeats the work.
  • No hand-off. The most common failure. Hunts that end in a slide instead of a rule, a ticket or a coverage entry do not compound.

Where hunting fits

Hunting and detection engineering are one loop. Hunts find behaviors and blind spots; detection engineering turns them into rules that keep looking; detection health checks keep those rules working; and the gaps that remain become the next hunts.

Spectrum is built around that loop. Coverage recommendations point to the techniques and data sources where your rules are thinnest, which is a good place to aim the next hunt, and the detection engineering platform turns what a hunt finds into tested rules written for your own schema. Whichever tools you use, judge each hunt by what it left behind.

See what your environment is actually detecting

Spectrum maps your coverage, builds the detections you are missing, and keeps them working.