Skip to content
Skill

Cloud defense

Detect and block cloud post-compromise attacks on AWS, Azure and GCP

Cloud defense is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
641
Last commit
License
MIT
Listing updated

Similar skills

About Cloud defense

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (7 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Cloud defense 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.

More from transilienceai/communitytools

  1. Guides an agent through authorized OWASP LLM Top 10 security tests of AI applications

    • Open source
    • 641 GitHub stars
    • Security
  2. Guides an agent through security testing of REST, GraphQL, WebSocket and LLM APIs

    • Open source
    • 641 GitHub stars
    • Security
  3. Chains confirmed single-asset findings into multi-hop attack paths across an organization

    • Open source
    • 641 GitHub stars
    • Security
  4. Guides an agent through authentication security testing: JWT, OAuth, 2FA, SAML and CAPTCHA

    • Open source
    • 641 GitHub stars
    • Security
  5. Guides an agent through Solidity smart contract security testing and blockchain CTF

    • Open source
    • 641 GitHub stars
    • Security