> 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/t/tenable-vulnerability-management-scan-export-csv.md).

# Tenable Vulnerability Management Scan Export CSV

Tenable Vulnerability Management can export every scan as a CSV file. OctoXLabs exports each scan, downloads the CSV and groups the rows by host, so each host becomes one device with its findings and open ports.

## Use cases

* List the hosts found in Tenable scans.

```
Adapters = tenable-vm-scan-export-csv
```

* Find scanned hosts that no endpoint detection tool reports.

```
Adapters = tenable-vm-scan-export-csv AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                                      | Port | Protocol |
| ------------------- | ---------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Tenable Vulnerability Management API (default cloud.tenable.com) | 443  | HTTPS    |

The connector always uses HTTPS on the default port. An optional HTTP proxy can be set.

### Required permissions

| Scope or role                                                                                              | Permission | Needed for                                   |
| ---------------------------------------------------------------------------------------------------------- | ---------- | -------------------------------------------- |
| Basic \[16] user role and Can View \[16] on the scans (or custom role privilege VM.VM\_SCAN.VM\_SCAN.READ) | Read       | Listing scans                                |
| Scan Operator \[24] user role and Can View \[16] (or custom role privilege VM.VM\_SCAN.VM\_SCAN.EXPORT)    | Export     | Exporting, polling and downloading each scan |

The API key owner needs permissions for both stages of the flow.

## Create credentials in Tenable Vulnerability Management Scan Export CSV

{% stepper %}
{% step %}

### Open API Keys

From the upper left menu, go to **Settings** > **My Account** > **API Keys**.
{% endstep %}

{% step %}

### Generate

Click **Generate**. Review the warning and click **Generate** to confirm.
{% endstep %}

{% step %}

### Copy the keys

Copy the new access key and secret key to a secure location. You cannot view them again after you close the dialog.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type     | Default           | Description                                                                                                                           |
| -------------- | -------- | -------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| Domain         | No       | Text     | cloud.tenable.com | Base domain of the Tenable Vulnerability Management API.                                                                              |
| Access Key     | Yes      | Text     |                   | Access key of the API key pair.                                                                                                       |
| Secret Key     | Yes      | Password |                   | Secret key of the API key pair.                                                                                                       |
| Export Timeout | No       | Integer  | 600               | Maximum seconds to wait for a scan CSV export to become ready. A scan that is not ready in time is skipped. Raise it for large scans. |
| Proxy          | No       | Text     |                   | Proxy address.                                                                                                                        |
| Timeout        | No       | Integer  | 30                | Seconds to wait for API responses.                                                                                                    |

## Troubleshooting

| Error message                  | Cause                                             | Fix                               |
| ------------------------------ | ------------------------------------------------- | --------------------------------- |
| Max retries exceeded for {url} | The API kept returning HTTP 429 after 5 attempts. | Wait and run the discovery again. |

## Change history

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