cloud-security

cloud-security is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 77 tokens per session (2,009 once invoked), scanned A, original, Apache-2.0.

A checklist and analysis workflow for finding security weaknesses in AWS, Azure, and Google Cloud infrastructure. Cloud infrastructure is the online services and permissions that run an application.

In plain words
What is it for?
Use it to review identity permissions, storage access, network rules, and infrastructure-as-code files for misconfigurations and escalation paths.
Why use it?
Overly broad permissions, public storage, open network ports, and exposed secrets can give attackers an easy entry point.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review identity permissions, storage access, network rules, and infrastructure-as-code files for misconfigurations and escalation paths.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/cloud-security
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.

Any agent
npx skills add tmj-90/gaffer --skill cloud-security
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

Made for: Claude Code, Codex.

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-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/cloud-security/github.svg)](https://agentmods.dev/skills/tmj-90/gaffer/cloud-security)
Your own site
<a href="https://agentmods.dev/skills/tmj-90/gaffer/cloud-security"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/cloud-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cloud-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/cloud-security"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/cloud-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,009 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00077 $0.02009
Opus 5.5 $0.00031 $0.00804
Sonnet 5.5 $0.00015 $0.00402
Haiku 4.5 $0.00008 $0.00201

Measured 1mo ago against content hash dd111af78405, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloud-security 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 1mo 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.

runner/skills/cloud-security/SKILL.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Assess and harden cloud posture in code

Misconfiguration, not zero-days, is how most cloud breaches start: a public bucket, a wildcard role, SSH open to the internet, or credentials in state. You work in a git worktree and must not touch real cloud accounts, so the unit of work is the infrastructure code in the repo. The host may still hold ambient credentials (~/.aws, gcloud, kubeconfig) that Terraform or a cloud CLI would pick up silently, which is why the commands below are limited to offline ones. Scan the IaC, walk the checklist, fix or report, and prove the fix with an offline check. Baselines: the AWS Well-Architected Security Pillar (identity, detection, infrastructure protection, data protection), CIS Foundations Benchmarks for AWS, Azure and GCP, and the OWASP IaC Security and Secure Cloud Architecture Cheat Sheets. Terraform style belongs to the terraform-patterns skill, an active cloud compromise to the incident-response skill, and behavioural anomalies to the threat-detection skill.

Procedure

  1. Scope. Find the branch base: run git merge-base HEAD origin/HEAD (or <default_branch>) and paste the printed SHA as $BASE (the safety hook blocks $(…)). List the infrastructure files the ticket touches: git diff --name-only "$BASE"...HEAD -- '*.tf' '*.tfvars' '*.hcl' '*.yaml' '*.yml' '*.json' '*.bicep'. For an assessment ticket, list all IaC with git ls-files. Call search_lore for approved exceptions, compliance targets (SOC 2, PCI DSS, HIPAA) and the account or landing-zone baseline.
  2. Run whatever offline scanners already exist. Never install one.
    • terraform fmt -check -recursive. Run terraform validate only in a root module that is already initialised (.terraform/ exists and .gitignore covers it). Never run terraform init: it downloads providers and modules (remote module sources use the host's ambient credentials) and rewrites .terraform.lock.hcl. If validate cannot run, say so in evidence.
    • checkov -d <dir> --compact --quiet.
    • trivy config <dir>. Trivy replaces tfsec; use tfsec only if the repo still pins it.
    • kics scan -p <dir>.
    • conftest test if the repo has OPA or Rego policies.
    • Not terraform test: the factory's safety hook refuses it in an agent session, because it cannot tell a mocked run from one that calls the cloud (the default command = apply creates real resources). Say in evidence that it was not run here and must run in CI or by a human. Record which scanners ran. If none is available, say so; the manual checklist below then is the evidence. Never run terraform plan, apply or destroy, or any cloud CLI.
  3. Walk the checklist against every touched resource (next section). Write "ok" or a finding with file, line and fix.
  4. Fix in code, the least-privilege way. Replace a wildcard with the specific actions and ARNs. Add the missing block rather than suppressing the check. A suppression (#checkov:skip=CKV_AWS_20:reason, #trivy:ignore:…) is allowed only when the finding is a genuine documented exception, such as a public CDN origin. The reason goes inline, and you raise a request_decision if no exception is recorded in lore.
  5. Prove it. Re-run the same scanners and show the finding gone. Where the repo has conftest or mocked terraform test files, add an assertion for the fixed property, for example Block Public Access true or http_tokens == "required", so it cannot regress. Run conftest here; a new terraform test assertion runs in CI (the hook refuses it).
  6. Classify and evidence. Use the security-review skill severities.
    • Blocking: exploitable now, for example public data, admin ports open to the internet, a privilege-escalation path, or a plaintext secret.
    • Should-fix: risk without a compensating control.
    • Note: hardening. Record scanner output and findings through the record-evidence skill, then stop.

Read the full file on GitHub · 141 lines

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. 1mo ago Changed · +1 lines dd111af78405
  2. 2mo ago Changed · +61 lines · +9 tokens per session cc255af96434
  3. 3mo ago First seen · 79 lines · 68 tokens per session scan A 0db6c8907c7a

Subscribe to this mod's changes

cloud-security is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 77 tokens to every session and 2,009 once invoked, about $0.0003 per session on Opus 5.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-31.

Related

cloud-security compared with skills from other repositories

cloud-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cloud-securitytmj-90/gafferSkill14d agoApache-2.0A77Claude Code, Codex
bulwark-brainstormQBall-Inc/the-bulwarkSkill9yesterdayMITA50Claude Code
plan-creationQBall-Inc/the-bulwarkSkill9yesterdayMITA38Claude Code
anthropic-validatorQBall-Inc/the-bulwarkSkill9yesterdayMITA40Claude Code
create-subagentQBall-Inc/the-bulwarkSkill9yesterdayMITA42Claude Code
test-auditQBall-Inc/the-bulwarkSkill9yesterdayMITA0Claude Code
code-reviewQBall-Inc/the-bulwarkSkill9yesterdayMITA61Claude Code