Lawliet LAWLIET
Book a demo

37. Playbooks

This guide describes Lawliet 1.5.13.s (the current release). Screens, commands and procedures may change in later versions; the usage guide is updated with each release. Check the version your server runs under Settings > Platform or with ./lawliet version, and see the Releases page for what changed.

A playbook is an automatic response: "When an alert, a DLP incident or a hunt hit arrives, run these steps. Containment waits for a second signature." It opens a case, collects evidence, adds a review item or sends a notification on its own, and files containment (block, isolate, kill) as an approval request for a person to sign.

Permissions:

TaskPermissionFour-eyes
See playbooks and their runsView the review queue-
Create, edit, enable, dry-run a playbook; ask again for a step's approvalManage playbooksno
A containment step-always, whatever the dual-control policy says

37.1 How a playbook runs#

TriggerFires onFilters
Detection alertA detection rule raised an alertRule (one rule or Any rule), Minimum severity
DLP incidentAn agent reported a DLP incidentMinimum severity, Only incidents the agent blocked
IOC hunt hitA hunt found indicators on a hostMinimum hits
StepWhat it doesSecond signature
Open an investigationA forensic case for the trigger, with the trigger as its first timeline event; with a priorityno
Collect live-response evidenceAsks the host's agent for the chosen collectors; opens a case first if none is openno
Block the source addressBlocks the trigger's source address on the hostyes
Isolate the hostCuts the host off the network except for Lawlietyes
Kill the processKills the process the trigger namesyes
Add a review-queue itemAn item in the shared work list, linked to the run; with a severityno
Send a notificationTo the configured webhook and mail recipients, and the console's bell; with a severityno

A step whose module is not licensed is skipped and says why.

Containment steps and their approval#

A containment step never runs by itself. It files an ordinary approval request in the name of the playbook's owner (whoever last saved or enabled it), with the exact command it will send. So:

Steps after a waiting one do not wait for it: evidence is collected while an approver is found. Each step commits on its own.


37.2 The Playbooks page#

Path: Playbooks.


37.3 Procedure: create a playbook#

Permission: Manage playbooks. Four-eyes: no (containment steps still need a signature each time they run).

Risk: a loose trigger (for example any alert of any severity) opens a case and sends a notification for every alert. Rollback: untick Enabled and save.

  1. Open Playbooks and press New playbook.
  2. Fill Name and Description.
  3. Under When, choose the Trigger and its filters.
  4. Under Do, in order, choose a step type and fill its options; press Add step for more. Reorder with Up / Down; Remove deletes a step. Containment steps are marked "needs a second signature".
  5. Leave Enabled off for now.
  6. Dry run: choose a Recent trigger (or A sample instead, with a Severity) and press Dry run. "What each step would do with a trigger. Nothing is created, sent or contained." Each step shows "would be done / skipped / waiting for approval / failed" with the reason.
  7. Press Save playbook.
  8. When the dry run looks right, edit it, tick Enabled and Save playbook.

What you see: the playbook in the table. When a matching trigger arrives, a run appears in Runs.

If it fails: the form shows the server's message. A dry run step "failed" with "the playbook's owner (<name>) does not hold execute_defense" means the owner cannot file containment; have someone with Execute containment save it.


37.4 Procedure: a containment step is waiting#

  1. Open the run. The step shows waiting for approval.
  2. An approver signs it in Approvals. The step runs and turns done.
  3. If nobody decided before the request expired, the step turns failed and offers Ask again to a user with Manage playbooks: "File the same request again, in your name. Someone else approves it." A rejected request is not offered again.

37.5 Procedure: change, switch off or retire a playbook#

Permission: Manage playbooks. Four-eyes: no. Rollback: switch it on again, or edit it back.

Whoever saves or enables a playbook becomes its Owner: its containment steps are filed in that person's name (37.1). Check the Owner column after a colleague edits it.

To switch it off or on:

  1. Open Playbooks.
  2. Untick Enabled on the playbook's row (Enable <name>). It stops reacting to new triggers at once; runs already started finish. Tick it to switch it on again.

To change it:

  1. Press Edit on the row. The editor opens with its trigger and steps.
  2. Change the trigger or steps, run a Dry run again (37.3 step 6), and press Save playbook.

To retire it: there is no delete button for a playbook in the console in this release. Untick Enabled; it stays in the list, with its runs, as a record.