# Palo Alto Cortex

## Palo Alto Cortex XSIAM/XDR

The Dropzone AI Platform integrates with the Palo Alto Cortex platform to monitor endpoints, gather data from cloud, network and identity sources, as well as analyze alerts.

### Create an API Key

Palo Alto Cortex requires an API key to enable. You’ll need access to a Cortex user account with the ability to generate and manage API keys. If you don’t have the necessary permissions, please get in touch with your Cortex administrator for assistance.

To obtain an API Key, do the following:

* Log in to your Palo Cortex console
* In the bottom left corner, navigate to Settings > Configurations

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-64cd0b89d38c98f80ca62b5c9706a933911b1096%2Fpacxdr-1.png?alt=media" alt=""><figcaption><p>Click Configurations</p></figcaption></figure>

* In the Search bar, input "API Keys," then click "API Keys"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-abd2366635beb0f3ab61407f4c97ab1ed9c5c0ca%2Fpacxdr-2.png?alt=media" alt=""><figcaption></figcaption></figure>

* In the upper right, click "+ New Key"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-1df1397f393d3c79be4b5941a9ce6289b781fc13%2Fpacxdr-3.png?alt=media" alt=""><figcaption><p>Add New Key</p></figcaption></figure>

* Under "Role," assign the API Key the Privileged Investigator role

{% hint style="info" %}
If you wish to allow Dropzone to use the Automatic Scanning feature, you will need to create a custom user role with additional permissions. See the "Create a Custom User Role" section for information.
{% endhint %}

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-9fb5da7bb54a94f36ecd4b19837a6a6cb1b6a31f%2Fpacxdr-4.png?alt=media" alt=""><figcaption><p>Assign the Privileged Investigator role</p></figcaption></figure>

* Under "Comment," name the API key something memorable, such as "Dropzone AI"
* Select your desired Security Level: Advanced or Standard

{% hint style="info" %}
The Advanced API key hashes the key using a nonce, a random string, and a timestamp to prevent replay attacks. Dropzone does not require the advanced security level.
{% endhint %}

* If you wish to assign the key an expiration date, check the box labeled "Enable Expiration Date" and input your desired expiration date

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-b4c0afa23855cbd5e89361cf9b9c289230cd241c%2Fpacxdr-5.png?alt=media" alt=""><figcaption><p>Assign the Privileged Investigator role</p></figcaption></figure>

* In the bottom left corner, click "Generate"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-090e3ed96acb90b24f1a7afcd85dee9936942155%2Fpacxdr-6.png?alt=media" alt=""><figcaption><p>Click Generate</p></figcaption></figure>

* Copy the API Key shown for use later in the Dropzone UI where it is called "API Key"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-abc30ac8f134c28d12c2141d61fb6b99ec132c48%2Fpacxdr-7.png?alt=media" alt=""><figcaption><p>Copy the API Key</p></figcaption></figure>

* In the API Keys table, locate the ID number for the newly generated API Key. Copy it for use later in the Dropzone UI where it is called "API Key ID"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-66b89ef8d979ace15384d7f8b93bf52fe8eabfb9%2Fpacxdr-8.png?alt=media" alt=""><figcaption><p>Copy the API Key</p></figcaption></figure>

* In the top right hand corner, click "Copy API URL"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-1df1397f393d3c79be4b5941a9ce6289b781fc13%2Fpacxdr-3.png?alt=media" alt=""><figcaption><p>Copy the API URL</p></figcaption></figure>

* Save the URL for use later in the Dropzone UI where it is called "API FQDN"

## Create a Custom User Role

To create a custom role in Palo Alto Cortex, do the following:

* Navigate to Settings > Configurations

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-64cd0b89d38c98f80ca62b5c9706a933911b1096%2Fpacxdr-1.png?alt=media" alt=""><figcaption><p>Click "Configurations"</p></figcaption></figure>

* In the search bar, search Roles

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-2af29ef7db25eaa4cecb5c1721d0b68e012b1101%2Fpacxdr-10.png?alt=media" alt=""><figcaption><p>Search "Roles"</p></figcaption></figure>

* In the upper left, click "+ New Role"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-d486af1690975685b6fd0fb2b6572fb1330b7c85%2Fpacxdr-11.png?alt=media" alt=""><figcaption><p>Click "New Role"</p></figcaption></figure>

* Under "Role Name," name the Role something memorable, such as Dropzone AI Investigator

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-0151a3ec724e23f5b6557dced7d00e43d6659310%2Fpacxdr-12.png?alt=media" alt=""><figcaption><p>Name the Role</p></figcaption></figure>

* In the "Components" section, click the arrow next to "Configurations"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-c54a598b3412c9717a705ebc65def08bad8394e7%2Fpacxdr-13.png?alt=media" alt=""><figcaption><p>Click "Configurations"</p></figcaption></figure>

* Assign the Role the following permissions:
  * Data Management: View/Edit
  * Public API: View

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-0c7817658b652c966a50b9102e4e0f8654098d97%2Fpacxdr-14.png?alt=media" alt=""><figcaption><p>Assign the Role permissions</p></figcaption></figure>

