Cortex XSIAM integration
The Axiom server can connect to your Cortex XSIAM tenant so analysts can run your team's XQL queries for an indicator, see whether it is already an XSIAM IOC, and add or enrich IOCs, all from AxiomSearch. This page explains what the integration does and how to configure it on the admin page.
What it does
The integration is off until an admin configures it. Once it is on:
- Any signed-in analyst can ask the server to run the configured XQL queries for an indicator and check the tenant's IOC list for it. Results appear in a Cortex XSIAM panel on the analyst's result, when they have turned on the Cortex XSIAM switch in the app's settings.
- Any signed-in analyst can add an indicator to XSIAM as an IOC, or enrich an existing one, with a reputation, severity, comment and expiry. Analysts can also push several of a case's indicators in one batch (up to 200).
- Any signed-in analyst can start a new local case from an XSIAM incident: the app lists recent incidents through the server, shows one incident's alerts and artifacts, and turns the ticked artifacts into the case's nodes. See Starting a case from an incident.
- The server makes every call to the tenant with one organization API key. Analysts never see the key, the queries' XQL text or the tenant settings; they see only query names, the indicator types each applies to, and the results.
Note: This is the one place the Axiom server holds a key and makes outbound calls. Analysts' own provider keys still never reach the server.
Before you start
- An API key. Create one in the Cortex console with the least role that can run XQL queries and edit IOCs. The IOC lookup endpoint also requires the Rules Edit permission; without it, queries and IOC adds still work but the "already an IOC?" check reports that it is unavailable. Syncing the detection baseline reads correlation rules and BIOCs; reading BIOCs needs Rules Edit too. Note whether the key is a Standard or Advanced key, and its key ID.
- The tenant's API URL, in the form
https://api-TENANT.xdr.REGION.paloaltonetworks.com. - Egress. The server container must reach the tenant on port 443. If the host reaches the internet only through a proxy, set
HTTPS_PROXY(andNO_PROXYif needed) on theaxiom-serverservice and recreate it.
Configure it
- Sign in to the admin page and open Integrations → Cortex XSIAM in the sidebar.
- Tick enabled, and enter the tenant API URL, the API key ID and the API key.
- Choose Standard key or Advanced key to match how the key was created. A mismatch makes the tenant refuse every request.
- Set timeout: the seconds one analyst lookup may take in total, all queries and the IOC check together (default 60).
- Add your XQL queries (below).
- Click Save XSIAM settings, then Test connection.
The tests use the saved settings, not what is typed in the form, so always save first. The URL must start with https://. Analysts get XSIAM only while enabled is ticked and the URL, key ID and key are all saved.
The API key field is write-only. It is empty when the page loads, its placeholder says whether a key is set, and leaving it blank on save keeps the stored key. To replace the key, type the new one and save.
XQL queries
Click Add query for each query analysts may run. Each one has:
- a name analysts see in the app;
- the indicator types it applies to:
ipv4,ipv6,domain,email,hashandurl; - a timeframe, last N days (1 to 365, default 30);
- the XQL text, with
{indicator}where the analyst's value goes.
Put {indicator} inside double quotes, quotes included. The server substitutes the value as plain text, and an unquoted value is a guaranteed XQL syntax error, so saving refuses a query with a bare placeholder.
dataset = xdr_data | filter action_remote_ip = "{indicator}" | fields _time, agent_hostname | limit 50
Saving also refuses a query without a name, without XQL, without the placeholder, or with no indicator types ticked. One failing query refuses the whole save, and nothing is written.
Things to keep in mind:
- End every query with
| limit. The server keeps at most 100 rows per query, and narrow queries cost fewer of the tenant's query units. - Keep the list short. Every enabled account can run every query. Cortex allows only a few XQL queries in parallel per tenant, so the server runs at most three at a time across all analysts and the rest wait for a slot within the lookup's timeout.
- Indicators can't break out of the quotes. The server refuses any indicator that contains quotes, backslashes, backticks, spaces or control characters, or is longer than 300 characters, before anything reaches the tenant.
Testing
- Test connection runs one cheap IOC lookup and shows Connection OK or the error. It proves the tenant is reachable and accepts the key, but it doesn't run XQL.
- Test IOC lookup takes an indicator you type and shows whether it was found, the matching entry, and each request the server tried with the tenant's raw reply. Use it first when the IOC check misbehaves: the error lines say whether the key was refused (HTTP 401 or 403) or the tenant couldn't be reached.
IOC types and writes
The IOC check and IOC writes cover ipv4 and ipv6 (XSIAM type IP), domain (DOMAIN_NAME) and hash (HASH). Email addresses and URLs can be queried with XQL but can't become XSIAM IOCs.
When an analyst adds or enriches an IOC, the server sends one upsert to the tenant; adding an indicator that already exists updates it. The comment is stored in XSIAM prefixed with [AxiomSearch, username], so the analyst is named in the tenant too. Expiry is "never" or a number of days, up to 3650. If the tenant rejects the indicator, the analyst sees its validation message and nothing is audited.
Starting a case from an incident
On the app's Investigations view (and in its command palette), New case from XSIAM incident… lists the tenant's most recent incidents — severity, name, age and alert count, at most 50, searchable by incident id — and previews one incident's alerts and artifacts. The analyst ticks the artifacts to import and the app creates an ordinary local case: one node per ticked value, typed from the value itself (IPs, domains, URLs and hashes; values that are none of those are listed but can't be imported), with the incident's id, severity, status, console link and alert summaries as the case notes. Nothing is searched on import — the nodes start unenriched, and the analyst runs lookups as usual.
The server does the fetching with the organization key and bounds everything it passes on: at most 50 alerts and 200 artifact values per incident, every text field clipped, artifact values with whitespace or control characters dropped, and file hashes kept only when they really look like hashes. An incident id must be a numeric string; anything else is refused before a request is built.
Incident listings and detail reads are not audited on the server (like queries); the import is recorded in the app's local audit log.
Syncing the detection baseline
On the app's ATT&CK coverage screen, a team lead or admin can click Sync from XSIAM to build the team's detection baseline from the tenant's rules instead of importing a file. The server reads every enabled correlation rule and BIOC and keeps only the ATT&CK techniques they are mapped to, each scored by how many rules map to it. Rule names and queries are not stored. Rules with no ATT&CK mapping count toward the totals but add no technique, so map your rules in XSIAM for the baseline to be complete.
Tick Sync daily to keep it current: the server re-syncs once a day. If a daily read fails, or can read only one of the two rule types, the existing baseline stays and the coverage screen shows the error. Importing a baseline file turns the daily sync off.
Auditing and limits
| Event | Recorded when |
|---|---|
xsiam_config_updated | An admin saves the settings: whether it is enabled, the number of queries and whether the key changed. Never the key itself. |
xsiam_ioc_add, xsiam_ioc_enrich | The tenant accepts an IOC write, with the indicator, reputation and severity |
xsiam_ioc_bulk | The tenant accepts a batch write, with the count and indicators |
attack_baseline_set | A lead or admin syncs the detection baseline from XSIAM, with the technique and rule counts |
attack_baseline_autosync | The daily baseline sync is turned on or off |
attack_baseline_synced, attack_baseline_sync_failed | The daily sync ran (actor xsiam-sync), or failed, with the reason |
Lookups, incident reads, tests and refused writes are not audited on the server; the tenant keeps its own record of queries run, incidents served and IOCs held.
Cortex enforces its own limits, roughly 10 API requests per second and four parallel XQL queries per tenant, and XQL spends query units from the tenant's daily quota. The server adds no cache of its own.
Protecting the key
The key is stored in xsiam.json in the server's data volume, readable only by the server account (mode 0600). No endpoint returns it, audit entries never contain it, and it leaves the server only in the request headers to your tenant. An Advanced key is never sent at all: the server sends a hash made from the key, a fresh random value and the time.
Every backup of the data volume contains the key. If a backup leaks, revoke the key in the Cortex console, create a new one and enter it under Integrations → Cortex XSIAM on the admin page. Restoring an old backup also restores the key it held, which may have been revoked since.