Search Syntax
Building Search Queries
Search queries are built from search terms, separated by spaces. Search terms are built from a key and a value, joined with a colon.
The result of a search query are those records that match all terms in the query. In other words, terms are combined using AND.
Users can search CVEs, Assets, and Findings with similar syntax, but different terms as detailed below.
When used with the Search API the querystring portion must be URL-encoded. For example, cURL users can specify this as part of their command to correctly encode and append the search query.
-G --data-urlencode "q=score:>90"
CVE Search Terms
| Key | Value |
|---|---|
| Search against a CVE’s current score. The scores associated with the currently selected model will be used. Syntax for specifying score constraints (all scores are specified on a 0-100 scale and may contain decimals):
If multiple score terms are given for a constraint, the final term is used. For example, |
| Search against a CVE’s CVSS score across any version. Scores are specified on a 0-10 scale and may contain decimals.
|
| Same syntax as |
| Same syntax as |
| Search against a CVE’s publication date. Syntax for specifying publication date constraints (should be in the format
If multiple published_at terms are given for a constraint, the final term is used. For example, |
| Alias for |
| One of the following values:
|
| The name of the software vendor responsible for the affected software. Spaces in vendor names should be replaced with underscores, for example: |
| The name of the affected software product. Spaces in product names should be replaced with underscores, for example: |
| Filter by a searchable tag name. For example: |
|
|
|
|
|
|
Asset Search Terms
| Key | Value |
|---|---|
| Exact match on the asset type. For example: |
| Match assets containing the specified IPv4 addresses. Supports three forms:
|
| Match assets containing the specified IPv6 addresses. Supports three forms:
|
| Match assets containing the specified fully qualified domain name. For example: |
| Match assets containing the specified hostname. For example: |
| Match assets containing the specified operating system version. For example: |
| Exact match on the asset platform. For example: |
| Match assets containing the specified MAC address. For example: |
| Search against the date an asset was first seen by a scanner. Dates should be in the format
|
| Search against the date an asset was last seen by a scanner. Dates should be in the format
|
| Search against an Asset’s own score. The scores associated with the currently selected model will be used. Syntax for specifying score constraints (all scores are specified on a 0-100 scale and may contain decimals):
|
| Search against the score of CVEs associated with assets. The scores associated with the currently selected model will be used. Syntax for specifying score constraints (all scores are specified on a 0-100 scale and may contain decimals):
|
| Filter assets by the number of associated findings.
|
| Filter assets by the vendor of associated CVEs on related findings. For example: |
| Filter assets by the product of associated CVEs on related findings. For example: |
| Filter assets by the CVSS score of associated CVEs across any version. Scores are specified on a 0-10 scale and may contain decimals.
|
| Same syntax as |
| Same syntax as |
Finding Search Terms
| Key | Value |
|---|---|
| The name of the scanner vendor associated with findings. For example: |
| The finding state group. Valid values: |
| A CVE identifier associated with the finding. Case-insensitive. For example: |
| Search against the date a finding was first seen by a scanner. Dates should be in the format
|
| Search against the date a finding was last seen by a scanner. Dates should be in the format
|
| Search against a Finding’s own score. The scores associated with the currently selected model will be used. Syntax for specifying score constraints (all scores are specified on a 0-100 scale and may contain decimals):
|
| Search against the score of CVEs associated with findings. The scores associated with the currently selected model will be used. Syntax for specifying score constraints (all scores are specified on a 0-100 scale and may contain decimals):
|
| Filter findings by the vendor of associated CVEs. For example: |
| Filter findings by the product of associated CVEs. For example: |
| Filter findings by the CVSS score of associated CVEs across any version. Scores are specified on a 0-10 scale and may contain decimals.
|
| Same syntax as |
| Same syntax as |