Create indicator extraction rules for a playbook task in Cortex XSIAM. Auto extract for a playbook task. Edit task. Use case indicator extraction.
When using indicator extraction rules, indicators are extracted from tasks in playbooks.
The default indicator extraction value is inline.
You can use the following commands in a task:
extractIndicators
Reputation commands, such as
!ip
,!file
, etc.enrichIndicators
For more information, see Run Indicator Extraction in the CLI.
Select the playbook where you want to add indicator extraction, and click Edit.
In the playbook, click a task to open the Edit Task window.
Click the Advanced tab.
In the indicator extraction drop-down menu, select the mode you want to use.
Click OK.
Extract indicators from a phishing email
The following scenario shows how indicator extraction is used in the Process Email - Generic v2 playbook to extract and enrich a very specific group of indicators.
This playbook parses the headers in the original email used in a phishing attack. It is important to parse the original email used in the phishing attack and not the email that was forwarded to ensure that you only extract the email headers from the malicious email and not the one your organization uses to report phishing attacks.
Navigate to the Playbooks page and search for the Process Email - Generic v2 playbook.
Click either Duplicate Playbook or Detach Playbook.
Open the Add original email details to context task, click Edit, and for the Choose script drop down, change the script from Set to ParseEmailFilesV2.
Under the Outputs tab, you can see all of the different data that the task extracts.
Click the Advanced tab and set Indicator Extraction mode to
Inline
. This ensures all the outputs are processed before the playbook moves ahead to the next task.Open the Display email information in layout - Email.Headers task. This task receives the data from the saved attachment tasks and sets the various data points to context.
Click the Advanced tab and set Indicator Extraction mode to
None
, because the indicators were already extracted earlier in the Extract email artifacts and attachments task and there is no need to extract them again.