7shiki3/decepticon-x-darktriad/aws-iam-passrole-chain
Claude Code and agent skill by 7shiki3/decepticon-x-darktriad
- community
Checking that the SKILL.md file is still in the repository.
AWS IAM privilege escalation via `iam:PassRole` chains — Lambda/Glue/Sagemaker/EC2/ECS PassRole to a higher-priv role, AssumeRole chains across accounts, sts:GetCallerIdentity recon, account hijack via legacy root-mfa-bypass.
Install
npx vskill@latest install 7shiki3/decepticon-x-darktriad/aws-iam-passrole-chainSKILL.md
The same SKILL.md was published earlier as 7shiki3/decepticon-x-darktriad/aws-iam-passrole-chain.
AWS IAM PassRole Chain
You have AWS credentials (env vars, ~/.aws/credentials, EC2 IMDS, ECS task role, leaked GitHub keys). Find the path to higher privilege via PassRole.
Enumerate
Use Pacu — enum_permissions — for the canonical enumeration.
Phase 1: Identify your PassRole targets
Phase 2: PassRole → execute as higher-priv role
Lambda — most common path
Glue Dev Endpoint
EC2 Instance Profile
SageMaker Notebook
Phase 3: AssumeRole chains across accounts
Phase 4: Privilege escalation classes (Pacu — iam__privesc_scan)
| Method | Required permission | |
|---|---|---|
CreateNewPolicyVersion | iam:CreatePolicyVersion on a policy attached to a higher-priv user | |
SetExistingDefaultPolicyVersion | iam:SetDefaultPolicyVersion | |
CreateAccessKey | iam:CreateAccessKey on a higher-priv user | |
CreateLoginProfile | iam:CreateLoginProfile — log in as the target user via console | |
UpdateLoginProfile | iam:UpdateLoginProfile — reset the target user's console password | |
AttachUserPolicy | iam:AttachUserPolicy — attach AdministratorAccess to yourself | |
AttachGroupPolicy | iam:AttachGroupPolicy | |
AttachRolePolicy | iam:AttachRolePolicy | |
PutUserPolicy | iam:PutUserPolicy — inline policy bypass | |
AddUserToGroup | iam:AddUserToGroup — add yourself to admins | |
UpdateAssumeRolePolicy | iam:UpdateAssumeRolePolicy — make a role assumable by you | |
PassExistingRoleToNewLambda | iam:PassRole + lambda:CreateFunction/InvokeFunction | |
PassExistingRoleToNewGlueDevEndpoint | as above for Glue | |
EditExistingLambdaFunctionWithRole | lambda:UpdateFunctionCode on an existing Lambda | |
PassExistingRoleToNewCloudFormation | iam:PassRole + cloudformation:CreateStack | |
PassExistingRoleToNewDataPipeline | as above for Data Pipeline | |
CodeStarCreateProjectFromTemplate | exotic — older accounts |
OPSEC
- Every IAM and STS call is in CloudTrail. Volume of
assume-roleis normal —create-functionwith a new role is not. - GuardDuty has finding types
Recon:IAMUser/ResourceConsumptionandPrivilege Escalation:IAMUser/AnomalousBehavior. Move slowly. - For low-noise: use existing Lambda functions (replace their code) rather than creating new ones —
UpdateFunctionCodeis far more common in normal traffic. - Sensitive: GuardDuty flags
AwsApiCall: PutEventSelectors / StopLoggingon CloudTrail — don't try to silence telemetry.
References
- Pacu (RhinoSecurityLabs) — automated enum + privesc
- "AWS IAM Privilege Escalation Methods" — Spencer Gietzen, RhinoSecurityLabs
- ScoutSuite, Prowler — defender perspective
- DEFCON 30 "Cloud Village" — recurring AWS IAM track
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/decepticon/decepticon/skills/standard/cloud/aws-iam-passrole-chain/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/7shiki3/decepticon-x-darktriad/aws-iam-passrole-chain)