agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/cloud-security/cloud-incident-response/SKILL.md

cloud-incident-response

Skill0 starsChanged 11 days agoMITView on GitHub

Lead incident response in AWS, Azure or GCP — preserve control-plane and data-plane logs, identify compromised identities and resources, contain via identity and network controls, collect forensic snapshots, and recover — with provider-specific commands. Use when a cloud account, subscription, tenant or project is compromised or a cloud workload is breached.

The file

Files
SKILL.md

Cloud Incident Response

Phases mapped to providers

StepAWSAzureGCP
Control-plane logsCloudTrail (all regions), Organization trailActivity Log, Entra ID sign-in/audit logsCloud Audit Logs (Admin Activity, Data Access)
Data-plane logsS3 data events, VPC Flow Logs, Route 53 ResolverStorage logs, NSG/VNet flow logs, Key Vault logsData Access logs, VPC Flow Logs, Cloud DNS
Threat detectionGuardDuty, Security Hub, DetectiveDefender for Cloud, SentinelSecurity Command Center
Contain identityDeactivate keys, revoke sessions (aws-credential-compromise)Disable user, Revoke-MgUserSignInSession, remove role assignmentsDisable SA/keys, remove IAM bindings, revoke OAuth tokens
Contain networkIsolation security group, NACLNSG deny-all on NICFirewall rule deny / remove external IP
Forensic copyEBS snapshot → forensic accountManaged disk snapshot → forensic subscriptionPD snapshot → forensic project

Workflow

  1. Preserve first: export relevant logs before retention windows expire (CloudTrail Event history 90 days; Azure Activity Log 90 days by default; Entra sign-in logs 7–30 days depending on licence unless exported).
  2. Identify the initial principal and trace every identity it created or assumed (role chains, service principals, service accounts, federated trusts).
  3. Inventory attacker changes: new identities/keys, policy changes, compute launched (check all regions), network changes, data shares (snapshots/images shared to external accounts), logging tampering.
  4. Contain in a coordinated window (containment-plan), prioritizing identity: rotate/revoke, then remove persistence.
  5. Forensics on workloads: snapshot disks, memory capture where feasible, isolate rather than terminate.
  6. Recover: redeploy from IaC, rotate secrets, re-enable logging and guardrails, monitor for re-entry.
  7. Report: timeline, data accessed, root cause (leaked keys, misconfig, SSRF, phished admin).

Cloud-specific pitfalls

  • Terminating instances destroys evidence (instance store, memory).
  • Attacker-created identities in other accounts/tenants via trust relationships.
  • Billing anomalies (cryptomining) often first signal — check all regions.
  • Provider may also need a support case (account restrictions, abuse notices).

Related skills

aws-credential-compromise, entra-signin-investigation, gcp-audit-log-investigation, forensic-imaging, cloud-logging-baseline

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.