Home / IT Security and IT Training / A Containment Runbook That Separates “Can Do” From “May Do”

A Containment Runbook That Separates “Can Do” From “May Do”

IT operations desk with monitors showing dashboards and a printed incident runbook with a highlighted checklist

A good containment runbook keeps two questions apart that blur under pressure: what the operator or tool is able to do, and what the operator is allowed to do. Every step carries a trigger, a scope, a named decision-maker, a stop condition and a tested way back. Gathering information can usually be automated the moment an alert fires; changing permissions, blocking a shared component or resuming production needs clear authority and evidence. The sooner you know who decides, the fewer minutes you burn when something actually breaks.

IT operations desk with monitors showing dashboards and a printed incident runbook with a highlighted checklist

Prefer to read this in Arabic? اقرأ هذا الموضوع بالعربية.

What is containment, and why write it down?

Containment limits exposure while you investigate and recover: restricting a service, blocking a component, or redirecting user requests to another route. It protects you from bigger harm, but it can cause harm of its own, because one service account or dependency often serves several processes at once. Improvised containment solves one problem by creating another. A written runbook forces three questions before you need them: what depends on this component, who may approve changing it, and how do we get back if we were wrong? Our piece on a decision note for the first ten minutes of an incident covers the first sheet of paper; the runbook is what that sheet points to.

“Can do” is not “may do”

An engineer who holds an administrator password can technically block a service account. That does not mean they are authorised to do so in this situation. For every step, write two columns: capability (who has the technical permission) and authority (who is entitled to decide). Four kinds of step then fall out naturally:

  • Read-only: pull predefined logs, open a draft ticket, preserve the timeline. Can be automated immediately with narrow permissions.
  • Limited, reversible change: divert a small share of traffic, with a rollback test. Needs the service owner’s approval.
  • Broad or impactful change: block a shared account or stop a component. Needs sign-off from the person named in the runbook, with an expiry time on that approval.
  • Resumption: restart after containment. Needs evidence that both the operational and the security conditions are met.

Someone joining mid-incident should be able to read the runbook and see which approvals already exist, when they expire, and who may widen them. If the decision-maker is unreachable, follow the written escalation path and do only what was pre-approved, such as read-only diagnostics.

The fields every step needs

  • Trigger: what justifies starting (evidence, not impression).
  • Scope: what will be affected and what will not.
  • Preconditions: what must be true before you act.
  • Executor and approver: two different people when the impact is large.
  • Action: a specific, executable verb phrase.
  • Success criterion: something you can observe, for example “send one test request and read back its permanent reference number in the user portal within the agreed window”. “Check the service” means nothing to someone who does not know the service.
  • Stop condition: when you halt the step.
  • Rollback: how to restore the previous state, and whether anyone has actually tried it.
  • Notification and owner: who is told, and who owns the next step.

A worked example (invented): the standby route that is missing one transaction type

This example and its numbers are invented to illustrate the method and do not describe any real organisation. An electronic contract-signing platform uses one service account both to receive ordinary requests and to run a nightly administrative sync. The provider suspects unusual use of the account and suggests blocking it. A monitored standby route exists for ordinary requests, but it does not support one transaction type, “high-value signatures”. Audit logs arrive seven minutes late, and the authorised security lead can join roughly twenty-five minutes into the incident.

What does the runbook say for the first minutes? It allows actions that do not need the security lead: preserve evidence, read the approved logs, prepare the standby route, and send one test request that returns a permanent reference. It does not allow blocking the account before the authorised person arrives or the scope is confirmed, because the block would also stop the administrative sync. It records the gap plainly, “the standby route does not support high-value signatures”, and names a stopgap for those requests: a temporary manual channel whose use is the service owner’s decision.

The manual route has a capacity limit too

Suppose the manual channel handles 15 requests an hour and demand rises to 22 an hour for two hours. The queue grows by 7 requests every hour, so 14 are waiting at the end of the two hours even if the team works flat out. If demand then falls to 9 an hour, the team clears 6 extra requests an hour and needs a little over two hours (about two hours twenty minutes) to drain the queue under these simplified assumptions. Treat that as a prompt for a decision, not a promise: priorities, absences and variation will change it. Use it to ask what to divert, who orders the queue, and what to tell users when demand passes capacity. For ordering the queue itself by remaining margin, see prioritising tickets before the SLA clock runs out.

Automate the diagnosis before the action

The safest automation is a read-only query that gathers a predefined set of logs when an alert fires. Define its scope and what happens when a connector returns partial data. An action that changes state should be automated only if the decision-maker has explicitly approved it and it has been tested in defined conditions. Give the automation only the permissions it needs, and record the input, rule version, authorisation, action and result. One more rule matters: a duplicated message must never repeat a state-changing action. Use an incident reference and an action-state record so that retries are safe.

When the measurement itself fails

If the feed goes silent after a limited diversion, you cannot see whether the change worked. Write the rule beforehand: stop any automatic widening, follow the documented fallback, which is either an independent approved check or a rollback. Never read the absence of alerts as recovery when the alert source is missing. Rehearse that scenario on paper. And for the thresholds that start the runbook in the first place, see warnings that reach an operator in time.

Common mistakes

  • Treating technical permission as authorisation.
  • Blocking a shared account without a list of what depends on it.
  • A standby route never tested with a real request and its permanent reference.
  • Steps without a measurable success criterion (“check the service”).
  • A rollback that is written down but never rehearsed.
  • Automating state-changing actions before automating information gathering.

How to start

Pick one important service and write a five- or six-step runbook using the fields above. Then run a short paper exercise in which one condition changes midway, for example the standby route lacks a transaction type, and note every gap it exposes. To go deeper on this area, see the course AI in IT Service Management: Monitoring, Protection & Incident Prevention, and for the service-level measures behind these decisions read SLA, OLA, SLI and SLO explained.

Frequently asked questions

How is a containment runbook different from a business continuity plan?

A runbook describes the steps for handling a particular incident with clear authority. A continuity plan is broader: how essential operations continue, and how much downtime and loss are acceptable.

Can the executor and approver be the same person?

For small reversible actions it may be acceptable if the runbook says so. For impactful changes, two people reduce error and document the decision.

How do I test a standby route?

Send an authorised test request of every transaction type that depends on it, confirm its permanent reference is stored and retrievable from the user portal, and confirm the acknowledgement arrives.

What if the decision-maker cannot be reached?

Follow the written escalation path, do only what was pre-approved, such as read-only diagnostics, and record that the decision is waiting for its owner.

Should sensitive rollback commands be in the shared runbook?

Write the action and the verification criterion in general terms in the shared document, and keep the sensitive commands themselves in a restricted location known to those authorised to use them.

Leave a Reply

Agile Leaders Training Center

Turn what you read into skills your team can use

Browse our professional training courses in leadership, HR, project management, quality, risk and more.

Explore our courses

Questions? sales@agile4training.com