> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/r/rapid7-insightvm.md).

# Rapid7 InsightVM

Rapid7 InsightVM is the cloud vulnerability management service of the Rapid7 Command Platform. OctoXLabs uses it to add assets that were scanned recently to the device inventory.

## Use cases

* Find InsightVM assets that no EDR covers.

```
Adapters = rapid7-insightvm AND NOT Adapters = falcon-crowdstrike
```

* List Windows assets reported by InsightVM.

```
Adapters = rapid7-insightvm AND OS.Type = Windows
```

## Before you begin

### Network

| Source              | Destination                                | Port | Protocol |
| ------------------- | ------------------------------------------ | ---- | -------- |
| OctoXLabs connector | us.api.insight.rapid7.com (default domain) | 443  | HTTPS    |

### Required permissions

| Scope or role | Permission | Needed for                               |
| ------------- | ---------- | ---------------------------------------- |
| User API key  | Read       | Asset data (`/vm/v4/integration/assets`) |

The instructions state that the key must be able to read asset and vulnerability data. Exact roles: not verified.

## Create credentials in Rapid7 InsightVM

{% stepper %}
{% step %}

### Open Administration

On the Rapid7 Command Platform home page, click **Administration** in the left menu.
{% endstep %}

{% step %}

### Open API Key Management

Click **API Key Management**, then open the **User API Keys** page.
{% endstep %}

{% step %}

### Generate a key

Click **Generate New User Key**, choose an organization and name the key, then generate it.
{% endstep %}

{% step %}

### Copy the key

Copy and store the key. You cannot view it again after you close the window.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type    | Default                   | Description                                                    |
| -------------- | -------- | ------- | ------------------------- | -------------------------------------------------------------- |
| Domain         | Yes      | String  | us.api.insight.rapid7.com | Base domain of the InsightVM API.                              |
| API Key        | Yes      | String  | None                      | User API key.                                                  |
| Last Scan Days | No       | Integer | 7                         | Fetch only assets whose last scan ended within this many days. |
| Timeout        | No       | Integer | 30                        | Seconds to wait for API responses.                             |
| Proxy          | No       | String  | None                      | Proxy as host:port.                                            |
| Is Secure?     | No       | Boolean | True                      | Use HTTPS.                                                     |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Status Code:  | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

{% hint style="info" %}
Available starting from version 6.2.1.
{% endhint %}
