Threat hunting technique asks "how do I hunt this host". This skill
asks the program question: "how do we hunt, every month, with
evidence, so the organization gets safer whether or not a given
hunt finds an intruder". A program is a backlog, a cadence, data
that is ready before the hunt starts, and a rule that every hunt
ends in either a finding, a detection, or a documented data gap.
Hunts that end in nothing, with nothing written down, are not
hunting, they are browsing logs with extra steps.
Quick Workflow
- Assess data readiness first: which log sources exist, how long
they are retained, and which hunt questions they can answer.
- Build the hypothesis backlog: one hypothesis per row, with the
technique, the expected evidence, the data source, and a score.
- Score hypotheses by threat relevance, data readiness, and
blast radius, and hunt the top of the list, not the newest idea.
- Scope each hunt: time window, host population, and a clear
stop condition, written before the hunt starts.
- Execute in two passes: a broad sweep for the pattern, then a
deep dive on the hits, with every query saved.
- Triage hits: benign, suspicious, or confirmed malicious, with
the evidence that justifies the verdict.
- Convert every hunt outcome into an artifact: a detection, a
tuning change, a data gap ticket, or an incident.
- Report program metrics monthly: hunts run, findings, detections
created, data gaps closed, and time from hypothesis to verdict.
1. Data readiness assessment
A hunt cannot answer a question the logs cannot support. Before
scheduling a hunt, check that the needed log source exists on the
target population, that retention covers the hunt window, and that
a test query returns the expected fields. Hunting without this
check produces the worst outcome in the program: a clean result
that means "no data", reported as "no threat".
# readiness.py - check whether a hunt hypothesis is answerable.
# Input: hypotheses.csv with columns id, technique, log_source,
# required_fields (semicolon separated), retention_days_needed.
# Data source availability is supplied as a simple mapping below;
# in production, load it from the SIEM asset and log source inventory.
available = {
"sysmon": {"retention_days": 90, "fields": ["Image", "ParentImage", "CommandLine", "User"]},
"edr": {"retention_days": 30, "fields": ["process", "parent", "cmdline", "user"]},
"dns": {"retention_days": 180, "fields": ["query", "src_host", "answer"]},
}
import csv
with open("hypotheses.csv", newline="") as fh:
for row in csv.DictReader(fh):
src = available.get(row["log_source"])
if src is None:
print(f"{row['id']}: NOT READY - log source {row['log_source']} missing")
continue
missing = [f for f in row["required_fields"].split(";") if f not in src["fields"]]
if int(row["retention_days_needed"]) > src["retention_days"]:
print(f"{row['id']}: NOT READY - retention {src['retention_days']}d "
f"below needed {row['retention_days_needed']}d")
elif missing:
print(f"{row['id']}: NOT READY - missing fields {missing}")
else:
print(f"{row['id']}: READY - {row['technique']} huntable on {row['log_source']}")
2. Hypothesis backlog
A hypothesis is a testable claim, not a topic. "Check for
persistence" is a topic. "Attackers persist with scheduled tasks
that run unsigned binaries from user-writable paths, so we expect
to find scheduled tasks whose action binary is unsigned and outside
Program Files" is a hypothesis, and it tells the hunter exactly
what to query and what counts as a hit. Score each hypothesis on
threat relevance (is this technique in current intrusions against
your sector), data readiness (can we answer it today), and blast
radius (what happens if it is true and we miss it).
Hypothesis backlog row format (one row per hypothesis):
id: HUNT-014
technique: T1053.005 Scheduled Task
hypothesis: Attackers persist with scheduled tasks running
unsigned binaries from user-writable paths.
expected_evidence: Task action path under Users or Temp, binary
unsigned, task created by a non-admin service account.
data_source: sysmon (EventID 1 and scheduled task creation logs)
population: all Windows servers, last 90 days
score: threat 5, readiness 4, blast 4 (hunt in the next cycle)
outcome: pending (filled after the hunt: finding, detection,
data gap, or clean with evidence)
3. Hunt execution queries
Save every query with the hunt record, so a hunt can be repeated
by another analyst and so a hit can be explained in an incident
report. The two examples below show the pattern: a broad sweep
that is deliberately noisy, followed by a filter that keeps only
the cases matching the hypothesis.
index=sysmon EventID=1 earliest=-90d@d
| eval is_user_path = if(match(Image, "(?i)\\\\Users\\\\|\\\\Temp\\\\"), 1, 0)
| where is_user_path = 1
| stats count, values(ParentImage) AS parents, values(CommandLine) AS cmdlines
BY Computer, Image
| sort - count
| head 50
index=edr event_type=process_create earliest=-30d@d
| where match(process, "(?i)powershell|wscript|cscript|mshta")
| where match(parent, "(?i)outlook|winword|excel|acrord32")
| stats count, values(process) AS processes BY host, user
| sort - count
4. From hunt to detection
A hunt that finds a real technique and ends without a detection
has to be re-run by hand forever. Every confirmed or suspicious
finding gets a decision: create or tune a detection, or record
why not (for example, the pattern cannot be distinguished from
benign activity with current data, in which case the artifact is
a data gap ticket, not silence). Track the conversion rate: hunts
that produce detections divided by hunts run. A program with a
zero conversion rate is either hunting the wrong hypotheses or
not finishing its hunts.
Edge cases
- Hunts that find nothing: a clean hunt is a valid result only
when the data was ready and the query is saved. Otherwise it
is an untested hypothesis, and it goes back to the backlog.
- Hunts on production hosts during business hours: use read-only
queries and agent-safe collection. A hunt that disrupts the
business will lose its mandate faster than any missed finding.
- Hypothesis bias: teams hunt what they know. Rotate hypothesis
sources quarterly: threat intelligence, incident lessons,
MITRE ATT&CK coverage gaps, and peer hunt reports.
- Staffing: a hunt team of one is a single point of failure.
Pair hunters, rotate the lead, and require the hunt record to
be complete enough for another analyst to repeat it.
- Hunting the same population every cycle: rotate populations
(servers, then workstations, then cloud workloads) so coverage
grows instead of re-proving the same clean result.
- Findings that are incidents: stop the hunt, open the incident,
and preserve evidence before continuing. A hunt is not an
incident response, and blurring the two loses both timelines.
Key references
- MITRE ATT&CK for hypothesis technique mapping: https://attack.mitre.org/
- MITRE ATT&CK T1053.005 (Scheduled Task), T1059.001 (PowerShell),
T1547 (Boot or Logon Autostart Execution).
- CISA hunt guidance and threat reports for hypothesis sources:
https://www.cisa.gov/
- Velociraptor documentation for fleet-wide hunt collection:
https://docs.velociraptor.app/
- Program rule worth repeating: every hunt ends in a finding,
a detection, or a documented data gap, never in nothing.
1---2name: threat-hunting-program-design3description: Use when designing or maturing a threat hunting program4 for an organization you defend. Covers hypothesis-driven hunting,5 hypothesis backlog management, data readiness and log coverage6 assessment, hunt team roles and staffing, hunt cadence and scoping,7 hunt execution and documentation, findings triage and detection8 creation, and program metrics and maturity measurement. Use when9 hunting is ad hoc or analyst dependent, when leadership asks what10 hunting delivers, when a new hunt team is being stood up, or when11 hunts keep finding nothing because the data is not ready.12version: 1.0.013domain: defensive14lifecycle: stable15last_verified: "2026-10-27"16requires: []17extends: []18relates: [threat-hunting, siem-detections, incident-response]19tools:20 - name: Velociraptor21 version: "0.72"22 - name: Sysmon23 version: "15.x"24 - name: Splunk25 version: "9.x"26 - name: Python27 version: "3.12"28metadata:29 source: https://skillmd.com/skills/mizazhaider-ceh/threat-hunting-program-design30---3132Threat hunting technique asks "how do I hunt this host". This skill33asks the program question: "how do we hunt, every month, with34evidence, so the organization gets safer whether or not a given35hunt finds an intruder". A program is a backlog, a cadence, data36that is ready before the hunt starts, and a rule that every hunt37ends in either a finding, a detection, or a documented data gap.38Hunts that end in nothing, with nothing written down, are not39hunting, they are browsing logs with extra steps.4041## Quick Workflow42431. Assess data readiness first: which log sources exist, how long44 they are retained, and which hunt questions they can answer.452. Build the hypothesis backlog: one hypothesis per row, with the46 technique, the expected evidence, the data source, and a score.473. Score hypotheses by threat relevance, data readiness, and48 blast radius, and hunt the top of the list, not the newest idea.494. Scope each hunt: time window, host population, and a clear50 stop condition, written before the hunt starts.515. Execute in two passes: a broad sweep for the pattern, then a52 deep dive on the hits, with every query saved.536. Triage hits: benign, suspicious, or confirmed malicious, with54 the evidence that justifies the verdict.557. Convert every hunt outcome into an artifact: a detection, a56 tuning change, a data gap ticket, or an incident.578. Report program metrics monthly: hunts run, findings, detections58 created, data gaps closed, and time from hypothesis to verdict.5960## 1. Data readiness assessment6162A hunt cannot answer a question the logs cannot support. Before63scheduling a hunt, check that the needed log source exists on the64target population, that retention covers the hunt window, and that65a test query returns the expected fields. Hunting without this66check produces the worst outcome in the program: a clean result67that means "no data", reported as "no threat".6869```python70# readiness.py - check whether a hunt hypothesis is answerable.71# Input: hypotheses.csv with columns id, technique, log_source,72# required_fields (semicolon separated), retention_days_needed.73# Data source availability is supplied as a simple mapping below;74# in production, load it from the SIEM asset and log source inventory.75available = {76 "sysmon": {"retention_days": 90, "fields": ["Image", "ParentImage", "CommandLine", "User"]},77 "edr": {"retention_days": 30, "fields": ["process", "parent", "cmdline", "user"]},78 "dns": {"retention_days": 180, "fields": ["query", "src_host", "answer"]},79}8081import csv82with open("hypotheses.csv", newline="") as fh:83 for row in csv.DictReader(fh):84 src = available.get(row["log_source"])85 if src is None:86 print(f"{row['id']}: NOT READY - log source {row['log_source']} missing")87 continue88 missing = [f for f in row["required_fields"].split(";") if f not in src["fields"]]89 if int(row["retention_days_needed"]) > src["retention_days"]:90 print(f"{row['id']}: NOT READY - retention {src['retention_days']}d "91 f"below needed {row['retention_days_needed']}d")92 elif missing:93 print(f"{row['id']}: NOT READY - missing fields {missing}")94 else:95 print(f"{row['id']}: READY - {row['technique']} huntable on {row['log_source']}")96```9798## 2. Hypothesis backlog99100A hypothesis is a testable claim, not a topic. "Check for101persistence" is a topic. "Attackers persist with scheduled tasks102that run unsigned binaries from user-writable paths, so we expect103to find scheduled tasks whose action binary is unsigned and outside104Program Files" is a hypothesis, and it tells the hunter exactly105what to query and what counts as a hit. Score each hypothesis on106threat relevance (is this technique in current intrusions against107your sector), data readiness (can we answer it today), and blast108radius (what happens if it is true and we miss it).109110```text111Hypothesis backlog row format (one row per hypothesis):112 id: HUNT-014113 technique: T1053.005 Scheduled Task114 hypothesis: Attackers persist with scheduled tasks running115 unsigned binaries from user-writable paths.116 expected_evidence: Task action path under Users or Temp, binary117 unsigned, task created by a non-admin service account.118 data_source: sysmon (EventID 1 and scheduled task creation logs)119 population: all Windows servers, last 90 days120 score: threat 5, readiness 4, blast 4 (hunt in the next cycle)121 outcome: pending (filled after the hunt: finding, detection,122 data gap, or clean with evidence)123```124125## 3. Hunt execution queries126127Save every query with the hunt record, so a hunt can be repeated128by another analyst and so a hit can be explained in an incident129report. The two examples below show the pattern: a broad sweep130that is deliberately noisy, followed by a filter that keeps only131the cases matching the hypothesis.132133```spl134index=sysmon EventID=1 earliest=-90d@d135| eval is_user_path = if(match(Image, "(?i)\\\\Users\\\\|\\\\Temp\\\\"), 1, 0)136| where is_user_path = 1137| stats count, values(ParentImage) AS parents, values(CommandLine) AS cmdlines138 BY Computer, Image139| sort - count140| head 50141```142143```spl144index=edr event_type=process_create earliest=-30d@d145| where match(process, "(?i)powershell|wscript|cscript|mshta")146| where match(parent, "(?i)outlook|winword|excel|acrord32")147| stats count, values(process) AS processes BY host, user148| sort - count149```150151## 4. From hunt to detection152153A hunt that finds a real technique and ends without a detection154has to be re-run by hand forever. Every confirmed or suspicious155finding gets a decision: create or tune a detection, or record156why not (for example, the pattern cannot be distinguished from157benign activity with current data, in which case the artifact is158a data gap ticket, not silence). Track the conversion rate: hunts159that produce detections divided by hunts run. A program with a160zero conversion rate is either hunting the wrong hypotheses or161not finishing its hunts.162163## Edge cases164165- Hunts that find nothing: a clean hunt is a valid result only166 when the data was ready and the query is saved. Otherwise it167 is an untested hypothesis, and it goes back to the backlog.168- Hunts on production hosts during business hours: use read-only169 queries and agent-safe collection. A hunt that disrupts the170 business will lose its mandate faster than any missed finding.171- Hypothesis bias: teams hunt what they know. Rotate hypothesis172 sources quarterly: threat intelligence, incident lessons,173 MITRE ATT&CK coverage gaps, and peer hunt reports.174- Staffing: a hunt team of one is a single point of failure.175 Pair hunters, rotate the lead, and require the hunt record to176 be complete enough for another analyst to repeat it.177- Hunting the same population every cycle: rotate populations178 (servers, then workstations, then cloud workloads) so coverage179 grows instead of re-proving the same clean result.180- Findings that are incidents: stop the hunt, open the incident,181 and preserve evidence before continuing. A hunt is not an182 incident response, and blurring the two loses both timelines.183184## Key references185186- MITRE ATT&CK for hypothesis technique mapping: https://attack.mitre.org/187- MITRE ATT&CK T1053.005 (Scheduled Task), T1059.001 (PowerShell),188 T1547 (Boot or Logon Autostart Execution).189- CISA hunt guidance and threat reports for hypothesis sources:190 https://www.cisa.gov/191- Velociraptor documentation for fleet-wide hunt collection:192 https://docs.velociraptor.app/193- Program rule worth repeating: every hunt ends in a finding,194 a detection, or a documented data gap, never in nothing.