Skip to main content

Build a playbook

A playbook starts from a trigger, then runs steps in order. This page covers the ThreatVIS Unified Security Operations Platform triggers and steps, what a playbook may touch, and how to test and publish a playbook. You build it in the SOAR workspace: select SOAR in the navigation menu, then open or create a playbook.

Role needed: SOAR: Set to build, test and publish. A step that runs an integration needs the person who started the run to hold Settings access with Action Rules: Set. In a run no person started, the person who last published the playbook needs it. A step that reads or changes a Case needs Cases: Read or Set for that person. See What a playbook run may do.

Before you start​

  • Add the integrations your playbook will call. See Variables and integrations in SOAR.
  • Decide how the playbook starts. A playbook can read or change Cases only when it starts from ThreatVIS USOP: an alert, a run you start in the editor, or an AI client.

Start from a template​

In the list of templates, ThreatVIS USOP templates are listed first. A ThreatVIS USOP template is a complete playbook. After you import one, set the integrations and values it asks for, then test and publish it as described below.

Step 1: choose a trigger​

ThreatVIS Alert Trigger ​

Use this when the playbook should run each time ThreatVIS USOP raises an alert.

SettingMeaning
Trigger OnNew Case: an alert opened a new Case. Repeated Alert: an alert was added to a Case that is still open. You can also choose Shift Operations events; see below.
A rule filterOnly alerts from the chosen Detection Rules. Leave it empty for every rule.
Minimum PriorityAny, Low, Medium, High or Urgent.

Each run receives the alert and the Case: its short ID, status, alert count, priority, risk, the Detection Rule, the entity, and the MITRE ATT&CK tactic and technique. A run started this way can act only on the Case that raised it.

Each alert starts a run once. An alert raised while SOAR is unavailable does not start a run later, so do not build a playbook that must see every alert.

Trigger On also offers Shift Operations events: Shift Started, Shift Ending Soon, Handover Submitted, Handover Accepted, Handover Returned, Handover Overdue, Handover Not Accepted, Coverage Gap and Critical Item Unassigned. Use them, for example, to notify a team when a handover waits too long. The rule filter and Minimum Priority apply to alerts only. A shift event run receives identifiers and counts for the shift, not a Case.

ThreatVIS Playbook Trigger ​

Use this for a playbook that a person or an AI client starts, usually against a Case.

SettingMeaning
DescriptionWhat the playbook does. People and AI assistants read it to choose a playbook, so state the outcome and any side effects.
RiskRead: only gathers information. Respond: changes Cases or notifies people. Contain: acts on hosts, accounts or the network. The default is Read.
Case RequiredWhether every run must name a Case.
Input FieldsThe inputs the playbook accepts. Each has a Name, a Type (String, Number, Boolean or JSON), Required and a Description.

ThreatVIS USOP checks every run against these settings before it starts. A run with an unknown input, a missing required input, an input of the wrong type, or no Case when one is required is refused.

Other triggers​

Schedules, forms, plain web calls and other triggers work for automation that does not touch Cases. Any step in such a playbook that reads or changes a Case is refused with the message "Only runs started from ThreatVIS (the SOAR editor, MCP or an alert) may act on cases".

Step 2: add the steps​

Read and change Cases​

The ThreatVIS step has these operations:

OperationWhat it does
Get CaseReturns the Case's status, owner, alert count, Detection Rule, priority, risk, tags, entity, threat, response steps and close reason.
Add CommentAdds a comment to the Case's Activity tab.
Set PrioritySets the priority to Low, Medium, High or Urgent.
Add TagAdds one tag.
Close CaseCloses the Case with a reason.
Get VariablesReturns every SOAR variable as one item.

Case ID defaults to the Case from the trigger. If an earlier step replaces the data flowing through the playbook, set Case ID explicitly. Keep Case steps in the same playbook as the trigger: a ThreatVIS step in a separate playbook that another playbook calls is refused.

Run an integration​

  • A step for a particular integration offers a form for each of its methods.
  • The ThreatVIS Integration step runs any method of any configured integration. Choose a Connection, a Method, and give the Arguments as a JSON object.

A method that does not succeed fails the step, unless the step is set to continue on failure. Every call is audited with the run, the integration and the method.

Variables​

Refer to a variable by its name, or return all of them with the Get Variables operation. Keep secrets in variables or integrations, never typed into a step.

Step 3: test​

  1. For an alert playbook, start listening for a test event on the ThreatVIS Alert Trigger. ThreatVIS USOP sends the latest Case as one sample, then removes the test listener. The sample run may act on that Case.
  2. For a playbook with a ThreatVIS Playbook Trigger, listen for a test event, then start a run from your AI client with test input.
  3. A run you start from the editor runs as you, with your permissions. A step that works for you can still be refused in an alert run if it acts on a Case other than the one that raised the alert.
  4. Check the Case's Activity tab. Each change should show the expected actor. See Review playbook runs.

Step 4: publish​

A playbook with an alert or playbook trigger receives runs only while it is published. Unpublishing it stops new runs. Before you publish, check that:

  • the trigger's filters are as narrow as the playbook needs;
  • a ThreatVIS Playbook Trigger has a clear Description, the right Risk and input fields that match what the playbook reads;
  • every Case step is in the same run as the trigger;
  • no step acts on a Case other than the one that raised the alert, unless only a person runs the playbook;
  • integration steps use integrations that exist on the integrations page in SOAR;
  • a test run produced the Activity entries you expected.

Changing a ThreatVIS Playbook Trigger's settings takes effect when you publish the playbook again. While the playbook is unpublished, an AI client that tries to run it is told to publish it first.

Next steps​