OBLYTECH Logo
OBLYTECH Logo

Security incident playbooks and automation in ServiceNow

Design your ServiceNow security incident response playbook as a step-by-step response plan. Plan task assignments, evidence collection and pauses for a human decision where a wrong move would be costly. Match that plan to a process-based or flow-based implementation, then test the activities, permissions and failure paths before enabling automatic execution.

Runbook and playbook: agree the response first

A runbook is the written procedure a responder follows, whether it lives on a wiki page or in someone’s head. Use the playbook to agree which response steps should happen, in what order, for which kind of incident, and which steps need sign-off. Before editing automation, check which object your instance uses.

Write the runbook first in plain language. If you cannot describe the response without the tool, the automation will simply encode the confusion. Compare the draft against the wider security incident response guides so the playbook fits your wider incident process.

ServiceNow supports process-based and flow-based playbooks. The workspace playbook component presents processes built with Process Automation Designer, including playbooks built in Workflow Studio. Existing Flow Designer playbooks continue to work, with their activities rendered as response tasks. A missing playbook tab therefore does not establish that no automated response is running.

Adapting playbooks and checking prerequisites

If you use an existing playbook as a starting structure, treat it as a template to adapt rather than a finished response. Keep a list of which steps came from the starting structure and which you added, because that list becomes your check after each upgrade. Check the behavior on your instance and release before changing a live response.

The supplied process playbooks include Manual Phishing, Automated Phishing, Manual Malware, Automated Malware and Failed Login Manual. Select the starting point by the investigation it supports and the actions your team can actually execute. A failed login investigation should not automatically become a response to a confirmed compromised account.

The prerequisites for building playbooks require the admin role. Check Process Automation Designer [com.glide.pad.license], the playbook experience plugins com.playbook_experience, now_playbook_exp and com.glide.playbook_experience.config, and Enterprise Security Case Management PAD Commons. Security Operations spoke [com.snc.secops.spoke] provides access to its flows. Confirm the required capabilities before designing activities around them.

Existing flows cannot be converted directly into Workflow Studio playbooks. Break response-task steps into separate actions or subflows, build activity definitions from those pieces, and add the activities within stages of the process definition. Activity definitions can be reused across playbooks. Identify shared definitions before changing one, because a local improvement may affect another response plan.

Designing playbooks for phishing, malware and access abuse

Three incident types need different response decisions. Phishing is about the message and the people who received it; malware is about the affected host; access abuse is about an identity and its activity. Avoid forcing unrelated decisions into one unreadable branch structure. Make the evidence required for each branch explicit.

Start each playbook with the question a responder must answer first. For phishing, whether any user entered credentials. For malware, whether the host is still communicating outside. For access abuse, whether the account is still active. Put that check at the top, because its answer decides which branch follows.

For phishing, plan how to establish recipient scope before removing messages or requesting credential changes. For malware, plan how to preserve evidence before cleanup. For access abuse, distinguish suspicious activity from an authorized exception before requesting account restrictions. These are response-design decisions: map them to the integrations and manual tasks available in your environment.

Planning enrichment, approvals and response tasks

For each enrichment or user follow-up step, check which actions are available in your instance, what inputs they require and what outputs they return before connecting the steps. Define how the responder should interpret an empty result. A lookup that returns no match should not automatically mean the incident is harmless.

Automation should move quickly on steps that can be reversed and slow down on steps that cannot. Consider enrichment, assignment and evidence collection first, while reviewing their access and data exposure. Disabling a production account, isolating a server that carries a business service, or blocking a sender domain a partner relies on should pause for a decision from a named owner.

Give each response task an owner, a due window and a completion note that says what was done. A task that closes without a note leaves a gap in the audit trail. Define who can approve containment, what evidence they need and what happens if they are unavailable. Align these decisions with the security incident response governance model.

When an incident grows to affect several services or customers, the playbook should hand over to your formal escalation path rather than keep running its own branch. For help planning this work, see ServiceNow implementation.

How analysts start, skip and cancel playbook activities

Automatic invocation requires a defined PAD process whose trigger condition is met. For manual addition, the required role is sn_si.analyst. Open the incident record, select Add Playbook from the Form UI action menu, select the template, select Add Playbook, and confirm with Add Anyway.

An added playbook runs in parallel with playbooks already associated with the incident. Before starting another, check for duplicate containment or notification actions. The same playbook cannot be associated again with that incident until its existing association is closed or canceled. Record why an additional response path is necessary.

Analysts can filter activity cards by status and cancel a playbook through its ellipsis menu. Activity definitions determine which card actions appear, such as Skip, Mark as complete, Cancel, Submit to sandbox or Search Emails. Do not assume that a control shown on one card is available on another. Train responders on the definitions used in their incident types.

Future activities can appear with a lock icon in read-only mode. Distinguish an upcoming activity from a failed integration before escalating a support issue. For the wider picture on automation in this area, see the security incident response automation opportunities guide.

Testing and versioning before a playbook goes live

Test a playbook against a realistic copy of an incident, not live data, and walk each branch at least once, including the ones you expect to be reached rarely. Record the version tested, what changed and who approved it. Include the analyst role in testing so administrator access does not conceal a permission failure.

Test a missing input, an empty lookup, a rejected decision, an unavailable integration and a second playbook running concurrently. Check the incident record and the external system after an action: a completed card alone does not establish that the intended business result occurred. Verify that the completion evidence identifies the affected record and action.

When a playbook changes while incidents are open, decide deliberately whether those incidents finish on the old logic or need a controlled transition. Record that decision before rollout. Define the person responsible for reviewing shared activity definitions and checking that required response tasks remain reachable.

Handling failures without stalling the response

Any step that calls an external system can fail, so the playbook needs a defined answer for each failure. A lookup that times out should not silently end the response. Plan a manual fallback with the relevant inputs available to the responder. Decide in advance which failures stop containment and which allow investigation to continue.

Before retrying a failed action, check whether the external system already performed it. A timeout may leave the outcome uncertain. Record that uncertainty and verify the target state before repeating a disruptive request. Watch for runs that have not moved for a long time, because open-incident counts alone can conceal stalled work.

Questions about playbook rollout and ownership

Who should maintain an action after its integration owner changes?

Assign a successor who can validate the connection, inputs and expected results. Include that handoff in the integration change review so the security team knows who can investigate execution problems.

Should training use real malicious attachments?

Use approved training artifacts and isolated test arrangements. The exercise should demonstrate the response decisions without exposing analysts or connected business systems to an uncontrolled threat.

How should a team handle a temporary exception?

Record its scope, owner, reason and review point against the affected response procedure. Decide whether it belongs in a reusable branch or should remain a documented case decision.

What should happen to retired playbook guidance?

Keep enough history to explain past incident decisions, while making the current approved procedure clear to responders. Review training materials and operational handoffs so a retired instruction does not remain the team’s default.