Get a complete or filtered list of vulnerability tests. Response include details about each test, including the number of services confirmed vulnerable.
To view vulnerability test results, use the Get All Services or Get Service Details endpoints.
authorization
String
required
{{api_key}}
x-xdr-auth-id
String
required
{{api_key_id}}
request_dataObject
filtersArray
fieldString (Enum)
operatorString (Enum)
Identifies the comparison operator to use for this filter. The following list shows which operator can be used for each filter field:
- name
: contains, eq, neq
- status
: eq
- vulnerability_ids
: contains, not_contains
- description
: contains
- affected_software
: contains, not_contains
- cwe_ids
: contains, not_contains
- vendor_names
: contains, not_contains
- severity_score
: eq, neq, gte, lte
- epss_score
: eq, neq, gte, lte
- count_vulnerable_services
: eq, neq, gte, lte
valueObject
Value depends on the filter field used.
- name
: string e.g. apache
- status
: Enabled, Disabled
- vulnerability_ids
: strings in the form of CVE IDs, such as CVE-1, CVE-2
- description
: string e.g. apache
- affected_software
: strings
- cwe_ids
: strings in the form of CWE IDs such as CWE-20
- vendor_names
: strings such as Cisco, Siemens
- severity_score
: numbers, such as 2, 3.5
- epss_score
: numbers, such as 2, 3.5
- count_vulnerable_services
: integers, such as 1,2,5
search_fromInteger
search_toInteger
sortObject
fieldString (Enum)
keywordString (Enum)
{
"request_data": {
"search_from": 0,
"filters": [
{
"field": "name",
"value": "VulnerabilityTestFilter_value",
"operator": "in"
},
{
"field": "name",
"value": "VulnerabilityTestFilter_value",
"operator": "in"
}
],
"sort": {
"field": "severity_score",
"keyword": "desc"
},
"search_to": 0
}
}
curl -X 'POST'
-H
'Accept: application/json'
-H
'Content-Type: application/json'
-H
'authorization: {{api_key}}'
-H
'x-xdr-auth-id: {{api_key_id}}'
'https://api-}/public_api/v1/assets/get_vulnerability_tests/'
-d
'{
"request_data" : {
"search_from" : 0,
"filters" : [ {
"field" : "name",
"value" : "VulnerabilityTestFilter_value",
"operator" : "in"
}, {
"field" : "name",
"value" : "VulnerabilityTestFilter_value",
"operator" : "in"
} ],
"sort" : {
"field" : "severity_score",
"keyword" : "desc"
},
"search_to" : 0
}
}'