Cortex XDR - IOC
Cortex XDR by Palo Alto Networks Pack.#
This Integration is part of theSupported versions
Supported Cortex XSOAR versions: 5.5.0 and later.
Cortex XDR is the world's first detection and response app that natively integrates network, endpoint and cloud data to stop sophisticated attacks.
Use the Cortex XDR - IOCs feed integration to sync indicators between Cortex XSOAR and Cortex XDR. The integration will sync indicators according to the defined fetch interval. At each interval, the integration will push new and modified indicators defined in the Sync Query from Cortex XSOAR to Cortex XDR. Additionally, the integration will check if there are manual modifications of indicators on Cortex XDR and sync back to Cortex XSOAR. Once per day, the integration will perform a complete sync which will also remove indicators that have been deleted/expired in Cortex XSOAR, from Cortex XDR.
This integration was integrated and tested with Branch: stable-50 of XDR.
#
PrerequisitesAn API key of type Advanced with an Administrator role.
#
Configure Cortex XDR - IOC on Cortex XSOAR- Navigate to Settings > Integrations > Servers & Services.
- Search for Cortex XDR - IOC.
- Click Add instance to create and configure a new integration instance.
Parameter | Description | Required |
---|---|---|
url | Server URL (e.g. https://example.net\) | True |
apikey_id | API Key ID | True |
apikey | API Key | True |
feed | Fetch indicators | False |
severity | the severity in Cortex XDR | True |
query | Sync Query | True |
insecure | Trust any certificate (not secure) | False |
xsoar_severity_field | The Cortex XSOAR indicator field used as severity. | True |
xsoar_comments_field | The Cortex XSOAR field where comments are stored. Default is comments . Expecting an XSOAR IOC format of a comment (nested dictionary). See Comments As Tags for more. | True |
comments_as_tags | Whether to consider the value at xsoar_comments_field as CSV. Requires specifying a xsoar_comments_field value different than the default comments . | True |
proxy | Use system proxy settings | False |
feedReputation | Indicator Reputation | False |
feedReliability | Source Reliability | True |
tlp_color | The Traffic Light Protocol (TLP) designation to apply to indicators fetched from the feed. More information about the protocol can be found at https://us-cert.cisa.gov/tlp | False |
feedExpirationPolicy | False | |
feedExpirationInterval | False | |
feedFetchInterval | Feed Fetch Interval (make sure to set it to at least 15 minutes) | False |
feedBypassExclusionList | Bypass exclusion list | False |
- Click Test to validate the URLs, token, and connection.
#
CommandsYou can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.
#
xdr-iocs-syncSync IOCs with Cortex XDR. Run this command manually only when configuring the instance integration with fetch indicators disabled (run this only once). It is not recommended to run this manually when there are more then 40,000 indicators.
When fetch indicators
is enabled, the sync mechanism is used by default. This sets the current time as the last sync time and fetches IOCs from Cortex XSOAR to Cortex XDR, sorted by modification time, in batches of 40,000, up to that time. Upon reaching the last sync point, the synchronization becomes bi-directional, first from Cortex XSOAR to Cortex XDR, then from Cortex XDR to Cortex XSOAR.
As a result, the duration of the first sync depends on the number of IOCs in the Cortex XSOAR tenant and the Feed Fetch Interval. For example, if there are 800,000 indicators in Cortex XSOAR and the Feed Fetch Interval
is set to 20 minutes as recommended, the initial sync process will take approximately 7 hours.
#
Base Commandxdr-iocs-sync
#
InputThere are no input arguments for this command.
#
Context OutputThere is no context output for this command.
#
Command Example!xdr-iocs-sync
#
Human Readable Outputsync with XDR completed.
#
xdr-iocs-pushPush new or modified IOCs to Cortex XDR.
#
Base Commandxdr-iocs-push
#
InputArgument Name | Description | Required |
---|---|---|
indicator | the indicators | Optional |
#
Context OutputThere is no context output for this command.
#
Command Examplexdr-iocs-push
#
Human Readable Outputpush success.
#
xdr-iocs-enableEnable iocs in XDR server
#
Base Commandxdr-iocs-enable
#
InputArgument Name | Description | Required |
---|---|---|
indicator | The indicator to enable | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!xdr-iocs-enable indicator=11.11.11.11
#
Human Readable Outputindicators 11.11.11.11 enabled.
#
xdr-iocs-disableDisable iocs in XDR server
#
Base Commandxdr-iocs-disable
#
InputArgument Name | Description | Required |
---|---|---|
indicator | The indicator to enable | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!xdr-iocs-disable indicator=22.22.22.22
#
Human Readable Outputindicators 22.22.22.22 disabled.
#
xdr-iocs-set-sync-timeSet sync time manually (Do not use this command unless you unredstandard the consequences).
#
Base Commandxdr-iocs-set-sync-time
#
InputArgument Name | Description | Required |
---|---|---|
time | The time of the file creation (use UTC time zone). | Required |
#
Context OutputThere is no context output for this command.
#
xdr-iocs-create-sync-fileCreates the sync file for the manual process. Run this command when instructed by the XDR support team.
#
Base Commandxdr-iocs-create-sync-file
#
InputArgument Name | Description | Required |
---|---|---|
zip | Whether to zip the output file. | Required |
set_time | Whether to modify the sync time locally. | Required |
#
Context OutputThere is no context output for this command.
#
Base Commandxdr-iocs-to-keep-file
#
InputThere are no input arguments for this command.
#
Context OutputThere is no context output for this command.