cloud-lateral

A cloud security guide for authorized testing across AWS, Azure, and Google Cloud. Cloud services use accounts, roles, and permissions to control access instead of relying mainly on network boundaries.

In plain words
What is it for?
Use it for cloud penetration tests involving services such as virtual machines, storage, serverless functions, identity systems, audit logs, and secret stores.
Why use it?
It provides an organized way to examine how an attacker could move between cloud resources or gain higher permissions after an initial foothold.

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/ogrodev/fsociety/cloud-lateral
Any agent
npx skills add ogrodev/fsociety --skill cloud-lateral
Clone the repo
git clone --depth 1 https://github.com/ogrodev/fsociety

Made for: Claude Code, Codex.

Per session 374 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,120 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 4 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.00374 $0.04120
Opus 5 $0.00187 $0.02060
Sonnet 5 $0.00075 $0.00824
Haiku 4.5 $0.00037 $0.00412

Measured 2d ago against content hash fde4a0cbae0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade D, and why

cloud-lateral scanned grade D with 4 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.

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

3. **Container escape -> node creds -> cluster admin -> secrets**: Break out of container, access node IMDS, escalate to cluster admin, dump all secrets

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

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

terraform state, cloud credentials file, .aws/credentials, gcloud auth,

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

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

IMDS, metadata service, 169.254.169.254, metadata.google.internal,

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.

curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/
elliot/skills/cloud-lateral/SKILL.md · 342 lines

How it starts

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

Cloud Lateral Movement

Cloud environments expose a fundamentally different attack surface from traditional networks. Identity IS the network -- IAM policies, service accounts, and managed identities replace firewalls and VLANs. A single misconfigured permission can grant access to every resource in an organization. This skill covers the full cloud attack lifecycle across AWS, Azure, and GCP for authorized penetration testing.

Attack Lifecycle

Follow this sequence. Each phase feeds the next -- credential harvesting enables escalation, escalation enables lateral movement, lateral movement discovers new targets.

Initial Access --> Credential Harvesting --> Permission Enumeration --> Privilege Escalation
     |                                                                        |
     v                                                                        v
Data Exfiltration <-- Persistence <-- Lateral Movement <-- Service Abuse

Phase 1 -- Initial Access and Cloud Fingerprinting

Before attacking, determine the cloud provider, account structure, and available attack surface.

Cloud provider indicators:

  • AWS: amazonaws.com domains, X-Amz-* headers, arn:aws: patterns, .aws/credentials, 169.254.169.254 IMDS
  • Azure: azure.com/windows.net/core.windows.net domains, X-Ms-* headers, Entra ID endpoints, 169.254.169.254 with Metadata: true
  • GCP: googleapis.com domains, metadata.google.internal, service account JSON files, X-Goog-* headers

Log detected cloud info immediately:

node "${CLAUDE_PLUGIN_ROOT}/scripts/target-intel.js" add "<target>" "tech-stack" "cloud-provider" "<aws|azure|gcp>" --source scan
node "${CLAUDE_PLUGIN_ROOT}/scripts/target-intel.js" add "<target>" "tech-stack" "cloud-account-id" "<account/subscription/project>" --source scan

Common initial access vectors:

  1. SSRF to metadata service (most common cloud-specific vector)
  2. Exposed credentials in repos, environment variables, CI/CD pipelines
  3. Misconfigured storage buckets (public S3/Blob/GCS)
  4. Compromised web application running on cloud compute
  5. Leaked AWS keys in GitHub, terraform state, Docker images
  6. Cloud-init / user-data containing plaintext secrets

Read the full file on GitHub · 342 lines

Files

What ships with it

7 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. 2d ago First seen · 342 lines · 374 tokens per session scan D fde4a0cbae0c

Subscribe to this mod's changes

cloud-lateral is a skill published in the GitHub repository ogrodev/fsociety (20 stars, last pushed 5mo ago), licensed MIT. It adds 374 tokens to every session and 4,120 once invoked, about $0.0019 per session on Opus 5. A static security scan graded it D with 4 findings (harvests environment variables, reaches for credential files, cloud metadata endpoint). 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

cloud-security

Use when attacking AWS/Azure/GCP cloud — IAM/identity privilege escalation, IMDS/metadata SSRF, Entra device-code & PRT theft, GCP impersonation chains, Kubernetes/container escape, IaC/CI-CD federation abuse.

hypnguyen1209/offensive-claude · 52 tokens

pwnote-engagement-file

Create or validate a pwnote engagement import/export JSON file. Use when the user wants to generate, edit, or verify a pwnote engagement file for data transfer between pwnote instances. The file bundles an entire pentest engagement — metadata, notebook documents, code/host/credential blocks, findings with…

Pwnote/skills · 113 tokens

pwnote-cve-research

Use whenever the user is doing vulnerability research aimed at a CVE/advisory — tracking a responsible disclosure timeline, drafting a vendor notification, requesting a CVE ID from MITRE or a CNA, writing a public security advisory, or mapping a finding to a CWE. Trigger on "CVE", "CNA", "MITRE", "advisory"…

Pwnote/skills · 107 tokens

pwnote-offsec-osai

Use whenever the user is working on Offsec's OSAI / AI Red Teaming certification track, or on AI/LLM/agentic security engagements generally — prompt injection findings, tool-use abuse, agent trajectory documentation, or writing up AI-specific security findings that don't map cleanly to traditional CVSS. Trigger on…

Pwnote/skills · 108 tokens

pwnote-offsec-web300

Use whenever the user is working on Offsec's WEB-300 course/OSWE — whitebox source code review methodology, exploit chain documentation, PoC scripting, or OSWE exam report writing. Trigger on "OSWE", "WEB-300", "whitebox", "source code review" in a pentest context, or "exploit chain", even without the word "skill".

Pwnote/skills · 87 tokens

pwnote-hackthebox

Use whenever the user is working a HackTheBox (HTB) machine or challenge — structuring recon/foothold/privesc notes, building an enumeration checklist, tracking a multi-hop attack path, or writing a writeup (respecting HTB's retirement rules before publishing). Trigger on "HTB", "HackTheBox box", "pwn this machine"…

Pwnote/skills · 97 tokens