> 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/p/palo-alto-cortex-xsiam.md).

# Palo Alto Cortex XSIAM

Cortex XSIAM is Palo Alto Networks' security operations platform. OctoXLabs reads the endpoints it manages and, optionally, the policy assigned to each endpoint.

## Use cases

* List Cortex XSIAM endpoints that OctoXLabs has collected.

```
Adapters = palo-alto-xsiam
```

* Find endpoints not seen for 30 days.

```
Adapters = palo-alto-xsiam AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination                                                                   | Port | Protocol |
| ------------------- | ----------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | `api-<tenant FQDN>`, for example `api-mycustomer.xdr.us.paloaltonetworks.com` | 443  | HTTPS    |

### Required permissions

| Scope or role                                               | Permission | Needed for             |
| ----------------------------------------------------------- | ---------- | ---------------------- |
| API key role that can read endpoints                        | Read       | Endpoints and policies |
| Cortex XSIAM Premium, Enterprise or Enterprise Plus license | Required   | API access             |

## Create credentials in Palo Alto Cortex XSIAM

{% stepper %}
{% step %}

### Open API keys

In the Cortex console go to **Settings > Configurations > Integrations > API Keys** and select **New Key**.
{% endstep %}

{% step %}

### Choose the level and role

Choose the security level, Standard or Advanced, and assign a role that can read endpoints.
{% endstep %}

{% step %}

### Copy the key

Copy the API key. It is shown only once.
{% endstep %}

{% step %}

### Note the key ID

The numeric ID is shown next to the key in the **API Keys** table.
{% endstep %}

{% step %}

### Find the domain

Use **Copy API URL** and enter only the host part, for example `mycustomer.xdr.us.paloaltonetworks.com`.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type    | Default  | Description                                                                                                                                                   |
| -------------- | -------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Domain         | Yes      | String  |          | Tenant FQDN without `https://`, for example `mycustomer.xdr.us.paloaltonetworks.com`. The connector adds the `api-` prefix.                                   |
| API Key        | Yes      | String  |          | Cortex XSIAM API key.                                                                                                                                         |
| API Key ID     | Yes      | String  |          | Numeric ID of the key (`x-xdr-auth-id`).                                                                                                                      |
| Security Level | No       | String  | standard | Must match the level chosen when the key was created. `standard` sends the key as is. `advanced` signs each request with a nonce, timestamp and SHA-256 hash. |
| Fetch Policies | No       | Boolean | False    | One extra call per endpoint to get the assigned policy name.                                                                                                  |
| Proxy          | No       | String  |          | Proxy address as `host:port`.                                                                                                                                 |
| Thread Count   | No       | Integer | 32       | Parallel workers for policy enrichment. Min 1, max 32.                                                                                                        |
| Sleep Time     | No       | Integer | 0        | Seconds between worker starts. Raise it on rate limit errors.                                                                                                 |
| Page Size      | No       | Integer | 100      | Endpoints per page. 1 to 100.                                                                                                                                 |
| Timeout        | No       | Integer | 30       | Seconds to wait for API responses.                                                                                                                            |

## Troubleshooting

| Error message                     | Cause                                    | Fix                                                                  |
| --------------------------------- | ---------------------------------------- | -------------------------------------------------------------------- |
| get\_policy failed for endpoint : | The policy call failed for one endpoint. | The endpoint is still collected. Check the key role and rate limits. |

## Change history

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