pentest-cloud

pentest-cloud is a skill for Claude Code from fatihkan/badi. It costs 75 tokens per session (1,328 once invoked), scanned B, original, MIT.

A guide for assessing the security of AWS, Azure, and Google Cloud environments. It examines cloud identities and permissions, public storage, exposed services, movement between accounts, containers, and serverless applications.

In plain words
What is it for?
Use it to review IAM permissions, storage exposure, instance metadata, Azure AD and GCP access, cross-account roles, container escape patterns, and serverless environment leaks.
Why use it?
It helps uncover overly broad access, public data, exposed machine credentials, privilege escalation paths, and ways a breach in one cloud resource could spread to others.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the badi plugin — 81 skills, 86 commands, 30 agents, 7 hooks shipped together

Good fit Use it to review IAM permissions, storage exposure, instance metadata, Azure AD…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fatihkan/badi/pentest-cloud
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 fatihkan/badi --skill pentest-cloud
Clone the repo
git clone --depth 1 https://github.com/fatihkan/badi

Made for: Claude Code.

Or install badi, the plugin that ships this one along with the rest of its 81 skills, 86 commands, 30 agents, 7 hooks.

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 pentest-cloud

README.md
[![agentmods](https://agentmods.dev/badge/skills/fatihkan/badi/pentest-cloud.svg)](https://agentmods.dev/skills/fatihkan/badi/pentest-cloud)
Your own site
<a href="https://agentmods.dev/skills/fatihkan/badi/pentest-cloud"><img src="https://agentmods.dev/badge/skills/fatihkan/badi/pentest-cloud.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,328 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00075 $0.01328
Opus 5 $0.00037 $0.00664
Sonnet 5 $0.00015 $0.00266
Haiku 4.5 $0.00007 $0.00133

Measured today against content hash bc9e9d298141, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade B, and why

pentest-cloud scanned grade B with 2 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 today.

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.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

| EC2 IMDSv1 | `curl http://169.254.169.254/latest/meta-data/iam/security-credentials/` |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| EC2 IMDSv1 | `curl http://169.254.169.254/latest/meta-data/iam/security-credentials/` |
.claude/skills-vault/pentest-cloud/SKILL.md · 156 lines

How it starts

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

pentest-cloud

AWS / Azure / GCP pentest methodology. IAM lateral path, public asset enum, container escape pattern.

Triggers

  • "AWS pentest"
  • "Azure AD test"
  • "GCP IAM enum"
  • "S3 public bucket"
  • "EC2 metadata abuse"
  • "IMDSv2 bypass"
  • "Pacu / ScoutSuite / Prowler usage"

Cloud-Provider Specific

AWS

Attack Surface Test
S3 public read/write aws s3 ls s3://<bucket> --no-sign-request
EC2 IMDSv1 curl http://169.254.169.254/latest/meta-data/iam/security-credentials/
Lambda env leak Lambda invoke + env var dump
IAM privilege esc iam:CreateAccessKey, iam:AttachUserPolicy, sts:AssumeRole
CloudTrail bypass sts:GetSessionToken (logged as user, not source)
Misconfigured IAM * action on * resource
Cross-account roles external Principal "arn:aws:iam::OTHER:root"
Resource policy S3 bucket policy with "Principal": "*"
SSM RunCommand EC2 to OS via SSM session manager

Azure

Attack Surface Test
Anonymous storage container https://<acc>.blob.core.windows.net/<container>?restype=container&comp=list
Azure AD enumeration UserList API anonymous
Service Principal abuse Excessive RBAC role assignment
Managed Identity VM -> token endpoint -> assume role
Azure DevOps PAT Repo scan for PAT in code
Key Vault RBAC misconfig, public access

GCP

Attack Surface Test
GCS public bucket gsutil ls gs://<bucket> (no auth)
Compute metadata curl http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token -H "Metadata-Flavor: Google"
IAM lateral iam.serviceAccounts.actAs, iam.roles.update
GKE container RBAC misconfig + IMDS reach
# QUIET — AWS misconfig audit (read-only IAM)
prowler aws --profile <profile> --severity high,critical

# QUIET — ScoutSuite multi-cloud audit
scout aws --profile <profile> --report-dir ./scout-report

# MODERATE — Pacu enumeration (Pacu CLI)
# Pacu is tied to its db; --modules for specific recon

# MODERATE — Azure recon
roadtools roadrecon auth --device-code
roadtools roadrecon gather

# MODERATE — GCP enum (enumerates the whole project, careful)
gcloud projects list
gcloud iam service-accounts list --project=<project>

Read the full file on GitHub · 156 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. today First seen · 156 lines · 75 tokens per session scan B bc9e9d298141

Subscribe to this mod's changes

pentest-cloud is a skill published in the GitHub repository fatihkan/badi (7 stars, last pushed yesterday), licensed MIT. It adds 75 tokens to every session and 1,328 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 2 findings (cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

Other skills, from other repositories

eval-agents

Audit Claude Code agents defined in .claude/agents/ for description specificity, model tier appropriateness, tools scoping, and system prompt quality. Detects dispatch ambiguity between agents, flags over-permissive tool grants, and checks for human-in-the-loop patterns that break programmatic orchestration. Use when…

FlorianBruniaux/claude-code-plugins · 93 tokens

issue-triage

3-phase issue backlog management with audit, deep analysis, and validated triage actions. Use when triaging GitHub issues, sorting bug reports, cleaning up stale tickets, or detecting duplicate issues. Args: 'all' to analyze all, issue numbers to focus (e.g. '42 57'), 'en'/'fr' for language, no arg = audit only.

FlorianBruniaux/claude-code-plugins · 81 tokens

git-ai-archaeology

Analyze AI config evolution in a git repo. Use when mapping AI adoption history, finding when configs were first introduced, charting commit velocity by month, or identifying maturity phases in a project's AI tooling.

FlorianBruniaux/claude-code-plugins · 47 tokens

landing-page-generator

Generate complete, deploy-ready landing pages from any repository. Use when creating a homepage for an open-source project, building a project website, converting a README into a marketing page, or standardizing landing pages across multiple repos.

FlorianBruniaux/claude-code-plugins · 48 tokens

review-pr

Perform a comprehensive code review of a pull request.

FlorianBruniaux/claude-code-plugins · 12 tokens

release-notes

Generate release notes in multiple formats from git commits.

FlorianBruniaux/claude-code-plugins · 13 tokens