Date:
Category:
DevOps Strategy
Cloud Incident Response: A Practical Guide for AWS Teams

Written by
Dino Starcic
·
CEO

Cloud incident response is the work of detecting, containing and recovering from a security incident in your cloud environment, and on AWS it mostly comes down to identities and logs, not servers. A leaked access key, an over-permissioned role or a public storage bucket is the usual starting point, and what you can do in the first hour depends on what you set up months earlier. Teams that have senior AWS engineers on call every day, as our subscription provides, tend to have that groundwork in place before anything goes wrong.
Cloudwisecloudwise.orgStrengthen Your AWS Incident ReadinessCloudwise provides senior AWS and DevOps engineers for day-to-day cloud operations, including infrastructure management and continuous security monitoring.AWS & DevOps Services
TL;DR
Cloud incidents are mostly identity incidents: stolen keys, excessive permissions and misconfigurations, so containment means revoking credentials and restricting roles rather than blocking IP addresses.
Follow the five operations phases in AWS’s incident response guide: detect, analyze, contain, eradicate, recover, with preparation before and review after.
Turn on and retain logs before an incident. You can’t investigate what was never recorded.
Write down who does what, including who can act in your AWS accounts at 2 a.m.
Our subscription gives you senior AWS and DevOps engineers through a shared backlog, with a typical 24-48 hour response time on tasks.
Table of Contents
Why cloud response differs from the server-room kind
The phases of a cloud incident response
Logs: the part you can’t fix afterward
Containing a compromised key, role or instance
Eradication and recovery
Preparing before anything happens
Who runs this when you don’t have a DevOps team
FAQ
Sources
Why cloud response differs from the server-room kind
In a traditional incident you can pull a disk, unplug a machine or block an address. In AWS you have none of that. Responders work within what the provider gives them: snapshots, API calls and logs. CrowdStrike lists the differences: no physical access, short resource lifetimes that can destroy evidence, resources created by any team with a credit card, and identity as the new perimeter, which makes IP blocking impractical.
Short lifetimes matter most for startups. An autoscaled instance that was compromised may be gone by the time anyone looks, along with its memory and local files. That’s why evidence collection is automated in mature setups, not left to a person with a laptop.
Identity is the other half. Unit 42’s 2026 report, covering more than 750 cases, found identity involved in nearly 90% of incidents and identity-based techniques behind 65% of initial access. The same report found about 35% of investigations involved cloud or SaaS assets. If you only watch servers, you’re watching the wrong thing.

Responsibility is also split. Under the shared responsibility model, Finland’s Traficom guidance notes that in IaaS (rented virtual machines and networks, which is most of what you run on EC2) customers carry extensive responsibility for resolving incidents. AWS secures the platform; your accounts, roles, keys and configurations are yours.
The phases of a cloud incident response
AWS organizes the program into preparation, operations and post-incident activity. The operations part follows NIST’s phases: detect, analyze, contain, eradicate and recover. AWS notes they don’t necessarily happen in order. You’ll often be containing while still analyzing.
Preparation. Logging on, contacts listed, access ready, playbooks written.
Detection. Something flags a potential security event: a GuardDuty finding, a billing spike, a customer report.
Analysis. Decide whether it’s an incident and how far it reaches.
Containment. Limit the scope.
Eradication. Remove unauthorized resources and persistence, and fix what let them in.
Recovery. Restore to a known safe state and watch to confirm the threat doesn’t return.
Review. Update detections, configurations and playbooks.
Preparation is where a small team wins or loses. Everything after it is faster when it’s done, and slower than it needs to be when it isn’t.
Logs: the part you can’t fix afterward
Incident resolution, as Traficom puts it, largely depends on available log data. Control-plane logs (who called which AWS API) are usually collected automatically, but data-plane logs (who read which object, which request hit which resource) often need you to turn them on, sometimes at extra cost.
On AWS, CloudTrail Event History keeps only 90 days of management events per region, and data events are off by default, according to a readiness guide that documents provider defaults. Ninety days sounds long until an attacker has been quiet for four months. Unit 42 recommends retaining cloud provider logs for at least 90 days, adding logs for your most sensitive resources, and encrypting and centralizing them.
Two practical points. First, send CloudTrail to a separate bucket in a separate account, so an attacker with one set of credentials can’t delete their tracks. Second, turn on log file integrity validation: CloudTrail hashes each log file with SHA-256 and delivers signed hourly digest files, so tampering can be detected. That matters if an insurer, regulator or court ever asks for evidence.
For what to collect and where to store it, see our guide to cloud log management on AWS, and for the alerting side, cloud observability on AWS.

