aws-iam-enum

aws-iam-enum is a skill for Claude Code, Codex from MingyiSecLab/Mingyi-Atlas. It costs 25 tokens per session (657 once invoked), scanned A, a copy of aws-iam-enum, Apache-2.0.

A procedure for reviewing AWS Identity and Access Management (IAM), the system that controls permissions for AWS users and services. It checks policies for known combinations of permissions that may allow a user or service to gain more access.

In plain words
What is it for?
Use it to inspect attached and inline policies, review groups and policy versions, and identify possible paths such as creating credentials, changing policies, or passing a role to another AWS service.
Why use it?
AWS policies can be lengthy and privilege-escalation paths may depend on several permissions used together. This procedure organizes those checks.

Skill for Claude CodeCodex

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

Good fit Use it to inspect attached and inline policies, review groups and policy versions, and identify possible paths such as creating credentials, changing policies, or passing a role to another AWS service.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mingyiseclab/mingyi-atlas/aws-iam-enum
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 MingyiSecLab/Mingyi-Atlas --skill aws-iam-enum
Clone the repo
git clone --depth 1 https://github.com/MingyiSecLab/Mingyi-Atlas

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-enum

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mingyiseclab/mingyi-atlas/aws-iam-enum"><img src="https://agentmods.dev/badge/skills/mingyiseclab/mingyi-atlas/aws-iam-enum.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod 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.00025 $0.00657
Opus 5 $0.00013 $0.00329
Sonnet 5 $0.00005 $0.00131
Haiku 4.5 $0.00003 $0.00066

Measured 10d ago against content hash 935425581a45, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

aws-iam-enum scanned grade A with 0 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 10d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to aws-iam-enum — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

src/skills/standard/cloud/aws-iam-enum/SKILL.md · 66 lines

How it starts

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

AWS IAM Enumeration + Privesc

1. Identity check

aws sts get-caller-identity
aws iam get-account-summary

2. Attached policies

aws iam list-attached-user-policies --user-name ME --output json > /tmp/attached.json
aws iam list-user-policies          --user-name ME --output json > /tmp/inline.json
aws iam list-groups-for-user        --user-name ME --output json > /tmp/groups.json

For each attached policy ARN:

aws iam get-policy --policy-arn ARN --query 'Policy.DefaultVersionId'
aws iam get-policy-version --policy-arn ARN --version-id VID > /tmp/policy.json

Then:

iam_policy_audit(open("/tmp/policy.json").read())

3. Check each privesc primitive

Rhino Security's canonical 21 paths — any Allow on these is a chain step:

  1. iam:CreateAccessKey (other user)
  2. iam:CreateLoginProfile
  3. iam:UpdateLoginProfile
  4. iam:AttachUserPolicy / iam:AttachGroupPolicy / iam:AttachRolePolicy
  5. iam:PutUserPolicy / iam:PutGroupPolicy / iam:PutRolePolicy
  6. iam:CreatePolicyVersion (if SetAsDefault=true)
  7. iam:SetDefaultPolicyVersion
  8. iam:PassRole + lambda:CreateFunction + lambda:InvokeFunction
  9. iam:PassRole + ec2:RunInstances
  10. iam:PassRole + ecs:RunTask / UpdateService
  11. glue:CreateDevEndpoint / UpdateDevEndpoint
  12. cloudformation:CreateStack with iam:PassRole
  13. datapipeline:CreatePipeline
  14. lambda:UpdateFunctionCode (existing function with priv role)
  15. iam:AddUserToGroup
  16. iam:UpdateAssumeRolePolicy
  17. iam:CreateRole + sts:AssumeRole
  18. codebuild:CreateProject with iam:PassRole
  19. sagemaker:CreateTrainingJob with iam:PassRole
  20. aws-marketplace:Subscribe (rare, but noted)
  21. sts:AssumeRole (direct)

4. Graph promotion

kg_add_node(kind="vulnerability", label="IAM:CreateAccessKey → account takeover", props={"severity":"critical","source":"aws-iam"})
kg_add_node(kind="crown_jewel", label="AWS Account 1234")
kg_add_edge(src=<vuln>, dst=<crown_jewel>, kind="grants", weight=0.3)

5. Common chains

  • Dev user has iam:PassRole + lambda:CreateFunction + a Lambda role with admin → create malicious Lambda → assume admin
  • iam:UpdateLoginProfile + sts:GetFederationToken → temporary console access as another user

Read the full file on GitHub · 66 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. 10d ago First seen · 66 lines · 25 tokens per session scan A 935425581a45

Subscribe to this mod's changes

aws-iam-enum is a skill published in the GitHub repository MingyiSecLab/Mingyi-Atlas (11 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 25 tokens to every session and 657 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to aws-iam-enum, differing in 8 lines, and is treated as a copy.