Go to Configure > Threat Intelligence > Actions, select New.
Type the name of the action in the Name field.
From the Context list, select the context under which the action should occur.
In the Description field, click on any applicable keywords at the top of the page to automatically add them to the field.
For example, if you wanted to create an action to send an email to an administrator, you could include information from the normalized event in the email message, such as SRC_IP, DST_IP,
PRIORITY,
and RISK.
When the action is executed, Sheriff CSM substitutes the values from the event that triggered the action for the keywords.
Note: You can also use keywords when you want to execute an external program. One example might be an event that invokes a script that sends a shun command to a network firewall to prevent an attacker from making a connection through the firewall at the DST_IP address.
From the Type list, select an action option.
Options include:
You can also use this option to send notifications by phone messaging services, such as Short Message Service (SMS). However, to do this, you need an external messaging gateway capable of translating email messages to phone messages.
The Actions page expands to include more fields specific to the selection you made.
In Conditions, indicate under what circumstances the action should occur:
Python Boolean expression — True or False expressions in Python.
Only on risk increase check box — When checked, this condition must be met for this policy consequence to go into effect.You can use Boolean comparison operators (=,
, >, <, >=, <=) and logical operators (AND, OR, NOT) in combination with the provided keywords, such as "Date", "Risk", "Plugin_SID", to define conditions for an action to trigger. For example
Important: When writing an expression, only the following characters are allowed: A-Z, a-z, 0-9, _, ', and ".
Note: Starting from version 5.6, you can also use arithmetic operators, add (+), subtract (-), multiply (*), and divide (/), in an expression.Fill in the fields that appeared after you selected the action type:
To send an email message: