Query Malware Intelligence data with query language

Find and aggregate sandbox artifacts using structured query language.

What this endpoint does

Queries Recorded Future's malware sandbox analysis database to find and aggregate artifacts observed across analyzed samples. You provide a query using the Malware Intelligence query language to filter sandbox results (e.g., dynamic.network.flows.dst_port == 5353 to find samples communicating on a specific port) and specify a field parameter to choose which artifact type to aggregate — such as sha256, ip_address, domain, url, ttp, command_line, or other behavioral indicators. The query language references fields from sandbox analysis reports including dynamic behavior (network flows, process activity) and static analysis attributes. The start_date parameter is required and cannot precede 2023-11-01. For querying by known indicators of compromise instead of the query language, use the Malware Intelligence: Query by IOCs endpoint; for natural language queries, use the Malware Intelligence: Query Natural Language endpoint. To retrieve full sandbox reports for specific samples, use the Malware Intelligence: Get Sandbox Reports endpoint.

Response data

The response returns a paginated list of matching artifacts, each with its value (name), the number of sandbox samples it was observed in (count), and a Recorded Future risk score. When querying with field set to sha256, additional per-result data is available: file extension types, MITRE ATT&CK tactic tags, a sandbox-specific score (when sandbox_score is true), and links to the universal sandbox report and intelligence card in the Recorded Future portal (when links is true). For other field types like ip_address, domain, or url, only the name, count, and risk_score are returned. The counts object provides the total number of matching results and the current page size, along with total_pages for pagination.

Body Params
string
required

Query in custom query language to filter the Malware Intelligence data with

string
enum
required

Field of Malware Intelligence data to return data for

date
required

Earliest date to include in the query (cannot be before 2023-11-01)

date

Latest date to include in the query, defaults to today in UTC

boolean

Only include samples submitted by your enterprise in the query (defaults to false)

integer

Page number to return. Pages are zero-indexed. (Defaults to 0)

boolean

Include sandbox score in the response

boolean
boolean

Whether to sanitize returned results. When omitted the service will default to false.

Response

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json