> 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/sentinelone-xdr.md).

# SentinelOne XDR

SentinelOne is an endpoint detection and response platform. OctoXLabs uses it to add the agents (endpoints) to the device inventory, with installed applications, application vulnerabilities and, optionally, device and firewall control rules as policies.

## Use cases

* List devices that have a SentinelOne agent.

```
Adapters = sentinelone-edr
```

* Find devices that have no SentinelOne agent.

```
Adapters = active-directory AND NOT Adapters = sentinelone-edr
```

* Find SentinelOne devices with a high CVSS v3 finding (needs Fetch Vulnerabilities).

```
Adapters = sentinelone-edr AND Vulnerabilities.Cvss3Base >= 9
```

## Before you begin

### Network

| Source              | Destination                                              | Port | Protocol |
| ------------------- | -------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Your SentinelOne management console URL (API Access URL) | 443  | HTTPS    |

### Required permissions

| Scope or role                | Permission | Needed for                                                                                                                                                      |
| ---------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| User that owns the API token | Read       | Agents, applications, application risks (when Fetch Vulnerabilities is on), accounts, sites, groups, device control and firewall control (when policies are on) |

Exact SentinelOne role: Not verified. The API token is renewed every 6 months. Regenerate it before it expires.

## Create credentials in SentinelOne XDR

{% stepper %}
{% step %}

### Log in

Log in to the SentinelOne management console.
{% endstep %}

{% step %}

### Regenerate the token

Go to **User > My User > Options > Regenerate API Token**.
{% endstep %}

{% step %}

### Copy the token

Copy the API token.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                    | Required | Type    | Default | Description                                                                                                                      |
| ---------------------------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- |
| Domain                       | Yes      | String  | None    | API Access URL of your SentinelOne account. The code appends the API paths directly, so enter the full URL including `https://`. |
| API Token                    | Yes      | String  | None    | API token.                                                                                                                       |
| Fetch Installed Applications | No       | Boolean | True    | Fetch installed applications of each agent (one extra call per agent).                                                           |
| Fetch Vulnerabilities        | No       | Boolean | False   | Fetch application risk and CVE data per device.                                                                                  |
| Thread Count                 | No       | Integer | 32      | Parallel threads for CVE details. Min 1, max 32.                                                                                 |
| Sleep Time                   | No       | Integer | 0       | Seconds to wait between thread executions.                                                                                       |
| Timeout                      | No       | Integer | 30      | Seconds to wait for API responses.                                                                                               |
| Verbose Logging              | No       | Boolean | False   | Detailed per-page logging. Turn it on only while debugging.                                                                      |
| Fetch Device Policies        | No       | Boolean | False   | Collect device control rules as policy assets.                                                                                   |
| Fetch Firewall Policies      | No       | Boolean | False   | Collect firewall control rules as policy assets.                                                                                 |
| Attach Policies to Devices   | No       | Boolean | False   | Attach the account, site and group rules that govern each device to its record.                                                  |

## Troubleshooting

| Error message                      | Cause                                                                                                                                      | Fix                                                                                                                          |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Request failed after 5 retries for | The API kept returning HTTP 429.                                                                                                           | Lower Thread Count or raise Sleep Time.                                                                                      |
| Skipping device-policy enrichment: | Policy rules could not be read (log message). Devices are still collected.                                                                 | Check that the token can read device and firewall control.                                                                   |
| 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
