Building STIX queries
Although STIX 2 is gaining recognition as an industry standard, it is not yet widely known to all security professionals. The query builder helps you to create a search query for IBM Prerequisite Scanner, URLs, MD5 hashes, and more.
About this task
To learn more about STIX 2, see Introduction to STIX 2.
To learn more about the STIX 2 language that the query builder supports, see STIX 2 Patterning specifications.
- If you receive the message “The cluster is busy processing other requests and does not respond to your queries,” wait a few minutes and try again.
- When you use the Visual Builder, you must press Enter after you type the value. You can also press Enter and Shift to add multiple values.
Procedure
Results
When a query is run, an 'active-query' card is added. Each query expires 14 days after it is created.
Example
Search for IPv4
If a timeframe is not specified, a default timeframe is applied according to the data source setting.
[ipv4-addr:value = '127.0.0.1']
Search for URL with timeframe
Note that the START and STOP times are outside of the query string brackets
([]
).
[url:value = 'www.ibm.com'] START t'2019-03-23T13:53:12.229Z' STOP
t'2019-03-26T13:53:27.170Z'
Search for Destination Ports other than port 443
Exclude (!=
) values to narrow your results.
[network-traffic:dst_port != 443]
Search for the Powershell process that includes Mimikatz
in the command
line
Use operators such as LIKE
and IN
. Use %
to
represent "wild" strings.
[process:name = 'powershell.exe' AND process:command_line LIKE
'%Mimikatz%']
Search for the process that matches TSTheme.exe
and parent process that
includes svchost.exe
and MD5
hash
Group strings with parentheses ()
.
([process:name MATCHES 'TSTheme.exe' AND process:parent_ref.name LIKE '%svchost.exe']
AND [file:hashes.'MD5' = 'C9A51BDEC4B4E0B6EF51B64637677D14'])
For more information, see STIX Patterning, Examples.