OBLYTECH Logo
OBLYTECH Logo

Build flow-based playbooks for security incidents

A flow-based playbook is a Flow Designer flow that runs the steps of an incident response playbook, using condition checks, parallel branches and decision tables. Security Incident Response includes base playbooks, and security administrators and flow design authors can use Flow Designer to move a manual or undocumented process into an automated, repeatable one.

Which base flow-based playbooks ship with Security Incident Response

Security Incident Response includes a set of base playbooks built as flows. Before you design a new flow, check whether one of these already covers the incident type. The groups below organize them by the activity that triggers each one. Check the list on your own instance and release, since installed playbooks can differ. For the wider picture, see the Security Incident Response playbooks overview.

Email and phishing playbooks

  • Playbook for Automated Phishing resolves certain phishing threats step by step, using Flow Designer templates to automate the phishing response.
  • Playbook for Repeat Detection checks whether the team has already responded to an exact or similar phishing report, then works the new report the same way.
  • Playbook for Email Domain Spoofing Detection triages user-reported phishing early and alerts the analyst to a look-alike domain in the phisher’s email address.
  • Playbook for Typo Squatted Domain covers misspelled domains, including work with the legal department on take-downs.

Endpoint and malware playbooks

  • Playbook for Automated Malware runs a sequence of automated steps for malware alerts.
  • Playbook for Endpoint Detection investigates malware alerts raised on a host or endpoint, such as a malicious file detection.
  • Playbook for T1070 – Windows Events Logs Cleared covers incidents where a user removes security logs. Events 517 and 1102 are logged when the Security log is cleared, regardless of the Audit System Event policy status.

Identity and credential playbooks

  • Playbook for Failed Login Manual creates a security incident when a user makes unsuccessful login attempts, as defined by the SIM configuration.
  • Playbook for Possible Password Spray responds to repeated authentication failures for one user from more than one IP address.
  • Playbook for Okta User Login Failures from Multiple IPs covers user login failures on Okta.
  • Playbook for Successful VPN Attempts from the Service Accounts – Corp/Cloud tracks successful VPN logins from service accounts, which are not supposed to have VPN login events.
  • Playbook for Attempted Access to Deactivated Accounts triggers when a terminated, disabled or separated employee attempts to log in.
  • Playbook for Credential Sniffing covers credential sniffing carried out through the sys_installation_exit table.
  • Playbook for T1003 – Credential Dumping – Mimikatz DCSync triggers when the lsadump::dcsync function is used.

Other base playbooks and the subflows they call

Child Security Incident Automation handles duplicate security incidents. Duplicates are categorized as child security incidents and rolled up to the parent. The ModSec Brute force by IP Burst playbook covers brute force attempts on login pages from multiple IPs.

Subflows in Security Operations Spoke can be called from the flows playbook, and Ransomware is one of them. When the same logic serves several playbooks, calling a shared subflow keeps one copy to maintain.

Mapping a manual playbook before you build the flow

Much of the work happens before anyone opens Flow Designer. A manual playbook often lives in a wiki page or in one experienced analyst’s habits, and the written order often does not match what people actually do. Pull three or four closed incidents of the same type and list each action taken, the lookup run, the person contacted and the field updated.

Inventory the steps and their inputs

For each step, record what it needs before it can start and what it produces. A step that reads the sender address needs that value on the incident before the flow reaches it. Note which systems each step touches. If an analyst runs a lookup in a separate tool today, record that tool and the access the analyst uses, so the flow does not depend on one person’s login.

Separate the decisions from the actions

Mark each point where the analyst chooses a path. These become condition checks or decision tables. Start with a short list of outcomes. A decision that depends on several fields usually reads more clearly as a table than as nested checks, and the next flow author can review it faster.

Find the work that can run side by side

Some steps do not depend on each other. An enrichment lookup, a notification to the requester and a containment action may be able to start together. Mark those steps as candidates for parallel branches, then confirm that no branch needs data another branch has not yet produced.

Building the flow in Flow Designer

Flow Designer uses drag-and-drop to place objects, condition checks, parallel branching and decision tables in a flow. Build in the order the incident moves, from trigger to closure.

Name each step for what it does. A name such as “Enrich sender domain” tells a reviewer more than “Step 4”. Keep one purpose per step.

Set conditions so the flow stops at the right point

Write each condition as a question the analyst could answer from the incident record. Test both outcomes. Empty values are a frequent source of trouble, so test a record where the sender domain is blank and check where the flow sends it. Keep each condition beside the step it governs so a reviewer can read the logic in one place.

Use parallel branches and decision tables

Use parallel branching for independent work and a decision table when one outcome depends on several inputs. Do not use parallel branches to hide ordering. If containment depends on the enrichment result, place containment after enrichment, or have both branches write a value the containment step reads.

Activating and testing before the flow handles live incidents

Base playbooks need to be activated before you use them. Treat your own flows the same way: add activation to the go-live checklist and record when it happened.

Test each branch with a record that matches its trigger, and write down the expected result for each step. Check the fields each step writes, the work notes it adds and the state the incident reaches. Then test a record that should not trigger the flow. A flow that fires on the wrong records can add work rather than remove it.

Confirm access before go-live

Confirm that the people who build and maintain the flow have the access they need. Activation is a separate step, so write down who performs it and who can change the flow after it is active.

Checks to run after a flow goes live

Review the flow against live incidents over a period you choose, and compare the results with the manual process it replaced. Work through these checks in order:

  1. Confirm the trigger matches only the records the flow was written for.
  2. Confirm each condition handles empty values as intended.
  3. Confirm every subflow the flow calls is present and active.
  4. Compare the work notes and field updates with what the analyst would have written.
  5. Record each change to the trigger, conditions or subflows, with the date and the person who made it.

Keep the manual procedure on file until the flow has handled a set of real incidents without needing correction. Retire it after the analyst who owns the process signs off on the review.

Choosing between a base playbook and a custom flow

Start from a base playbook when your incident type matches its trigger and its steps are close to what your team already does. Changing a base flow for your environment still needs testing and documentation. Build a custom flow when your process depends on steps the base playbook does not include.

Keep the trigger for each flow distinct. If two flows share a trigger, decide which one owns it before you activate either. For help planning this work, see ServiceNow implementation.

If you are new to the product, read the plain-language guide to Security Incident Response before you map a playbook. For phishing, the automated phishing playbook build in Process Automation Designer covers the same kind of incident. If identity alerts come from Okta, the Okta user login failures playbook setup covers setting up that playbook.

Questions about moving manual playbooks into flows

Can I convert a manual playbook one step at a time?

A partial conversion is a reasonable first step. Start with the steps that repeat across incidents and leave the rare branches manual until the flow handles the common path. Note in the flow which steps are still manual, so an analyst knows where to look.

What should I record about a base playbook before I change it?

Record its trigger, its conditions and the release you are working in. Keep a copy of the original so you can compare the edited flow against it. Those notes show a reviewer which differences were intentional.

When should a repeated step become a subflow?

Move a step into a subflow when two or more playbooks need the same logic. Keep the subflow’s inputs and outputs small and clearly named, so a caller can tell what the subflow needs and what it returns. Check every caller after you change the subflow.

What do I do when a base playbook covers the incident type but skips a step I need?

Decide whether the missing step belongs in the base flow or in a separate flow with a narrower trigger. A separate flow is easier to remove if the step turns out to be unnecessary.