Skip to Content
Asterrr's Handbook
2 · Incident response

Incident Response Lifecycle

The IR lifecycle on AWS, playbooks and runbooks, pre-provisioned access, a forensics account, Shield Advanced preparation and the standard EC2 containment order.

Exam tasks: 2.1.1 (response plans and runbooks), 2.1.2 (preparing services for incidents: access, tooling, blast radius, Shield Advanced)

The decision: what must already exist (people, access, tooling, isolated accounts, written and automated steps) so responders can contain an incident in minutes without inventing anything, and in what order do you contain a compromised instance?

Incident response (IR) on AWS follows the NIST SP 800-61 shape. Prepare, detect and analyze, contain and recover, then learn. Domain 2 of the exam tests whether you know which AWS service serves each phase and the order of containment actions.

findingtriggerisolatepreserveGuardDutySecurity HubEventBridgeSSM AutomationCompromisedinstanceEBS snapshot
From finding to containment. Automation isolates the instance and preserves evidence before anyone terminates anything.

The AWS Security Incident Response Guide follows the NIST 800-61 phases. The exam cares less about the names than about knowing which AWS feature belongs where.

PrepareOperatePost-incidentIR roles and break-glassaccessForensics account andtoolingPlaybooks + SSMrunbooksLogging everywhereDetect GuardDuty, SecurityHub, Macie, InspectorAnalyzeDetective,Athena,Contain SG swap, denypolicy, revoke sessionsEradicate and recoverrebuild from AMI, restorebackups, ARCLessons learned rootcause, update runbooks,new controlsprep
Diagram of the lifecycle, mapped to aws
NIST 800-61
Lifecycle the AWS IR guide and AWS Security Incident Response follow.
15 minutes
AWS Security Incident Response initial response objective for AWS-supported cases.
Nov 2025
Incident Manager closed to new customers.

Phases and the services behind them

PhaseGoalAWS services and actions
PreparationNothing has to be invented during the incident. Be able to see and act before anything happensMulti-Region organization CloudTrail trail, log archive account, IAM Identity Center IR permission sets, break-glass roles, a forensics account and pre-built forensic AMI, SSM documents as runbooks, Shield Advanced setup, game days with Fault Injection Service
DetectionKnow quickly, with enough contextGuardDuty, Security Hub, Macie, Inspector, Config, CloudWatch alarms
AnalysisDecide if it is real, and how bigFinding validation, Detective, CloudTrail, CloudTrail Lake, Athena over logs, Security Lake
ContainmentStop the spread, keep the evidenceIsolation security group, NACL, deny policies, AWSRevokeOlderSessions, SCPs, snapshots, memory capture
Eradication and recoveryRemove the foothold, restore known-goodRebuild from a golden AMI, AWS Backup restore, rotate keys and secrets, patch, ARC traffic shifts
Post-incidentLearn and hardenTimeline, root cause, new Config rules, SCPs and detections, runbook updates, OpsCenter or ticket follow-ups

Standard containment order for an EC2 instance

  1. Validate the finding and note the instance, its role and its VPC.
  2. Isolate. Create an isolation security group with no 0.0.0.0/0 rule and make it the instance's only group.
  3. Block the credentials. Disable or revoke the role sessions and any access keys the attacker saw.
  4. Preserve evidence. Snapshot the EBS volumes and capture memory before stopping or terminating.
  5. Investigate from a copy. Mount the snapshot on a forensic instance, never analyze in place.
  6. Terminate and replace only after the evidence is safe.

Exam trap

Changing a security group does not kill connections that are already tracked. Only new traffic is blocked. To cut an existing attacker session, also use a network ACL deny on the attacker address.

Exam signal

"Preserve evidence" or "chain of custody" means snapshot and isolate first, terminate last. "Stolen instance profile credentials" means deny or revoke the role sessions, not only isolate the instance.

Cross-account pattern

Run detection and response from a separate security account. Findings flow from every workload account into the Security Hub administrator account. EventBridge there triggers automation that assumes a role in the workload account. Evidence copies live in a forensics account so that a compromised workload account cannot delete them. The Forensics Orchestrator automates exactly this.

Playbooks and runbooks

  • A playbook is the human-level plan for one incident type: who decides, what to check, when to escalate, who talks to legal and customers. Write one per likely scenario: exposed access key, crypto-mining instance, public S3 bucket, ransomware on EBS, compromised container.
  • A runbook is the executable part: the exact steps, ideally as a Systems Manager Automation document that a responder, EventBridge rule or Step Functions workflow can run with one set of parameters.
  • Keep both in version control and deploy the runbooks with CloudFormation StackSets so every account has the same version.
  • Jupyter notebooks (for example in SageMaker AI) work well as investigation runbooks: pre-written Athena queries against CloudTrail and VPC Flow Logs, with space for the analyst's notes. The notebook becomes part of the case record.

