ArcanaIncident-response documentationBrowse the feedTemplates
Back to feed
Playbook
PB-007

Cloud Compromise

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:

SeverityDescription
Sev 3Confirmed compromise of a single non-production cloud workload, no data or control plane impact
Sev 2Confirmed compromise of a production cloud workload, or unauthorised cloud control plane activity with limited scope
Sev 1Compromise of a privileged cloud role, multiple cloud workloads, or cloud storage containing sensitive data
Sev 0Cloud 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
    • 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).

5. Investigation & Analysis

6. Containment, Eradication & Recovery

  • Containment Actions:

  • 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

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

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.