Incident Response Plans and Runbooks

5 minutes 5 Questions

Incident Response Plans (IRPs) and runbooks are core topics in SCS-C03 Domain 2. An IRP is a high-level, organization-wide document that defines how security events are detected, triaged, contained, eradicated, recovered from, and reviewed. It aligns with the NIST SP 800-61 lifecycle and the AWS Security Incident Response Guide. Key IRP elements include: - Roles and responsibilities, such as incident commander, communications lead, legal, and technical responders. - Escalation paths and severity classifications. - Communication plans and contact lists, including AWS Support and the AWS Customer Incident Response Team (CIRT). - Regulatory notification requirements. In AWS, the plan should also reflect the shared responsibility model and multi-account structures managed through AWS Organizations. It should cover pre-provisioned access, such as break-glass IAM roles and a dedicated forensics account. Runbooks (and playbooks) are tactical, step-by-step procedures for specific scenarios. Examples include compromised IAM access keys, publicly exposed S3 buckets, crypto-mining EC2 instances, and unexpected root account usage. A runbook for a compromised EC2 instance might include these steps: 1. Capture instance metadata. 2. Enable termination protection. 3. Isolate the instance with a restrictive security group. 4. Detach it from Auto Scaling groups and deregister it from load balancers. 5. Snapshot EBS volumes and capture memory. 6. Tag the resource for investigation. AWS supports runbook automation through several services. These include AWS Systems Manager Automation documents, AWS Systems Manager Incident Manager response plans, AWS Step Functions, and Lambda functions. Amazon EventBridge rules can trigger these actions in response to GuardDuty, Security Hub, or AWS Config findings. Automation reduces mean time to respond and limits human error, while ensuring consistent execution. Exam tips: - Plans must be tested through tabletop exercises, game days, and simulations. - Preparation includes enabling logging, such as CloudTrail, VPC Flow Logs, and Route 53 Resolver query logs, before incidents occur. - Post-incident reviews feed lessons learned back into updated plans and runbooks. Expect scenario questions asking which automated response is most efficient, or which preparatory step best enables effective forensic analysis.

Incident Response Plans and Runbooks (AWS Certified Security - Specialty)

Overview
Incident Response Plans and Runbooks are part of the Threat Detection and Incident Response domain of the AWS Certified Security - Specialty exam. This domain carries a large share of the exam weight. You must know how to prepare for security events, respond in a consistent and repeatable way, and automate the response with AWS services.

Why It Is Important
Security incidents happen even in well-built environments. Credentials leak, instances get compromised, buckets are made public by mistake, and attackers mine cryptocurrency on hijacked resources. An organization that has to invent its response during an attack loses time, makes mistakes, and may destroy forensic evidence. A documented and tested plan gives you:
- Speed: less time between detection and containment, which limits the damage.
- Consistency: every responder follows the same proven steps.
- Evidence preservation: artifacts are collected in a legally defensible way before anything is changed or deleted.
- Clear roles: everyone knows who decides, who acts, who communicates, and who escalates.
- Compliance: frameworks such as PCI DSS, HIPAA, ISO 27001 and SOC 2 require incident response procedures.
- Continuous improvement: lessons learned feed back into better controls.

What It Is
Incident Response Plan (IRP): A high-level document that defines the strategy, scope, roles and responsibilities, communication paths, escalation criteria, legal and regulatory duties, and the phases of response. It answers who does what and when.

Playbook: A scenario-specific guide for a type of incident, such as compromised IAM credentials, a compromised EC2 instance, an exposed S3 bucket, or ransomware. It describes the investigation logic and decision points.

Runbook: A detailed, step-by-step procedure that carries out a specific task, often automated. Examples include isolating an EC2 instance, taking an EBS snapshot, or deactivating an access key. In AWS, runbooks are often built as AWS Systems Manager Automation documents.

Simple way to remember it: The plan is the strategy, the playbook is the scenario guide, and the runbook is the exact set of steps, ideally written as code.

How It Works: The Incident Response Lifecycle
AWS guidance follows the NIST SP 800-61 model. The AWS Security Incident Response Guide groups the work into Prepare, Operate, and Post-Incident Activity.