Containing a compromised key, role or instance
Unit 42 advises that containment be fast and surgical: revoke credentials, restrict IAM permissions and quarantine virtual machines, preferably all at once. Doing one and not the others leaves a door open. If you disable a key but the attacker already created a new user, you’ve gained nothing.
A typical AWS sequence for a leaked access key looks like this:
Deactivate the key rather than deleting it. A deactivated key can be reactivated if a production workload turns out to depend on it, as the readiness guide explains.
Review CloudTrail for everything that key did, including new users, roles, keys and access policies.
For a compromised role, revoke active sessions, which attaches a deny policy that invalidates temporary credentials issued before that moment.
Check every other account that trusts the compromised identity, not only the one where the alert fired.
For a compromised EC2 instance, the forensic order matters. Enable termination protection, snapshot the EBS volumes, capture memory, detach the instance from Auto Scaling groups and load balancers, then isolate it. Isolate first and you can lose memory; terminate first and you lose everything.
AWS provides automated containment runbooks for this, and they’re reversible. According to a mapping of cloud response to NIST 800-61r3, AWSSupport-ContainEC2Instance swaps security groups for a restrictive one, AWSSupport-ContainIAMPrincipal attaches a deny-all policy, and AWSSupport-ContainS3Resource blocks external access. One catch from the same source: changing a security group doesn’t kill existing tracked connections, so only future traffic is blocked. An attacker with an open session can keep it.
In a break-glass situation, where you suspect the attacker holds admin rights, the Cloud Security Alliance advises first making sure the management plane is clean by using emergency root or master credentials. Store those somewhere your on-call engineer can reach in minutes, with MFA that doesn’t depend on one person’s phone.
Least privilege shrinks the damage before any of this starts. Unit 42’s analysis of more than 680,000 cloud identities found 99% had excessive permissions. Our guide to AWS IAM management covers tightening access without slowing developers down.
Eradication and recovery
Eradication means finding every persistence mechanism: extra IAM users, new access keys, modified trust policies, rogue Lambda functions, changed configurations. Revoke tokens and rotate credentials, then validate that your configuration changes stuck.
For recovery, Traficom recommends starting with the most business-critical systems and reinstalling services as new cloud resources rather than cleaning infected ones, because anti-malware tools can’t guarantee a clean result. It also advises restoring databases from the latest safe backup if data was altered, and reopening network connections in a limited way to avoid a second breach. If your infrastructure is defined as code, rebuilding is quick. If it was clicked together in the console, it isn’t.
Before you trust a backup, check it. NIST SP 800-61r3 calls for verifying the integrity of backups before use, restoring services in the right order, and checking restored assets for indicators of compromise before they go back into production. Backups should also sit in another region, so one failure doesn’t take out both the system and its copy, per California’s SIMM 140 cloud security guide.
Preparing before anything happens
A plan that lives only in one engineer’s head fails when that engineer is on a plane. The California guide asks that response plans include procedures for notifying and coordinating with cloud providers, current contact details including root email addresses tied to distribution lists rather than one person, and access prepared in advance for outside responders: read-only access, isolated forensic environments and privileged remediation access.
For a startup, a workable minimum looks like this:
Logging enabled in every account and region you use, with a written retention period per log source.
A separate security or log-archive account that production credentials can’t write to or delete from.
A short playbook for each likely incident: leaked key, public bucket, compromised instance, suspicious console login.
A named on-call person and a backup, with working root account recovery.
Pre-provisioned read-only investigation access, so nobody creates admin roles under pressure.
A tested way to rebuild from code and restore from backup.
The multi-cloud case follows the same rules with more bookkeeping. Defaults differ by provider: per the same readiness guide, Azure deletes Activity Log events after 90 days unless exported, while Google Cloud keeps Admin Activity audit logs for 400 days by default but leaves Data Access logs off. Write the retention floor for each source down in one place.
If you want a broader view of how response fits into day-to-day production operations, our DevOps incident response guide and the AWS security checklist for startups are the next reads. Teams working on newer AI-driven workloads can also look at this AI incident response playbook when drafting procedures and provider agreements.
Who runs this when you don’t have a DevOps team
Most startups have a gap here. Everything above is routine work: enabling logs, tightening IAM, writing runbooks, testing restores, keeping infrastructure in code. It’s also the work that slips behind features. The result is a team that discovers its log retention is 90 days on the day it needs 180.
Our subscription covers this as ongoing operations. Senior AWS and DevOps engineers take requests through a shared backlog, with a typical 24-48 hour response time, no hourly billing and no long-term contracts. The scope includes security and IAM, monitoring and observability, infrastructure management, and incident response support. The Simplest Subscription is $7,499 per month, and the details of each area are on the services page. Our security and reliability service is the natural starting point if incident readiness is your priority.

If you also need compliance evidence for SOC 2, ISO 27001 or HIPAA, the same engineers handle compliance and audit readiness, which is where well-kept logs and a documented response plan pay off a second time.
Sources
Recommended
Questions Answered
Frequently asked questions
Clear answers to common questions about our AWS & DevOps subscription and how it works.