Goal. By the end you can judge whether an indicator is worth searching for, run a sweep across past data with a stated scope, and turn a threat report into testable behaviour hypotheses.
Why it matters#
Threat intelligence is the most common reason a hunt starts. Used carelessly it produces two bad results: a flood of matches on harmless shared infrastructure, or a confident "not affected" after searching a week of data for an attack that happened last month. Intelligence is a lead from somebody else's environment. You have to test what it means in yours.
What you will learn#
Indicators and behaviour#
An indicator of compromise (IOC) is a specific observable linked to an attack: a file hash, an IP address, a domain, a URL or an email sender. David Bianco's Pyramid of Pain orders such things by how much it costs the attacker if you can detect them. Hashes and addresses are cheap to change. Tools cost more. Techniques and procedures, the way the attacker works, are the hardest to change.
So use both: indicators for a fast check of the past, behaviour for a hunt that still works after the attacker changes servers.
Evaluating an indicator#
Ask these before you search, and again before you act on a match.
| Question | Why it matters |
|---|---|
| Who says so, and how do they know? | First-hand observation differs from a copied list |
| What is claimed? | "Command server for this campaign, seen in these samples" can be tested; "malicious" cannot |
| When was it last seen active? | Addresses and domains change hands. An old one may now belong to someone innocent |
| How many innocent things share it? | A cloud, content delivery, VPN or shared-hosting address serves thousands of customers |
| Does anyone independently agree? | Three feeds repeating one report are one source |
| Does it matter here? | An indicator for software you do not run is of little use |
| What does being wrong cost? | Decides between blocking, alerting and only searching |
| When does it expire? | Every indicator you deploy needs an owner and a review date |
Handle obvious traps first. Remove private and documentation addresses, public DNS resolvers, popular platforms and the hash of an empty file. A platform that hosts one malicious page is not itself an indicator; the full URL may be.
Services that look up reputation help, but a clean result does not mean safe, and a score is somebody's opinion. Take care what you send them: uploading a file to a public scanner can share your organisation's documents with strangers, and can tell an attacker you have found their sample. Search by hash instead.
Reports often carry a Traffic Light Protocol (TLP) label saying how far you may share them: RED, AMBER, AMBER+STRICT, GREEN or CLEAR. Follow it.
Record each indicator as a small table row rather than a bare list:
value type role source and date confidence expires
203.0.113.45 ip command server vendor report, 11-02 medium 12-02
login.example.net domain credential phishing own mailbox, 11-20 high 02-20These values are invented.
Sweeps and retro-hunts#
A sweep searches for known indicators. A retro-hunt is a sweep over past data, looking for matches from before you knew the indicator mattered.
Set the scope before you search, and write it down:
- Window. From before the earliest date in the report, if retention allows.
- Sources. An IP address may appear in firewall, proxy, flow and endpoint logs; a domain in DNS, proxy and email; a hash in process, file and email attachment records.
- Coverage. The readiness verdict from stage 3.
let iocs = dynamic(["203.0.113.45", "198.51.100.7"]);
DeviceNetworkEvents
| where Timestamp > ago(30d)
| where RemoteIP in (iocs)
| summarize Count = count(), First = min(Timestamp), Last = max(Timestamp)
by DeviceName, RemoteIP, InitiatingProcessFileName, ActionTypeIllustrative: test it in your lab before relying on it.
index=dns earliest=-90d
| eval query=lower(rtrim(query, "."))
| where query="login.example.net" OR like(query, "%.login.example.net")
| stats count, min(_time) AS first_seen, max(_time) AS last_seen, values(query) AS names BY src_ip
| convert ctime(first_seen) ctime(last_seen)Illustrative: test it in your lab before relying on it. Behind a proxy or an internal resolver, src_ip may
be the middle system rather than the user's device.
Before trusting an empty result, prove the search can match: pick a value you know is in the data and run the same query with it.
What a match means#
A match is a starting point. Find out the direction (did you connect out, or did they scan you?), whether it was allowed or blocked, which process or user caused it, and what happened just before and after. A blocked outbound connection still means something inside tried. If it looks real, go to incident response; do not keep hunting alone.
No match means: not seen, in these sources, over this window, with this coverage.
From a report to hypotheses#
- Read for behaviour. Note each action the attacker took, in order, in plain words.
- Map to ATT&CK. Check each ID on the live site, whatever the report says. Older reports use IDs and tactic names that have since changed.
- Check relevance. Do you have that technology? Could the step happen here?
- Check data. For each step: can you see it?
- Choose. Prefer steps that are relevant, visible, hard for the attacker to change and not already covered by a detection.
- Write the hypothesis in the ABLE form from stage 2.
Worked example, with an invented report: "The intruders signed in to a VPN with a stolen password, created a
scheduled task named SysHealth on a file server, then archived shares and uploaded them to a cloud storage
service."
| Step | Hypothesis | Verdict |
|---|---|---|
| VPN sign-in | A staff account signed in from a network it has never used | Hunt: first-seen on VPN logs |
Task named SysHealth |
Servers have a new task that runs a script or a user-writable program | Hunt the behaviour, not only the name |
| Archive and upload | A file server sent an unusual volume to a destination new to it | Partial: no per-process network data on that server |
Reports describe what one victim saw. They leave out steps the author could not see, and may be wrong. Do not treat the list as the whole attack.
Do this#
- Evaluate ten indicators (90 minutes). Take them from a current public report. Answer the questions above and decide: search, alert, block or discard.
- Retro-hunt in lab data (90 minutes). Plant a harmless test domain lookup, then find it by sweeping. Write the scope sentence for the result.
- Turn a report into hypotheses (3 hours). Choose a public intrusion write-up. Produce the step table and one complete hunt card.
Resources#
Free first
- The Pyramid of Pain - Bianco's original post.
- Traffic Light Protocol - the sharing labels, from FIRST.
- abuse.ch - community platforms for malware, URLs and indicators. Some access needs a free account.
- MISP - open-source platform for storing and sharing indicators.
- The DFIR Report - public intrusion write-ups with timelines, good practice material.
Paid or needs an account
- VirusTotal (free account for more; paid tiers) - reputation lookups. Search by hash; do not upload anything private.
Checkpoint#
You are ready to move on when you can:
Go deeper (optional)#
- Threat Modelling stage 7 helps decide which adversaries deserve your attention.
- Threat Emulation stage 2 uses the same reports to plan tests.
- The Threat Intelligence roadmap goes further into grading, enriching and expiring indicators (stage 3).