AWS IAM Policy Analyzer
Analyze an AWS IAM policy for wildcard actions and resources, privilege-escalation paths, public principals and missing conditions, with a risk score.
AWS IAM Policy Analyzer
- 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
Updated . Provided as is. Check the output before you rely on it in production.
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.
Questions and answers
What is AWS IAM Policy Analyzer?
How accurate is the action expansion count?
What does the risk score mean?
Does it send my data to a server?
Does it cover resource policies?
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
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.