1. Preparation
- People: define roles, train staff, and keep contact lists and on-call rotations current.
- Process: write the plan, playbooks and runbooks, and practice them with tabletop exercises and game days.
- Technology: enable logging and detection before an incident happens. This includes CloudTrail (organization trail), VPC Flow Logs, Route 53 Resolver query logs, S3 access logs, ELB logs, CloudWatch Logs, AWS Config, GuardDuty, Security Hub, Amazon Detective, Amazon Inspector and Macie.
- Access: set up break-glass and responder IAM roles in advance, ideally through IAM Identity Center with short-lived credentials.
- Isolated environments: create a dedicated security or forensics account in AWS Organizations, with pre-built forensic AMIs, isolated VPCs and a locked-down evidence bucket that uses S3 Object Lock and KMS encryption.
- Centralized logs: keep logs in a separate log archive account so attackers in a workload account cannot erase them.

2. Detection and Analysis
- GuardDuty, Security Hub, Macie, Inspector, Config rules and CloudWatch alarms create findings.
- Amazon EventBridge rules match findings and route them to SNS, Lambda, Step Functions, SSM Automation or Incident Manager.
- Responders use Amazon Detective, CloudTrail Lake or Athena queries over CloudTrail and VPC Flow Logs to establish scope, timeline and root cause.

3. Containment, Eradication and Recovery
Common containment runbooks:

Compromised EC2 instance:
- Capture metadata and tag the instance as under investigation.
- Enable termination protection. Do not terminate the instance, because evidence would be lost.
- Remove it from Auto Scaling groups (or suspend processes) and deregister it from load balancers.
- Replace its security group with an isolation security group that has no inbound rules and no outbound rules, or only a rule to a forensic workstation. Keep in mind that existing tracked connections may persist, so a network ACL change may also be needed.
- Take EBS snapshots and capture memory (for example with SSM Run Command and a memory capture tool) before stopping the instance, because memory is volatile.
- Share snapshots with the forensics account and analyze them there.
- Replace the instance with a clean one built from a trusted AMI.

Compromised IAM credentials:
- Deactivate (not just delete) the access keys so evidence is kept, then rotate them.
- For role sessions, use Revoke active sessions, which attaches a policy that denies requests from tokens issued before a set time (aws:TokenIssueTime).
- Attach an explicit deny policy if required, reset passwords, and enforce MFA.
- Review CloudTrail for actions taken with the credentials, such as new users, new keys, new resources in unused Regions, or changes to logging.
- If keys were exposed in a public repository, follow AWS Health or Trusted Advisor notices and the AWSCompromisedKeyQuarantine managed policy guidance.

Exposed S3 bucket or data:
- Enable S3 Block Public Access at the account level, fix bucket policies and ACLs, review access logs and Macie findings.

Organization-wide containment:
- Use Service Control Policies to deny actions across accounts or Regions, or move an affected account into a quarantine OU.

Eradication removes the root cause, such as malware, backdoor IAM users, rogue Lambda functions or unauthorized keys. Recovery restores service from known-good backups or AMIs, with closer monitoring afterward.

4. Post-Incident Activity
- Hold a blameless lessons-learned review.
- Update the plan, playbooks, runbooks and detective controls.
- Measure metrics such as mean time to detect (MTTD) and mean time to respond (MTTR).
- Keep evidence according to legal and retention requirements.

Key AWS Services for Plans and Runbooks
- AWS Systems Manager Incident Manager: response plans, contacts, escalation plans, on-call schedules, engagement through SMS, voice and email, chat channels, automated runbook execution, timelines and post-incident analysis templates. Incidents can be started by CloudWatch alarms or EventBridge events.
- Systems Manager Automation: runbooks written as documents, including AWS-owned ones such as AWS-DisablePublicAccessForSecurityGroup, AWSSupport-ContainEC2Instance and AWS-DisableS3BucketPublicReadWrite. Supports approval steps.
- Systems Manager Run Command and Session Manager: collect data and access instances with no open SSH ports, with sessions logged to S3 or CloudWatch.
- Amazon EventBridge: the event router that connects findings to automated responses.
- AWS Lambda and AWS Step Functions: custom response logic and multi-step workflows with branching and human approval.
- AWS Security Hub: aggregated findings, custom actions that send selected findings to EventBridge, and automation rules.
- AWS Config: rules with auto-remediation through SSM Automation, plus configuration history to show what changed.
- Amazon Detective: visual investigation and scoping.
- AWS Security Incident Response service and the AWS Customer Incident Response Team (CIRT), reachable through AWS Support (Business or Enterprise) for help during active events.
- AWS Shield Advanced with the Shield Response Team (SRT) for DDoS events.