* In the bottom left corner, click "Save"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-c6a0cb20ccb67678f79a8ec1eaf7f50c39a8a979%2Fpacxdr-15.png?alt=media" alt=""><figcaption><p>Generate the Role</p></figcaption></figure>

* When creating your API key, assign it both the Privileged Investigator Role and the custom role

## Enable Palo Alto Cortex XDR/XSIAM

The Dropzone Data Source integration of XDR and XSIAM are the same. For the purpose of this documentation, steps for the XSIAM integration have been detailed; to integrate XDR, simply search for Palo Alto Cortex XDR and follow the same instructions.

To enable the Data Source integration, you will need the following information:

| Dropzone Field | Source                                  |
| -------------- | --------------------------------------- |
| API FQDN       | The API URL you copied earlier          |
| API Key ID     | The API key ID value you copied earlier |
| API Key        | The API key value you generated earlier |

* Navigate to your Dropzone AI tenant home page e.g. https\://*mycompany*.dropzone.app
* In the bottom left hand corner, navigate to Settings > Integrations

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-b3f07f902b1402dadc7abbd8bb62f9c204547390%2Fui-integrations-dropdown.png?alt=media" alt=""><figcaption><p>Integrations Dropdown</p></figcaption></figure>

* Click "Available"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-434641ec6d4e45051842f86164f485d6bd289424%2Fapp_system_integrations_available.png?alt=media" alt=""><figcaption><p>Click Available</p></figcaption></figure>

* In the Search bar, search Palo Alto Cortex XSIAM, then click "Configure"

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-8c29e95c0e77ecea3120c420b274e9c94231e2d7%2Fapp_system_integrations_available_pacxsiam.png?alt=media" alt=""><figcaption><p>The Palo Alto Cortex XSIAM tile</p></figcaption></figure>

* Under the Data Source heading, input the API FQDN, API Key ID, and API Key
* Select your authentication method

{% hint style="info" %}
This must be the same as the security level you configured for the API key generated earlier.
{% endhint %}

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-a65e7d495d47d45f452330e257ae3f08508f1473%2Fapp_system_integrations_available_pacxsiam_data_config.png?alt=media" alt=""><figcaption><p>The Palo Alto Cortex XSIAM Data Configuration (pt 1)</p></figcaption></figure>

* Select your Dataset Configuration Mode. You may select Automatic, which allows Dropzone to scan all the [datasets](https://docs-cortex.paloaltonetworks.com/r/Cortex-XSIAM/Cortex-XSIAM-Documentation/What-are-datasets) within your environment, or Manual, which only allows Dropzone access to the datasets you select
* If you select Manual, under "Manual Dataset List," you must input the names of the Datasets you want Dropzone to scan. Each name must be added individually

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-c50804601948fff23e239e89d5b8e0f92d75228b%2Fapp_system_integrations_available_pacxsiam_data_config_1.png?alt=media" alt=""><figcaption><p>The Palo Alto Cortex XSIAM Data Configuration (pt 2)</p></figcaption></figure>

* If you wish, you may provide tips to Dropzone's AI to guide its dataset selections. To do so, in the "Global Dataset Selection Tips" section, click "Add Item" and write a suggestion for the AI

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-d856afddb75a8faf1d3c025dbdbf9a7f0c41192a%2Fapp_system_integrations_available_pacxsiam_data_config_2.png?alt=media" alt=""><figcaption><p>The Palo Alto Cortex XSIAM Data Configuration (pt 3)</p></figcaption></figure>

* In the "Dataset Customizations" section, you may further customize Dropzone's behavior with specific datasets. To do so, do the following:
  * Under "Dataset Customization," input a Dataset name
  * In the "Dataset Selection Tips" section, you may input a tip to guide the AI's queries
  * Under "Query Examples," you may input an example [query](https://docs-cortex.paloaltonetworks.com/r/Cortex-XSIAM/Cortex-XSIAM-Documentation/Build-XQL-queries?tocId=FolD5VLWor6iLcEGqB4v_Q) or an example question
  * In the "Query Generation Tips" section, you may write a suggestion for Dropzone to improve [XQL query](https://docs-cortex.paloaltonetworks.com/r/Cortex-XSIAM/Cortex-XSIAM-Documentation/XQL-language-features) generation
  * Once done with a particular dataset, click "Add Item"
* Continue adding datasets until done

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-ed947f0b70acd2fd21aead5a6d4dc815d2bddc96%2Fapp_system_integrations_available_pacxsiam_data_config_3.png?alt=media" alt=""><figcaption><p>The Palo Alto Cortex XSIAM Data Configuration (pt 4)</p></figcaption></figure>

* Click "Test & Save" to finish

<figure><img src="https://435022081-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBVcKuiytGCsIDpL70BC%2Fuploads%2Fgit-blob-90ff6a0acc0eb1cab3bb41283cfae6ab41f293a7%2Fapp_system_integrations_available_pacxsiam_data_config_4.png?alt=media" alt=""><figcaption><p>Click "Test &#x26; Save"</p></figcaption></figure>

If you have any errors engage your Dropzone AI support representative.
