Stage 8 of 9 · about 6–9 hours · intermediate · checked 2026-11-26

Hunt to detection and handoff

Goal. By the end you can work a suspicious lead without warning an attacker, hand it over so that someone else can act at once, and turn a finished hunt into a detection requirement.

Why it matters#

A hunt changes nothing until its result reaches somebody who can act. Two things go wrong at this point. The hunter pokes at a live intrusion and the attacker notices. Or the finding sits in a notebook, the query is never turned into a rule, and the same hunt is repeated a year later.

What you will learn#

Working a lead#

A lead is something your analytics surfaced. Decide quickly whether it has a harmless explanation, using data you already collect: process tree, account history, change records, asset owner.

Give it a time box, say 30 minutes. Then choose one of three: explained (record why), escalate (malicious, or you cannot rule it out and the stakes are high), or needs more (with a named question and a new time box).

Escalate early for: credential dumping, a confirmed command channel, security tools being disabled, logs cleared, privileged accounts used unexpectedly, data leaving, or signs of ransomware preparation.

Not tipping off the attacker#

An attacker who learns they have been seen may destroy evidence, add more ways back in or start the damaging step early. Until the incident lead says otherwise:

Avoid Because Instead
Visiting a suspicious domain or fetching its files Their server records your address Use passive records and existing logs
Uploading samples to public services They can be watched for Look up the hash
Signing in to a suspect host with an administrator account Your credentials may be captured Use your EDR or collection tooling
Killing processes, deleting files, resetting one password Warns them and destroys evidence Let incident response plan containment together
Discussing it in email or chat they may read A compromised mailbox is common Use an agreed separate channel
Messaging the user to ask "was this you?" You may be talking to the attacker Verify through a known phone number, if the lead agrees

This is not a reason to delay. If harm is happening now, escalate immediately and let the incident lead decide. Hunters report; they do not contain unless their role and runbook say so.

Preserve what will not last. Memory, running processes and network connections vanish first; short-retention logs follow. Note what you collected, when, and how. SOC & Incident Response stage 6 covers collection.

The handover note#

Write it so the reader can act without asking you anything. Put the conclusion first.

Text
HANDOVER: possible persistence on FILESRV02
Severity and confidence: high / medium
Status:      escalated by phone to the incident lead, 14:20 UTC
Summary:     A new scheduled task runs a script from a user-writable folder every hour.
             It was created at 02:11 UTC by account svc-backup, outside any change window.
Observed:    task name, action, creation event, script hash, one outbound connection
             to 203.0.113.45:443
Assessed:    svc-backup is probably misused (it has not created tasks in 90 days)
Unknown:     how the account was obtained; whether other hosts are affected
Scope checked: 187 of 212 servers, 30 days. 25 servers have no task events.
Done so far: queries run and event export saved. Nothing changed on any system.
Next:        collect memory from FILESRV02; check sign-ins for svc-backup
Hunter:      name, how to reach them

All details are invented. Keep observed (what the data shows), assessed (your judgement) and unknown apart. State times with a time zone. Never imply that unchecked systems are clean.

When the answer is "nothing found"#

That is a result, if it is bounded: what you tested, where, when, with which data and what you could not see. "No matching tasks on 187 of 212 servers between 27 October and 26 November" can be relied on. "We are clean" cannot.

Even then, a hunt usually produces something: a logging gap, a risky but legitimate practice, a misconfiguration or a baseline.

From hunt to detection#

Not every hunt query should become an alert. Ask:

Question If not
Is the behaviour precise enough that most matches deserve a look? Keep it as a scheduled report or a repeat hunt
Does the data arrive reliably and quickly? Fix the data first
Can an analyst decide what to do from the alert? Add context and triage steps
Is it still meaningful if the attacker changes names or addresses? Rewrite it around behaviour

If it passes, write a detection requirement, which says what is needed without dictating the rule:

Text
Title:        Scheduled task running from a user-writable path on servers
Behaviour:    T1053.005 persistence (ATT&CK v20.1)
Evidence:     the hunt, its query and the matches found
Data:         Security 4698; gap on 25 servers (ticket raised)
Known benign: backup agent task (path and signer listed), patch agent
Test:         create a task that runs a harmless script from a temporary folder; it must fire
Triage:       who created it, what it runs, was there a change record
Priority:     high, no current coverage on servers
Owner:        detection engineering

Palantir's Alerting and Detection Strategy framework is a fuller template, including blind spots and false positives. The detection engineer then builds and tests the rule as in Detection Engineering stage 6 and stage 7. Hand over the harmless look-alikes you found: they save most of the tuning work. Follow up later to see whether the rule shipped.

Closing the hunt#

Save the hunt card, queries, result counts, exclusions and links to evidence together, where the next hunter will search. Protect it: results may contain personal data and details of your weaknesses. Then add the next questions to the backlog.

Do this#

  1. Triage five leads (90 minutes). From a lab or public dataset, give each a time box and a decision with a reason.
  2. Write a handover (45 minutes). Give it to someone else and ask what they would do first. If they need to ask you something, fix the note.
  3. Write a requirement (45 minutes). Turn one of your earlier hunts into the template above, including a test.
  4. Walk through a quiet response (30 minutes). For a suspected compromised mailbox, list what you would not do and how you would communicate.

Resources#

Free first

Paid or needs an account

  • None needed for this stage.

Checkpoint#

You are ready to move on when you can:

Go deeper (optional)#

0 / 4 checkpoints ticked

View this page on GitHub

9 lines · 59 stages · 77 pages 0 of 59 stages done