Pre-Process Rules
Create incident pre-process rules in Cortex XSOAR 6.12.
Pre-Process rules enable you to perform certain actions on incidents as soon as they are ingested into Cortex XSOAR directly from the user interface. Through these rules, you can select incoming events on which to perform actions, for example, link the incoming incident to an existing incident, or under pre-configured conditions, drop the incoming incident altogether.
You can de-duplicate incidents by selecting the Link and Close action in the Pre-Process Rules tab. To create a pre-process rule, see Create Pre-Process Rules for Incidents. After you create a pre-process rule, in the Pre-Process Rules tab, you can do the following:
View, edit, copy, or delete the Pre-Process Rule.
Enable/disable the Pre-Process Rule.
The Link and Close action creates an entry in the Linked Incidents table of the existing incident to which you link, and closes the incoming incident. If an existing incident matching the defining criteria is not found an incident is created for the incoming event.
For troubleshooting, you might need to identify which pre-process rule was triggered. To store pre-process logs in a separate file, go to Settings → About → Troubleshooting → Add Server Configuration and add preprocess.logs.file with the value true.
Create Pre-Process Rules for Incidents
Pre-processing rules enable you to perform certain actions on incidents as they are ingested into Cortex XSOAR. You can, for example, link an incoming incident to an existing incident, or under certain conditions, drop the incoming incident altogether.
Select Settings → OBJECTS SETUP → Incidents → Pre-Process Rules → New Rule.
In the Rule Name field, type a name for the rule.
Give a meaningful name that helps you identify what the rule does. This will be useful when viewing the list of rules.
If you want the rule to apply to a specific incident, in the Conditions for Incoming incident section, click Add filter and set the incident field and value.
For example, if you are running a phishing awareness campaign, you can create a rule for the email subject.
You can add multiple conditions within a filter and add multiple filters. For more information about filters, see Filter Operators.
In the Action section, from the drop-down list determine which action to take if the incoming incident matches the rule.
Depending on the Action field, complete section 3.
For example, in the Action field, if you select Drop and update, in section 3, complete the Update field.
Section 3 enables you to link to an incoming event and update the incident depending on the selected filter. For information about the Action section and the fields in section 3, see Rule Actions for Pre-Process Rules.
(Multi-tenant) From the dropdown list, select the propagation label. When syncing from the main account to the tenant, the pre-processing rule is sent to the tenant based on the propagation label.
(Optional) In a remote repository or in a multi-tenant environment, you can view the relevant dependencies to ensure that all necessary dependencies are propagated or pushed to the remote repository.
(Optional) To check that the rules are effective and efficient, click Test.
Testing is useful to check that you are receiving the desired results before putting a rule into production. We recommend you fetch data from an existing incident as a sample incident against which the rule can run. You can also manually enter JSON to use as a test sample or edit the JSON from an existing incident using the Edit button.
Click Save.
Rule Actions for Pre-Process Rules
The following table describes the rule actions for pre-process rules.
Drop
Drops the incoming incident and no incident is created.
None
Close
Closes the incoming incident.
None
Drop and update
Drops the incoming event, and updates the Dropped Duplicate Incidents table of the existing incident that you define. In addition, a War Room entry is created. If an existing incident matching the defined criteria is not found, an incident is created for the incoming event.
Update
1. Determine if you want to update the newest or oldest incident within a time range.
2. Select the incident you want to update together with the value.
Link
Creates an entry in the Linked Incidents table of the existing incident to which you link.
Link to
1. Determine if you want to link to the oldest or newest incident within a time range.
2. Select the incident you want to update together with the value.
Link and close
Creates an entry in the Linked Incidents table of the existing incident to which you link, and closes the incoming incident. If an existing incident matching the defined criteria is not found, an incident is created for the incoming event.
Link to
1. Determine if you want to link to the oldest or newest incident within a time range.
2. Select the incident you want to update together with the value.
Run a script
Select an automation to run on the incoming incident. When you create a script, you need to add the preProcessing tag for the script to appear in the list of available scripts.
Pre-processing automations can access sensitive incident data. As best practice, we recommend assigning a Role for the pre-processing script to allow only trusted users to edit it.
Choose a script
From the dropdown list, select the script to run on the incoming incident. Only scripts that were tagged preProcessing appear in the drop-down list.
Last updated
Was this helpful?





