You can create a playbook to automate threat analysis and threat response.
To create a playbook, you must have one of the following roles: Main administrator, SOC administrator, Tier 1 analyst, Tier 2 analyst, Tenant administrator.
Kaspersky Next XDR Expert also allows you to create a new playbook that will meet your needs, based on an existing one. For more details, refer to Customizing playbooks.
To create a new playbook:
The Create playbook window opens with the visual editor work area on the left and the Playbook settings pane on the right. The visual editor allows you to build and visualize the playbook execution flow, and the relationship between the steps involved in playbook creation.
Based on the actions that you perform in the visual editor, the DSL schema of the playbook algorithm is generated. The changes you make in the visual editor working area are displayed in code, and vice versa. If necessary, you can open the code editor by clicking the Show code button in the toolbar.
All child tenants of the selected parent tenant will automatically inherit this playbook. To disable playbook inheritance, clear the check box next to a required child tenant. Playbook inheritance will be disabled for this tenant as well as for its subtenants, if any.
If you select a child tenant, its subtenants will be selected automatically.
Note that the playbook name must be unique within a tenant and cannot be more than 255 characters long.
Note that the maximum tag length is 50 characters.
The When launching several playbook instances at the same time list is displayed only if the Auto operation mode is selected.
If you want to launch a new playbook for existing alerts or incidents that match the trigger, select the Launch the playbook for all matching alerts or incidents. Note that the system may be overloaded check box.
If you want to create policies to be further applied in response actions, enable the Use timeout policies for the response action toggle switch, and then add the policies.
After you disable the toggle switch, the added policies are deleted.
The other additional settings are predefined and cannot be changed:
If you select the Manual operation mode, trigger settings are unavailable.
To describe the trigger condition, use jq expressions. For more information about jq expressions, refer to jq Manual.
Depending on the option you select in the Scope list when creating or editing a playbook, alert data model or incident data model is used.
For example, to filter alerts or incidents by critical severity, specify the following expression:
.Severity == "critical"
You can also specify complex expressions to filter alerts or incidents.
For example, to filter critical alerts or incidents by rule name, specify the following expression:
(.Severity == "critical") and (.Rules[] |.Name | contains("Rule_1"))
where Rules[] |.Name
defines the name of the triggered rule.
Validation of jq expressions is configured. If you specify an incorrect expression when configuring the playbook trigger, the error is marked in red. If you want to view the details, hover the mouse cursor over the error.
You can also request a full list of alerts or incidents. To do this, in the Trigger section, enter true
, and then click the Find button.
The full list of alerts or incidents is displayed.
You can copy an algorithm from another playbook. To do this, in the toolbar, click the Copy algorithm button, then in the window that opens, select a playbook from which to copy the algorithm, and then click OK.
Validation of jq expressions and JSON syntax is configured. If you specify an incorrect expression when configuring the playbook algorithm, the error is marked in red. If you want to view the details, hover the mouse cursor over the error.
To add an algorithm step, do the following:
If you are adding a step for the first time, you can hover the mouse cursor over the Trigger step only.
The selected step is displayed in the visual editor.
Alternately, you can right-click any part of the visual editor work area to invoke the menu, and then select the step you want to add. In this case, after adding the step, you have to build the relationships by drawing arrows between the required steps. If no relationships are built, you can only save the playbook as a draft.
If algorithm steps are not added, you can save the playbook only as a draft.
When saving a playbook as a draft, validation is performed, and the errors are highlighted but ignored.
You can save the playbook only as a draft when the relationships between the execution steps and the trigger are not built, the mandatory settings are not configured, or you specified invalid parameters.
A new playbook is created and displayed in the list of playbooks.
Page top