Hunt (TLQL)
huntRun deterministic SIEM-style queries over a unified index of threat observations to answer aggregate questions and cross-type correlations in a single step.
Instructions
Run a deterministic SIEM-style query over the pre-joined observation index (~106k rows across tool, malware, ioc, mitre, cve, attribution, dns and infra observations). Use this INSTEAD of chaining many search_threats calls when the question is an aggregate ("how many X grouped by Y") or crosses observation types ("threats using tool A that also have IOC type B"). Append "| stats count by " to aggregate; without it you get matching rows. Call hunt_schema first if you do not know the field names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Row cap for non-stats queries (default 50, max 150). Ignored in stats mode. | |
| query | Yes | TLQL, e.g. `tool = "cobalt strike" AND sector = "healthcare" | stats count by nation` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | ||
| func | No | ||
| mode | Yes | 'stats' when the query has a | stats pipe, otherwise rows. | |
| rows | No | ||
| count | No | ||
| query | Yes | ||
| groups | No | ||
| columns | No | ||
| tier_gated_included | No | True when the caller's tier allows the c2_beacon/dns/infra observation types. |