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

Automate with playbooks

What OpenCTI playbooks do for a CTI team, how data flows through them, what to decide before building one, and when to use them rather than other automation.

OpenCTIEnterprise EditionFor CTI team leads, CTI analysts and administrators

A playbook does for your team what it would otherwise do by hand, the same way, every time. Every new report on the hospitality sector can be marked as in progress, assigned to the analyst on duty and announced to the CTI team, without anyone touching it. A playbook starts on an event, passes the data from step to step to filter, enrich or change it, and ends by saving the result, telling people, or handing it to an AI agent. Nobody writes code: you draw it on a canvas.

You find playbooks in Data, then Processing, then Automation. They require an Enterprise Edition license. Building and running them takes the Manage Playbooks capability, and the buttons that create or import a playbook also need Create / Update knowledge; enrolling an entity in a running playbook takes Use Playbooks.

What playbooks do for a team

Outcome for the teamExample
New intelligence is triaged before anyone opens itEvery new hotel-sector report gets the IN_PROGRESS status and an assignee
Incoming data is qualified the same wayIndicators from a trusted partner get a higher score, everything a feed creates gets a label
Enrichment happens only where it is worth itNew IP addresses of a Velvet Harbor report go to a reputation connector, the others do not
Data turns into workEvery critical incident opens an incident response case, with its tasks
Sharing follows your rulesReports for a hotel chain are shared with its organization, cases are limited to their participants
The right people knowThe duty analyst is notified, the assignees of a case get an email when it changes
Defenses are tested against new threatsA security coverage is created for every new Velvet Harbor report, and OpenAEV tests it

How a playbook works

Every playbook moves a STIX 2.1 bundle, a package of STIX objects, from one component to the next. The main element is the object that started the run, for example the report whose creation started it. An enrichment connector or a rule can add more objects to the bundle along the way.

STARTS ONPROCESSESENDS WITHEntry pointAn event, a schedule or a userTransform or enrichChanges the bundleMatch knowledgeA condition with two outputsSend for ingestionSaves the changesSend to notifierSaves nothing
  1. Entry point → Transform or enrich: bundle
  2. Transform or enrich → Match knowledge: out
  3. Match knowledge → Send for ingestion: out
  4. Match knowledge → Send to notifier: no-match
A playbook passes a STIX bundle from step to step and saves it only at Send for ingestion

Five rules explain most of what you will see:

  1. One entry point. A playbook starts in one of four ways: Listen knowledge events (as data is created, updated or deleted), Listen PIR events (as entities enter, change in or leave a priority intelligence requirement), Query knowledge on a regular basis (on a schedule), or Available for manual enrollment / trigger (when a user enrolls an entity).
  2. Outputs make branches. A component sends the bundle to one of its outputs. Match knowledge uses out when something matched and no-match otherwise. A run that reaches an output with nothing attached stops there, without error. You can attach several branches to the same output.
  3. Scope decides what a step touches. Components that change data act on the main element unless you widen their scope, as described under this list.
  4. Nothing is saved until Send for ingestion. A branch that ends with a notifier or an email only informs. To save and notify, end one branch with Send for ingestion and another with the notifier.
  5. A playbook does not trigger itself. It ignores the events its own changes cause, so it cannot loop on itself. It does react to changes made by another playbook: that is how you chain two playbooks, and how two playbooks with overlapping filters can feed each other endlessly.

The scope is a check box of each component, such as Manipulate all elements included in the bundle: unchecked, the step acts on the main element only.

Each branch ends with Send for ingestion or a notification.OpenCTI 7.260309.0-lts.8

What to decide before you build

A playbook changes data without asking anyone. Settle these points with your team, then create the playbook.

DecisionWhat it changes
What starts itListening to knowledge events acts within seconds of each event. A schedule acts in batches, for example a weekly grouping. Manual enrollment leaves the choice to an analyst, for one-off actions such as opening a case for a report
How narrow the filters areFilters decide which data the playbook touches. Without them, a playbook that listens to knowledge events runs on every creation of the platform
What it may changeStatus, assignees, labels, markings, score, sharing. A change is written for good once it reaches Send for ingestion. Test on your own data first, with a filter on Creator
Who is told, and howA notifier alerts in the platform, by email or by webhook. Notify a group rather than a person, so the alert follows the duty rota
Who may build playbooksA playbook reads and writes as the platform's automation identity, not as its author. It sees every object, including those restricted to organizations or markings its author cannot see. Give Manage Playbooks to the few people who design the team's automation

Playbooks and the other automation tools

You want toUse
Process data step by step with conditions, enrichment and changesA playbook
Derive new relationships automatically across the whole knowledge baseThe rules engine
Alert people about events, without changing dataNotifications and triggers
Track who works on what, and where each report standsTrack the progress of reports and cases
Change hundreds of existing objects onceA background task
Bring data in from an external source on a scheduleA connector or a feed

A playbook can call a connector, apply one rule or send a notification as a step, so the tools combine rather than compete.

For administrators: the playbook manager

Playbooks run in the playbook manager, which needs an Enterprise Edition license and playbook_manager:enabled (PLAYBOOK_MANAGER__ENABLED, on by default). It follows knowledge events as they happen and checks scheduled playbooks every minute, an interval fixed in the code: playbook_manager:interval (PLAYBOOK_MANAGER__INTERVAL) is declared in the default configuration but has no effect. Every key of the manager is in the Engines, Schedules and Managers section of the configuration reference.

What's next

NextCreate a playbook
OpenCTI
Cyber threat intelligence as a knowledge graph: ingest, analyze, automate, share.

Published

Overview