Incident response as a procedure you rehearse

Response is a sequence: see it, contain it, understand it, evict it, recover, and learn. The sequence fails when nobody has practiced the first hour.

Lesson 2 of 16 · 12 min read · practice only with authorization

Diagram

The first hour

Follow the path. One example at a time.

Step 1 of 4

Declare

Someone with authority names an incident and an incident lead.

Illustration: Declare
# Declare
# Someone with authority names an incident and an incident
# lead.

The example on the open step is one illustration, or the fix you can paste into an application you own.

What this page is made of

3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.

  1. Roles

    What fails
    Without a lead, everyone acts and nobody decides.
    Who is affected
    The response itself.
    What you would notice
    Conflicting actions by different teams.
    What you change
    Name a lead and scribe at declaration.
  2. Evidence

    What fails
    Rebuilding before collecting loses the story.
    Who is affected
    Investigation and legal options.
    What you would notice
    Hosts wiped before triage collection.
    What you change
    Collect memory and triage data first when safe.
  3. Out-of-band communication

    What fails
    Attackers may read the mail or chat you use to respond.
    Who is affected
    Response plans.
    What you would notice
    Coordinating in a tenant that may be compromised.
    What you change
    Keep a separate channel ready.

The first hour

Name an incident commander, a scribe, and a channel. Decide whether you are still investigating or already containing. Containment that destroys evidence and investigation that leaves the intruder in place are both failures. The bias for a stolen token is to revoke it. The bias for a fragile production database is to avoid heroic queries that make the outage worse.

Write times in one zone and keep the notes factual. What you know, what you assume, and what you have done. Rumors in the incident channel become the story customers hear. The scribe's job is to stop that.

A lifecycle you can remember

Prepare: contacts, access to logs, a way to revoke tokens, backups you have restored once. Detect and analyze: the questions in the logging lesson. Contain: revoke sessions, disable keys, segment the affected system, reset the factors that were added. Eradicate: remove the access path you understand, not a random process that looks ugly. Recover: restore from a point you trust, then watch. Learn: one change to a control or a detection, with an owner.

Ransomware and destructive events add a specific question: are the backups reachable with the same credential that just got stolen? If they are, they are not a recovery plan. The resilience lesson is the pair to this one.

People and legal

You will need someone who can make a business decision, someone who understands the system, and, for many incidents, counsel and a communications owner. Paying a criminal, notifying regulators, and talking to customers are not engineering choices. Do not freelance them in the incident channel.

Tabletops are the lab for this chapter. Pick a scenario from the glossary, walk the first hour with the real on-call rotation, and notice which log you could not open and which vendor you could not reach. Fix that. It is a better exercise than a surprise drill that takes production down.

Afterward

A useful review names the conditions that allowed the incident, the detection gap, and one or two changes. A review that lists human error and stops will have the same incident again. Track the actions the way you track bugs.

Share with the people who operate the system. Publishing a cinematic blow-by-blow to the open internet is a decision for the organization, not for the person who found the log line.

Check yourself

Recognition and the fix. Nothing here is a procedure.

1 / 3

Why use an out-of-band channel during response?

Sibling techniques

Pages at the same depth, plus a lab and a glossary card for this one.

This page stands on its own. The lab and the glossary card are the next reading.

Practice

  1. LabTerminal mission: The cron entry nobody wroteA web server reaches out to an unknown address every five minutes. Find the cron entry that does it, the account it runs as, and the address.