XSIAM Alert handling Playbooks
The XSIAM alerts handling playbooks included in this pack help you respond to Cortex XDR alerts in a timely manner. The playbooks are based on the MITRE ATT&CK tactics and techniques and the NIST framework Computer Security Incident Handling Guide.
#
MITRE ATT&CK Tactics and TechniquesMITRE ATT&CK is a globally-accessible knowledge base of the adversary tactics and techniques based on real-world observations.
The framework can be used by SOC and threat intelligence analysts, threat hunters, red teamers, and defenders to classify attacks better and assess risks for their organization. Organizations can use the framework to identify gaps in their defenses, prioritize them, and take the necessary actions to remediate the threat.
Many cyber security systems classify incidents and reports based on the MITRE ATT&CK framework.
Cortex XSOAR uses the MITRE ATT&CK feed integration to ingest the information about these techniques and sub-techniques and many different integrations to retrieve indicators and incidents obtaining these techniques.
#
NIST Framework - Computer Security Incident Handling GuideNIST's Computer Security Incident Handling Guide assists organizations in establishing computer security incident response capabilities and handling incidents efficiently and effectively. This publication provides guidelines for incident handling, particularly for analyzing incident-related data and determining the appropriate response to each incident.
#
XSIAM Alerts - BIOCs and ABIOCsBehavioral indicators of compromise (BIOCs) enable you to alert and respond to behaviors—tactics, techniques, and procedures. Instead of hashes and other traditional indicators of compromise, BIOC rules detect behavior related to processes, registry, files, and network activity.
Analytical behavioral indicators of compromise (ABIOCs) examine logs and data from your sensors on the Cortex XDR tenants to build an activity baseline and recognize abnormal activity when it occurs. The Analytics Engine accesses your logs as they are streamed to the Cortex XDR tenant, including any Firewall data forwarded by the Cortex Data Lake, and analyzes the data as soon as it arrives. Cortex XDR raises an Analytics alert when the Analytics Engine determines an anomaly.
#
About this PackThe Core pack playbooks were created to provide a dedicated response to XSIAM alerts based on MITER ATT&CK tactics and techniques or specific use cases. The playbooks incorporate sub-playbooks which serve as modular functionality across all parent playbooks to investigate, contain, and eradicate the threat.
#
Core Investigative and Response PlaybooksEnrichment for Verdict#
This playbook checks previous alert closing reasons and performs enrichment on different IOC types. It then returns the information needed to establish the alert's verdict.
The sub-playbooks being used as part of the verdict decision flow are:
- File Reputation
- Domain Enrichment - Generic v2
- URL Enrichment - Generic v2
- IP Enrichment - Generic v2
- Account Enrichment - Generic v2.1
- AWS IAM - User enrichment
The File Reputation playbook has some vital functionality you should be familiar with:
Enrichment sources and their outputs:
- XDR
The output is exported to a key called 'XDRFileSigners', which can be populated with 'Trusted' or 'Untrusted'.
The decision of whether the verdict is trusted is based on pre-defined input that contains trusted signers provided by the user compared to the suspicious file being analyzed.
- NSRL
The output is exported to a key called 'NSRLFileVerdict', which can be populated with 'isNSRL' or 'isNotNSRL'.
The decision is based on an enrichment where we check if the file hash is present in the NSRL database.
- VirusTotal
The outputs are exported to a key called 'VTFileSigners', which can be populated with 'Trusted' or 'Untrusted', and 'VTFileVerdict', which can be populated with 'Benign', 'Suspicious' or 'Malicious'.
The decision is based on a pre-defined input containing a threshold provided by the user, compared with the number of engined files detected as malicious.
Endpoint Investigation Plan#
This playbook handles all the endpoint investigation actions available with Cortex XSIAM, including the following tasks:
- Pre-defined MITRE Tactics
- Host fields (Host ID)
- Attacker fields (Attacker IP, External host)
- MITRE techniques
- File hash (currently, the playbook supports only SHA256)
The Endpoint Investigation Plan provides a way for the analyst to hunt for suspicious activity using the XDR insights. Insights are detectors that aim to identify suspicious or abnormal activity that is not necessarily malicious. These rules will usually come up before or after an actual alert and will be able to tell the story behind the malicious activity.
For example, creating a new task via the command prompt is not necessarily malicious. Still, it might be vital information if it is part of malicious activity detected on an endpoint.
Containment Plan#
This playbook handles all the alert containment actions available with Cortex XSIAM, including the following tasks:
- Isolate endpoint
- Disable account
- Quarantine file
- Block indicators
- Clear user session (currently, the playbook supports only Okta)
The Containment Plan provides a way for the analyst to contain a threat in a modular way where he can turn on/off any action he would like to execute using the playbook inputs.
Executing a containment action such as 'Quarantine file' manually will prompt the user with a question already populated with files he might want to quarantine.
Eradication Plan#
This playbook handles all the eradication actions available with Cortex XSIAM, including the following tasks:
- Reset user password
- Delete file
- Kill process (currently, the playbook supports terminating a process by name)
The Eradication Plan provides a way for the analyst to eradicate a threat in a modular way where he can turn on/off any action he would like to execute using the playbook inputs.
Executing an eradication action such as 'Kill process' manually will prompt the user with a question already populated with processes he might want to terminate.
Recovery Plan#
This playbook handles all the recovery actions available with Cortex XSIAM, including the following tasks:
- Unisolate endpoint
- Restore the quarantined file
The Recovery Plan allows the analyst to revert containment actions taken on the endpoint.
Handle False Positive Alerts#
This playbook handles false positive alerts, and provide the user with one or more of the following handling actions:
- Add an alert exclusion
- Add an alert exception
- Add the file hash to an allow list
#
Core PlaybooksThe Core playbooks provide a tailored response to some of the most common XDR alerts. These playbooks were created after dedicated research on the relevant alert/technique and are built using a modular approach. The sub-playbooks mentioned above provide the core functionality needed as part of the incident response process with custom content relevant for each use case.
- NGFW Scan
- WildFire Malware
- Ransomware Response
- T1036 - Masquerading
- Impossible Traveler Response
- Local Analysis Alert Investigation
- AWS IAM User Access Investigation
- T1059 - Command and Scripting Interpreter
#
Playbook Flow DemonstrationT1059 - Command and Scripting Interpreter#
This playbook handles command and scripting interpreter alerts based on the MITRE T1059 technique. An attacker might abuse command and script interpreters to execute commands, scripts, or binaries. Most systems come with some built-in command-line interface and scripting capabilities. For example, macOS and Linux distributions include some Unix Shell, while Windows installations include the Windows Command Shell and PowerShell.
The playbook's flow is as follows:
Retrieves the command line.
Executes the 'Command-Line Analysis' sub-playbook. This playbook takes the command line from the alert and performs the following actions:
- Checks for a base64 string and decodes it if it exists.
- Extracts and enriches indicators from the command line.
- Checks specific arguments for malicious usage.
At the end of the playbook, it sets a possible verdict for the command line based on the findings:
- Indicators found in the command line.
- Found AMSI techniques.
- Found suspicious parameters.
- Usage of malicious tools.
- Indication of network activity.
Findings analysis.
If the results are that the command line is malicious, the playbook proceeds to step 4. Otherwise, the playbook will proceed and execute the Handle False Positive Alerts sub-playbook.
Executes the Containment Plan sub-playbook based on the results of the findings.
Executes the Endpoint Investigation Plan sub-playbook to look for additional activity around the alert detection timestamp.
Executes the Containment and Eradication Plan sub-playbook based on the investigation results.
Executes the Recovery Plan if set to True in the playbook's inputs.
Closes the alert.