# aws iam policy risk analyzer

> Find privilege-escalation action combinations, Allow *, unrestricted PassRole and risky OIDC trust in IAM policy dumps — offline.

aws iam policy risk analyzer is a paid AI agent skill on Agensi by Big t, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Big t](https://www.agensi.io/creators/t-b)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/aws-iam-policy-risk-analyzer
- Tags: security, devops, aws, iam, privilege-escalation, least-privilege, oidc

## About this skill

**Find privilege-escalation action combinations, Allow *, unrestricted PassRole and risky OIDC trust in IAM policy dumps — offline.**

Analyze AWS IAM policies and account authorization dumps offline for privilege-escalation action combinations (Rhino Labs methods), Allow * / Resource *, NotAction+Allow, unrestricted PassRole, public or cross-account role trust, and GitHub OIDC trust missing the sub claim. Reads `aws iam get-account-authorization-details` JSON or individual policy files and writes a severity-ranked report plus CSV. Use when someone asks "is this IAM policy safe?", "find privilege escalation in our account" or "review our GitHub OIDC role".

### What it does
- Runs entirely offline in standard-library Python (no network, no credentials, writes only inside the working folder).
- Ships with examples, unit tests (run on Python 3.8 / 3.9 / 3.13) and a `references/sources.md` citing the official specs used.
- Exit codes: 0 = clean / aligned, 1 = findings, 2 = bad input — ready for CI and agent loops.

### Who it's for
Security-minded developers, MSPs, small-business IT, compliance leads and IR analysts who want a repeatable offline check their agent can run.

### Not legal advice / limits
See the skill's `references/sources.md` and Known Limitations below. Compliance-flavored output is a draft for counsel, not a certification.

## Known limitations

- Heuristic extractors (policy text, MFA column names, YAML subset) can miss unusual formats — always review the "settings/columns used" line.
- Specs are cited in `references/sources.md`; anything marked unverified there is called out, not guessed.
- Not a substitute for Access Analyzer, GuardDuty, a full disk image or a lawyer.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the aws iam policy risk analyzer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it call the internet or AWS/GCP APIs?

No. You export or paste the inputs; the skill only reads local files.

### Will it modify my servers or IAM?

No. Analysis and report generation only. Generated config snippets are written as local files for you to review.

### What Python packages do I need?

None beyond the standard library.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
