> 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-inventory-context.md).

# TenableIO Inventory Context

Tenable Vulnerability Management (Tenable.io) holds the full asset inventory of your scans. OctoXLabs asks Tenable to build an asset export and, optionally, a vulnerability export. It then downloads the chunks and joins each asset with its findings. One device record carries network identity, operating system, installed software, open ports, tags and CVE details.

## Use cases

* List the assets that Tenable currently holds, not only recent scans.

```
Adapters = tenable-io-inventory-context
```

* Find Tenable assets that no endpoint detection tool reports.

```
Adapters = tenable-io-inventory-context 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                           |
| ------------------------------------------------------------------------------------- | ---------- | ------------------------------------ |
| Basic \[16] user role, or custom role with VM.VM\_EXPLORE.VM\_EXPLORE.EXPORT          | Export     | Asset export                         |
| Can View access-control permission on the assets (not needed for Administrator \[64]) | View       | Assets to be exported                |
| Administrator \[64] role on FedRAMP GovCloud                                          | Export     | Export endpoints on FedRAMP GovCloud |

Assets that the account cannot view are left out of the export, so a permission gap shows up as a low asset count rather than an error. See [Tenable roles and privileges](https://docs.tenable.com/vulnerability-management/Content/Settings/access-control/TenableRolePrivileges.htm).

## Create credentials in TenableIO Inventory Context

{% 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="info" %}
Tenable typically needs 10 to 15 minutes to prepare a large export, so the first requests of a discovery look idle. The adapter is polling. The first discovery takes longer than later ones.
{% endhint %}

{% hint style="warning" %}
Including both open ports and resource tags in the same export is not recommended by Tenable. Both options grow the response size and the export time. With resource tags, the chunk size is limited to 1000, and Tenable returns a 400 error for a larger value.
{% endhint %}

{% hint style="warning" %}
Plugin output is free form text and is often the largest part of a finding. It is off by default because the adapter does not map it to a device field.
{% 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. 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.                                                                                                                  |
| Proxy                        | No       | Text         |                                   | HTTP proxy as host:port.                                                                                                                         |
| Is Secure?                   | No       | Boolean      | True                              | Use HTTPS.                                                                                                                                       |
| Timeout                      | No       | Integer      | 30                                | Seconds to wait for a single API response.                                                                                                       |
| Fetch Vulnerabilities        | No       | Boolean      | True                              | Also run the vulnerability export and attach findings to assets. Off means inventory only: fewer requests, less memory, no CVE data.             |
| Chunk Size                   | No       | Integer      | 1000                              | Assets per chunk of the asset export. Minimum 100, maximum 1000.                                                                                 |
| Num Assets                   | No       | Integer      | 50                                | Assets worth of findings per chunk of the vulnerability export. Minimum 50, maximum 5000. Low values use less memory. High values finish faster. |
| Export Wait Time             | No       | Integer      | 60                                | Seconds between two export status checks.                                                                                                        |
| Export Try Max Retry         | No       | Integer      | 30                                | Status checks before the adapter gives up on an export. With the defaults the budget is 30 minutes.                                              |
| Assets Thread Count          | No       | Integer      | 16                                | Asset chunks downloaded in parallel. Minimum 1, maximum 32.                                                                                      |
| Assets Sleep Time            | No       | Integer      | 0                                 | Seconds to pause between asset chunk batches.                                                                                                    |
| Vulnerabilities Thread Count | No       | Integer      | 16                                | Vulnerability chunks downloaded in parallel. Minimum 1, maximum 32.                                                                              |
| Vulnerabilities Sleep Time   | No       | Integer      | 0                                 | Seconds to pause between vulnerability chunk batches.                                                                                            |
| Severities                   | No       | List of text | info, low, medium, high, critical | Severity levels in the vulnerability export. info is CVSS 0, low 0.1 to 3.9, medium 4.0 to 6.9, high 7.0 to 9.9, critical 10.0.                  |
| Include Open Ports           | No       | Boolean      | False                             | Add open port findings to each asset. Fills the Open Ports field.                                                                                |
| Include Resource Tags        | No       | Boolean      | False                             | Add the Tenable tags of each asset. Fills the Tags field.                                                                                        |
| Include Unlicensed           | No       | Boolean      | False                             | Include assets that are not counted against your Tenable license.                                                                                |
| Include Software Vulns       | No       | Boolean      | False                             | Attach the installed package that each finding was matched against.                                                                              |
| Include Plugin Output        | No       | Boolean      | False                             | Include the raw evidence text of each plugin.                                                                                                    |

## Troubleshooting

| Error message                                     | Cause                                                           | Fix                                                                    |
| ------------------------------------------------- | --------------------------------------------------------------- | ---------------------------------------------------------------------- |
| Cannot find export UUIDs for Assets               | Tenable did not return an export UUID for the asset export.     | Check the API keys and the export permissions.                         |
| export {export\_uuid} failed with status {status} | The export ended with CANCELLED or ERROR.                       | Run the discovery again. Check the permissions and the export options. |
| Failed to load exports after {n} attempts.        | The export was not FINISHED within Export Try Max Retry checks. | Raise Export Try Max Retry.                                            |
| Max retry for {url}                               | The API kept returning HTTP 429 after 5 attempts.               | Lower the thread counts or raise the sleep times.                      |

## Change history
