
Aws Iam
- 5.1k installs
- 2.2k repo stars
- Updated August 4, 2026
- aws/agent-toolkit-for-aws
aws-iam is an agent skill with verified IAM corrections for STS, Organizations, policy evaluation, SAML, MFA, and privilege escalation edge cases that models often get wrong.
About
aws-iam is an AWS agent toolkit skill containing verified corrections for IAM behaviors that language models frequently misstate. It is not a full IAM guide; the docs direct agents to official AWS documentation and to verify limits, quotas, API names, and edge cases rather than relying on pre-training. Verified edge cases span CloudTrail logging for AcceptHandshake in the acting account only, ConsoleLogin region variability, STS GetSessionToken restrictions, cross-account AssumeRole region opt-in requirements, and one-hour role chaining limits. Organizations notes cover suspended account removal timing, PutResourcePolicy for delegation, and ListPolicies filter type names. SDK specifics document DuplicatePolicyAttachmentException, Boto3 AccessKey activate and deactivate methods without update, and five managed policy version limits. Policy evaluation covers ForAllValues vacuous truth with Null condition pairing, resource-based policies bypassing permissions boundaries, eight privilege escalation actions, and iam:PassRole with Resource star risks. Additional sections address SAML encrypted assertion URLs, MFA resync-only NotAction lists, and Redshift Serverless dual service principa.
- Verified IAM edge cases for STS, Organizations, CloudTrail, SAML, MFA, and policy evaluation.
- Documents eight privilege escalation actions via direct IAM policy manipulation APIs.
- Explains iam:PassRole with Resource star combined with compute create APIs as escalation risk.
- SDK corrections including Boto3 AccessKey methods and Organizations exception names.
- Directs agents to verify claims against official AWS docs instead of pre-training memory.
Aws Iam by the numbers
- 5,096 all-time installs (skills.sh)
- +579 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #116 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
aws-iam capabilities & compatibility
- Capabilities
- sts session and assumerole edge case corrections · organizations api and delegation quirks · policy evaluation forallvalues and null conditio · privilege escalation and iam:passrole scoping wa
- Works with
- aws
- Use cases
- security audit · devops
What aws-iam says it does
This skill contains verified corrections for things that AI agents frequently get wrong about IAM.
Role chaining: max 1-hour session.
8 privilege escalation actions via direct IAM policy manipulation
npx skills add https://github.com/aws/agent-toolkit-for-aws --skill aws-iamAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 5.1k |
|---|---|
| repo stars | ★ 2.2k |
| Security audit | 3 / 3 scanners passed |
| Last updated | August 4, 2026 |
| Repository | aws/agent-toolkit-for-aws ↗ |
What are the non-obvious IAM limits, policy evaluation traps, and privilege escalation paths agents must not misstate when designing AWS access?
Correct common IAM mistakes around STS session limits, policy evaluation edge cases, Organizations quirks, SAML endpoints, MFA policies, and privilege escalation paths.
Who is it for?
Developers configuring IAM roles, policies, STS sessions, or Organizations controls who need verified edge-case corrections.
Skip if: Skip for Cognito user-pool policies, application-level RBAC, or requests needing a full IAM tutorial instead of pitfall corrections.
When should I use this skill?
User works on IAM roles, trust policies, STS AssumeRole, Organizations delegation, SAML federation, or MFA policy conditions.
What you get
Accurate IAM guidance grounded in documented edge cases, with pointers to official AWS documentation for full coverage.
- Verified IAM edge-case reference answers
By the numbers
- Documents 8 privilege escalation IAM API actions
- Managed policy max versions: 5
Files
AWS IAM — Common Pitfalls
About This Skill
This skill contains verified corrections for things that AI agents frequently get wrong about IAM. It is not a comprehensive IAM guide — for full IAM guidance, search AWS documentation.
When answering IAM questions, verify specific claims (limits, quotas, exact API names, edge-case behaviors) against official AWS documentation rather than relying on pre-training. Prefer fetching known documentation URLs over broad searches. Trust official documentation over memory when they conflict.
Verified Edge Cases
CloudTrail:
- AcceptHandshake/DeclineHandshake logged in ACTING account ONLY, not management account. Organization trail required for centralization.
- ConsoleLogin region varies by endpoint/cookies, NOT always us-east-1.
?region=forces specific region.
STS:
- GetSessionToken restrictions: (1) No IAM APIs unless MFA included (2) No STS except AssumeRole and GetCallerIdentity.
- Cross-account AssumeRole to opt-in region: TARGET account must enable region, not calling account.
- Role chaining: max 1-hour session.
Organizations:
- Suspended/closed accounts CANNOT be removed until permanently closed (~90 days). Remove FIRST, then close.
- Policy management delegation: use PutResourcePolicy, NOT register-delegated-administrator.
- AI opt-out policies: management account required by default.
- Organizations policy types for ListPolicies filter: SERVICE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, RESOURCE_CONTROL_POLICY.
SDK Specifics:
- Organizations:
DuplicatePolicyAttachmentException(not PolicyAlreadyAttachedException). - Boto3 IAM AccessKey: methods are
activate(),deactivate(),delete()— NOupdate(). - Instance profiles: waiter +
time.sleep(10)pattern. - Managed policy max versions: 5.
SAML:
- Encrypted assertions URL:
https://region-code.signin.aws.amazon.com/saml/acs/IdP-ID. - Private key from IdP uploaded to IAM in .pem format.
Policy Evaluation:
- ForAllValues with empty/missing key: evaluates to true (vacuous truth). To avoid that, use a
Nullcondition in addition to theForAllValueson the same context key to require that key to be present and non-null. For example, when evaluating theaws:TagKeyscontext key:
{
"Version": "2012-10-17",
"Statement": {
"Effect": "Allow",
"Action": "ec2:RunInstances",
"Resource": "*",
"Condition": {
"ForAllValues:StringEquals": {
"aws:TagKeys": ["Alpha", "Beta"]
},
"Null": {
"aws:TagKeys": "false"
}
}
}
}- Resource-based policies granting to IAM user ARN bypass permissions boundaries in same account.
- 8 privilege escalation actions via direct IAM policy manipulation: PutGroupPolicy, PutRolePolicy, PutUserPolicy, CreatePolicy, CreatePolicyVersion, AttachGroupPolicy, AttachRolePolicy, AttachUserPolicy.
iam:PassRolewithResource: "*"+ create/update on a compute service (EC2RunInstances, LambdaCreateFunction/UpdateFunctionConfiguration, ECSRegisterTaskDefinition, Glue, SageMaker, CloudFormation, etc.) = privilege escalation to any passable role in the account, including Administrator. ScopeResourceto specific role ARNs or an IAM path; optionally constrain withiam:PassedToService/iam:AssociatedResourceArn. See IAM User Guide — Grant a user permissions to pass a role.
MFA:
- Unassigned virtual MFA devices auto-deleted when adding new ones.
- MFA resync-only policy NotAction needs exactly: iam:ListMFADevices, iam:ListVirtualMFADevices, iam:ResyncMFADevice.
SigV4:
- IncompleteSignatureException includes SHA-256 hash of Authorization header for transit modification diagnosis.
Service-Specific Roles:
- Redshift Serverless trust policy: include BOTH
redshift-serverless.amazonaws.comANDredshift.amazonaws.comas service principals (per AWS docs; omitting serverless causesNot authorized to get credentials of roleon COPY). - IAM OIDC providers: thumbprints no longer required for most providers (AWS verifies via trusted CAs since 2022).
Policy Summary Display:
- Single statement with multi-service wildcard actions (e.g.
codebuild:*,codecommit:*) + service-specific resource ARNs: each resource appears ONLY under its matching service's summary (CodeBuild ARN under CodeBuild, etc.). A resource whose service prefix matches NO action in the statement is the only case where it appears in all action summaries ("mismatched resource").
Related skills
How it compares
Pick aws-iam when agents draft IAM and you need pitfall guardrails, not when learning IAM from scratch without AWS docs.
FAQ
Is aws-iam a complete IAM guide?
No. It contains verified corrections for common agent mistakes and points to official AWS documentation for comprehensive IAM guidance.
What privilege escalation paths does it document?
Eight direct IAM policy manipulation actions and iam:PassRole with Resource star plus compute service create or update APIs.
Is Aws Iam safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.