Skip to content

Threat hunting

A hunt is a hypothesis about attacker activity ("someone signs in with stolen passwords from a new country") tested with DQL queries over your logs. Open THREATS > Threat hunting.

Reading hunts needs Read in the Threat hunting area; writing, running and copying them needs Read-Write. Promoting a query to a rule also needs Read-Write in Detections & content; opening an investigation also needs Read-Write in Investigations.

A hunt

Field What it holds
Title, hypothesis what you look for and why, in Markdown (expected noise, what a hit means)
ATT&CK techniques the techniques the hunt looks for (T1078, T1110.003); they count on the coverage matrix
Source types the log sources the queries read (aws_cloudtrail, okta_system_log)
Status draft, active or concluded
Outcome none yet, nothing found, suspicious or confirmed
Owner, tags who works on it; free labels
Schedule manual only, daily or weekly (active hunts only)
Queries up to 20 named DQL queries

The list filters by status, outcome and owner, and searches titles, hypotheses and query text.

Running

Pick a time range (as in Search) and press Run all, or Run on one query. Every run is kept: the query as it ran, the range, the number of rows and the first 200 rows. Click a run to see its results as a table or chart. A query that fails (a syntax error, a quota) is kept as a failed run with the reason.

A run sees the same data as a search of yours: when your role is limited to some providers, so are your runs. Scheduled runs read every source of the organization, like detection rules.

Scheduled hunts

An active hunt with a daily or weekly schedule runs all its queries over its last day (or the range set for it) once per period. A scheduled run that returns rows raises an alert of the rule Threat hunt: scheduled results, grouped per hunt into an incident, so your notification rules and workflows see it. The alert shows the run's rows; when they are events, Triggered by and the incident's Events tab open exactly those events, otherwise Open in Search re-runs the hunt's query over the run's range. Change that rule's severity, notifications or workflow in Detections; it never runs by itself.

Promote to rule

