cloud-security

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

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/tmj-90/gaffer/cloud-security
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.

Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,023 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 $0.00068 $0.01023
Opus 5 $0.00034 $0.00511
Sonnet 5 $0.00014 $0.00205
Haiku 4.5 $0.00007 $0.00102

Measured 2d ago against content hash 0db6c8907c7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 79 lines

How it starts

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

Assess cloud posture before attackers do

Cloud misconfigurations are the most common initial-access vector. Find them in review, not in an incident.

The four critical categories

Category Most common mistake Check
IAM Privilege escalation via PassRole + AssumeRole + wildcard policies No * on Action without explicit justification; no inline policies
Storage Public S3 / GCS / Azure Blob Block Public Access enabled; no * principal in bucket policies
Network 0.0.0.0/0 ingress on admin ports No open 22/3389 to internet; VPC peering limited to known CIDRs
IaC Secrets in .tf/.yml No hardcoded credentials; no var with default that contains a secret

IAM analysis

Work the privilege-escalation graph:

  1. What actions does this principal have?
  2. Can it iam:PassRole to a more-privileged role?
  3. Can it sts:AssumeRole on a wildcard or overly-permissive trust policy?
  4. Does it have * on resource for any action?

Principle of least privilege: every principal has only the permissions it needs to perform its function, nothing more.

S3 / storage

  • BlockPublicAcls: true, BlockPublicPolicy: true, IgnorePublicAcls: true, RestrictPublicBuckets: true — all four on every bucket unless public hosting is the explicit purpose.
  • Bucket policy principal "*" (unauthenticated) is a BLOCK finding unless the bucket is a public CDN origin.
  • Server-side encryption (SSE-S3 minimum; SSE-KMS preferred for sensitive data).
  • Access logging enabled for compliance buckets.

Network / security groups

  • No inbound 0.0.0.0/0 or ::/0 on ports 22 (SSH), 3389 (RDP), 5432 (Postgres), 3306 (MySQL), 27017 (MongoDB).
  • Egress rules: restrict to known destinations where possible — a blanket 0.0.0.0/0 egress allows C2.
  • VPC flow logs enabled for forensic capability.

IaC security review

  • No credentials in .tf, .yml, or .json committed to version control.
  • Provider credentials from environment or secrets manager, not hardcoded.
  • Run tfsec/checkov/kics in CI; block on HIGH/CRITICAL.

Read the full file on GitHub · 79 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. 2d 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 (2 stars, last pushed 8d ago), licensed Apache-2.0. It adds 68 tokens to every session and 1,023 once invoked, about $0.0003 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-31.