> 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/b/brandefense.md).

# Brandefense

Brandefense is a digital risk protection platform. OctoXLabs reads the compromised devices that Brandefense finds in breach data and stores them as devices.

## Use cases

* List compromised devices that have an IP address.

```
Adapters = brandefense AND IpAddresses = *
```

* List compromised Windows devices.

```
Adapters = brandefense AND OS.Type = Windows
```

## Before you begin

### Network

| Source              | Destination        | Port | Protocol |
| ------------------- | ------------------ | ---- | -------- |
| OctoXLabs connector | api.brandefense.io | 443  | HTTPS    |

### Required permissions

| Scope or role               | Permission | Needed for          |
| --------------------------- | ---------- | ------------------- |
| Incident Read               | Read       | Compromised devices |
| Indicator Read              | Read       | Compromised devices |
| Module Breach Monitoring    | Enabled    | Compromised devices |
| Module Executive Protection | Enabled    | Compromised devices |

## Create credentials in Brandefense

{% stepper %}
{% step %}

### Open Access Tokens

In Brandefense go to **API Management > Access Tokens**.
{% endstep %}

{% step %}

### Create a token

Create a token with the scopes **Incident Read** and **Indicator Read**, and the modules **Breach Monitoring** and **Executive Protection**.
{% endstep %}

{% step %}

### Copy the token

Use the token as API Key in OctoXLabs.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default            | Description                        |
| --------- | -------- | ------- | ------------------ | ---------------------------------- |
| API URL   | Yes      | String  | api.brandefense.io | API host without the scheme.       |
| API Key   | Yes      | String  |                    | Sent as a Bearer token.            |
| Timeout   | No       | Integer | 30                 | Seconds to wait for API responses. |
| Proxy     | No       | String  |                    | Proxy as `host:port`.              |

## Troubleshooting

| Error message                | Cause                                                                                                                                  | Fix                                                                                                  |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Status Code: `, URL, Method` | The API answered with an unexpected HTTP status. The shared request code raises it and logs the status, URL, method and response body. | Check the URL, the credentials and the permissions listed above, then run the connection test again. |

## Change history

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