Blog

Hunt for behaviors, not indicators

· MetisGrid

Two analysts read the same threat report. The first copies the list of IP addresses and file names at the end, searches for them, finds none, and closes the task. The second reads the middle of the report, where it describes how the attackers worked: they signed in with a service account, interactively, and used it to reach file shares it had never touched. The second analyst goes looking for that.

Both did something useful. Only the second ran a hunt that will still mean something next month.

Two things a search can target

A search, and the detection that may come out of it, can target one of two kinds of thing.

An indicator is a specific artifact an attacker left behind: an IP address, a domain name, a file hash, a file name. It is exact. Either it is in your data or it is not.

A behavior is a way of operating: a service account signing in interactively, a document program starting a command shell, an administrator account used from a machine it has never used before. It is a pattern, and deciding whether a given event fits it takes knowledge of what is normal in your environment.

What a hunt or a detection can be built on, in two groups. Higher value: the attacker's goals, strategies and techniques, which in our reasoning are costly to change. Lower value: network artifacts and single IP addresses, which are cheap to change.

What the research says

A 2024 systematic review of 117 research papers on threat hunting, by Mahboubi and colleagues in the Journal of Network and Computer Applications, describes a model that ranks what a detection can be built on. It treats an attacker's goals, strategies and techniques as more valuable than low-level indicators such as network artifacts and single IP addresses.

Our own reasoning for why this holds is practical. An attacker can change an address in minutes, and can rebuild a file so that it no longer matches a known hash. Changing how they operate is expensive. It means new tools, new habits and new mistakes. A detection built on a single indicator may be out of date within days. A detection built on behavior lasts longer, and it can fire on an attacker nobody has written a report about yet.

Why indicator sweeps feel like hunting

Indicator searches are attractive for good reasons. They are quick. They are unambiguous. They are easy to hand to a junior analyst and easy to report: 40 indicators checked, none found.

But look at what that result says. It says that this particular infrastructure, used in this particular campaign, did not touch the systems you searched. It says nothing about whether the same technique was used against you from a different address last week.

There is also a question of what counts as a hunt. A hunt starts from a written claim about what an attacker might have done in your environment and what you would expect to see if it were true. "These 40 addresses appear in our logs" is a lookup. "Someone is using a service account to move between our finance servers, and if so we would see that account signing in from machines it has never used" is a hypothesis. The first can be automated completely, and should be. The second needs a person.

A simple rule when you write the hypothesis: name the behavior, not a tool or an indicator.

Indicators still have a place

None of this means indicators are useless.

During an incident and just after it, indicators are the fastest way to answer an urgent question: where else has this exact thing been? A confirmed address or hash, swept across the environment, tells responders within minutes where else that exact artifact appears.

Indicators are also a good starting point for a behavioral hunt. An indicator that matches tells you which campaign's report to read closely. The description of how that campaign worked tells you what to hunt for.

So sweep indicators, and automate the sweep. Just do not count it as the hunt, and do not let a clean sweep stand in for a clean result on the behavior.

From an indicator to a behavior

Turning a report into a behavioral hunt is a matter of asking three questions about each indicator.

What was the attacker doing when this artifact appeared? An address was the source of a sign-in. A file was a tool for copying credentials. Name the action.

What would that action look like here, done with different infrastructure? A sign-in to an administrator account from a network that account has never used. A process reading credential stores that is not one of the three programs that normally do.

What does normal look like for that action? This is the hard part, and the reason behavioral hunting needs people who know the environment. Service accounts signing in interactively may be forbidden in one organization and routine in another.

The answers give you most of a hypothesis: the threat, what you would see, and what would prove it wrong. Add the reason it is plausible here.

When the hunt produces a detection

Often the most valuable outcome of a hunt is a detection: the method the hunter worked out by hand becomes a rule that looks for the behavior automatically from now on. The same choice applies, and two points decide whether the detection is worth having.

Ask which kind it is, and label it. A detection for a single indicator and a detection for a behavior have different lifespans and need different upkeep. If the label says "indicator", whoever runs monitoring knows to expect it to age quickly and to retire it without regret. If it says "behavior", they know it is worth tuning.

Test the noise before handing it over. This is the cost of behavioral detections, and it is real. A behavior is a pattern, and patterns match legitimate activity too. A rule that fires 200 times a day on normal work will be switched off or ignored. Before the detection goes to whoever runs monitoring, run it against recent history and count what it would have raised. Record the count, the known harmless causes, and how to exclude them. A detection handed over with that information is far more likely to stay switched on.

What a manager can ask

A manager does not need to read the queries to check which way the team leans. Four questions do it.

  • For our last three hunts, was the hypothesis about a behavior or about a list of indicators?
  • Of the detections we have built from hunts, how many target behavior and how many target a single indicator?
  • What happened to the detections our hunts produced a year ago? How many still fire on real activity, how many were tuned, and how many were retired as noisy?
  • When we sweep a report's indicators, is that automated, and do we count it separately from hunts?

The third question guards against an easy way to look productive. Counting detections created rewards writing many narrow, single-indicator rules, which are quick to produce and quick to go out of date. Counting what became of them does not.

What this costs

Behavioral hunting is slower, and it needs hunters who know what normal looks like where you are. That knowledge cannot be hired. It has to be built, hunt by hunt, and written down so that the next hunter does not rebuild it.

That is the trade. An indicator sweep is cheap today and worth little next month. A behavioral hunt is expensive today, and it leaves behind a baseline, often a detection, and a clearer answer to the question that matters: not whether one known campaign touched you, but whether anyone is working that way inside your environment.

Going further

For how to write the hypothesis in the first place, see Threat hunting starts with a question, not a query. For the review this post draws on, see What threat hunting research covers and leaves out. Outcomes, including detections and how to follow them to done, have a chapter of their own in our free book for managers, The Hunting Program.

Source: Mahboubi, A., and colleagues, "Evolving techniques in cyber threat hunting: A systematic review", Journal of Network and Computer Applications, volume 232, 2024, https://doi.org/10.1016/j.jnca.2024.104004. The explanation of why behavior outlasts indicators, and the advice, are ours.