Using ThreatStream Macros in Search

Anomali offers out-of-the-box macros that enable you to fetch and analyze ThreatStream data without building complex search queries. For example, the image below demonstrates the search query that returns 20 most recent Actors and their field details.

To avoid building such a complex search query, you can use the `actors(20)` macro to return the same results.

Similar to custom macros, out-of-the-box macros are entered in the Search field with a back tick character (`) before and after the macro name. For example, `ioc_feeds`, `malwarethreats(50)`, `rules(30)`.

After running a search query with a macro, you can continue analyzing and filtering data displayed on the Result tab. This can be done by building conditions with available macro fields. See Available Macros for more information about available macros and their fields.

Out-of-the-box macros can be used independently or within a search query.

Search queries containing macros can be saved and managed the same way as regular search queries. See Anomali Search for details.

Additionally, they can be used to create custom dashboards. See Creating a Dashboard for details.

Available Macros

Use this section as a reference for all out-of-the box macros available in Search. Note that some macros require you to specify a limit for the number of returned results. The maximum limit you can specify is 1,000. The results are returned based on modified timestamp.

Available macros can be cloned or copied, but they cannot be modified.

actors (limit)

This macro allows you to query the data related to Actors. When used in Search, it returns the fields containing Actor details, which then can be included in the operators for further analysis.

attackpattern(limit)

This macro allows you to query the data related to Attack Patterns. When used in Search, it returns the fields containing Attack Pattern details, which then can be included in the operators for further analysis.

campaign(limit)

This macro allows you to query the data related to Campaigns. When used in Search, it returns the fields containing Campaign details, which then can be included in the operators for further analysis.

incident(limit)

This macro allows you to query the data related to Incidents. When used in Search, it returns the fields containing Incidents details, which then can be included in the operators for further analysis.

investigations

This macro allows you to query statistics of the investigations accessible via Anomali platform. When used in Search, it returns the fields containing information about investigations, which then can be included in the operators for further analysis.

ioc(limit)

This macro allows you to query details of observables. When used in Search, it returns the fields containing observable details, which then can be included in the operators for further analysis.

ioc_contributions

This macro allows you to query statistics of the intelligence contributed to by your organization and community. When used in Search, it returns the fields containing information about contributed observables, which then can be included in the operators for further analysis.

ioc_feeds

This macro allows you to query statistics of the observables imported from various feeds. When used in Search, it returns the fields containing information about feeds and observables, which then can be included in the operators for further analysis.

malwarethreats(limit)

This macro allows you to query statistics of the malware threats accessible via platform. When used in Search, it returns the fields containing information about malware, which then can be included in the operators for further analysis.

rules(limit)

This macro allows you to query statistics of the rules configured in ThreatStream. When used in Search, it returns the fields containing information related to rules, which then can be included in the operators for further analysis.

signature(limit)

This macro allows you to query the data related to Signatures. When used in Search, it returns the fields containing Signature details, which then can be included in the operators for further analysis.

tipreport(limit)

This macro allows you to query the data related to Threat Bulletins. When used in Search, it returns the fields containing Threat Bulletin details, which then can be included in the operators for further analysis.

ttp(limit)

This macro allows you to query the data related to TTPs. When used in Search, it returns the fields containing TTPs details, which then can be included in the operators for further analysis.

vulnerability(limit)

This macro allows you to query the data related to Vulnerabilities. When used in Search, it returns the fields containing Vulnerability details, which then can be included in the operators for further analysis.