Palo Alto Cortex XDR integration via API

1. Accessing the Configuration Area

In the Cortex XDR main menu, click on the Configurations section on the left. From there, open Integrations → API Keys. In this area, you can view previously created API keys.

 

2. Creating a New API Key

Click the New Key button at the top right. The Generate API Key screen will appear. Configure the following settings:

Security Level

Select Standard. This option makes the API key usable as-is, which is especially suitable for curl, Postman, and SIEM integrations. The Advanced option provides additional protection against replay attacks but requires extra hashing and timestamp handling. At this stage, it’s not needed.

Role

Select Viewer. This role only allows read/authorized viewing. For adding sources, data manipulation, or deletion, a higher role may be required, but for log/alert retrieval, Viewer is sufficient.

 

3. Authorization and Component Selection

Configure permissions in the Components section. Set Incident Response → Alerts & Incidents to View. This allows SIEM or external systems to read incidents and alerts from Cortex XDR. Leave all other components at their default (None) since only alert/log retrieval is needed.

You can obtain the XDR Auth ID from the screen that appears after creating the API key.

Afterwards, log in to Logsign USO and add the source using the information you have obtained.

When entering the Host field, do not include the https:// part. You need to enter the URL directly and clearly.

As an example, it must be written directly in this way.

api-te.xdr.eu.paloaltonetworks.com

 

4. Event Classification

Logsign reads three Cortex XDR streams:

  • Alerts (/public_api/v1/alerts/get_alerts)
  • Incidents (/public_api/v1/incidents/get_incidents)
  • Management audit logs (/public_api/v1/audits/management_logs)

Logsign gives each record an event map (EventMap.Context, EventMap.Type, EventMap.SubType) from its stream and from the Cortex XDR field values in the record. The tables below show the result. The name in parentheses is the EventMap.Info value. You can use these values in searches, alarms, and reports. Field values are compared without regard to upper or lower case.

Alerts

For alerts, Logsign uses the source, category and action_pretty fields. If action_pretty starts with "Prevented", the alert is a prevented alert. All other alerts, including alerts without action_pretty, are detected alerts.

Logsign checks the rows from top to bottom. The first row that matches the alert sets the event map. Rows for a specific source come first. Rows for a category apply to alerts from any source.

SourceCategoryPrevented alertDetected alert
PAN NGFWVulnerabilitySecurity / Intrusion Prevention / Block (Intrusion Prevention Block)Security / Intrusion Prevention / Info (Intrusion Prevention Detection)
PAN NGFWURL Filtering, PhishingSecurity / URL / Block (Web Access Block)Next rows apply
XDR IOCAnySecurity / Reputation / Block (Reputation Block)Security / Reputation / Info (Reputation Info)
AnyMalware, Ransomware, DropperSecurity / Malware / Block (Malware Block)Security / Malware / Detect (Malware Detect)
AnyExploitSecurity / Attack / Block (Attack Block)Security / Exploit / Detect (Exploit Detect)
AnyVirus, WildFireSecurity / Virus / Block (Virus Block)Security / Virus / Detect (Virus Detect)
AnyDevice ControlSecurity / Device / Block (Device Block)Security / Device / Detect (Device Detect)
AnyCommand and Control, Initial Access, Execution, Persistence, Privilege Escalation, Defense Evasion, Lateral Movement, Collection, ImpactSecurity / Threat / Block (Potential Threat Blocked)Security / Suspicious Behavior / Detect (Suspicious Behavior Detect)
AnySpywareSecurity / Spyware / Detect (Spyware Detect)
AnyPhishingSecurity / Phishing / Info (Phishing Info)
AnyVulnerabilitySecurity / Vulnerability / Detect (Vulnerability Detect)
AnyCredential AccessSecurity / BruteForce / Detect (Brute Force Detect)
AnyReconnaissance, DiscoverySecurity / Scan / Detect (Scan Detect)
AnyExfiltrationSecurity / DLP / Detect (DLP Detect)
AnyAny other categorySecurity / Threat / Block (Potential Threat Blocked)Security / Threat / Info (Potential Threat Detected)

For example, a PAN NGFW alert with category Vulnerability and an action_pretty value that starts with "Prevented" gets Security / Intrusion Prevention / Block. The same category from an XDR Agent alert gets Security / Vulnerability / Detect.

Incidents

All incidents get Security / Incident / Info (Incident Info).

Management audit logs

For management audit logs, Logsign uses the AUDIT_ENTITY and AUDIT_RESULT fields. The first row that matches the record sets the event map.

AUDIT_ENTITYAUDIT_RESULTEvent map
AUTHSUCCESSIdentity / User / Login (User Successful Login)
AUTHFAILIdentity / User / Deny (User Login Deny)
PERMISSIONSAnySystem / Role / Change (Role Change)
RULES, RULES_EXCEPTIONS, ALERT_RULES, ALERT_EXCLUSION, ALERT_WHITELIST, GLOBAL_EXCEPTIONS, INDICATOR_RULES, SCORING_RULES, AUTOMATION_RULESAnySystem / Rule / Change (Rule Change)
PROTECTION_POLICY, POLICY_RULES, POLICY_PROFILES, PROTECTION_PROFILES, HOST_FIREWALL_PROFILE, HOST_DISK_ENCRYPTION_PROFILE, AGENT_CONFIGURATIONAnySystem / Policy / Change (Policy Change)
RESPONSE, LIVE_TERMINAL, SCRIPT_EXECUTION, ACTION_CENTER, REMEDIATIONAnySystem / Command / Info (Command Info)
INCIDENT_MANAGEMENT, ALERT_MANAGEMENT, INCIDENT_TIMELINE_EVENT, STARRED_INCIDENTSAnySecurity / Incident / Info (Incident Info)
LICENSINGAnySystem / License / Info (Licence Info)
API_KEY, PUBLIC_API, SECURITY_SETTINGS, SERVER_SETTINGS, TENANT_CONFIGURATION, INTEGRATIONS, COLLECTION, EVENT_FORWARDING, BROKER_VM, BROKER_API, DATASETS, CUSTOM_FIELDSAnySystem / Configuration / Change (Config Change)
Any other entity, or AUTH with any other resultAnySystem / Operation / Info (System Operation Info)

Default value

Each stream has a last row that catches all other records, so every alert, incident and audit record gets one of the values above. A record that matches no row gets the default Application / Other / Info (Other Application Info).

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more
Become a Certified Logsign User/Administrator
Sign-up for Logsign Academy and take the courses to learn about Logsign USO Platform in detail. Enjoy the courses, and get your badges and certificates. In these courses, you'll learn how to use Logsign in your work and add value to your career.
Visit Our Blog
Our Logsign USO Platform illustrate our expertise. So do the blog. Through our blog posts, deepen your knowledge on various SecOps topics or get updated about important news & modern approaches for cybersecurity. Get into the habit of reading valuable information provided by Logsign. Be a step ahead.