AWS Builder Center
Stop Guessing What Your IAM Policies Allow — Visualize, Analyze, and Fix Them with AI

Stop Guessing What Your IAM Policies Allow — Visualize, Analyze, and Fix Them with AI

A few weeks ago I built a small open-source tool to visualize AWS IAM policies: paste a JSON policy, instantly see color-coded statement cards showing what it actually grants, where the wildcards are, and which privilege-escalation paths are open.

AWS Certified Solutions Architect – Cloud migration strategies.
Today I'm pushing v2 with a much bigger scope:
🤖 AI Chat Agent — An integrated assistant powered by Amazon Bedrock (Nova Lite) that can answer questions about your policy, explain risks in plain English, suggest least-privilege alternatives, and generate safer policies from natural language prompts. You describe what your Lambda needs, it writes the scoped policy.
🏗️ Architecture — The frontend speaks the chat completions format through a lightweight Express proxy that forwards to Bedrock's Converse API. This means you can swap in any compatible LLM by just changing the endpoint.
🧪 Property-based testing — Added Vitest + fast-check to validate the analysis engine with randomized inputs, not just hand-picked happy paths.
📋 What it flags: → Full wildcard (/) = admin access (high risk) → iam:PassRole without conditions = privilege escalation (high risk) → Sensitive actions without Condition blocks = worth review → Scoped resources + conditions = looks good
Everything still runs client-side. Your policy JSON never leaves the browser — the AI agent only sends context to your own Bedrock endpoint.
Stack: React 18, TypeScript, Vite, Tailwind, Amazon Bedrock, GitHub Actions → GitHub Pages.
If you work with AWS IAM and want to contribute detection rules or try a different model, PRs are welcome.
#AWS #IAM #CloudSecurity #OpenSource #AmazonBedrock #GenerativeAI #Kiro #React #TypeScript #DevSecOps #LeastPrivilege

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article