Last reviewed: August 2026
Even with prevention and detection through Security Posture Management , security incidents can still happen. Cloud environments require response procedures that differ from on-premises — account isolation, token revocation, API-based evidence preservation, automated isolation, and more.
Caution
Security incident response cannot be prepared for after an incident has occurred. Runbooks (response procedures), role assignments, communication plans, and isolation scripts must be written in advance and rehearsed regularly. Facing an incident without preparation leads to delayed decisions, lost evidence, and expanded damage.
graph LR
A[Detection] --> B[Classification·Severity Assessment] --> C[Isolation] --> D[Evidence Preservation] --> E[Eradication·Recovery] --> F[Post-mortem]
Stage
Activity
Cloud-specific points
Detection
GuardDuty/Defender/SCC alerts, SIEM correlation analysis
Leverage automated detection services
Classification
Determine severity (Critical/High/Medium/Low), assess scope of impact
Which accounts/regions/services are affected
Isolation
Separate compromised resources from the network/permissions
SG changes, disabling IAM keys, revoking role sessions
Evidence preservation
Secure data for forensics
Disk snapshots, memory dumps, preserving audit logs
Eradication/recovery
Remove the threat and restore service
Replace infected instances (immutable), rotate keys
Post-mortem
Root cause analysis, prevent recurrence
Reconstruct the timeline, improve policy
Situation
Action
Vendor-specific method
API key/credential leak
Immediately disable the key + invalidate active sessions
AWS: disable Access Key + revoke sessions, Azure: revoke Entra ID session, Google Cloud: delete Service Account key
Role/permission hijack
Add a Deny policy to the role or force session expiration
AWS: SCP Deny, Azure: Conditional Access block, Google Cloud: Organization Policy
Full account compromise
Isolate the account/subscription/project from the organization
AWS: full SCP Deny, Azure: disable subscription, Google Cloud: suspend project
Action
Method
Instance isolation
Replace firewall rules with “block all inbound/outbound” (don’t delete them — preserve evidence)
Subnet isolation
Block all traffic in the subnet with a subnet-level ACL
DNS sinkhole
Redirect malicious domains to a sinkhole in internal DNS
Caution
Do not terminate an instance during isolation. Memory, disk, and network connection information will be lost. Take a snapshot first, then isolate.
Evidence type
Collection method
Storage location
Disk
EBS/Managed Disk snapshot
Encrypted storage in a dedicated forensics account
Memory
Memory dump via SSM Run Command (e.g., LiME)
S3/Blob (encrypted)
Logs
Extend CloudTrail/Activity Log/Audit Log retention
Separate log archive account (tamper-resistant)
Network
VPC Flow Logs, DNS query logs
Long-term retention storage
Timeline
Chronological reconstruction of events
Incident response documentation
Area
AWS
Azure
Google Cloud
OCI
Detection
GuardDuty
Defender for Cloud
Security Command Center
Cloud Guard
Investigation
Detective
Sentinel (Investigation)
Google Unified Security (formerly Chronicle)
Logging Analytics
Automated response
EventBridge → Lambda/Step Functions
Sentinel Playbook (Logic Apps)
Cloud Functions / Workflows
Events → Functions
Forensics
Snapshot + SSM + Athena (log queries)
Disk Snapshot + Log Analytics
Disk Snapshot + BigQuery
Block Volume Backup + Logging
Long-term log retention
S3 + Glacier (Object Lock)
Immutable Blob Storage
Cloud Storage (Retention Lock)
Object Storage (Retention Rules)
Things to prepare before an incident occurs:
Regular drills (tabletop exercises) — run scenario-based simulations at least once a quarter to maintain response capability.
Playbook updates — immediately incorporate improvements discovered from real incidents or drills into the playbook.
Feed back post-mortem findings — feed root cause analysis results from incidents back into detection rules and response procedures.
Writing the runbook only after an incident occurs — facing an incident without advance preparation leads to delayed decisions, lost evidence, and expanded damage
Immediately terminating a compromised instance — memory, disk, and network connection information is lost, making forensics impossible. Take a snapshot first, then isolate
Short audit log retention periods — leaving the default 90-day retention means past logs are already deleted by the time an incident is investigated