AWS IAM Policy Analyzer
AWS IAM Policy Analyzer
Paste an IAM policy JSON to surface wildcard risk, action expansion counts, and least-privilege suggestions. Embedded service catalog, no AWS API calls.
- criticalAction "*" grants all AWS actions (matches every AWS action across every service)Statement #0
- criticalSensitive action "*" — review carefullyStatement #0
- criticalResource "*" — applies to every resourcematches every resource in every region/accountStatement #0
- criticalAction=* with Resource=* effectively grants AdministratorAccessStatement #0
- mediumWildcard statement has no Condition blockAdd conditions like aws:SourceIp, aws:MultiFactorAuthPresent, or aws:RequestedRegion to constrain.Statement #0
- highSensitive action "iam:PassRole" — review carefullyStatement #2
- highPrivilege-escalation risk: iam:PassRoleRequired to hand a role to services like EC2/Lambda — pair with strict resource scopingStatement #2
- criticalResource "*" — applies to every resourcematches every resource in every region/accountStatement #2
- mediumWildcard statement has no Condition blockAdd conditions like aws:SourceIp, aws:MultiFactorAuthPresent, or aws:RequestedRegion to constrain.Statement #2
- Replace "*" with the specific action(s) the principal needs
- Scope Resource down to specific ARNs instead of "*"
- Add a Condition block (e.g. aws:RequestedRegion, MFA, IP) to wildcard statements
What This Tool Does
AWS IAM Policy Analyzer is built for deterministic developer and agent workflows.
Paste an IAM policy JSON to surface wildcard warnings, action expansion counts, resource ARN risk scoring, and least-privilege suggestions. Embedded AWS service catalog, runs in your browser.
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Agent Invocation
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/aws-iam-policy-analyzer/
For automation planning, fetch the canonical contract at /api/tool/aws-iam-policy-analyzer.json.
How to Use AWS IAM Policy Analyzer
- 1
Paste a policy JSON
Drop an IAM policy document into the input pane. It can be an inline policy, a managed policy, or a resource policy with a Principal block. The parser tolerates trailing commas only if your JSON does.
- 2
Read the risk score
The risk score combines wildcard breadth, sensitive actions, principal openness, and missing condition blocks. Critical scores typically mean Action plus Resource wildcards or admin-equivalent permissions.
- 3
Inspect findings by severity
Critical findings are urgent: Action equals star with Resource equals star, or a public Principal. High and medium findings highlight privilege-escalation paths and unscoped wildcards inside specific services.
- 4
Apply suggestions
The least-privilege panel lists concrete swaps: replace s3:* with the specific Get/Put actions used, scope Resource to a bucket ARN, add a Condition block requiring MFA or a source IP range.
- 5
Iterate to a tight policy
Edit the JSON in place and watch the score drop as you tighten the policy. Aim to get the risk score below 20 before merging. Pair with AWS Access Analyzer in your account for runtime evidence.