# Threat Hunting Program Design

> Use when designing or maturing a threat hunting program for an organization you defend. Covers hypothesis-driven hunting, hypothesis backlog management, data readiness and log coverage assessment, hunt team roles and staffing, hunt cadence and scoping, hunt execution and documentation, findings triage and detection creation, and program metrics and maturity measurement. Use when hunting is ad hoc or analyst dependent, when leadership asks what hunting delivers, when a new hunt team is being stood up, or when hunts keep finding nothing because the data is not ready.

- Skill: `mizazhaider-ceh/threat-hunting-program-design` (Agent Skill)
- Install (CLI): `npx get-skill add mizazhaider-ceh/threat-hunting-program-design`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizazhaider-ceh/threat-hunting-program-design/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- Author: mizazhaider-ceh (https://skillmd.com/u/mizazhaider-ceh)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/mizazhaider-ceh/threat-hunting-program-design

---


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

1. Assess data readiness first: which log sources exist, how long
   they are retained, and which hunt questions they can answer.
2. Build the hypothesis backlog: one hypothesis per row, with the
   technique, the expected evidence, the data source, and a score.
3. Score hypotheses by threat relevance, data readiness, and
   blast radius, and hunt the top of the list, not the newest idea.
4. Scope each hunt: time window, host population, and a clear
   stop condition, written before the hunt starts.
5. Execute in two passes: a broad sweep for the pattern, then a
   deep dive on the hits, with every query saved.
6. Triage hits: benign, suspicious, or confirmed malicious, with
   the evidence that justifies the verdict.
7. Convert every hunt outcome into an artifact: a detection, a
   tuning change, a data gap ticket, or an incident.
8. 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".

```python
# 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).

```text
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.

```spl
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
```

```spl
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.

