Security incident response
A breach is discovered mid-panic, and the instinct to "clean it up
immediately" is exactly what wipes the forensic trail and violates
notification law. Response is a sequence: contain the bleeding without
tipping off or erasing the intruder, preserve what happened, then meet the
legal clocks that started ticking the moment you knew. Improvising the order
costs evidence, or costs a fine.
Method
- Declare the incident and assign a single coordinator. Open a dedicated
channel, name one incident commander who owns decisions, and start a
timestamped log of every action and finding. Diffuse ownership under
pressure produces duplicated work and gaps.
- Contain without destroying evidence. Isolate affected hosts from the
network rather than powering them off, which erases volatile memory.
Disable or rotate the compromised credentials and revoke active sessions
and tokens, so containment does not depend on the attacker's cooperation.
- Preserve the record before you remediate. Snapshot disks, capture
memory, and copy relevant logs to write-once storage with hashes, because
log retention windows expire and reimaging overwrites the source. You
cannot investigate or notify accurately from data you deleted.
- Scope what was actually reached. From the preserved logs, establish
entry point, dwell time, which accounts and systems were touched, and what
data classes were accessible or exfiltrated. The notification duty depends
on this answer, so resist both under- and over-claiming.
- Meet the notification clocks deliberately. GDPR requires notifying the
supervisory authority within 72 hours of becoming aware of a personal-data
breach; US state laws, HIPAA, PCI DSS, and contracts set their own
deadlines. Loop in legal and privacy counsel early: they, not engineering,
own the disclosure decision and wording.
- Eradicate, recover, then verify. Remove the foothold, patch the entry
vector, restore from known-clean backups, and rotate every secret the
attacker could have seen. Watch the restored systems before declaring
closure, since attackers plant persistence.
- Run a blameless postmortem. Document timeline, root cause, and the
control that would have caught it earlier, and turn each into a tracked
action. An incident that teaches nothing invites its own rerun.
Signals
- Is there one incident commander and a timestamped action log?
- Were disks and memory snapshotted before any host was reimaged?
- Is the personal-data notification clock (72 hours for GDPR) being tracked
against a known "aware" timestamp?
- Were all potentially exposed credentials and tokens rotated, not just the
one known-leaked pair?
Boundaries
This is the operational spine, not legal advice: statutory and contractual
duties vary by jurisdiction, data type, and industry, and counsel owns the
disclosure call. It assumes preparation exists elsewhere (logging, backups,
an on-call rota); a plan first drafted during the breach will show its seams.
1---2name: security-incident-response3description: Run a security breach through containment, evidence preservation, and notification duties in the right order, under time pressure, without destroying the record you will need. Use when you suspect or confirm a compromise: leaked credentials, unauthorized access, malware, or exfiltrated data.4---56# Security incident response78A breach is discovered mid-panic, and the instinct to "clean it up9immediately" is exactly what wipes the forensic trail and violates10notification law. Response is a sequence: contain the bleeding without11tipping off or erasing the intruder, preserve what happened, then meet the12legal clocks that started ticking the moment you knew. Improvising the order13costs evidence, or costs a fine.1415## Method16171. **Declare the incident and assign a single coordinator.** Open a dedicated18 channel, name one incident commander who owns decisions, and start a19 timestamped log of every action and finding. Diffuse ownership under20 pressure produces duplicated work and gaps.212. **Contain without destroying evidence.** Isolate affected hosts from the22 network rather than powering them off, which erases volatile memory.23 Disable or rotate the compromised credentials and revoke active sessions24 and tokens, so containment does not depend on the attacker's cooperation.253. **Preserve the record before you remediate.** Snapshot disks, capture26 memory, and copy relevant logs to write-once storage with hashes, because27 log retention windows expire and reimaging overwrites the source. You28 cannot investigate or notify accurately from data you deleted.294. **Scope what was actually reached.** From the preserved logs, establish30 entry point, dwell time, which accounts and systems were touched, and what31 data classes were accessible or exfiltrated. The notification duty depends32 on this answer, so resist both under- and over-claiming.335. **Meet the notification clocks deliberately.** GDPR requires notifying the34 supervisory authority within 72 hours of becoming aware of a personal-data35 breach; US state laws, HIPAA, PCI DSS, and contracts set their own36 deadlines. Loop in legal and privacy counsel early: they, not engineering,37 own the disclosure decision and wording.386. **Eradicate, recover, then verify.** Remove the foothold, patch the entry39 vector, restore from known-clean backups, and rotate every secret the40 attacker could have seen. Watch the restored systems before declaring41 closure, since attackers plant persistence.427. **Run a blameless postmortem.** Document timeline, root cause, and the43 control that would have caught it earlier, and turn each into a tracked44 action. An incident that teaches nothing invites its own rerun.4546## Signals4748- Is there one incident commander and a timestamped action log?49- Were disks and memory snapshotted before any host was reimaged?50- Is the personal-data notification clock (72 hours for GDPR) being tracked51 against a known "aware" timestamp?52- Were all potentially exposed credentials and tokens rotated, not just the53 one known-leaked pair?5455## Boundaries5657This is the operational spine, not legal advice: statutory and contractual58duties vary by jurisdiction, data type, and industry, and counsel owns the59disclosure call. It assumes preparation exists elsewhere (logging, backups,60an on-call rota); a plan first drafted during the breach will show its seams.