This guide documents the InsightVM Cloud Integrations Application Programming Interface (API). This API supports the Representation State Transfer (REST) design pattern. See Insight Platform API Overview for an overview of all Insight Platform APIs.
Versioning is specified in the URL and the base path of this API is:
https://{region}.api.insight.rapid7.com/vm/{version}/
Version numbers are numerical and prefixed with the letter "v"
, such as "v4"
.
The region indicates the geo-location of the Insight Platform desired:
Code | Region |
---|---|
us | United States |
eu | Europe |
ca | Canada |
au | Australia |
ap | Japan |
Authorization requires a token header X-Api-Key
and can be generated from the Insight Platform key management page.
See Insight Platform API Key for more details.
Unless noted otherwise this API accepts and produces the application/json
and application/xml
media types.
Unless otherwise indicated, the default request body media type is application/json
.
The following HTTP operations are supported throughout this API. The general usage of the operation and both its failure and success status codes are outlined below.
Verb |
Usage | Success | Failure |
---|---|---|---|
GET |
Used to retrieve a resource by identifier, or a collection of resources by type. | 200 |
400 , 401 , 402 , 404 , 405 , 408 , 410 , 415 , 500 |
POST |
Creates a resource with an application-specified identifier. | 201 |
400 , 401 , 404 , 405 , 408 , 413 , 415 , 500 |
POST |
Performs a request to queue an asynchronous job. | 202 |
400 , 401 , 405 , 408 , 410 , 413 , 415 , 500 |
PUT |
Creates a resource with a client-specified identifier. | 200 |
400 , 401 , 403 , 405 , 408 , 410 , 413 , 415 , 500 |
PUT |
Performs a full update of a resource with a specified identifier. | 201 |
400 , 401 , 403 , 405 , 408 , 410 , 413 , 415 , 500 |
DELETE |
Deletes a resource by identifier or an entire collection of resources. | 204 |
400 , 401 , 405 , 408 , 410 , 413 , 415 , 500 |
OPTIONS |
Requests what operations are available on a resource. | 200 |
401 , 404 , 405 , 408 , 500 |
Dates and/or times are specified as strings in the ISO 8601 format(s). The following formats are supported as input:
Value | Format | Notes |
---|---|---|
Date | YYYY-MM-DD | Defaults to 12 am UTC (if used for a date & time |
Date & time only | YYYY-MM-DD'T'hh:mm:ss[.nnn] | Defaults to UTC |
Date & time in UTC | YYYY-MM-DD'T'hh:mm:ss[.nnn]Z | |
Date & time w/ offset | YYYY-MM-DD'T'hh:mm:ss[.nnn][+|-]hh:mm | |
Date & time w/ zone-offset | YYYY-MM-DD'T'hh:mm:ss[.nnn][+|-]hh:mm[ |
Timezones are specified in the regional zone format, such as "America/Los_Angeles"
, "Asia/Tokyo"
, or "GMT"
.
Pagination may be supported on collection resources using a combination of two query parameters, page
and size
.
The page parameter dictates the zero-based index of the page to retrieve, and the size
indicates the size of the page.
For example, /resources?page=2&size=10
will return page 3, with 10 records per page, giving results 21-30.
The maximum page size for a request is 500.
Some paginated endpoints may supported "cursored" pages, allowing for a guaranteed consistent view of data across page
boundaries. Cursored page requests support a consistent, sequential way to access data across pages. Only if this option
is used are you guaranteed that you will read a record once and only once in any page ("repeatable read").
The cursor
property is used to follow the same chain of paginated requests from page to page. Each
request will change the value of the next cursor to use on the subsequent page, and may only be used to iterate sequentially
through pages. Cursors are stateless (results may shift across page boundaries while they are being read as data updates) unless otherwise noted.
The response to a paginated request follows the format:
{
data": [
...
],
"metadata": {
"number": ...,
"size": ...,
"sort": ...,
"totalResources": ...,
"totalPages": ...,
"cursor": ...
},
"links": [
"first" : {
"href" : "..."
},
"prev" : {
"href" : "..."
},
"self" : {
"href" : "..."
},
"next" : {
"href" : "..."
},
"last" : {
"href" : "..."
}
]
}
The data
property is an array of the resources being retrieved from the endpoint, each which should contain at
minimum a "self" relation hypermedia link. The metadata
property outlines the details of the current page and total
possible pages. The object for the page includes the following properties:
number
- The page number (zero-based) of the page returned.size
- The size of the pages, which is less than or equal to the maximum page size.totalResources
- The total amount of resources available across all pages.totalPages
- The total amount of pages.cursor
- An optional cursor for "cursored" page requestsThe last property of the paged response is the links
array, which contains all available hypermedia links. For
paginated responses, the "self", "next", "previous", "first", and "last" links are returned. The "self" link must
always be returned and should contain a link to allow the client to replicate the original request against the
collection resource in an identical manner to that in which it was invoked.
The "next" and "previous" links are present if either or both there exists a previous or next page, respectively. The "next" and "previous" links have hrefs that allow "natural movement" to the next page, that is all parameters required to move the next page are provided in the link. The "first" and "last" links provide references to the first and last pages respectively. If the page is "cursored" the cursor is automatically incorporated into the pagination links.
Sorting is supported on paginated resources with the sort
query parameter(s). The sort query parameter(s) supports
identifying a single or multi-property sort with a single or multi-direction output. The format of the parameter is:
sort=property[,ASC|DESC]...
Therefore, the request /resources?sort=name,title,DESC
would return the results sorted by the name and title
descending, in that order. The sort directions are either ascending ASC
or descending DESC
. With single-order
sorting, all properties are sorted in the same direction. To sort the results with varying orders by property,
multiple sort parameters are passed.
For example, the request /resources?sort=name,ASC&sort=title,DESC
would sort by name ascending and title
descending, in that order.
The following response statuses may be returned by this API.
Status | Meaning | Usage |
---|---|---|
200 |
OK | The operation performed without error according to the specification of the request, and no more specific 2xx code is suitable. |
201 |
Created | A create request has been fulfilled and a resource has been created. The resource is available as the URI specified in the response, including the Location header. |
202 |
Accepted | An asynchronous task has been accepted, but not guaranteed, to be processed in the future. |
400 |
Bad Request | The request was invalid or cannot be otherwise served. The request is not likely to succeed in the future without modifications. |
401 |
Unauthorized | The user is unauthorized to perform the operation requested, or does not maintain permissions to perform the operation on the resource specified. |
403 |
Forbidden | The resource exists to which the user has access, but the operating requested is not permitted. |
404 |
Not Found | The resource specified could not be located, does not exist, or an unauthenticated client does not have permissions to a resource. |
405 |
Method Not Allowed | The operations may not be performed on the specific resource. Allowed operations are returned and may be performed on the resource. |
408 |
Request Timeout | The client has failed to complete a request in a timely manner and the request has been discarded. |
413 |
Request Entity Too Large | The request being provided is too large for the server to accept processing. |
415 |
Unsupported Media Type | The media type is not supported for the requested resource. |
500 |
Internal Server Error | An internal and unexpected error has occurred on the server at no fault of the client. |
Any error responses can provide a response body with a message to the client indicating more information (if applicable) to aid debugging of the error. All 4xx and 5xx responses will return an error response in the body. The format of the response is as follows:
{
"status": <statusCode>,
"message": <message>,
"localized_message": <message>,
"links" : [ {
"rel" : "...",
"href" : "..."
} ]
}
The status
property is the same as the HTTP status returned in the response, to ease client parsing. The message
property is a localized message in the request client's locale (if applicable) that articulates the nature of the
error. The last property is the links
property.
The response statuses 401, 403 and 404 need special consideration for security purposes. As necessary, error statuses and messages may be obscured to strengthen security and prevent information exposure. The following is a guideline for privileged resource response statuses:
Use Case | Access | Resource | Permission | Status |
---|---|---|---|---|
Unauthenticated access to an unauthenticated resource. | Unauthenticated | Unauthenticated | Yes | 20x |
Unauthenticated access to an authenticated resource. | Unauthenticated | Authenticated | No | 401 |
Unauthenticated access to an authenticated resource. | Unauthenticated | Non-existent | No | 401 |
Authenticated access to a unauthenticated resource. | Authenticated | Unauthenticated | Yes | 20x |
Authenticated access to an authenticated, unprivileged resource. | Authenticated | Authenticated | No | 404 |
Authenticated access to an authenticated, privileged resource. | Authenticated | Authenticated | Yes | 20x |
Authenticated access to an authenticated, non-existent resource | Authenticated | Non-existent | Yes | 404 |
Commonly used response headers include:
Header | Example | Purpose |
---|---|---|
Allow |
OPTIONS, GET |
Defines the allowable HTTP operations on a resource. |
Cache-Control |
no-store, must-revalidate |
Disables caching of resources (as they are all dynamic). |
Content-Encoding |
gzip |
The encoding of the response body (if any). |
Location |
Refers to the URI of the resource created by a request. | |
Transfer-Encoding |
chunked |
Specified the encoding used to transform response. |
Retry-After |
5000 | Indicates the time to wait before retrying a request. |
X-Content-Type-Options |
nosniff |
Disables MIME type sniffing. |
X-XSS-Protection |
1; mode=block |
Enables XSS filter protection. |
X-Frame-Options |
SAMEORIGIN |
Prevents rendering in a frame from a different origin. |
X-UA-Compatible |
IE=edge,chrome=1 |
Specifies the browser mode to render in. |
When application/json
is returned in the response body it is always pretty-printed (indented, human readable output).
Additionally, gzip compression/encoding is supported on all responses.
Dates or times are returned as strings in the ISO 8601 'extended' format. When a date and time is returned (instant) the value is converted to UTC.
For example:
Value | Format | Example |
---|---|---|
Date | YYYY-MM-DD |
2017-12-03 |
Date & Time | YYYY-MM-DD'T'hh:mm:ss[.nnn]Z |
2017-12-03T10:15:30Z |
Returns an indicator of the health of the API.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
Healthy service response
{- "components": null,
- "status": "UP",
- "summary": null
}
Returns the inventory, assessment, and summary details for a page of assets. Only assets which the caller has access to are returned. If using the comparisonTime parameter, the recommended page size is 50.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
cursor | string Example: cursor=1549252222:::_S:::e3902e81-dcc3-37e2-981f-3ebc334f7122-default-asset-1158888 The stateless cursor to retrieve the next page of resources. |
currentTime | string Example: currentTime=2019-04-02T08:17:56.321Z The current date and time to compare against the asset state to detect changes. If specified, changes in vulnerabilities from this timestamp since the comparison time are calculated and output in the response. If not provided, defaults to the time of request. |
comparisonTime | string Example: comparisonTime=2018-11-09T08:17:56.321Z The date and time to compare the asset current state against to detect changes. If specified, changes in vulnerabilities from this timestamp to the current time are calculated and output in the response. If not provided, defaults to the current time value. |
includeSame | boolean Example: includeSame=false Whether the response should include the list of already-existing vulnerabilities on an asset. |
includeUniqueIdentifiers | boolean Example: includeUniqueIdentifiers=true Whether the response should include unique identifiers. |
page | integer Example: page=0 The index of the page (zero-based) to retrieve. |
size | integer Example: size=50 The number of records per page to retrieve. |
sort | string <<property>[,ASC|DESC]> Example: sort=id,ASC The criteria to sort the records by, in the format: |
Search query for filtering assets and vulnerabilities on assets.
asset | string Search criteria for filtering assets returned. |
vulnerability | string Search criteria for filtering vulnerabilities returned on each matching asset. |
Searching recently scanned assets with critical or severe vulnerabilities.
{- "asset": "last_scan_end > 2019-09-04T23:16:57.903Z",
- "vulnerability": "severity IN ['Critical', 'Severe']"
}
A page of assets matching a search filter.
{- "data": [
- {
- "assessed_for_policies": false,
- "assessed_for_vulnerabilities": true,
- "critical_vulnerabilities": 0,
- "exploits": 0,
- "id": "452534235-25a7-40a3-9321-28ce0b5cc90e-default-asset-199",
- "ip": "10.1.0.128",
- "last_assessed_for_vulnerabilities": "2020-03-20T19:19:42.611Z",
- "last_scan_end": "2020-03-20T19:19:42.611Z",
- "last_scan_start": "2020-03-20T19:18:13.611Z",
- "malware_kits": 0,
- "moderate_vulnerabilities": 2,
- "os_architecture": "x86_64",
- "os_description": "CentOS Linux 2.6.18",
- "os_family": "Linux",
- "os_name": "Linux",
- "os_system_name": "CentOS Linux",
- "os_type": "General",
- "os_vendor": "CentOS",
- "os_version": "2.6.18",
- "risk_score": 0,
- "severe_vulnerabilities": 0,
- "tags": [
- {
- "name": "lab",
- "type": "SITE"
}
], - "total_vulnerabilities": 2,
- "new": [ ],
- "remediated": [ ]
}, - {
- "assessed_for_policies": false,
- "assessed_for_vulnerabilities": true,
- "critical_vulnerabilities": 1,
- "exploits": 9,
- "host_name": "host.domain.com",
- "id": "452534235-25a7-40a3-9321-28ce0b5cc90e-default-asset-198",
- "ip": "10.4.24.164",
- "last_scan_end": "2020-03-20T19:12:39.766Z",
- "last_scan_start": "2020-03-20T19:05:06.766Z",
- "malware_kits": 0,
- "moderate_vulnerabilities": 11,
- "os_architecture": "",
- "os_description": "Ubuntu Linux 12.04",
- "os_family": "Linux",
- "os_name": "Linux",
- "os_system_name": "Ubuntu Linux",
- "os_type": "",
- "os_vendor": "Ubuntu",
- "os_version": "12.04",
- "risk_score": 12251.76171875,
- "severe_vulnerabilities": 16,
- "tags": [
- {
- "name": "all_assets2",
- "type": "CUSTOM"
}, - {
- "name": "all_assets",
- "type": "CUSTOM"
}, - {
- "name": "Linux",
- "type": "CUSTOM"
}, - {
- "name": "docker hosts",
- "type": "SITE"
}, - {
- "name": "lab",
- "type": "SITE"
}
], - "total_vulnerabilities": 28,
- "new": [ ],
- "remediated": [ ],
- "unique_identifiers": {
- "id": "4421d73dfe04f594df731e6bcd8156a",
- "source": "R7 Agent"
}
}
], - "metadata": {
- "number": 0,
- "size": 2,
- "totalResources": 2195,
- "totalPages": 1098,
- "cursor": "1542252837:::_S:::12474375-34a7-40a3-9821-28db0b5cc90e-default-asset-10"
}, - "links": [
- {
- "rel": "first"
}, - {
- "rel": "self"
}, - {
- "rel": "last"
}
]
}
Returns the assessment and details of an asset (specified by id). Only assets which the caller has access to can be returned.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
id required | string Example: 28504 The identifier of the asset to retrieve the details for. |
currentTime | string Example: currentTime=2019-04-02T08:17:56.321Z The current date and time to compare the asset state against to detect changes. If specified, changes in vulnerabilities from this timestamp since the comparison time are calculated and output in the response. If not provided, defaults to the time of request. |
comparisonTime | string Example: comparisonTime=2018-11-09T08:17:56.321Z The date and time to compare the current asset state against to detect changes. If specified, changes in vulnerabilities from this timestamp to the current time are calculated and output in the response. If not provided, defaults to the current time value. |
includeSame | boolean Example: includeSame=false Whether the response should include the list of already-existing vulnerabilities on an asset. |
includeUniqueIdentifiers | boolean Example: includeUniqueIdentifiers=true Whether the response should include asset unique identifiers in the response. |
The details of an asset.
{- "assessed_for_policies": false,
- "assessed_for_vulnerabilities": true,
- "critical_vulnerabilities": 16,
- "exploits": 24,
- "host_name": "host.domain.com",
- "id": "12344375-34a7-40d3-9821-90db0b5cc90e-default-asset-7912",
- "ip": "10.1.0.128",
- "last_assessed_for_vulnerabilities": "2019-02-14T21:19:41.090Z",
- "last_scan_end": "2019-02-14T21:19:41.090Z",
- "last_scan_start": "2019-02-14T21:05:35.014Z",
- "mac": "00:50:56:8B:62:45",
- "malware_kits": 1,
- "moderate_vulnerabilities": 31,
- "os_architecture": "",
- "os_description": "Microsoft Windows Server 2008 R2, Standard Edition SP1",
- "os_family": "Windows",
- "os_name": "Windows Server 2008 R2, Standard Edition",
- "os_system_name": "Microsoft Windows",
- "os_type": "General",
- "os_vendor": "Microsoft",
- "os_version": "SP1",
- "risk_score": 74621.5625,
- "severe_vulnerabilities": 229,
- "tags": [
- {
- "name": "Windows",
- "type": "CUSTOM"
}, - {
- "name": "lab",
- "type": "SITE"
}, - {
- "name": "windows targets",
- "type": "SITE"
}
], - "total_vulnerabilities": 276,
- "type": "guest",
- "new": [ ],
- "remediated": [ ]
}
Retrieves a page of scans.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
includeDetails | boolean Default: false Example: includeDetails=true Whether the response should include additional details about scans. |
page | integer Example: page=0 The index of the page (zero-based) to retrieve. |
size | integer Example: size=50 The number of records per page to retrieve. |
A page of scans.
{- "data": [
- {
- "id": "bcc3fd8f-7bb6-41cc-a52f-4046c8742bf0",
- "name": "Scan API Example Name",
- "engine_id": "b177d730-5cde-468a-89a4-2c5b9d26b465",
- "status": "Success",
- "started": "2020-05-12T09:00:12.199Z",
- "finished": "2020-05-12T09:08:54.404Z"
}
], - "metadata": {
- "number": 0,
- "size": 10,
- "totalResources": 1,
- "totalPages": 1
}, - "links": [
- {
- "rel": "self"
}
]
}
Starts a scan.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
Input resource for starting a new scan.
asset_ids | Array of strings unique The identifiers of the assets to scan. |
credential_sources | Array of strings unique The names of the sites on the Nexpose console to pull asset credentials from. |
engine_ids | Array of strings unique The identifiers of the engines to use for the scan. |
exclusions | object (ScanForm) Recursive The payload for starting a scan. |
name | string The name of the scan. |
result_consumer | string The name of the site on the Nexpose console used to ingest the scanned assets. |
solution_ids | Array of strings unique The identifiers of the solutions used to reduce the scope of the scan. |
start_time | string The time at which to start the scan. |
vulnerability_ids | Array of strings unique The identifiers of the vulnerabilities used to reduce the scope of the scan. |
{- "asset_ids": [
- "string"
], - "credential_sources": [
- "string"
], - "engine_ids": [
- "string"
], - "exclusions": { },
- "name": "string",
- "result_consumer": "string",
- "solution_ids": [
- "string"
], - "start_time": "string",
- "vulnerability_ids": [
- "string"
]
}
The identifier of the newly started scan.
{- "scans": [
- {
- "id": "bcc3fd8f-7bb6-41cc-a52f-4046c8742bf0",
- "engine_id": "b177d730-5cde-468a-89a4-2c5b9d26b465",
- "name": "Scan API Example Name",
- "asset_ids": [
- "12344375-34a7-40d3-9821-90db0b5cc90e-default-asset-1",
- "12344375-34a7-40d3-9821-90db0b5cc90e-default-asset-2",
- "12344375-34a7-40d3-9821-90db0b5cc90e-default-asset-3"
]
}
], - "unscanned_assets": [
- {
- "id": "12344375-34a7-40d3-9821-90db0b5cc90e-default-asset-4",
- "reason": "Asset has never been scanned with an InsightVM Platform registered engine."
}, - {
- "id": "12344375-34a7-40d3-9821-90db0b5cc90e-default-asset-5",
- "reason": "Too many assets in request."
}
]
}
Retrieves a page of scan engines.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
page | integer Example: page=0 The index of the page (zero-based) to retrieve. |
size | integer Example: size=50 The number of records per page to retrieve. |
A page of scan engines.
{- "data": [
- {
- "id": "6c384978-3545-455b-a69a-afa6e8cbd2dd",
- "host_name": "127.0.0.1",
- "status": "HEALTHY",
- "last_seen": "2021-03-02T22:29:05.006Z",
- "registered": "2020-09-11T18:36:49.973Z",
- "name": "Scan Engine Example Name",
- "profile": {
- "configuration": {
- "last_retrieved": "2023-08-13T13:23:17.433Z",
- "properties": [
- "property1:value1",
- "property2:value2"
]
}
}
}
], - "metadata": {
- "number": 0,
- "size": 10,
- "totalResources": 1,
- "totalPages": 1
}, - "links": [
- {
- "rel": "self"
}
]
}
Retrieves the scan engine with the specified identifier.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
id required | string Example: 6c384978-3545-455b-a69a-afa6e8cbd2dd The identifier of the scan engine to retrieve. |
Retrieving scan engine with identifier "6c384978-3545-455b-a69a-afa6e8cbd2dd"
.
{- "id": "6c384978-3545-455b-a69a-afa6e8cbd2dd",
- "host_name": "127.0.0.1",
- "status": "HEALTHY",
- "last_seen": "2021-03-02T22:29:05.006Z",
- "registered": "2020-09-11T18:36:49.973Z",
- "name": "Scan Engine Example Name",
- "profile": {
- "configuration": {
- "last_retrieved": "2023-08-13T13:23:17.433Z",
- "properties": [
- "property1:value1",
- "property2:value2"
]
}
}
}
Updates the custom properties configuration of a scan engine with the specified identifier. May require engine restart before taking effect. Care should be taken when setting custom properties. If you are not familiar with custom properties we recommend contacting Rapid7 Support for assistance.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
id required | string Example: 6c384978-3545-455b-a69a-afa6e8cbd2dd The identifier of the scan engine to update. |
A list of key-value pair objects with the custom properties name and parameter values specified.
Array of objects (Scan Engine Properties Input) The properties to apply to the engine payload. |
Sample request body to update a scan engine configuration properties.
{- "properties": [
- {
- "name": "com.rapid7.property1",
- "value": "Example"
}, - {
- "name": "com.rapid7.property2",
- "value": "0"
}
]
}
Updating the configuration of the scan engine with identifier "6c384978-3545-455b-a69a-afa6e8cbd2dd"
.
{- "message": "A response message"
}
Removes specified custom properties from the configuration of the scan engine with the specified identifier if applied. May require engine restart before taking effect. Care should be taken when setting custom properties. If you are not familiar with custom properties we recommend contacting Rapid7 Support for assistance.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
id required | string Example: 6c384978-3545-455b-a69a-afa6e8cbd2dd The identifier of the scan engine to update. |
List of property names to remove from the scan engine configuration.
properties | Array of strings List of property names to remove from a scan engine. |
Sample request body to remove a scan engine configuration property.
{- "properties": [
- "com.rapid7.exampleProperty1",
- "com.rapid7.exampleProperty2"
]
}
Removing custom properties from the scan engine with identifier "6c384978-3545-455b-a69a-afa6e8cbd2dd"
.
{- "message": "A sample message"
}
Retrieves the scan with the specified identifier.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
id required | string Example: bcc3fd8f-7bb6-41cc-a52f-4046c8742bf0 The identifier of the scan to retrieve. |
includeDetails | boolean Default: false Example: includeDetails=true Whether the response should include additional details about the scan. |
Retrieving scan with identifier "bcc3fd8f-7bb6-41cc-a52f-4046c8742bf0"
.
{- "id": "bcc3fd8f-7bb6-41cc-a52f-4046c8742bf0",
- "name": "Scan API Example Name",
- "engine_id": "b177d730-5cde-468a-89a4-2c5b9d26b465",
- "status": "Success",
- "started": "2020-05-12T09:00:12.199Z",
- "finished": "2020-05-12T09:08:54.404Z"
}
Stops the scan with the specified identifier.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
id required | string Example: bcc3fd8f-7bb6-41cc-a52f-4046c8742bf0 The identifier of the scan to stop. |
Example response with a Bad Request (400) status.
{- "status": 400,
- "localized_message": "A request body must be provided.",
- "message": "Required request body is missing."
}
Returns the details for sites.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
cursor | string Example: cursor=1549252222:::_S:::e3902e81-dcc3-37e2-981f-3ebc334f7122-default-asset-1158888 The stateless cursor to retrieve the next page of resources. |
page | integer Example: page=0 The index of the page (zero-based) to retrieve. |
size | integer Example: size=50 The number of records per page to retrieve. |
sort | string <<property>[,ASC|DESC]> Example: sort=id,ASC The criteria to sort the records by, in the format: |
The details for all sites.
{- "data": [
- {
- "name": "docker hosts",
- "type": "SITE"
}, - {
- "name": "lab",
- "type": "SITE"
}, - {
- "name": "windows targets",
- "type": "SITE"
}
], - "metadata": {
- "number": 0,
- "size": 3,
- "totalResources": 3,
- "totalPages": 1,
- "cursor": "-760687744:::_S:::windows targets"
}, - "links": [
- {
- "rel": "self"
}
]
}
Returns all vulnerabilities that can be assessed.
region required | string (Region) Enum: "us" "us2" "us3" "eu" "ca" "au" "ap" Example: us The region of the Insight Platform to use. See Overview for more information. |
cursor | string Example: cursor=1549252222:::_S:::e3902e81-dcc3-37e2-981f-3ebc334f7122-default-asset-1158888 The stateless cursor to retrieve the next page of resources. |
page | integer Example: page=0 The index of the page (zero-based) to retrieve. |
size | integer Example: size=50 The number of records per page to retrieve. |
sort | string <<property>[,ASC|DESC]> Example: sort=id,ASC The criteria to sort the records by, in the format: |
Search criteria for finding vulnerabilities.
vulnerability | string Search expression with criteria for searching on vulnerabilities. |
Searching vulnerabilities by last modified date.
{- "vulnerability": "modified > 2020-01-01T00:00:00Z"
}
Retrieving a page of vulnerabilities by last modified date.
{- "data": [
- {
- "added": "2018-05-16T00:00:00Z",
- "categories": "7-Zip",
- "cves": "CVE-2008-6536",
- "cvss_v2_access_complexity": "low",
- "cvss_v2_access_vector": "network",
- "cvss_v2_authentication": "none",
- "cvss_v2_availability_impact": "complete",
- "cvss_v2_confidentiality_impact": "complete",
- "cvss_v2_exploit_score": 9.996799,
- "cvss_v2_impact_score": 10.000845,
- "cvss_v2_integrity_impact": "complete",
- "cvss_v2_score": 10,
- "cvss_v2_vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C",
- "cvss_v3_attack_complexity": null,
- "cvss_v3_attack_vector": null,
- "cvss_v3_availability_impact": null,
- "cvss_v3_confidentiality_impact": null,
- "cvss_v3_exploit_score": 0,
- "cvss_v3_impact_score": 0,
- "cvss_v3_integrity_impact": null,
- "cvss_v3_privileges_required": null,
- "cvss_v3_scope": null,
- "cvss_v3_score": 0,
- "cvss_v3_user_interaction": null,
- "cvss_v3_vector": null,
- "denial_of_service": false,
- "description": "Unspecified vulnerability in 7-zip before 4.5.7 has unknown impact and remote attack vectors, as demonstrated by the PROTOS GENOME test suite for Archive Formats (c10).",
- "exploits": [ ],
- "id": "7-zip-cve-2008-6536",
- "links": [
- {
- "id": "41247",
- "rel": "advisory",
- "source": "xf"
}, - {
- "id": "CVE-2008-6536",
- "rel": "advisory",
- "source": "cve"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}
], - "malware_kits": [ ],
- "modified": "2018-06-08T00:00:00Z",
- "pci_cvss_score": 10,
- "pci_fail": true,
- "pci_severity_score": 5,
- "pci_special_notes": "",
- "pci_status": "fail",
- "published": "2009-03-29T00:00:00Z",
- "references": "bid:28285,xf:41247,cve:CVE-2008-6536,url:http://www.cert.fi/haavoittuvuudet/joint-advisory-archive-formats.html,url:http://www.ee.oulu.fi/research/ouspg/protos/testing/c10/archive/,url:http://www.securityfocus.com/bid/28285,url:http://www.vupen.com/english/advisories/2008/0914/references,url:http://www.xerox.com/download/security/security-bulletin/16287-4d6b7b0c81f7b/cert_XRX13-003_v1.0.pdf,url:https://exchange.xforce.ibmcloud.com/vulnerabilities/41247",
- "risk_score": 885.16,
- "severity": "critical",
- "severity_score": 10,
- "title": "7-Zip: CVE-2008-6536: Unspecified vulnerability in 7-zip before 4.5.7"
}, - {
- "added": "2018-05-16T00:00:00Z",
- "categories": "7-Zip,Remote Execution",
- "cves": "CVE-2016-2334",
- "cvss_v2_access_complexity": "medium",
- "cvss_v2_access_vector": "network",
- "cvss_v2_authentication": "none",
- "cvss_v2_availability_impact": "complete",
- "cvss_v2_confidentiality_impact": "complete",
- "cvss_v2_exploit_score": 8.5888,
- "cvss_v2_impact_score": 10.000845,
- "cvss_v2_integrity_impact": "complete",
- "cvss_v2_score": 9.3,
- "cvss_v2_vector": "AV:N/AC:M/Au:N/C:C/I:C/A:C",
- "cvss_v3_attack_complexity": "low",
- "cvss_v3_attack_vector": "local",
- "cvss_v3_availability_impact": "high",
- "cvss_v3_confidentiality_impact": "high",
- "cvss_v3_exploit_score": 1.8345766,
- "cvss_v3_impact_score": 5.873119,
- "cvss_v3_integrity_impact": "high",
- "cvss_v3_privileges_required": "none",
- "cvss_v3_scope": "unchanged",
- "cvss_v3_score": 7.8,
- "cvss_v3_user_interaction": "required",
- "cvss_v3_vector": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
- "denial_of_service": false,
- "description": "Heap-based buffer overflow in the NArchive::NHfs::CHandler::ExtractZlibFile method in 7zip before 16.00 and p7zip allows remote attackers to execute arbitrary code via a crafted HFS+ image.",
- "exploits": [ ],
- "id": "7-zip-cve-2016-2334",
- "links": [
- {
- "id": "CVE-2016-2334",
- "rel": "advisory",
- "source": "cve"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}, - {
- "rel": "advisory",
- "source": "url"
}
], - "malware_kits": [ ],
- "modified": "2018-06-08T00:00:00Z",
- "pci_cvss_score": 9.3,
- "pci_fail": true,
- "pci_severity_score": 5,
- "pci_special_notes": "",
- "pci_status": "fail",
- "published": "2016-12-13T00:00:00Z",
- "references": "bid:90531,cve:CVE-2016-2334,url:http://blog.talosintel.com/2016/05/multiple-7-zip-vulnerabilities.html,url:http://blog.talosintelligence.com/2017/11/exploiting-cve-2016-2334.html,url:http://www.oracle.com/technetwork/topics/security/bulletinoct2016-3090566.html,url:http://www.securityfocus.com/bid/90531,url:http://www.securitytracker.com/id/1035876,url:http://www.talosintel.com/reports/TALOS-2016-0093/,url:https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNYIQAU3FKFBNFPK6GKYTSVRHQA7PTYT/,url:https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DTGWICT3KYYDPDXRNO5SXD32GZICGRIR/,url:https://security.gentoo.org/glsa/201701-27",
- "risk_score": 582.82,
- "severity": "critical",
- "severity_score": 9,
- "title": "7-Zip: CVE-2016-2334: Heap-based buffer overflow vulnerability"
}
], - "metadata": {
- "number": 0,
- "size": 2,
- "totalResources": 81631,
- "totalPages": 40816,
- "cursor": "-37745434:::_S:::7-zip-cve-2016-2334"
}, - "links": [
- {
- "rel": "first"
}, - {
- "rel": "self"
}, - {
- "rel": "last"
}
]
}