You are reading the documentation of OpenCTI 7.260309 LTS · 7.260309.0-lts.8, supported until 2027-04.Latest is 7.261119.0 →
How-to guide

Create a playbook

Build an OpenCTI playbook that triages new reports for the team, test it, offer it on chosen entities, and duplicate, export or import playbooks, including from the XTM Hub.

OpenCTIEnterprise EditionFor CTI team leads, CTI analysts and administrators

This page builds a playbook that triages every new hospitality report for your team: it marks the report as in progress, assigns it to the analyst on duty and alerts the CTI analysts, so no report waits unnoticed. The same steps build any playbook. The page then covers testing, offering a playbook on chosen entities, and moving playbooks between platforms. If you are new to playbooks, read Automate with playbooks first for how data flows through them and what to decide before you build.

Before you start

  • Your platform has an Enterprise Edition license.
  • Your role has the Manage Playbooks capability, and Create / Update knowledge to see the buttons that create or import a playbook. Users who enroll entities in playbooks need Use Playbooks.
  • You know what should start the playbook, which data it may change and who must be told. The component chooser maps common tasks to components.
  • The values the playbook sets exist on the platform: the status in the workflow of the entity type, the labels, the users or groups to assign or notify.

Build and start a playbook

  1. Open Data, then Processing, then Automation and click Create Playbook.

  2. Give the playbook a name and a description that says what it does, then click Create. The playbook opens on an empty canvas, stopped.

    OpenCTI 7.260309.0-lts.8
  3. Open the list of entry points from the middle of the empty canvas.

    Click Add component.

    Choose Listen knowledge events, Listen PIR events, Query knowledge on a regular basis or Available for manual enrollment / trigger, and set its filters so the playbook only runs on the data you mean; the filter key reference lists the keys and operators they accept.

    OpenCTI 7.260309.0-lts.8
  4. Add the steps that filter, enrich or change the data. On the canvas:

    • to add a step after a component, click Add component under its output;
    • to insert a step between two components, click the + on the link between them;
    • to start a second branch from the same output, click Add a sibling node, the arrow at the bottom-right of a component;
    • to swap a component for another, open its menu and choose Replace.
    OpenCTI 7.260309.0-lts.8
  5. End every branch. Use Send for ingestion wherever the playbook changed data, otherwise the changes are lost. Add Send to notifier or Send email from template where people should be told. To both save and notify, add a sibling branch.

    OpenCTI 7.260309.0-lts.8
  6. Open the menu next to the playbook name, choose Start and confirm. The header shows Playbook is running. From now on, every matching event runs it.

ExampleTriage new hospitality reports automatically

Barbara leads the CTI team of Example CERT. Every new report labelled hotel-sector must be marked as in progress, assigned to the analyst on duty this week, Ana Duval, and announced to the CTI analysts. She creates the playbook Triage new hospitality reports with four components:

ComponentName on the canvasSettings
Listen knowledge eventsListen to new reportscreate on, update and delete off. Filters: Entity type = Report and Label = hotel-sector
Manipulate knowledgeMark as in progressScope left on the main element, the report. First action: Action type Replace, Field Status, value IN_PROGRESS. Second action, with Add action: Add, Assignees, Ana Duval
Send for ingestionSend for ingestionNo settings. Linked to the output of Mark as in progress
Send to notifierNotify the CTI teamNotifiers: User interface. Authorized members: the CTI analysts group. Added with Add a sibling node on Send for ingestion, so both branches start from the output of Mark as in progress

When a partner publishes a report with the hotel-sector label, the report is saved with the IN_PROGRESS status and Ana Duval as assignee, and every CTI analyst gets an alert in the platform. A report without the label does not start the playbook. When the duty changes, Barbara replaces Ana Duval in the second action.

Check that it works

  1. Before you start the playbook, add a filter on Creator set to your own user to its entry point, so other people's data does not trigger it while you test.
  2. Create or update an entity that matches the entry point filters, for example a test report with the hotel-sector label.
  3. Open the execution traces of the playbook and check that every step ran. See Monitor and troubleshoot if a step is missing or red.
  4. Remove the Creator filter. The playbook now runs on everyone's data.

Run a playbook on selected entities

Some actions are a choice for an analyst, not a rule: open a case for this report, send these IP addresses to a sandbox. Offer them as a playbook that analysts with Use Playbooks run on the entities they pick.

A playbook appears in the Enroll in playbook list of an entity when it is running and starts with Available for manual enrollment / trigger or Listen knowledge events, with filters that match the entity.

  1. Open the entity, open its actions menu (⋮) and choose Enroll in playbook. To enroll many entities at once, select them in any list and use the same action in the toolbar.
  2. Choose the playbook. It runs on each entity as its main element.
OpenCTI 7.260309.0-lts.8

To offer a playbook on any entity, leave the entry point filters empty and put a Match knowledge step right after it.

Duplicate, export and import

Duplicate a playbook to start a variant: in the list, open the row menu and choose Duplicate. The same action exists inside an open playbook.

Export a playbook to move it to another platform or to attach it to a support request: open the row menu and choose Export. You get a JSON file.

Import it on the target platform with Import playbook in Data, then Processing, then Automation. An imported playbook is stopped. Before you start it, check that everything it refers to exists on this platform, because missing objects show as deleted:

WhereWhat to check
Filters of entry points, Match knowledge, Reduce knowledge and Manipulate knowledgeLabels, vocabularies, marking definitions, specific entities or observables, authors and creators
Enrich through connectorThe connector exists and is running. Its ID is in the URL of its monitoring page
Container wrapperThe case template and its task templates
Send to notifier, Send email from templateThe notifier or email template, and every recipient

From the XTM Hub

The XTM Hub hosts ready-made playbooks. Click Import from Hub in Data, then Processing, then Automation to browse them; the button only shows when your platform can reach the XTM Hub. If your platform is connected to the XTM Hub, you can also deploy a playbook from the Hub in one click and land on it in OpenCTI. Either way, the playbook arrives stopped: check it as above, then start it. XTM Hub content explains how deployment works.

Design tips

  • Notify groups, not people. A notifier or an assignment aimed at a group follows the duty rota when its members change; one aimed at a person needs an edit each time.
  • Chain playbooks with labels. A first playbook adds a label such as weekly-digest; a scheduled second playbook collects everything with that label into a report.
  • Filter early. Put Match knowledge or Reduce knowledge before connectors and rules, which fail on elements outside their scope.

What's next

NextMonitor and troubleshoot playbooks
OpenCTI
Cyber threat intelligence as a knowledge graph: ingest, analyze, automate, share.

Published

Overview