> 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-audit.md).

# Tenable Audit

Tenable Vulnerability Management runs compliance audits on assets. OctoXLabs starts a compliance export and groups the findings by asset, so each asset becomes one device with its compliance findings stored as raw data.

## Use cases

* List the assets that have compliance audit findings in Tenable.

```
Adapters = tenable-audit
```

* Find audited assets that no endpoint detection tool reports.

```
Adapters = tenable-audit 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 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, or a custom role with Can Export (compliance export) | Export     | Compliance findings   |
| Can View on the assets                                                      | View       | Assets to be exported |

The API key owner needs the Basic \[16] user role, or a custom role with the Can Export compliance export permission, plus Can View access on the assets to be exported.

## Create credentials in Tenable Audit

{% 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. Use fedcloud.tenable.com for FedRAMP.                    |
| Access Key                   | Yes      | Text     |                   | Access key of the API key pair.                                                                                   |
| Secret Key                   | Yes      | Password |                   | Secret key of the API key pair.                                                                                   |
| Number of Findings Per Chunk | No       | Integer  | 5000              | Compliance findings per export chunk. Minimum 50, maximum 10000.                                                  |
| Proxy                        | No       | Text     |                   | Proxy address.                                                                                                    |
| Thread Count                 | No       | Integer  | 4                 | Parallel threads that download chunks. Minimum 1, maximum 32. Tenable rate limits per API key, so keep it modest. |
| Sleep Time                   | No       | Integer  | 0                 | Seconds to wait while threads are created.                                                                        |
| 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. | Lower Thread Count and run again. |

## Change history

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