Skip to content

Guide · Agent skill

How to use the Cloud Incident Response agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The conducting-cloud-incident-response skill gives an AI agent a structured playbook for responding to security incidents in AWS, Azure and GCP. It covers identity-based containment, cloud log triage (CloudTrail, Azure Activity Logs, GCP Audit Logs), resource isolation and evidence preservation. This guide is for security engineers and cloud admins who want to install the skill, ask for help with a cloud incident, and understand what it will and will not do.

Cloud Incident Responsemukul975/Anthropic-Cybersecurity-Skills · Apache-2.0

Quick start

  1. 1Download and unzip the skill. Download the ZIP from this page and unzip it so the folder contains SKILL.md, scripts/agent.py and references/api-reference.md.
  2. 2Place it in the right folder. Move the folder to ~/.claude/skills/ for personal use or to .claude/skills/ inside a project. Alternatively, upload it under Settings → Capabilities → Skills in the Claude apps.
  3. 3Check your prerequisites. Confirm Python 3 and the AWS CLI are available for AWS work, and Azure PowerShell with the AzureAD and Az modules for Azure work.
  4. 4Describe the incident in plain language. Mention the provider, the suspicious event, the identity involved and the time window in a single request.
  5. 5Review the triage and evidence plan. Ask the agent to list suspicious events and the evidence to preserve before any change is made.
  6. 6Review each containment command. Check every identifier and its scope before running an IAM or network change, especially in production.
  7. 7Plan eradication and hardening. After containment, use the recovery and hardening sections to rotate credentials, restore policies and re-enable security controls.

What the skill makes the agent do

An agent skill is a folder of instructions (a SKILL.md file, plus any reference files and scripts) that Claude loads when your request matches the skill's description. This one is written for cloud incidents such as compromised credentials, unauthorized IAM changes, or a breach that spans cloud services.

When active, the agent follows a six-step workflow: detect and confirm the incident, contain the compromised identity, preserve evidence, investigate cloud-specific attack patterns, eradicate and recover, and harden the environment afterwards. Containment is treated mainly as an identity operation, and evidence is collected before ephemeral resources are terminated or logs rotate.

  • Lists provider-specific indicators to look for in CloudTrail, Azure Activity Logs and GCP Audit Logs
  • Gives AWS CLI and Azure PowerShell containment commands for keys, sessions, roles and instances
  • Lists evidence to export for each provider, such as CloudTrail events, disk snapshots and VPC or NSG flow logs
  • Includes a Python helper, scripts/agent.py, that can run AWS CLI commands to disable an access key, attach a deny-all policy and isolate an instance

Install the skill from the ZIP or the Claude apps

Download the skill ZIP from this page and unzip it. For a personal install, place the folder in ~/.claude/skills/. For a single project, place it in that project's .claude/skills/ folder. The skill folder should contain SKILL.md, scripts/agent.py and references/api-reference.md.

If you use the Claude apps, you can instead upload the skill under Settings → Capabilities → Skills.

Trigger the skill with a natural request

You do not need a special command. Describe the situation in plain language and mention the cloud provider. The skill is designed to load when your request involves CSPM alerts, suspicious audit log entries, compromised cloud credentials, unauthorized IAM changes or a cloud-hosted breach.

Include the facts you have, such as the account, the user or role name, the suspicious event and the time window. The agent works better with specifics.

  • "Our CSPM flagged a new access key on the svc-reporting IAM user in AWS. Help me triage it and contain it."
  • "Azure Activity Log shows a new Owner role assignment on subscription prod-east. Walk me through the IR steps."
  • "Someone created a service account key in our GCP project last night. What should I check in Cloud Audit Logs?"
  • "Build a list of evidence to preserve from a compromised EC2 instance before we terminate it."

Know what it needs before you start

The skill itself assumes you have cloud-native logging enabled and privileged credentials. Only use the commands if you can act on the provider accounts involved. The helper script needs Python 3 and the AWS CLI for AWS actions. Azure commands use Azure PowerShell with the AzureAD and Az modules. The api-reference lists requests (>=2.28) as a Python dependency and AWS CLI (>=2.0).

  • Python 3 for scripts/agent.py
  • AWS CLI for AWS commands
  • Azure PowerShell (AzureAD and Az modules) for Azure commands
  • Cloud logging: CloudTrail, Azure Activity and Sign-in Logs, GCP Cloud Audit Logs
  • Privileged cloud credentials to act on the incident

Safety notes on scripts and network access

This skill runs scripts and uses the network. The helper script calls the AWS CLI, and the commands change IAM permissions and network isolation. They can lock out legitimate users or break services if you run them without checking identifiers and scope. Review every identifier (user name, access key ID, instance ID, security group) before you run anything, and ideally test in a non-production account first.

The skill's own scope note says that purely on-premises incidents should use standard IR procedures instead.

  • Check each identifier against your inventory before running a command
  • Confirm the forensic security group and isolation rules first
  • Preserve evidence before you terminate or delete anything
  • Do not run unreviewed commands during a live production incident
python agent.py --incident-id INC-2025-001 --username compromised-user --access-key-id AKIA... --instance-id i-0abc123 --output report.json

Tips for getting useful results

Ask the agent to work through one provider at a time and to show you each command before running it. Give it the time window of the suspicious activity so it can focus its log review. Ask for an evidence checklist before any destructive step.

Because the playbook covers ephemeral infrastructure, ask early about snapshots and log exports, since data can disappear when resources are terminated.

  • Name the provider and account or subscription involved
  • Provide a time window for log searches
  • Ask for the evidence list before containment removes access
  • Ask for a post-incident hardening checklist once the incident is closed

What people use it for

  • Triaging a CSPM alert about a new IAM access key in an AWS account
  • Reviewing Azure Activity Log events for unexpected Owner or Contributor role assignments
  • Checking GCP Audit Logs for SetIamPolicy changes or new service account keys
  • Building an evidence list for a compromised VM before it is terminated
  • Drafting a post-incident hardening checklist for MFA, logging and least-privilege IAM

Frequently asked questions

How do I install the cloud incident response agent skill?

Download the ZIP from this page and unzip it. Place the folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder. You can also upload it in the Claude apps under Settings → Capabilities → Skills.

What do I need to run this skill?

You need cloud-native logging (CloudTrail, Azure Activity and Sign-in Logs, GCP Cloud Audit Logs) and privileged cloud credentials. Python 3 runs the helper script, the AWS CLI handles AWS commands, and Azure PowerShell with the AzureAD and Az modules handles Azure commands.

Is the cloud incident response skill free?

The source material this page is based on lists the skill under the Apache-2.0 licence. It does not state pricing, so check the repository's licence file for the terms that apply to you.

Can the agent take actions in my cloud account by itself?

The included helper script can run AWS CLI commands to disable access keys, attach a deny-all policy and isolate instances. These commands change IAM permissions, so review every identifier and scope before running them.

Does this skill work for on-premises incidents?

No. The skill says it is for incidents with a cloud component and that purely on-premises incidents should use standard enterprise incident response procedures.

How does this compare with a generic incident response checklist?

This skill is specific to cloud identity containment and provider logs such as CloudTrail, Azure Activity Logs and GCP Audit Logs, and it addresses ephemeral infrastructure. A general checklist does not name these log sources or provider-specific commands.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill suits security engineers and cloud admins who are responding to a suspected credential or account compromise and want a provider-by-provider checklist. It is a poor fit for people without privileged cloud access, for on-premises-only incidents, or for anyone who wants to run its commands unreviewed in a live production environment.

Download the skill