aws-iam-enum
What it does
This skill explains how to check who an AWS credential is, which policies are attached to it, and which permissions could lead to privilege increases. It is for cloud administrators and auditors with permission to review an account.
When to use it
- ✓When an administrator asks the agent to list the policies attached to a test AWS user or role.
- ✓When the agent reviews a policy for permissions that could allow creating new keys or attaching stronger policies.
- ✓When an audit report must explain which IAM settings are too broad.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/cloud/aws-iam-enum/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you list the AWS policies attached to our test user and tell me if any of them allow someone to gain more access?”
5 new skills a week. 1 minute to read.
How it works
The agent confirms the identity, lists attached and inline policies and groups, reads each policy version, and checks it against known risky permission sets.
Technical content (original SKILL.md)
Original text by the author, straight from 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:
- iam:CreateAccessKey (other user)
- iam:CreateLoginProfile
- iam:UpdateLoginProfile
- iam:AttachUserPolicy / iam:AttachGroupPolicy / iam:AttachRolePolicy
- iam:PutUserPolicy / iam:PutGroupPolicy / iam:PutRolePolicy
- iam:CreatePolicyVersion (if SetAsDefault=true)
- iam:SetDefaultPolicyVersion
- iam:PassRole + lambda:CreateFunction + lambda:InvokeFunction
- iam:PassRole + ec2:RunInstances
- iam:PassRole + ecs:RunTask / UpdateService
- glue:CreateDevEndpoint / UpdateDevEndpoint
- cloudformation:CreateStack with iam:PassRole
- datapipeline:CreatePipeline
- lambda:UpdateFunctionCode (existing function with priv role)
- iam:AddUserToGroup
- iam:UpdateAssumeRolePolicy
- iam:CreateRole + sts:AssumeRole
- codebuild:CreateProject with iam:PassRole
- sagemaker:CreateTrainingJob with iam:PassRole
- aws-marketplace:Subscribe (rare, but noted)
- 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
FAQ
What is IAM?
It is the AWS system that controls which users and roles can do what in an account.
What is a privilege escalation path?
The skill describes it as a set of permissions that together let a user reach a stronger role or policy.
Does the skill say how to fix the policy?
It focuses on finding the risky permissions, and changes are left to the account owner.
Details
Original description by the author
Enumerate AWS IAM policies, detect privilege escalation paths per Rhino Security Labs canonical 21 primitives.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #13984
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.