1. Purpose & Scope
-
Purpose:
To describe the incident response steps for a compromise of cloud infrastructure - covering analysis & triage, containment, eradication, recovery, and post-incident activities. The objective is to evict the attacker from the cloud environment, determine what cloud resources, data, and identities they reached, restore secure operation, and harden the cloud estate against repeat compromise.
-
Scope:
Applies to compromise of cloud infrastructure across any cloud provider (AWS, Azure, GCP, Oracle, or other), including:
- Cloud workload compromise (VMs, containers, Kubernetes pods, serverless functions)
- Cloud control plane abuse (unauthorised API activity, IAM/role manipulation, security service tampering)
- Cloud storage / database compromise (S3, Azure Blob, GCS, RDS, Cosmos DB, BigQuery)
- Cloud-native lateral movement (IMDS abuse, role chaining, cross-account/cross-tenant access)
- Infrastructure-as-code (IaC) / CI/CD pipeline compromise affecting cloud deployment
- Exposed cloud credentials, API keys, or instance metadata
Out of scope (handled by dedicated playbooks):
- Identity containment and recovery for compromised cloud IAM users, roles, service accounts, workload identities, federated identities, tokens, or access keys โ PB-004: Account Takeover
- Continue this playbook for cloud control plane, workload, storage, network, resource, and security-service impact caused by that identity.
2. Incident Identification & Criteria
Incident Type: Cloud Compromise
Trigger Conditions:
Initiate this playbook when any of the following occur:
- Cloud-native security alert (GuardDuty, Defender for Cloud, GCP Security Command Center, Oracle Cloud Guard, or equivalent)
- Unauthorised cloud API activity detected (unfamiliar regions, unusual user agents, unexpected services)
- Unauthorised IAM activity (new role / policy / user / access key created or modified)
- Cloud workload behaving anomalously (unexpected outbound traffic, cryptomining, foreign region activity)
- Cloud security service disabled or tampered with (logging stopped, detections silenced, retention reduced)
- Exposed cloud credential or access key identified (public repo, paste site, threat intel)
- Public exposure of a cloud resource detected (open storage bucket, exposed database, exposed management interface)
- Anomalous activity from a cloud workload identity or instance role
- Third-party notification of compromised cloud infrastructure
Severity Levels:
| Severity | Description |
|---|---|
| Sev 3 | Confirmed compromise of a single non-production cloud workload, no data or control plane impact |
| Sev 2 | Confirmed compromise of a production cloud workload, or unauthorised cloud control plane activity with limited scope |
| Sev 1 | Compromise of a privileged cloud role, multiple cloud workloads, or cloud storage containing sensitive data |
| Sev 0 | Cloud tenant-wide / account-wide compromise, compromise of cloud admin identities, or tampering of cloud logging / security infrastructure |
3. Roles & Responsibilities
- Incident Commander: Coordinates and leads the response; drives decisions and timelines; ensures containment, communications, and remediation actions are executed.
- Communications Lead: Manages internal and external communications, executive updates, customer/regulator notifications, and stakeholder messaging.
- Incident Responder / Forensic Analyst: Performs the forensic investigation - analyses cloud control plane activity, reconstructs attacker actions in the cloud, determines scope of compromise, preserves evidence, and identifies root cause.
- Other Roles:
- Cloud Security / Platform Team: Executes cloud-side containment, snapshots, IAM rollback, infrastructure-as-code changes, and resource quarantine.
- Identity & Access (IAM) Team: Locks down compromised identities and roles, revokes sessions and access keys, and rotates credentials used by cloud workloads.
- Network Team: Implements cloud egress filtering, blocks outbound destinations, and adjusts security groups / NSGs / firewall rules.
- Application / Workload Owners: Authorise workload isolation or replacement; validate restored services.
- DevOps / SRE / Platform Engineering: Rebuilds workloads from known-good infrastructure-as-code; rotates pipeline credentials.
- Legal & Compliance: Assesses regulatory and breach notification obligations; owns external notification decisions.
- Cloud Provider Support / TAM: Engaged for provider-side investigation, log retrieval, or account-level intervention.
4. Initial Actions
-
Immediate Steps:
- Triage the originating alert to validate it represents real compromise
- ๐ RB-TRIAGE-011: Cloud Platform Alert Triage - for cloud-native security alerts
- ๐ RB-TRIAGE-002: EDR Alert Triage - if alert came from EDR on a cloud workload
- ๐ RB-TRIAGE-003: Identity Alert Triage - if alert relates to a workload identity / role
- Identify the cloud account / subscription / project / tenancy impacted
- Identify the specific cloud resources involved (workload IDs, role / policy ARNs, storage buckets, databases)
- Determine whether the activity is currently in progress or historical
- Notify Incident Commander and Cloud Security / Platform Team
Decision Point:
- Active attacker actions in progress โ Proceed immediately to Containment
- Historical activity only โ Continue to Investigation & Analysis
Warning: Do NOT terminate or delete cloud workloads before snapshots are taken - termination destroys volatile evidence (memory, ephemeral disks, network state).
- Triage the originating alert to validate it represents real compromise
5. Investigation & Analysis
-
Evidence Collection:
- Collect cloud control plane logs for the incident window
- Snapshot impacted cloud workloads (instance disks, volumes, container filesystems) before any termination or rebuild
- For impacted workloads, collect host-side telemetry covering the incident window
- For impacted cloud / workload identities, collect identity and authentication telemetry
-
Analysis Steps:
- Reconstruct attacker activity in the cloud control plane (API calls, IAM changes, resource creation, security service tampering) and identify the initial access vector
- Analyse authentication activity for the impacted identities and workload roles
- Review privileged access usage and any privilege escalation paths exercised
- Analyse outbound traffic from impacted workloads (C2, data exfiltration, cryptomining)
- Review cloud storage and SaaS access for data exposure
- Identify any additional cloud / workload identities compromised
Decision Point: Run the post-detection phases (Analysis โ Recovery) of any relevant sibling playbook concurrently alongside this one based on what was observed:
- Compromised user / service / bot account โ execute PB-004: Account Takeover for identity containment and recovery.
- Compromised cloud IAM user, role, service account, workload identity, token, or access key โ execute PB-004: Account Takeover for identity containment and continue this playbook for cloud activity and environment impact.
- Zero-day exploitation โ PB-018: Zero-Day Response
- Malware deployed on a cloud workload โ PB-003: Endpoint Malware Infection
- Ransomware activity observed โ PB-002: Ransomware
- Data exfiltration confirmed โ PB-005: Data Exfiltration
6. Containment, Eradication & Recovery
-
Containment Actions:
- Isolate impacted cloud workloads (apply quarantine security group / NSG, suspend instance, detach from load balancers)
- Revoke compromised cloud credentials, API keys, and instance role sessions
- Lock down compromised cloud identities and remove attacker-created identities, roles, and access keys
- Block outbound destinations used by the attacker (egress rules, firewall, WAF)
- Re-enable any cloud logging / security services the attacker disabled or tampered with
-
Eradication Steps:
- Roll back attacker-created IAM resources (roles, policies, users, access keys, trust relationships)
- Roll back attacker-created infrastructure (instances, security groups, networking, scheduled functions)
- Remove attacker persistence in compute (cron, systemd units, container images, Lambda triggers, scheduled tasks)
- Rotate all credentials and secrets accessible from impacted workloads (instance role credentials, environment variables, secrets manager entries, hardcoded credentials)
- Restrict or rotate any cloud admin credentials used during the incident window
- Patch the vulnerability or misconfiguration that enabled initial access
-
Recovery Steps:
- Rebuild impacted workloads from known-good infrastructure-as-code or images, not in-place clean-up
- Coordinate phased restoration of cloud services and validate before reconnection
- Validate cloud logging, alerting, and security services are fully restored and reporting
- Monitor for reuse of attacker indicators (IPs, ASNs, user agents, tool signatures) across the cloud estate
Warning: Do NOT restore services to production until:
- All attacker-created IAM resources have been removed
- All credentials exposed to the attacker have been rotated
- Cloud logging and security services are confirmed restored
- The initial access vector has been remediated
- No additional compromised cloud identities or workloads have been identified
7. Communication & Escalation
-
Internal Communication:
- Notify Cloud Security / Platform Team immediately on confirmation
- Notify application / workload owners before isolation actions that affect their services
- Notify executive leadership for Sev 1 and Sev 0 incidents
- Page on-call per organisational SOP
-
External Communication:
- Engage Legal and Compliance if regulated data may be exposed
- Engage cloud provider support / TAM for provider-side investigation, log access, or account-level intervention
- Notify customers, regulators, or partners as directed by Legal
-
Escalation Criteria:
Condition Escalate To Compromised cloud IAM user, role, service account, workload identity, token, or access key requires identity containment PB-004: Account Takeover Compromised user / service / bot account identified as initial access vector PB-004: Account Takeover Zero-day exploitation identified as initial access vector PB-018: Zero-Day Response Malware deployed on a cloud workload PB-003: Endpoint Malware Infection Ransomware activity observed PB-002: Ransomware Data exfiltration confirmed PB-005: Data Exfiltration Cloud tenant-wide compromise, cloud admin compromise, or logging infrastructure compromise PB-019: Major Security Incident Management / Executive escalation
8. Post-Incident Activities
-
Lessons Learned:
- Conduct a Post-Incident Review (PIR)
- Document what worked, what didn't, and what needs improvement
- Capture cloud-specific gaps (detection coverage, IAM hygiene, logging retention, IaC drift)
-
Hardening & Documentation Updates:
- Tighten IAM policies, remove unused roles and access keys, enforce least privilege
- Enforce MFA for all human cloud admins and break-glass procedures for non-human roles
- Enable cloud-native security baselines (GuardDuty, Defender for Cloud, GCP SCC, Oracle Cloud Guard) across all accounts / subscriptions / projects / tenancies
- Enforce IMDSv2 (or equivalent) where applicable; restrict workload metadata access
- Ensure cloud logging is centralised, retained, and tamper-resistant
- Update IaC templates and pipelines to prevent recurrence
- Update detection rules, playbooks, runbooks, and KB articles as needed
9. References & Linked Resources
-
Playbooks:
-
Runbooks:
- RB-TRIAGE-002: EDR Alert Triage
- RB-TRIAGE-003: Identity Alert Triage
- RB-TRIAGE-011: Cloud Platform Alert Triage
- RB-EVIDENCE-002: Host-Based Log Acquisition
- RB-EVIDENCE-003: Identity & Authentication Log Acquisition
- RB-EVIDENCE-004: Cloud Control Plane Log Acquisition
- RB-EVIDENCE-005: Cloud Workload Snapshot Acquisition
- RB-ANALYSIS-007: Authentication Log Analysis
- RB-ANALYSIS-009: Privileged Access Assessment
- RB-ANALYSIS-011: Identify Additional Compromised Accounts
- RB-ANALYSIS-018: Outbound Traffic Analysis
- RB-ANALYSIS-020: Cloud Storage / SaaS Review
- RB-ANALYSIS-043: Cloud Control Plane Activity Analysis
- RB-CONTAIN-001: Account Lockdown
- RB-CONTAIN-005: Session & Token Revocation
- RB-CONTAIN-007: Outbound Transfer Blocking
- RB-CONTAIN-015: Cloud Workload Isolation
- RB-RECOVERY-001: Recovery & Restoration Coordination
- RB-RECOVERY-002: Clean System Rebuild
-
SOPs:
10. Appendices
-
Contact List:
- Cloud Security / Platform Team on-call
- Cloud provider account TAM / support
- Identity & Access (IAM) Team
- Legal & Compliance
- Executive escalation chain
-
Templates:
- Incident log template
- Cloud evidence preservation checklist (control plane logs, workload snapshots, identity logs)
-
Process Flowchart:
- Cloud compromise response workflow
Contributor
Jayden Vo GitHub: https://github.com/jayden-vo
Contributed to the Arcana Incident Response Documentation Framework.
