# Cloud defense

> Cloud defense is an open-source agent skill for security. Detect and block cloud post-compromise attacks on AWS, Azure and GCP. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/transilienceai/communitytools/tree/main/skills/cloud-defense
- **Repository:** https://github.com/transilienceai/communitytools
- **GitHub stars:** 641
- **License:** MIT
- **Skill name:** cloud-defense
- **Collection:** https://github.com/transilienceai/communitytools
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill helps a blue-team or cloud engineer work through the post-compromise attack chain in AWS, Azure and GCP: lateral movement, privilege escalation, data exfiltration and defense evasion. For each stage it points to the control-plane log events worth alerting on (CloudTrail, Azure Activity Log, GCP Audit Log) and the preventive control that removes the technique.

The workflow starts by checking that logging prerequisites such as an organization-wide trail, data events and threat detection are enabled, since the detection signals depend on them. The agent then maps each attacker stage to its detection signal and to the hardening control that breaks it, and can re-run the matching offensive technique from the companion cloud-containers skill to confirm that a control holds or an alert fires.

The skill is made of markdown reference files covering detection signals and hardening controls, with no scripts. It expects a cloud account or finding to work from and access to the provider's logging configuration when reviewing posture.

## When your agent uses it

> Detect and break the cloud post-compromise attack chain (AWS / Azure / GCP) — per-stage CloudTrail / Activity-Log / Audit-Log detection signals and the preventive controls that close each step. Use for cloud detection engineering, hardening, remediation write-ups, or blue-team posture review of the lateral-movement -> privilege-escalation -> exfiltration -> evasion chain.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/transilienceai/communitytools/tree/HEAD/skills/cloud-defense)
- [License: MIT](https://github.com/transilienceai/communitytools/tree/HEAD/skills/cloud-defense)

## Features

- **Per-stage detection signals:** Maps each post-compromise stage to the cloud log events that should raise an alert.
- **Preventive controls per stage:** Lists the single control that removes each attacker technique from the chain.
- **Logging prerequisite checks:** Confirms trails, data events and threat detection are on before relying on alerts.
- **Multi-cloud coverage:** Covers CloudTrail, Azure Activity Log and GCP Audit Log signals.
- **Remediation write-ups:** Supports turning an offensive cloud finding into a detection and fix for a report.

## Good for

- Write the remediation section of an AWS pentest report
- Decide which CloudTrail events to alert on for privilege escalation
- Review an Azure subscription's logging against the attack chain
- Harden a GCP project against data exfiltration paths
- Verify that a remediation holds by re-running the matching technique

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/cloud-defense` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cloud-defense &&
cp -R "$tmp/skills/cloud-defense" ~/.claude/skills/cloud-defense &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/cloud-defense` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/cloud-defense` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/cloud-defense &&
cp -R "$tmp/skills/cloud-defense" ~/.agents/skills/cloud-defense &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/cloud-defense` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/cloud-defense` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/cloud-defense &&
cp -R "$tmp/skills/cloud-defense" ~/.cursor/skills/cloud-defense &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/cloud-defense` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/transilienceai/communitytools.git --path skills/cloud-defense
```

Or copy the folder to `~/.gemini/skills/cloud-defense` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/cloud-defense`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cloud-defense &&
cp -R "$tmp/skills/cloud-defense" ~/.copilot/skills/cloud-defense &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/cloud-defense` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/transilienceai/communitytools.git
```

Then copy `communitytools/skills/cloud-defense` into your agent's skills folder as `cloud-defense`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Cloud defense need to run?

It is a set of markdown reference files with no scripts. It works from a cloud account or finding and access to the provider's logging configuration when checking posture.

### Which cloud providers does Cloud defense cover?

AWS, Azure and GCP, using CloudTrail, Azure Activity Log and GCP Audit Log respectively.

### Does Cloud defense change anything in my cloud account?

The skill itself only guides the agent's reasoning and reference lookups; it does not include scripts that modify resources.

### What is the relationship to cloud-containers?

It is the blue-team counterpart to cloud-containers, and its workflow suggests re-running that skill's offensive techniques to test controls.

### How do I install Cloud defense in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/cloud-defense to use it in all your projects, or to .claude/skills/cloud-defense in one project.

### Does Cloud defense run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Cloud defense?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Cloud defense?

The closest alternatives to Cloud defense are Cloud containers, Techstack infra, Google cloud scc remediation, Techstack security and Google cloud scc query.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Cloud containers](https://ai-powered.com/skills/cloud-containers): Cloud containers is an open-source agent skill for security.
- [Techstack infra](https://ai-powered.com/skills/techstack-infra): Techstack infra is an open-source agent skill for security.
- [Google cloud scc remediation](https://ai-powered.com/skills/google-cloud-scc-remediation): Google cloud scc remediation is an open-source agent skill for cloud and infrastructure.
- [Techstack security](https://ai-powered.com/skills/techstack-security): Techstack security is an open-source agent skill for security.
- [Google cloud scc query](https://ai-powered.com/skills/google-cloud-scc-query): Google cloud scc query is an open-source agent skill for cloud and infrastructure.
- [Gha security review](https://ai-powered.com/skills/gha-security-review): Gha security review is an open-source agent skill for security.
- [Google cloud networking observability](https://ai-powered.com/skills/google-cloud-networking-observability): Google cloud networking observability is an open-source agent skill for cloud and infrastructure.
- [Techstack backend](https://ai-powered.com/skills/techstack-backend): Techstack backend is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/cloud-defense
