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.
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.
Phases and the services behind them
| Phase | Goal | AWS services and actions |
|---|---|---|
| Preparation | Nothing has to be invented during the incident. Be able to see and act before anything happens | Multi-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 |
| Detection | Know quickly, with enough context | GuardDuty, Security Hub, Macie, Inspector, Config, CloudWatch alarms |
| Analysis | Decide if it is real, and how big | Finding validation, Detective, CloudTrail, CloudTrail Lake, Athena over logs, Security Lake |
| Containment | Stop the spread, keep the evidence | Isolation security group, NACL, deny policies, AWSRevokeOlderSessions, SCPs, snapshots, memory capture |
| Eradication and recovery | Remove the foothold, restore known-good | Rebuild from a golden AMI, AWS Backup restore, rotate keys and secrets, patch, ARC traffic shifts |
| Post-incident | Learn and harden | Timeline, root cause, new Config rules, SCPs and detections, runbook updates, OpsCenter or ticket follow-ups |
Standard containment order for an EC2 instance
- Validate the finding and note the instance, its role and its VPC.
- Isolate. Create an isolation security group with no
0.0.0.0/0rule and make it the instance's only group. - Block the credentials. Disable or revoke the role sessions and any access keys the attacker saw.
- Preserve evidence. Snapshot the EBS volumes and capture memory before stopping or terminating.
- Investigate from a copy. Mount the snapshot on a forensic instance, never analyze in place.
- 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
| Tool | Use it for | Notes |
|---|---|---|
| Systems Manager OpsCenter | OpsItems created automatically from EventBridge rules, CloudWatch alarms or Security Hub CSPM findings, with related resources and a Run automation button for SSM runbooks | Deduplicates by resource or a dedup string; SNS notification on change |
| AWS Security Incident Response | A managed service: AWS triages GuardDuty and Security Hub CSPM threat findings for you, opens cases, and gives you 24/7 access to AWS incident responders | Can 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 have | Security Hub can create tickets directly; OpsCenter has APIs for sync |
| Systems Manager Incident Manager | Response plans, on-call rotations, escalation, chat channels, post-incident analysis | See 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
AWSShieldDRTAccessPolicymanaged 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
Pre-provisioned, centrally deployed roles and a ready forensics account remove both delays. Shared admin IAM users are long-lived credentials that break least privilege and auditability. Waiting for workload teams to grant access is exactly the delay you're trying to remove. Detective analyzes logs and findings; it doesn't hold or analyze disk snapshots.
Health checks give Shield an application-level signal and are required for proactive engagement, where the SRT contacts you. Granting the SRT role in advance lets it deploy WAF mitigations without waiting. An NLB doesn't inspect layer 7, Runtime Monitoring detects host threats rather than DDoS, and the idle timeout has nothing to do with engagement speed.
Related
- Amazon GuardDuty
- CloudTrail
- Finding validation
- FIS, Resilience Hub and ARC
- Compromised credentials
- Compromised workloads
- Automated Forensics Orchestrator
- Central security management and root access
- AWS Organizations and multi-account design
- AWS Shield
Further reading
- Remediating a potentially compromised EC2 instance (GuardDuty)
- GuardDuty finding severity levels
- Automated Forensics Orchestrator architecture overview
- AWS Security Incident Response Guide (whitepaper)
- What is AWS Security Incident Response?
- AWS Fault Injection Service concepts
- Shield Advanced proactive engagement
Domain 2 · Incident response
14% of the exam. Being ready before something goes wrong, then containing, investigating and recovering without destroying the evidence.
FIS, Resilience Hub and ARC
Testing incident readiness with Fault Injection Service, assessing resilience, and failing over with Application Recovery Controller.