cloud-defense

cloud-defense is a skill for Claude Code from transilienceai/communitytools. It costs 82 tokens per session (404 once invoked), scanned A, original, MIT.

A cloud-defense guide for AWS, Azure, and Google Cloud that connects attacker actions with the log events that reveal them and the controls that prevent them.

In plain words
What is it for?
It helps design detections, review cloud security posture, write remediation plans, apply preventive controls, and retest whether an attack is blocked or detected.
Why use it?
It turns a cloud penetration-test finding into specific monitoring and hardening work. It also checks whether the required audit logs are enabled before relying on alerts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the communitytools plugin — 48 skills, 5 commands, 9 agents, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/transilienceai/communitytools/cloud-defense
Any agent
npx skills add transilienceai/communitytools --skill cloud-defense
Clone the repo
git clone --depth 1 https://github.com/transilienceai/communitytools

Made for: Claude Code.

Or install communitytools, the plugin that ships this one along with the rest of its 48 skills, 5 commands, 9 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloud-defense

README.md
[![agentmods](https://agentmods.dev/badge/skills/transilienceai/communitytools/cloud-defense.svg)](https://agentmods.dev/skills/transilienceai/communitytools/cloud-defense)
Your own site
<a href="https://agentmods.dev/skills/transilienceai/communitytools/cloud-defense"><img src="https://agentmods.dev/badge/skills/transilienceai/communitytools/cloud-defense.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 404 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.00404
Opus 5 $0.00041 $0.00202
Sonnet 5 $0.00016 $0.00081
Haiku 4.5 $0.00008 $0.00040

Measured 6d ago against content hash 5d9ebdece9d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cloud-defense scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cloud-defense/SKILL.md · 28 lines

What it actually says

Cloud Defense

The blue-team counterpart to cloud-containers. For each attacker move — lateral movement, privilege escalation, data exfiltration, defense evasion — this skill gives the log event to alert on and the single control that removes the technique. Use it to turn an offensive cloud finding into a concrete detection and remediation.

When to use

  • Writing the remediation / hardening section of a cloud pentest report.
  • Cloud detection engineering: deciding which control-plane events to alert on.
  • Reviewing an AWS / Azure / GCP account's posture against the post-compromise chain.

Workflow

  1. Confirm the logging prerequisites are in place (org-wide trail, data events, threat detection on) — without them the signals below are invisible.
  2. Map each attacker stage to its detection signal — see reference/detection-signals.md.
  3. Apply the preventive control that breaks each stage — see reference/hardening-controls.md.
  4. Re-run the matching offensive technique from cloud-containers to confirm the control holds or the alert fires.

References

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 28 lines · 82 tokens per session scan A 5d9ebdece9d7

Subscribe to this mod's changes

cloud-defense is a skill published in the GitHub repository transilienceai/communitytools (510 stars, last pushed 1mo ago), licensed MIT. It adds 82 tokens to every session and 404 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

omv-critic

Performs adversarial pre-submission review of an Evidence.v1 finding plus optional ThreatMap.v1 and Verification.v1 sidecars. Use before /omv-report when the user wants likely CNA rejection reasons, report argument quality review, a rejectrisk rating, or a recommendation of which researchergoal (VulDB, CVE, GHSA…

bx33661/oh-my-vul · 83 tokens

sast-danger-mapper

Maps dangerous operations in a source file: memory ops, type casts, arithmetic near trust boundaries, free/dealloc patterns. Pattern matching task — list what you see, don't speculate. Use via /sast command.

H-mmer/pentest-agents · 49 tokens

sast-devils-advocate

Adversarial validator for SAST findings. Your ONLY job is to DISPROVE the candidate. Find every reason it's not exploitable. If you can't disprove it, it survives. Use via /sast command.

H-mmer/pentest-agents · 53 tokens

sast

Source code vulnerability hunting (SAST). Decomposes analysis into specialized passes: map entry points, map dangerous ops, trace flows, find gaps, adversarial validation, exploit. Usage: /sast [--lang c|cpp|rust|java|python|go|php] [--min-score 4] [--max-files 30] [--skip-static] [--best-of N].

H-mmer/pentest-agents · 90 tokens

sast

Source code vulnerability hunting (SAST). Decomposes analysis into specialized passes: map entry points, map dangerous ops, trace flows, find gaps, adversarial validation, exploit. Usage: /sast [--lang c|cpp|rust|java|python|go|php] [--min-score 4] [--max-files 30] [--skip-static] [--best-of N].

H-mmer/pentest-agents · 90 tokens

sast-entry-mapper

Maps entry points where untrusted data enters a source file. Lists every function that receives external input with data type, size constraints, and initial validation. Use via /sast command.

H-mmer/pentest-agents · 43 tokens