> 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-asi-domains.md).

# Recorded Future ASI Domains

This adapter reads the domain and host assets of Recorded Future Attack Surface Intelligence (ASI) and flattens their DNS records into the domain inventory. IP assets come from the separate Recorded Future Attack Surface Intelligence adapter.

## Use cases

* List DNS records that ASI discovered for your domains.

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

* List only the CNAME records.

```
Adapters = recorded-future-asi-domain AND Type = CNAME
```

## 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 ASI Domains

{% 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. |
| Proxy       | No       | String  | None                      | Proxy as host:port. The connector prefixes it with http\://.          |
| Timeout     | No       | Integer | 30                        | Seconds to wait for API responses.                                    |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| 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.2.
{% endhint %}
