cloud-native-security-offensive

cloud-native-security-offensive is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 84 tokens per session (1,590 once invoked), scanned B, original, MIT.

An educational guide to cloud attack paths involving access permissions, server metadata services, storage, and serverless systems. It explains how cloud configuration mistakes can let an attacker gain more access.

In plain words
What is it for?
Use it to study cloud privilege escalation, metadata-service abuse, storage exposure, and serverless attack scenarios in AWS or Azure environments.
Why use it?
It helps developers understand how weaknesses in cloud identity and configuration can lead to wider compromise. The examples are intended for defensive learning and testing.

Skill for Claude CodeCodex

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

Good fit Use it to study cloud privilege escalation, metadata-service abuse, storage exposure, and serverless attack scenarios in AWS or Azure environments.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/cloud-security-offensive/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/cloud-security-offensive)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/cloud-security-offensive"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/cloud-security-offensive/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-native-security-offensive

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/cloud-security-offensive"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/cloud-security-offensive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,590 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00084 $0.01590
Opus 5.5 $0.00034 $0.00636
Sonnet 5.5 $0.00017 $0.00318
Haiku 4.5 $0.00008 $0.00159

Measured 16d ago against content hash 00bc2fe73f27, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

cloud-native-security-offensive scanned grade B with 1 finding 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 16d 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.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

- Endpoint `169.254.169.254` serves temporary credentials for the attached role.

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

skills/cloud-native/cloud-security-offensive/SKILL.md · 99 lines

How it starts

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

Cloud Attack Paths (Defensive Threat Modeling)

Purpose

Help defenders and authorized assessors understand how cloud misconfigurations chain into account compromise, so they can find and close those paths first. Scope is explanation, attack-path review of the user's own environment, and remediation — not weaponized tooling against third parties.

Agent Protocol

Trigger

"privilege escalation paths", "cloud attack path", "IMDS SSRF", "iam:PassRole", "managed identity abuse", "cloud threat model", "red team review of our cloud".

Input Context

  • Confirmation the environment is the user's own or in an authorized engagement scope.
  • IAM policies/role graph, compute types (EC2, Lambda, AKS/EKS/GKE), exposed apps.

Output Artifact

Attack-path table with detection and fix for each edge. No file unless requested.

Response Format

Path: {start principal} -> {permission/misconfig} -> {gained privilege}
Preconditions: {...}
Detection: {log event / finding}
Remediation: {policy change, condition key, SCP}

Completion Criteria

  • Every path lists a detection and a remediation.
  • No step-by-step exploitation against targets outside the user's authorization.

Core Model

In cloud, an attacker's goal is credentials for a more privileged principal. Edges in the graph are IAM permissions that let one principal obtain, create, or modify credentials or policies of another. Tools such as PMapper (AWS) and BloodHound/AzureHound (Entra ID) model this graph for defenders.

AWS Privilege-Escalation Edges

Permission(s) held Why it escalates Remediation
iam:PassRole + ec2:RunInstances Launch an instance with a more privileged instance profile, then use its role credentials Scope iam:PassRole Resource to specific role ARNs and use the iam:PassedToService condition
iam:PassRole + lambda:CreateFunction + lambda:InvokeFunction Function runs with the passed role Same; restrict which roles Lambda may receive
iam:CreatePolicyVersion (with set-as-default) Replace a policy attached to yourself with *:* Never grant on policies attached to the holder; permission boundaries
iam:PutUserPolicy / iam:AttachUserPolicy on self Grant yourself admin Deny self-modification via aws:username/${aws:PrincipalArn} conditions
iam:CreateAccessKey / iam:CreateLoginProfile on other users Take over another user Eliminate IAM users; SSO only
iam:UpdateAssumeRolePolicy Add yourself to a privileged role's trust policy Restrict to platform team; alert on event
sts:AssumeRole on roles with "Principal": {"AWS": "*"} or weak external ID Cross-account assumption Require specific principals, aws:PrincipalOrgID, sts:ExternalId
lambda:UpdateFunctionCode on a privileged function Code runs with the function's role Separate deploy role, code signing

Read the full file on GitHub · 99 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. 16d ago Changed · +1 lines 00bc2fe73f27
  2. 17d ago Changed · -33 tokens per session 0661f091fbda
  3. 1mo ago Changed · +68 lines · +117 tokens per session be00767d1741
  4. 3mo ago First seen · 30 lines · 0 tokens per session scan B e2d28c893f5c

Subscribe to this mod's changes

cloud-native-security-offensive is a skill published in the GitHub repository j4flmao/agent-skills (47 stars, last pushed 17d ago), licensed MIT. It adds 84 tokens to every session and 1,590 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (cloud metadata endpoint). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

cloud-native-security-offensive compared with skills from other repositories

cloud-native-security-offensive next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cloud-native-security-offensivej4flmao/agent-skillsSkill4717d agoMITB84Claude Code, Codex
aws-metadata-ssrf-exploitationakashrpatil/awesome-offensive-security-skillsSkill267mo agoApache-2.0B68Claude Code
detecting-aws-iam-privilege-escalationxalgorix/xalgorixSkill1.6kyesterdayApache-2.0A45Claude Code, Codex
aws-metadata-ssrf-exploitationShulkwiSEC/bb-hugeSkill274mo agoMITB68Claude Code, Codex
aws-cloud-penetration-testingShulkwiSEC/bb-hugeSkill274mo agoMITB75Claude Code, Codex
aws-metadata-ssrfShulkwiSEC/bb-hugeSkill274mo agoMITB69Claude Code, Codex
ssrf-aws-metadata-abuseakashrpatil/awesome-offensive-security-skillsSkill267mo agoApache-2.0B62Claude Code