Incident triage and containment
Triage before declaring an incident
An alert is a signal to investigate; an incident is a security event assessed against the organization’s incident criteria. Record case ID, impacted asset, severity, confidence, evidence gaps and owner. Correlate timestamps, approved deployments and independent sources, then declare or escalate according to the response plan. Do not equate an unfamiliar action with confirmed compromise. A credible ongoing threat may require emergency escalation before all evidence is collected.
Contain narrowly and preserve evidence
Containment limits damage while investigation continues. Choose the smallest authorized scope, assess dependencies, preserve relevant evidence where safe, record approval and prepare recovery. For a suspected compromised role, review the trust path, revoke affected sessions through approved IAM procedures and prevent unintended re-assumption; revoking old role sessions can interrupt legitimate workloads and does not by itself prevent new sessions. Long-term access keys require separate handling. Never run blanket quarantine from a finding alone. AWS Security Incident Response can assist with investigation and containment, with explicit permissions for actions.
Eradicate, recover and learn
After containing the affected scope, remove the underlying cause: for example, fix a vulnerable dependency or correct an inappropriate trust relationship. Recover using known-good artifacts, validate application health and expected access, and watch for recurrence. Document what was changed, who approved it, when it happened, and the remaining uncertainty. Review detection gaps and update the runbook. Do not delete original evidence merely because the incident is resolved.
Practice with an offline approval gate
The synthetic fixture below represents a reviewed case, not an AWS event schema. The local model returns PLAN_ONLY if corroboration, approval, evidence preservation, one named resource and a recovery plan are all present; otherwise it returns REVIEW. It never performs containment. Real emergency procedures may prioritize immediate safety and use separate authority; this teaching gate does not replace them. Change a field and predict the result before running the tests.
{ "corroborated": true, "approved": true, "evidencePreserved": true, "resources": [ "demo-api" ], "recoveryPlan": true}Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Incident triage and containment — knowledge check
Reason about findings, evidence and incident response.
What is the first useful action for an unexplained finding?
What is a risk of revoking role sessions?
What does containment aim to do?
What should recovery verify?
What does the offline model do when approval is missing?