> 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-attack-surface-management.md).

# Tenable Attack Surface Management

Tenable Attack Surface Management (ASM) maps the internet facing assets of an organization. OctoXLabs reads the ASM inventory and adds each asset, with its CVEs, to the device inventory.

## Use cases

* List the external assets that Tenable ASM tracks.

```
Adapters = tenable-asm
```

* Find ASM assets that your endpoint tools do not report.

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

## Before you begin

### Network

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

The host is the same for all accounts and does not change by region. The connector always uses HTTPS on the default port. An optional HTTP proxy can be set.

### Required permissions

| Scope or role                                                                  | Permission       | Needed for           |
| ------------------------------------------------------------------------------ | ---------------- | -------------------- |
| Read-only API key                                                              | Read             | Inventory assets     |
| View only, Active User, Cloud Connector Manager or Business Administrator role | Generate the key | Creating the API key |

A read-only key is enough to collect assets. Generating the key requires one of the listed roles.

## Create credentials in Tenable Attack Surface Management

{% stepper %}
{% step %}

### Open your profile

In the upper right corner, click your profile picture or initials. Your user profile appears.
{% endstep %}

{% step %}

### Choose the key type

To scope the key to one inventory, use the **API Key for** section. To allow all inventories, use the **API Key for all your inventories** section.
{% endstep %}

{% step %}

### Copy the key

Click **Copy API Key**. If needed, click **Generate new key & invalidate current**. This invalidates the current key.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type     | Default               | Description                                                      |
| --------- | -------- | -------- | --------------------- | ---------------------------------------------------------------- |
| Domain    | No       | Text     | asm.cloud.tenable.com | Attack Surface Management API host, without the protocol prefix. |
| API Key   | Yes      | Password |                       | API key of your user account.                                    |
| 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 %}