Where the case lives

ToolUse it forNotes
Systems Manager OpsCenterOpsItems created automatically from EventBridge rules, CloudWatch alarms or Security Hub CSPM findings, with related resources and a Run automation button for SSM runbooksDeduplicates by resource or a dedup string; SNS notification on change
AWS Security Incident ResponseA managed service: AWS triages GuardDuty and Security Hub CSPM threat findings for you, opens cases, and gives you 24/7 access to AWS incident respondersCan run containment on EC2, S3 and IAM if you pre-authorize it; cases publish to EventBridge for Jira, ServiceNow or Slack
Your ITSM (Jira, ServiceNow)The system of record most companies already haveSecurity Hub can create tickets directly; OpsCenter has APIs for sync
Systems Manager Incident ManagerResponse plans, on-call rotations, escalation, chat channels, post-incident analysisSee the Legacy note below

Legacy: use OpsCenter, AWS Security Incident Response, or your own ITSM tool instead

AWS Systems Manager Incident Manager stopped accepting new customers on 7 November 2025 and gets no new features. Existing accounts keep working. Older material may present it as the default answer for "engage the on-call responder and run a runbook". Know what it did (response plans, engagement and escalation plans, runbook automation, post-incident analysis), but for a new design prefer the options above.

Exam signal

"Reduce the time for the security team to engage AWS experts during an active incident" or "have AWS monitor and triage GuardDuty findings around the clock" points to AWS Security Incident Response. It doesn't generate findings itself, so GuardDuty (or another detector) must be on.

Preparing accounts and access

Pre-provisioned responder access

  • Create IR roles or Identity Center permission sets now, not during the incident: a read-only investigator role and a separate, tightly monitored containment role that can change security groups, attach deny policies and snapshot volumes.
  • Deploy them to every account through StackSets or Control Tower, with a trust policy that only the security account can assume.
  • Keep break-glass access that doesn't depend on your IdP (the incident might be the IdP). Store the credentials offline, protect them with MFA, and alert on every use.
  • Protect IR roles with an SCP so workload admins can't delete or edit them.

A forensics account

  • A dedicated account in a security OU, owned by the security team, with no connection to production networks.
  • Receives copies of snapshots (shared and re-encrypted with a customer managed key the forensics account can use), memory captures and logs.
  • Contains an isolated VPC with no internet gateway, VPC endpoints for S3 and SSM, and a hardened forensic workstation AMI with your tools preinstalled.
  • Stores artifacts in an S3 bucket with Object Lock (see Compromised workloads).

Minimizing blast radius before anything happens

  • Separate accounts per workload and environment, so one compromised account doesn't mean everything is compromised (Multi-account strategy).
  • SCPs that deny disabling CloudTrail, GuardDuty, Config and Security Hub, and deny leaving the organization.
  • Short session durations and no long-lived access keys where roles work.
  • Centralized, immutable logs in a log archive account (Logging strategy).

Shield Advanced as preparation

DDoS response depends on setup done in advance:

  • Subscribe and add protected resources (CloudFront, Route 53 hosted zones, Global Accelerator, ALB, CLB, Elastic IPs).
  • Associate Route 53 health checks with the protected resources. Shield uses them for faster, more accurate detection, and proactive engagement requires them.
  • Enable proactive engagement and add emergency contacts so the Shield Response Team (SRT) calls you when a protected resource's health check goes unhealthy during an event.
  • Grant the SRT an IAM role (the AWSShieldDRTAccessPolicy managed policy) and, if needed, access to your WAF log buckets so it can write mitigations for you.
  • Proactive engagement and SRT access need a Business or Enterprise support plan. See Edge protection.

Setting up SRT access during the attack

If the question asks how to get help faster during the next attack, the answer is the preparation: health checks, proactive engagement, and the SRT role, all configured in advance. Opening a support case mid-attack and then granting access is the slow path.

Testing the plan with game days, FIS and Resilience Hub, and traffic recovery with ARC, are on FIS, Resilience Hub and ARC. Wiring findings to automatic action is on Automated remediation.

Scenarios

Scenario
A logistics company, Harbormaster Freight, runs 60 AWS accounts in AWS Organizations. During last quarter's incident, responders lost 90 minutes waiting for workload teams to grant them access and for someone to find a place to analyze EBS snapshots safely. What should the security team do to prevent this delay in future incidents?
Scenario · choose 2
An online ticketing platform protects its CloudFront distribution and ALBs with AWS Shield Advanced. During a recent layer 7 attack, the team only learned of the impact from customer complaints, and the Shield Response Team could not act until the team granted access. Which TWO actions will speed up the response to the next event?

Further reading

On this page