ATH Example: No Data From Sensor
We will create a threat hunting playbook that looks for a sensor that hasn't transmitted any data for 15 minutes.
Configure the Alert
We want an alert that runs a query every 5 minutes on the Monitoring index.
To configure the alert:
-
Click Respond | Automation.
-
Click the Create button to add a playbook.
-
Enter a name for the playbook. We entered No Data From Sensor.
-
Set the Schedule type to interval.
-
Set it to run every 5 minutes over all selected tenants.
-
Choose the tenants and tenant groups on which to run. We chose All Tenants.
-
Set the index to Sensor Monitoring.
-
Leave the Rule Type as Query.
Build a Query
We want a query that looks for no change in bytes transmitted from a specific sensor.
To build the query:
-
Click New Query. The screen changes to Build a Query.
-
Enter a Query Name. We entered Sensor Data Outbytes.
-
Click Add Condition.
-
Enter engid in the Field. This is the ID of the sensor.
-
Leave the Operator as is.
-
Enter the sensor ID for the Value.
-
Click Add Condition.
-
Enter out_bytes_delta in the Field.
-
Leave the Operator as is.
-
Enter 0 for the Value.
-
Click Save to save the query. The screen changes to display the saved query in Domain Specific Language (DSL).
Configure a Condition
We want a condition that triggers our actions if there are 3 consecutive hits, indicating no change in data from the sensor for 15 minutes.
To configure this condition:
-
Enter a Condition Name. We entered 3 Consecutive.
-
Select Compare Value for the Type.
-
Set the Comparison to Total Hits, is greater than or equal to, and 3.
Configure Actions
You can configure any number of actions to take place if your playbook gets the specified number of hits.
For our example we want an email:
-
Choose the trigger condition you entered. Ours is Three Consecutive.
-
Choose Email for the Type.
-
Choose Recipients. To add a new recipient, see Adding a Recipient.
-
Enter a Subject. We entered Sensor Down?.
-
Set your Priority.
-
Click in the check-box for Include Interflow if you want the Interflow included with the email.
-
Enter your Email Body. We included a short sentence explaining why the recipient is getting the email.
See Configure Actions for details on configuring each type of action.
Save & Run the Playbook
Click Submit to save and immediately run the playbook. Your new playbook is displayed in the playbook list.