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.
npx skills add j4flmao/agent-skills --skill cloud-security-offensivegit clone --depth 1 https://github.com/j4flmao/agent-skillsWrote 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.
[](https://agentmods.dev/skills/j4flmao/agent-skills/cloud-security-offensive)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 |
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.
- 16d ago Changed · +1 lines 00bc2fe73f27
- 17d ago Changed · -33 tokens per session 0661f091fbda
- 1mo ago Changed · +68 lines · +117 tokens per session be00767d1741
- 3mo ago First seen · 30 lines · 0 tokens per session scan B e2d28c893f5c
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.
cloud-native-security-offensive compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cloud-native-security-offensivej4flmao/agent-skills | Skill | 47 | 17d ago | MIT | B | 84 | Claude Code, Codex |
| aws-metadata-ssrf-exploitationakashrpatil/awesome-offensive-security-skills | Skill | 26 | 7mo ago | Apache-2.0 | B | 68 | Claude Code |
| detecting-aws-iam-privilege-escalationxalgorix/xalgorix | Skill | 1.6k | yesterday | Apache-2.0 | A | 45 | Claude Code, Codex |
| aws-metadata-ssrf-exploitationShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | B | 68 | Claude Code, Codex |
| aws-cloud-penetration-testingShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | B | 75 | Claude Code, Codex |
| aws-metadata-ssrfShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | B | 69 | Claude Code, Codex |
| ssrf-aws-metadata-abuseakashrpatil/awesome-offensive-security-skills | Skill | 26 | 7mo ago | Apache-2.0 | B | 62 | Claude Code |