Automation Patterns to Recognize
- GuardDuty finding to EventBridge rule to Lambda or SSM Automation to isolate the instance and notify via SNS.
- Security Hub custom action to EventBridge to Step Functions for semi-automated response with a human approval step.
- Config noncompliant resource to SSM Automation remediation.
- CloudWatch alarm to Incident Manager response plan that engages on-call staff and starts a runbook.
- Multi-account: delegated administrator for GuardDuty and Security Hub in the security account, with central EventBridge rules and cross-account roles assumed by response functions.

Exam Tips: Answering Questions on Incident Response Plans and Runbooks
1. Preserve evidence first. If an option terminates an instance, deletes access keys, or deletes a bucket at the start of the response, it is usually wrong. Prefer isolate, snapshot, capture memory, then investigate.
2. Know the order of operations. Capture volatile data (memory) before stopping an instance. Snapshot EBS volumes before changes. Tag resources so others do not alter them.
3. Isolation equals security group change. The standard answer for containing an EC2 instance is attaching a restrictive isolation security group, removing it from the ASG and load balancer, and moving analysis to a forensics account.
4. Least operational overhead means automation. When a question asks for the most efficient, scalable or repeatable response, look for EventBridge plus SSM Automation, Lambda or Step Functions rather than manual console steps.
5. Incident Manager for people and process. If the question mentions engaging on-call engineers, escalation, response plans, chat channels or post-incident analysis, choose AWS Systems Manager Incident Manager.
6. SSM Automation for runbooks as code. Repeatable, auditable, step-by-step remediation with optional approvals points to Systems Manager Automation documents.
7. Revoke sessions for role credentials. Temporary credentials cannot be deactivated like access keys. The correct answer is revoking active sessions (deny based on aws:TokenIssueTime) or changing the role trust policy.
8. Deactivate before delete. For leaked IAM user keys, deactivate and rotate, then review CloudTrail for what the attacker did.
9. Separate accounts protect evidence. A dedicated security or forensics account, central log archive, and S3 Object Lock are signs of a correct answer when integrity of evidence matters.
10. Prepare before the incident. Questions about readiness favor enabling logging in advance, pre-provisioned responder roles, game days and tabletop exercises. Logs that were never enabled cannot be recovered later.
11. Use SCPs for broad containment. When an incident spans many accounts or an unused Region, SCPs or a quarantine OU contain it quickly.
12. Know who to contact. For DDoS with Shield Advanced, contact the SRT. For general help during a security event, open a case with AWS Support, which can engage the AWS CIRT. For abuse reports, AWS Trust and Safety is involved.
13. Watch for traps. Distractors often include disabling CloudTrail, rebooting an instance (which wipes memory), using a security group to block traffic it cannot block (security groups have no deny rules, use NACLs for explicit denies), or relying on manual steps when automation is requested.
14. Map keywords to services: investigate or visualize relationships = Detective; aggregate findings = Security Hub; threat findings = GuardDuty; sensitive data exposure = Macie; configuration drift with auto-remediation = Config; route events = EventBridge; orchestrate multi-step with approval = Step Functions; engage responders = Incident Manager.
15. Close the loop. If a question asks how to prevent recurrence, choose answers that update runbooks, add detective or preventive controls, and run a lessons-learned review.

Summary
An effective AWS incident response program combines a clear plan, scenario playbooks, and automated runbooks supported by logging, detection and isolated forensic accounts prepared ahead of time. On the exam, choose answers that preserve evidence, contain quickly with automation, use the right AWS service for each phase, and feed lessons learned back into preparation.
Test mode:
More Incident Response Plans and Runbooks questions
21 questions (total)