> 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/r/recorded-future-attack-surface-intelligence.md).

# Recorded Future Attack Surface Intelligence

Recorded Future Attack Surface Intelligence (ASI) discovers the internet-facing assets of your organization and groups them into projects. OctoXLabs uses it to add IP assets, their DNS records, open ports and, optionally, exposure findings with CVE, CVSS and EPSS detail.

## Use cases

* List external IP assets reported by ASI.

```
Adapters = recorded-future-asi
```

* Find ASI assets that are not in your internal inventory.

```
Adapters = recorded-future-asi AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                                                             | Port | Protocol |
| ------------------- | ----------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | api.securitytrails.com (default domain value api.securitytrails.com/v2) | 443  | HTTPS    |

### Required permissions

| Scope or role       | Permission | Needed for          |
| ------------------- | ---------- | ------------------- |
| Project read access | Read       | Projects and assets |

The instructions state that the key must have read access to the projects you want to discover. Exact role names: Not verified.

## Create credentials in Recorded Future Attack Surface Intelligence

{% stepper %}
{% step %}

### Open account settings

Sign in to your Recorded Future ASI account and open the account settings.
{% endstep %}

{% step %}

### Generate an API key

Generate an API key. Make sure it has read access to the projects you want to discover.
{% endstep %}

{% step %}

### Copy the key

Copy the key. OctoXLabs sends it in the `apikey` request header.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter             | Required | Type    | Default                   | Description                                                                            |
| --------------------- | -------- | ------- | ------------------------- | -------------------------------------------------------------------------------------- |
| Domain                | Yes      | String  | api.securitytrails.com/v2 | Base host of the ASI API.                                                              |
| API Key               | Yes      | String  | None                      | ASI API key.                                                                           |
| Project IDs           | No       | String  | None                      | Comma-separated ASI project IDs. Empty means all accessible projects.                  |
| Fetch vulnerabilities | No       | Boolean | False                     | Enrich each asset with exposures (one extra call per asset). Slower on large surfaces. |
| Proxy                 | No       | String  | None                      | Proxy as host:port. The connector prefixes it with http\://.                           |
| Timeout               | No       | Integer | 30                        | Seconds to wait for API responses.                                                     |
| Thread count          | No       | Integer | 10                        | Parallel workers for exposure enrichment. Min 1, max 32.                               |

## Troubleshooting

| Error message            | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Max retries exceeded for | The API returned HTTP 429 five times in a row.                                                                                             | Wait and retry. The connector honors Retry-After.                                                                            |
| Status Code:             | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

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