Vulnerability Testing
APIs for vulnerability testing
Enable or disable vulnerability tests.
To view vulnerability test results, use the Get All Services or Get Service Details endpoints.
api-key
{{api_key}}api-key-id
{{api_key_id}}OK
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Unprocessable Entity
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/assets/bulk_update_vulnerability_tests/ HTTP/1.1
Host: api-{{fqdn}}
authorization: {{api_key}}
x-xdr-auth-id: {{api_key_id}}
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"request_data": {
"test_names": [
"text"
],
"status": "enabled",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"reply": {
"bulk_update_result": "Success",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}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.
api-key
{{api_key}}api-key-id
{{api_key_id}}OK
Bad Request. Got an invalid JSON.
Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication parameters.
Unauthorized access. User does not have the required license type to run this API.
Forbidden access. The provided API Key does not have the required RBAC permissions to run this API.
Unprocessable Entity
Internal server error. A unified status for API communication type errors.
POST /public_api/v1/assets/get_vulnerability_tests/ HTTP/1.1
Host: api-{{fqdn}}
authorization: {{api_key}}
x-xdr-auth-id: {{api_key_id}}
Content-Type: application/json
Accept: */*
Content-Length: 309
{
"request_data": {
"filters": [
{
"field": "name",
"operator": "in",
"value": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"search_from": 0,
"search_to": 500,
"sort": {
"field": "severity_score",
"keyword": "desc",
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"reply": {
"total_count": 1,
"result_count": 1,
"vulnerability_tests": [
{
"id": "text",
"name": "text",
"vulnerability_ids": [
"text"
],
"description": "text",
"status": "text",
"vendor_names": [
"text"
],
"affected_software": [
{
"NAME": "text",
"VERSION_START_INCLUDING": "text",
"VERSION_START_EXCLUDING": "text",
"VERSION_END_INCLUDING": "text",
"VERSION_END_EXCLUDING": "text",
"VENDOR": "text",
"PRODUCT": "text",
"VERSION": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"severity_score": 1,
"cwe_ids": [
"text"
],
"epss_score": 1,
"references": [
"text"
],
"remediation_guidance": "text",
"first_published": 1,
"created": 1,
"count_vulnerable_services": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}Last updated
Was this helpful?
