Creating
S4E provides a visual playbook builder that lets you design multi-step security workflows without writing code. This guide walks you through creating a playbook from scratch.
Opening the Playbook Builder
- Navigate to Playbooks in the left sidebar.
- Click New Playbook.
- The visual builder opens with an empty canvas.
Playbook Metadata
Before adding steps, configure the playbook's basic information:
- Name -- A descriptive name (e.g., "Critical Vulnerability Response").
- Description -- Explain the playbook's purpose and when it should be used.
- Category -- Classify the playbook (Incident Response, Compliance, Remediation, etc.).
- Tags -- Add tags for searchability.
Defining Input Variables
Input variables define what data the playbook needs to start:
- Click Variables in the builder toolbar.
- Click Add Input Variable.
- Configure each variable:
- Name -- Variable identifier (e.g.,
finding_id). - Type -- String, Number, Boolean, Finding, Asset, or List.
- Required -- Whether the variable must be provided.
- Default value -- Optional default if not provided.
- Description -- Help text for users running the playbook.
- Name -- Variable identifier (e.g.,
Common input variables:
| Variable | Type | Description |
|---|---|---|
finding |
Finding | The finding that triggered the playbook. |
asset |
Asset | The affected asset. |
severity_threshold |
String | Minimum severity to act on. |
notify_channel |
String | Notification channel name. |
Adding Steps
Action Step
Executes a single action from the action library:
- Drag an Action block from the step palette onto the canvas.
- Select the action to execute from the library.
- Map input parameters using variables or static values.
- Name the step for clarity.
Condition Step
Branches the workflow based on a condition:
- Drag a Condition block onto the canvas.
- Define the condition expression:
{{finding.severity}} == "Critical"-- Check severity.{{previous_step.status}} == "Success"-- Check previous step outcome.{{asset.tags}} contains "production"-- Check asset tags.
- Connect the True path and False path to subsequent steps.
Approval Step
Pauses execution until a human approves:
- Drag an Approval block onto the canvas.
- Configure:
- Approvers -- Who can approve (users, roles, or teams).
- Approval mode -- Any one, all required, or quorum.
- Timeout -- How long to wait before escalating or expiring.
- Context message -- Information to display to the approver.
- Connect the Approved and Rejected paths.
Delay Step
Waits for a specified duration:
- Drag a Delay block onto the canvas.
- Set the delay duration (minutes, hours, or days).
- Common use: wait for a fix window before running a verification scan.
Parallel Step
Executes multiple steps simultaneously:
- Drag a Parallel block onto the canvas.
- Add sub-steps inside the parallel block.
- All sub-steps execute concurrently.
- The parallel block completes when all sub-steps finish.
Tip
Use parallel steps for independent operations like sending notifications to multiple channels simultaneously.
Connecting Steps
Connect steps by dragging from a step's output port to the next step's input port. The builder enforces valid connections:
- Action steps have a single output.
- Condition steps have True and False outputs.
- Approval steps have Approved and Rejected outputs.
- Parallel steps have a single output (after all sub-steps complete).
Error Handling Configuration
For each step, configure error behavior:
- Click on a step and open the Error Handling tab.
- Select the policy:
- Stop playbook -- Halt execution on failure.
- Continue -- Skip the failed step.
- Retry -- Retry with configurable count and delay.
- Fallback -- Execute an alternative step.
Testing Your Playbook
Before deploying:
- Click Test in the builder toolbar.
- Select a test mode:
- Dry run -- Simulates execution without performing real actions.
- Sandbox -- Executes against a test environment.
- Provide test input variables.
- Review the execution trace to verify behavior.
Warning
Always test playbooks in dry-run mode before enabling automatic triggers, especially for playbooks that modify production systems.
Saving and Publishing
- Click Save to save the playbook as a draft.
- Click Publish to make it available for execution.
- Published playbooks appear in the playbook library and can be triggered manually or automatically.
Cloning Existing Playbooks
To create a playbook based on an existing one:
- Navigate to the playbook library.
- Click the three-dot menu on the playbook you want to clone.
- Select Clone.
- Modify the cloned playbook as needed.
- Save with a new name.
What's Next?
- Running Playbooks -- Execute your playbook.
- Execution Logs -- Monitor and review playbook runs.
- Action Library -- Browse available actions for your steps.