Promote to rule (on a query, or Promote to rule from these results on a run) opens the promote dialog. The rule is always saved disabled: open it in Detections, review it and enable it yourself. The query shows a link to its rule. Promoting needs Read in Threat hunting and Read-Write in Detections.

  • As it is: the query as a rule (same DQL, any result, medium, every 15 minutes, the hunt's techniques). Backtest 30 days shows what it would have raised.
  • Tuned with AI: the model proposes a rule with the same intent that keeps the noise low: the query (it may narrow it), trigger and threshold, grouping fields, schedule and lookback, severity, alert title, ATT&CK tactics and techniques, the What to do guidance for the alert (triage, likely false positives, containment, references; links are removed) and suggested suppressions for clearly benign recurring values, with its reasoning. Tune backtests the plain rule first if you have not, and backtests the tuned rule afterwards, so you see both side by side with the change in alert count. It reads the hunt, the query, the backtest of the plain rule and up to 20 rows of the run you promote from (or of the query's latest run you can see). The rows and the backtest values are treated as untrusted data, as for Explain with AI: secrets removed, users, emails, IP addresses and hosts replaced by placeholders, text aimed at an AI flagged. When the data holds such text, the suggested suppressions are left out and the dialog asks you to review the rule. The proposal is checked like a rule you write; a query that does not compile goes back to the model once.

Each backtest runs the rule over each of the last 30 days with your data source visibility and shows the alerts it would have raised per day, the busiest day, the entities it names most, a few sample alerts with their evidence row, the alerts the suggested suppressions would remove, how many would-be alerts name an entity your existing alerts already name (per rule), and existing rules with a similar query. The button shows how many days are counted so far. It has limits: at most 200 alerts a day (a day at the cap says the real count is higher), a time and memory limit for each day and a time limit for the whole backtest. A day too heavy for the limits stops the backtest early: it says which day, why and how many days it counted; narrow the query (a source type, a filter) and backtest again. Nothing is written.

Change the proposal (the query, trigger, threshold, grouping, severity, schedule, title, or remove a suppression), press Backtest again, and Save as rule draft when it looks right. The saved rule keeps the backtest summary in its description (alerts in 30 days, per day, the busiest day, the count of the query as it is, and a note when you edited the rule after its last backtest). Untick Add the suggested suppressions to save the rule without them. Without an AI provider or budget, the plain rule, its backtest and saving it still work.

A query a rule cannot take as it is (for example a table without the event time and id) is refused with the reason; adjust it (end it with stats, or remove the table) and promote again.

Open an investigation

Open investigation opens an investigation from the selected run (or the latest run with results): the hunt's hypothesis as summary, each run as an evidence entry with its query and range, and the IP addresses, users and hosts of the rows as risk subjects. The hunt lists the investigations opened from it.

Library

The Library tab holds starter hunts shipped with DRACO for the sources we ingest (CloudTrail, Entra ID and Microsoft 365, Okta, Google Workspace and Google Cloud, Azure, Cloudflare, Kubernetes, and four or more hunts each for CrowdStrike, SentinelOne, Microsoft Defender XDR, Elastic Security, Wazuh and Splunk): valid accounts from new countries, account manipulation, brute force then success, new admin users, bulk object reads, logging turned off, suspicious command lines, lateral movement, exfiltration spikes, token reuse and more. Copy to my hunts creates a draft you can edit; the library entry stays as shipped.

Coverage

The coverage matrix (Detections > Coverage) marks a technique that an active or concluded hunt looks for as hunted: a dashed amber outline and a "hunted" count, apart from the colour of its rules. The tooltip lists the hunts. Drafts do not count.

AI assistance

With an AI provider (your own DRACO AI Assistant provider, or the platform's when the platform team offers it) and AI budget left for the month, three helpers are on the hunting pages (and the AI tuning of Promote to rule). They need Read-Write in Threat hunting (the AI tuning of a promoted rule needs Read there and Read-Write in Detections). When AI is not configured, turned off by the platform or the month's budget is used up, the pages say so and the buttons stay off.

  • Draft with AI (New hunt): write the hypothesis in plain words. The model gets that text and your data source types with their field names (names only, no events) and proposes a title, ATT&CK techniques, source types and one to three DQL queries. Each query is checked by the DQL compiler and counted over the last 7 days with your data source visibility (capped, with a short time limit) before you see it; a query that does not compile goes back to the model once with the error and is left out with the reason if it still fails. Unknown technique ids and source types you do not have are dropped. Create hunt saves it as a draft tagged ai-draft.
  • Explain with AI (a run's results): the model reads the first 50 rows of the run (within a size limit) and returns a summary, notable rows (outliers, rare values, clusters) with their row numbers, a suggested outcome with the reasoning, a next query (checked and counted like a draft's) and the entities worth an investigation. The rows are treated as untrusted data: secrets are removed, users, emails, IP addresses and hosts are replaced by placeholders, and text in the rows that tries to instruct the AI is flagged. Threat intel matches come from your active indicators, not from the model. Text aimed at an AI, or an indicator match, keeps the suggested outcome at least Suspicious; entities are kept only when they appear in the rows. Apply sets the hunt's outcome, Add to hunt adds the next query, Open investigation opens one with the suggested entities. The explanation is kept on the run.
  • Suggested (Hunts tab): up to five hypotheses from what you can see: ATT&CK techniques of the starter library for the data sources visible to you that no enabled rule or hunt covers, and, for each area your role can read, Fix now vulnerabilities (Findings), high-confidence threat intel sightings in your visible sources (Threat intel), UEBA anomalies of your visible source types (Assets) and incidents (Incidents) of the last 14 days: titles, techniques and counts only, no events. Your existing hunt titles are added to avoid repeats. Nothing is sent until you click Suggest hunts; the answer is kept for 24 hours and shared only with members who see the same sources and areas (Refresh asks again). Draft this hunt opens Draft with AI with that hypothesis.

The AI work runs in the background: the page shows Working… and checks every 2 seconds, and gives up with a message after 2 minutes (7 minutes for a tuned rule, 4 minutes for a backtest).

Every call counts against the organization's AI budget and appears as AI threat hunting in AI usage. A suggestion is a starting point: review the queries and the explanation before acting on them.

Audit

Every change is in the audit log: hunts created, edited, copied and deleted, queries added, edited and deleted, runs, promotions and investigations opened, and the AI helpers (hunt drafted, run explained, suggestions generated, rule tuned, backtests).