> 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/tenableio-scan-manager.md).

# TenableIO Scan Manager

Tenable Vulnerability Management (Tenable.io) scans assets for vulnerabilities. OctoXLabs walks the Scans API in three steps (scan list, scan detail, host detail) and creates one device for each scanned host, with its operating system and vulnerabilities.

## Use cases

* List the hosts that appear in Tenable scan results.

```
Adapters = tenable-io
```

* Find scanned hosts that no endpoint detection tool reports.

```
Adapters = tenable-io AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

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

The connector uses HTTPS when Is Secure is on, and HTTP otherwise. An optional HTTP proxy (host:port) can be set.

### Required permissions

| Scope or role                                                 | Permission | Needed for                    |
| ------------------------------------------------------------- | ---------- | ----------------------------- |
| Scan Operator \[24] user role and Can View \[16] on the scans | Read       | Scans you want to collect     |
| Custom role with VM.VM\_SCAN.VM\_SCAN.READ                    | Read       | Alternative to the role above |

A scan the account cannot view is invisible to the API, so its hosts go missing without an error. If the asset count looks low, check the scan permissions first. See [Tenable roles and privileges](https://docs.tenable.com/vulnerability-management/Content/Settings/access-control/TenableRolePrivileges.htm).

## Create credentials in TenableIO Scan Manager

{% stepper %}
{% step %}

### Sign in

Sign in to Tenable Vulnerability Management as the user whose permissions the adapter should inherit. Use a dedicated service user for OctoXLabs rather than a personal account.
{% endstep %}

{% step %}

### Open API Keys

Open **My Account** from the user menu, then select the **API Keys** tab.
{% endstep %}

{% step %}

### Generate

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

{% step %}

### Copy both keys

Copy the access key and the secret key. You cannot retrieve them after you close the API Keys tab. Generating a new pair invalidates the existing pair and breaks every other integration that uses it.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Tenable archives scan results after 35 days. An archived scan returns no hosts array, so this adapter skips it and its hosts do not appear. To get the full asset inventory regardless of scan age, use the TenableIO Inventory Context adapter. The two adapters are designed to run side by side. See [Tenable: Get scan details](https://developer.tenable.com/reference/scans-details).
{% endhint %}

{% hint style="danger" %}
You get one chance to copy the keys. Generating a new pair invalidates the existing pair. See [Tenable: Generate API keys](https://docs.tenable.com/vulnerability-management/Content/Settings/my-account/GenerateAPIKey.htm).
{% endhint %}

## Connection parameters

| Parameter    | Required | Type     | Default           | Description                                                                                                                                               |
| ------------ | -------- | -------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| URL          | No       | Text     | cloud.tenable.com | Base domain of the Tenable Vulnerability Management API. Host name only, no scheme and no trailing slash. FedRAMP customers use fedcloud.tenable.com.     |
| Access Key   | Yes      | Text     |                   | Access key of the API key pair.                                                                                                                           |
| Secret Key   | Yes      | Password |                   | Secret key of the API key pair. Both keys are sent in the X-ApiKeys header.                                                                               |
| Proxy        | No       | Text     |                   | HTTP proxy as host:port. Leave empty for a direct connection.                                                                                             |
| Is Secure?   | No       | Boolean  | True              | Use HTTPS. Tenable cloud API is HTTPS only.                                                                                                               |
| Timeout      | No       | Integer  | 30                | Seconds to wait for a single API response.                                                                                                                |
| Thread Count | No       | Integer  | 32                | Host detail requests in flight at the same time. Minimum 1, maximum 32. Lower it if you hit rate limits (8 to 16 often finishes sooner on a busy tenant). |
| Sleep Time   | No       | Integer  | 0                 | Seconds to pause between batches of parallel requests.                                                                                                    |

## Troubleshooting

| Error message       | Cause                                             | Fix                                                   |
| ------------------- | ------------------------------------------------- | ----------------------------------------------------- |
| Max retry for {url} | The API kept returning HTTP 429 after 5 attempts. | Lower Thread Count or raise Sleep Time and run again. |

## Change history
