Threat hunting is the proactive search through logs, endpoint and network data for signs of attackers that existing detections have missed. Instead of waiting for an alert, a hunter starts from a hypothesis, for example based on a MITRE ATT&CK technique or fresh threat intelligence, and tests it against the data. Every hunt either finds malicious activity, which becomes an incident, or confirms its absence, and good hunts are turned into new automated detections.
What is threat hunting?
Threat hunting starts from an uncomfortable assumption: an attacker may already be in your environment and your alerts have not noticed. Detection rules only find what someone has described in advance. Hunters look for what nobody has described yet, or for behaviour that is too subtle or too rare for a rule that runs all the time.
The difference to normal alert handling is the direction. In alert triage, the system tells the analyst where to look. In threat hunting, the analyst decides where to look and asks the data a question. Hunting is usually done by experienced security analysts, often as part of a security operations center, but small teams can run focused hunts too if their data is in good shape.
Hunting, detection and incident response
| Detection | Threat hunting | Incident response | |
|---|---|---|---|
| Trigger | A rule or model fires | A hypothesis or new intelligence | A confirmed or suspected incident |
| Mode | Automated, continuous | Human-led, time-boxed | Human-led, urgent |
| Question | Does this event match a known pattern? | Is there activity we have not detected? | What happened, how far did it go, how do we recover? |
| Output | Alerts and findings | Incidents, new detections, visibility gaps | Containment, recovery, lessons learned |
The hunting loop
- Form a hypothesis: a concrete, testable statement, for example "an attacker who exploited our VPN appliance would create a new local administrator account on a jump host".
- Identify the data: which logs, process data or network records would show this? Check that they exist, cover the right systems and go back far enough.
- Investigate: query, filter, group and look at outliers. Rare values are often more interesting than frequent ones.
- Evaluate: decide whether what you found is malicious, benign but unusual, or a data quality problem.
- Act: open an incident for real findings, fix logging gaps, and document the hunt.
- Automate: turn the query into a detection rule or alert if it is precise enough, so the same question is asked continuously from now on.
Where hypotheses come from
- Intelligence-driven: a new report describes an attacker's tools, infrastructure or indicators of compromise. You search for them, also in historical data.
- TTP-driven: you pick a technique from MITRE ATT&CK, for example persistence through scheduled tasks or credential dumping, and look for its traces. This is usually more durable than chasing single indicators.
- Analytics-driven: you look for statistical outliers, such as a host that suddenly talks to many new destinations or an account that logs in from an unusual country.
- Situational: a zero-day in a product you run, a merger, a new crown-jewel system or an incident at a supplier gives you a reason to look closer.
David Bianco's Pyramid of Pain is a useful reminder here: hash values and IP addresses are easy for attackers to change, while tools and especially tactics, techniques and procedures (TTPs) are hard to change. Hunts that target behaviour stay useful longer.
Example hunts
- Processes that have never run before on a server, or a web server process that starts a shell.
- New privileged accounts or group memberships created outside the normal provisioning process.
- Cleared logs: deleted shell history, stopped audit services or removed audit rules.
- Rare outbound destinations: domains or IPs that only one host in the fleet contacts, especially at regular intervals, which can indicate command-and-control beaconing.
- Logins at unusual hours or from new countries for accounts with administrative rights.
- Unusual cloud API calls, for example privileged role grants or new access keys for service accounts.
A simple stacking query, counting how often each process appears across all hosts, surfaces the rare ones:
source = "host.process"
| where timestamp > now() - 7d
| stats count_distinct(host.name) as hosts, count() as runs by process.executable
| where hosts <= 2
| sort runs asc
Prerequisites
- Data coverage: authentication, process, network and cloud audit logs from the systems that matter.
- Retention: enough history to look back further than the typical dwell time of an attacker.
- Consistent fields: the same names for host, user and source address across sources, so one filter finds an entity everywhere.
- A baseline: you need to know what normal looks like to recognise the unusual.
- Time: hunting needs protected time; a team that is fully occupied with alert triage will not hunt.
Common mistakes
- Hunting without a hypothesis: browsing data aimlessly rarely finds anything and is hard to repeat.
- Only searching indicators: matching a list of IPs is useful but is threat intelligence matching, not the full practice.
- Not documenting negative results: "we looked and found nothing" is valuable evidence and shows coverage.
- Never automating: if a good hunt never becomes a detection, the team keeps doing the same manual work.
- Ignoring data gaps: if the data needed for a hypothesis is missing, fixing the logging is a result in itself.
Building a hunting practice
Hunting does not need a large team to start. Begin with a short list of hypotheses tied to your most important systems, schedule a fixed time slot, and use a simple template for each hunt: hypothesis, data sources, queries, result and follow-up. After a few rounds, patterns emerge: which data sources are missing, which queries are worth automating and which techniques remain blind spots. Reviewing the MITRE ATT&CK coverage of your detections regularly helps pick the next hypotheses.
The observability perspective
Threat hunting and observability use the same raw material. Logs, metrics and traces from production show how systems normally behave, and that baseline is exactly what hunters compare against. Traces reveal which services talk to which, so a new and unexpected connection stands out. Structured logs with consistent attributes, for example following OpenTelemetry semantic conventions, make cross-source queries possible. When security and operations data live in one place, a hunter can move from a suspicious login to the processes it started and the requests it made without switching tools.
How Obseria helps
The Security Investigator is built for this kind of work: free-form search with free text and field filters across all security data, to follow a clue to its full scope. Threat intelligence matches indicators from public feeds against your events, with host and last seen. Cloud SIEM shows a MITRE ATT&CK matrix of your detections, which helps you choose techniques you are not yet covering as hunting hypotheses, and an asset and identity view with risk per host and account. Workload threat detection provides host signals such as new processes and cleared audit logs; it detects only and blocks nothing. When a hunt produces a reliable query, you can turn it into an alert rule on thresholds or patterns. Obseria is a tool, not a managed hunting service; the hunting itself is done by your team.