> For the complete documentation index, see [llms.txt](https://docs.expel.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.expel.io/connect-your-technology/l-p-integrations/palo-alto-networks/palo-alto-networks-cortex-xsiam-setup-for-workbench.md).

# Palo Alto Networks Cortex XSIAM Setup for Workbench

## Prerequisites

* You must have admin access in Workbench to set up this integration.
* You must have admin privileges in PAN to create a user account.

## Step 1: Add an Account for Console Access

Expel requires console access to allow analysts to perform investigation and triage. Without this additional level of information, alerts cannot be verified by our analysts and an investigation cannot be initiated. For more information, see [Why Expel Asks for Console Access](/connect-your-technology/about-integrations/why-expel-asks-for-console-access.md).<br>

1. [Log in to Cortex Gateway](https://cortex-gateway.paloaltonetworks.com/signin/).
2. Navigate to **Members > Create New User**.
3. Create a new user for Expel by completing the fields as follows:
   * **First name** - enter "Expel".
   * **Last name** - enter "SOC".
   * **Email** - enter "soc+\<Your\_Organization\_Name>@expel.io".
     * For example, if your organization were Acme Corp, the format would be "<soc+acme_corp@expel.io>".
   * **Phone** - enter "+1 844 397 5762".
   * The other fields can be left as is.
4. In the Security Notification Subscriptions section, deselect all the checkboxes.
5. Select **Create**.
6. Work with your Customer Success Manager (CSM) to coordinate account creation with the SOC, as Expel will receive the account activation email and set a new password. You cannot perform the next step until the account is activated.
7. In the Cortex XSIAM console, navigate to **Settings > Configurations**.&#x20;
8. In the Configurations pane, scroll to the Access Management section and select **Users**.
9. Confirm that the newly created Expel SOC user is present. Right-click the user and select **Edit User Permissions**.
10. Under Role, select **Instance Administrator**.
11. Select **Save**.

## Step 2: Create Cortex XSIAM API Credentials for Expel

Next, you will create secure credentials to the API to integrate the technology with Workbench.

1. In Cortex XSIAM, navigate to **Settings > Configurations**.
2. In the Configurations pane, scroll to the Integrations section and choose **API Keys**.<br>

   <div align="left"><figure><img src="/files/ZQjwAYJsnMsHo7vbI2EH" alt="The API Keys menu is located in the main navigation." width="375"><figcaption></figcaption></figure></div>
3. In the top right of the screen, select + **New Key**.<br>

   <figure><img src="/files/zPiHN1QJgPjB8sWQOFD3" alt="Select the New Key button on the API Keys page."><figcaption></figcaption></figure>
4. The Generate API Key screen appears. In the General section, configure the settings as follows:
   * **Security Level** - select **Standard**.
   * **Role** - select **Instance Administrator**. *Make sure that the role includes all “Investigation” options. We recommend Instance Administrator as it covers all of the options that we need to complete investigative action.*
   * **Comment** - enter "Expel" to help indicate what this API key is for.
   * **Enable Expiration Date** - leave **unchecked**.
   * Leave the **Components** section as is.<br>

     <figure><img src="/files/fYEbH0ayXR5cOJJrfGSo" alt="On the Generate API Key page, Standard is selected for Security Level and Instance Administrator is selected for Role."><figcaption></figcaption></figure>
5. Select **Generate**.
6. **Copy and save the API key** in a safe place, as you will need it to complete the next section. *The API key only displays once and you cannot access it later, so ensure you copy it before closing the notification.*
7. Select **Done**.
8. In the top right corner, select **Copy API URL**. Save it in a safe place for use in the next section.<br>

   <figure><img src="/files/IFT8P3xeXwBymv3NMge9" alt="On the API Key page, select Copy API URL."><figcaption></figcaption></figure>
9. In the API Keys table, locate the **ID** field and copy and save the value as your **API Key ID**. You will also need this value in the next section.<br>

   <figure><img src="/files/dWxKz7Joa93k1tpyCfxa" alt="The ID column of the API Keys page will indicate the Key ID value."><figcaption></figcaption></figure>

## Step 3: Add Cortex XSIAM as a Security Device in Workbench

Now that you have the necessary credentials, you can configure the integration in Workbench.

1. [Log in to Workbench](https://workbench.expel.io/auth/login?orig=%2F).
2. In the side menu, navigate to **Organization Settings > Security Devices**.
3. Select **Add Security Device**.
4. In the search box, type “Palo Alto” and then select the Palo Alto Networks Cortex XSIAM integration.<br>

   <div align="left"><figure><img src="/files/MI6SaFZrlTT6YvLN44lE" alt="The Workbench Security Device config form for PAN Cortex XSIAM." width="332"><figcaption></figcaption></figure></div>
5. A configuration pane displays. Complete the fields as follows:
   * **Name** - enter a name that might help you more easily identify this integration, such as “CompanyName PAN Cortex XSIAM”; this name will display in Workbench under the Name column, and is a text string that you can filter on.
   * **Location** - enter the location of your integration, for example “cloud.” This is also a text string that you can filter on, so we recommend being consistent with location naming across your Expel integrations.
   * **URL** - enter the API URL you acquired in [Step 2](#step-2-create-cortex-xsiam-api-credentials-for-expel).
   * **API key** - enter the API key you generated in [Step 2](#step-2-create-cortex-xsiam-api-credentials-for-expel).
   * **API key ID** - enter the API Key ID noted in [Step 2](#step-2-create-cortex-xsiam-api-credentials-for-expel).
6. Select **Save**.
7. On the console access screen, select **Set up later** from the dropdown, as Expel will complete console access configuration.
8. Select **Save**.

Your device should be created successfully within a few seconds. A few reminders:

* After your connection is healthy, it will take some time for your device to begin polling and receiving data.
* To check on the status, select the downward arrow for your device in the first column and choose **View details**.
* Polling will happen first; data will be received after that. **You must refresh the page to see updates.**
* If your device does not begin polling within 15 minutes, and does not begin receiving data within 30 minutes, [contact our support team for help](/support/how-to-reach-us.md).
* To check if alerts are coming through, navigate to **Dashboards > Alert Analysis**. Scroll to the device you want to check, and select the **Expel Alerts** tab to reveal more alert information. It can take 36 to 72 hours for alerts to appear after setup, as we [tune your device](/workbench-reference/alerts/how-expel-alerts-work.md#device-tuning).

## Reference

### Cortex API Routes Expel Uses

| Route                                                | Permission                    |
| ---------------------------------------------------- | ----------------------------- |
| /public\_api/v1/incidents/get\_incidents             | VIEW PRIVILEGES:Investigation |
| /public\_api/v1/incidents/get\_incident\_extra\_data | VIEW PRIVILEGES:Investigation |
| /public\_api/v1/endpoints/get\_endpoint              | VIEW PRIVILEGES:Investigation |
| /public\_api/v1/audits/management\_logs              | VIEW PRIVILEGES:Investigation |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.expel.io/connect-your-technology/l-p-integrations/palo-alto-networks/palo-alto-networks-cortex-xsiam-setup-for-workbench.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
