Duty analyst on shift

UK Cyber Defence
Guide

Threat hunting: a practical guide

Threat hunting is the deliberate search for attackers who are already inside a network and have not set off an alarm. This guide explains how a hunt is planned, what data it needs, three hunts worth running and what a hunt should leave behind.

Threat hunting is the deliberate search, led by a person, for attackers who are already inside a network and have not set off an alarm. Detection waits for a rule to fire. Hunting starts from the assumption that something has been missed, and goes looking for it.

The assumption is reasonable. The agencies that investigated Volt Typhoon found that the group had kept its footholds in some networks for at least five years, using the administration tools already present on each system and stolen passwords. There was very little for an alarm to notice.

How hunting differs from its neighbours

ActivityThe question it answersWho or what does it
Vulnerability scanningWhich known weaknesses do we have?A scanner
Penetration testingCould somebody get in, and how far?A tester, for a fixed period
Detection and alertingHas something matched a rule we wrote?The SIEM and endpoint tools, continuously
Threat huntingIs somebody here whom none of our rules has caught?An analyst, with a hypothesis

The four support each other. A hunt often begins from a penetration test's findings, and usually ends by adding rules to detection.

A hunt begins with a hypothesis

A hunt is not a wander through the logs. It starts with a statement that can be shown to be true or false, such as "an attacker is using remote desktop between servers that have no business reason to talk to each other". Good hypotheses come from three places.

  • Intelligence. A profile or advisory says that a group active in your sector uses a particular method. Our threat actor profiles are written with this use in mind: each sets out how the group gets in and what it does next.
  • Knowledge of your own estate. You know which systems matter most and what normal looks like on them. The hypothesis asks what an intruder after those systems would have to do.
  • An oddity. Something small that nobody could explain: a login at an unusual hour, a scheduled task with a strange name.

The frameworks that give a hunt its structure

MITRE ATT&CK is a free knowledge base of attacker tactics and techniques drawn from real intrusions. Hunters use it as a map. Each technique is something an attacker has to do, such as collecting passwords or moving between machines, and each leaves evidence in a particular place. Recording which techniques you have hunted for shows where you have never looked.

The pyramid of pain ranks the kinds of evidence by how hard they are for an attacker to change. A file signature or an address is replaced in minutes. A habit, such as the way a group copies the password database from a domain controller, is expensive to abandon. Hunts aimed at behaviour stay useful far longer. Our guide to indicators of compromise explains the pyramid in full.

A playbook writes a successful hunt down: the hypothesis, the data needed, the queries, what a true result looks like and what to do about it. It turns one analyst's good afternoon into something the whole team can repeat.

The data a hunt needs

A hypothesis that cannot be tested is the commonest reason a hunt fails. Before the first hunt, check that you are collecting and keeping:

  • Process and command-line records from endpoints and servers, showing what ran, started by what, with which arguments.
  • Authentication records, from the domain, from cloud services and from remote access.
  • DNS and web proxy logs, which show where machines tried to connect.
  • Cloud audit logs, including changes to permissions and to mail rules.
  • Logs from network devices, sent to a central store. Salt Typhoon lives on routers and switches and clears the logs held on them.

Retention matters as much as coverage. A hunt for an intruder who arrived four months ago needs four months of records. Our guide to open-source SOC tools covers the software commonly used to collect and question this data.

Three hunts worth running

Legitimate tools used out of place. Hypothesis: an intruder is using built-in administration tools to avoid detection. Look for PowerShell, remote desktop and remote execution tools used from machines, by accounts or at hours that do not fit their normal pattern, and for administration tools appearing on servers where nobody administers anything by hand.

Stolen passwords and movement between machines. Hypothesis: an account is being used by somebody other than its owner. Look for one account signing in to many machines in a short time, sign-ins from two distant places close together, service accounts used interactively, and any access to the files in which a domain stores its password data.

The patient intruder. Hypothesis: something has been here for months. Look for scheduled tasks, services and remote login keys that nobody can account for, accounts created outside the usual process, small regular connections to an outside address, and logs that have gaps in them. A cleared log is itself a finding.

What a hunt should leave behind

A hunt that finds an intruder becomes an incident. Most hunts find none, and they are not wasted if they produce three things.

  • A new detection. If the hunt's query would catch the technique in future, make it a rule, so that the next occurrence raises an alert without a hunter.
  • A list of gaps. Every hunt discovers a log that was not being collected or was not kept long enough.
  • A record. What was looked for, where, over what period, and what was found. "We looked and found nothing" is evidence that is worth having when a regulator or a customer asks.

What to automate

Automate the gathering: collecting data, running last month's hunts again on a schedule, enriching results with what is known about an address or a file. Keep the hypothesis and the judgement with people. The purpose of a hunt is to find what the rules do not describe, and a fully automated hunt is another rule.

This is how we divide the work in our own SOC. EmilyAI, our AI SOC analyst, reviews every client hour by hour and runs a structured threat hunt each morning. She raises tickets with the evidence, and an analyst decides what happens next.

Common questions

Is threat hunting only for large organisations? The method scales down. An organisation with central logs and one curious administrator can run the three hunts above. Without central logs there is nothing to hunt in, and collecting them is the first step.

How is a hunt different from searching for indicators of compromise? A search for published indicators asks whether a known bad address or file appears in your records. It is quick and worth doing, and it only finds what somebody else has already seen. A hunt looks for behaviour.

How often should we hunt? Often enough that an intruder would not go a season unnoticed. Many teams hunt on a regular cycle and again whenever an advisory describes a method relevant to them.

Sources

Last reviewed on 27 November 2026 against the sources listed above.

Further reading

Share

Written by

Peter Bassill

Founder and Head of Threat Disruption

Founder of UK Cyber Defence. Fellow of the BCS and Chartered IT Professional; former CISO for FTSE 250 organisations and for Microsoft Europe; founded Hedgehog Security in 2009.

FBCSCITPCISSPCISAGitHubWebsiteLinkedIn

Next step

Want this looked at in your own estate?

Thirty minutes with an analyst, not a salesperson. We will tell you whether it matters to you and what to do first.

Related insights

Insights

Iranian state spyware ‘CHOSEN BRICK’: what it does and what to do

The NCSC, FBI and AIVD have exposed Iranian spyware (CHOSEN BRICK) used to surveil dissidents, activists and journalists. What the campaign does, who is really at risk, and the practical steps that protect the people targeted and the organisations around them.

Peter Bassill15 min read · 109 reads