> 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/d/defensx.md).

# DefensX

DefensX is a security platform with a partner API that manages customers, their users and their agents. OctoXLabs uses it to add the agents and users of every customer to the inventory.

## Use cases

* Find hosts that run the DefensX agent and compare them with other sources.

```
Adapters = defensx
```

* Find hosts missing the DefensX agent among your EDR managed hosts.

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

## Before you begin

### Network

| Source              | Destination                            | Port | Protocol |
| ------------------- | -------------------------------------- | ---- | -------- |
| OctoXLabs connector | `cloud.defensx.com` (configurable URL) | 443  | HTTPS    |

### Required permissions

| Scope or role   | Permission | Needed for                          |
| --------------- | ---------- | ----------------------------------- |
| Partner API key | Read       | Status, customers, users and agents |

## Create credentials in DefensX

{% stepper %}
{% step %}

### Open API Access

Sign in to the DefensX portal and open the **API Access** page.
{% endstep %}

{% step %}

### Create the key

Generate an API key and copy it.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type              | Default                             | Description                                           |
| --------- | -------- | ----------------- | ----------------------------------- | ----------------------------------------------------- |
| URL       | Yes      | String            | `https://cloud.defensx.com`         | Base URL of DefensX.                                  |
| API Key   | Yes      | String            | None                                | Key from the API Access page, sent as a bearer token. |
| Timeout   | No       | Integer (seconds) | `15` in code (`30` in the baseline) | Time to wait for API responses.                       |

## Troubleshooting

| Error message | Cause                                                             | Fix                                                   |
| ------------- | ----------------------------------------------------------------- | ----------------------------------------------------- |
| Not verified  | The connector code defines no custom error text for this adapter. | Check the credentials and network access to the host. |

## Change history

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