> 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/s/safebreach.md).

# SafeBreach

SafeBreach is a breach and attack simulation platform. OctoXLabs uses it to add the simulators (nodes) of your account to the device inventory and the SafeBreach users to the user inventory. Cloud and on-premises deployments use the same fields.

## Use cases

* List SafeBreach simulators.

```
Adapters = safebreach
```

* Find simulator hosts that no EDR covers.

```
Adapters = safebreach AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                                      | Port | Protocol |
| ------------------- | ---------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Your SafeBreach Base URL domain, for example demo.safebreach.com | 443  | HTTPS    |

### Required permissions

| Scope or role        | Permission | Needed for         |
| -------------------- | ---------- | ------------------ |
| API key (x-apitoken) | Read       | Simulators (nodes) |
| API key (x-apitoken) | Read       | Users              |

The instructions state that the token must have permission to read simulators and users.

## Create credentials in SafeBreach

{% stepper %}
{% step %}

### Open API Keys

In SafeBreach, go to **Administration > API Keys**.
{% endstep %}

{% step %}

### Copy the account values

Above the API Keys table, copy your **Account ID** and the domain of the **Base URL** without the scheme, for example demo.safebreach.com.
{% endstep %}

{% step %}

### Create the key

Click **Create API Key**, enter a name and click **Create**. Copy the generated **x-apitoken**.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type    | Default | Description                                                      |
| ---------- | -------- | ------- | ------- | ---------------------------------------------------------------- |
| Domain     | Yes      | String  | None    | Domain of your Base URL, without scheme or path.                 |
| Account ID | Yes      | String  | None    | Account ID shown above the API Keys table. Scopes every request. |
| Api Token  | Yes      | String  | None    | The x-apitoken value.                                            |
| 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.6.2.
{% endhint %}
