Cloud IAM Policy Analyzer (AWS, GCP, Azure)

Paste a policy or role JSON to see which permissions it grants in plain words, where it is dangerous, and a least-privilege version built from the actions your workload really uses.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Paste a policy

    Paste the JSON or load one of the five samples for AWS, GCP and Azure.

  2. 2
    Read the grade

    Check the summary and the risk grade at the top of the results.

  3. 3
    Review findings

    Go through critical and high findings first, with the statement and fix for each.

  4. 4
    Read permissions

    Use the permissions tab to see every action with its service, access level and escalation note.

  5. 5
    Add used actions

    On the least-privilege tab, paste the actions your workload actually called.

  6. 6
    Export

    Copy or download the least-privilege JSON and the findings CSV for review.

About this tool

Cloud permissions are written as JSON that is easy to approve and hard to read. A single s3:* or Microsoft.Web/sites/* grants dozens of operations, some of which can delete data or change who has access. This analyzer reads four formats: AWS IAM identity and resource policies with Statement blocks, Google Cloud custom roles with includedPermissions, Google Cloud IAM policies with bindings, and Azure role definitions in either the portal or the ARM shape. It lists every permission with its service and an access level read from the verb, flags full administrator grants, service wildcards, NotAction and NotResource allows, write actions on every resource, and public principals such as Principal * or allUsers. It also looks for known privilege-escalation permissions, for example iam:PassRole with lambda:CreateFunction, iam.serviceAccounts.actAs, or Microsoft.Authorization/roleAssignments/write. A least-privilege tab takes the list of actions you actually observed, for instance from CloudTrail or IAM Access Advisor, and writes a policy or role that keeps only those.

Reading AWS policies

Each statement is checked for its Effect, Action or NotAction, Resource or NotResource, Principal and Condition. Action * on Resource * without a condition is reported as full administrator access. A wildcard such as s3:* is high risk, and iam:*, sts:* or kms:* are critical because they control identity and keys. Partial wildcards such as s3:Get* are lower risk but still grow when AWS adds actions. In resource policies, Principal * without a condition is public access. Deny statements are listed but not flagged, since they only remove rights.

Escalation paths

The tool carries a list of permissions that security researchers have shown can raise privileges: creating or switching policy versions, attaching or writing policies, creating access keys or login profiles for other users, updating role trust policies and passing a role to a service that runs code. Where a path needs two permissions, such as iam:PassRole plus ec2:RunInstances, it is reported only when both are present. Google Cloud and Azure have their own lists, such as service account token creation, setIamPolicy on projects, VM run command and storage account key listing.

Google Cloud and Azure

For a GCP IAM policy the tool reports allUsers and allAuthenticatedUsers bindings, the basic Owner and Editor roles, consumer Gmail members, deleted principals and roles that can impersonate service accounts. For an Azure role it reports Actions *, provider wildcards, wildcard data actions, root or management-group assignable scopes, and reminds you that NotActions only subtracts and is not a deny.

Least privilege

Paste the actions your application used, one per line, in service:Action form, as CloudTrail eventSource and eventName, or as GCP and Azure permission strings. The output keeps only used actions that the original policy allowed, keeps resources and conditions, and lists used actions the original did not allow.

Limits

Access levels come from the verb in the action name, which is a guide and not the provider's official table. The tool does not evaluate service control policies, permission boundaries, resource policies in other accounts, group membership or inherited roles, so the effective access can be narrower or wider than this one document shows.

Worked example

A deployment role has three Allow statements. Statement 1 grants s3:* and three DynamoDB actions on Resource *: high for the S3 wildcard and medium for writes on every resource. Statement 2 grants lambda:UpdateFunctionCode, lambda:CreateFunction and iam:PassRole on Resource *: three high escalation findings, because together they let the holder run code as any role. Statement 3 grants logs:* on one account's log groups: high for the wildcard. The grade is F. After pasting five observed actions (s3.amazonaws.com GetObject, s3:PutObject, dynamodb:Query, logs:CreateLogStream, logs:PutLogEvents), the least-privilege tab returns a policy with the deployment statement removed and only those five actions kept, with the region deny unchanged.

Quick facts

Frequently asked questions

Which inputs are supported?

AWS IAM policy JSON (identity or resource policy, or a wrapper with PolicyDocument), GCP custom role JSON with includedPermissions, GCP IAM policy JSON with bindings, and Azure role definitions from the portal or ARM templates.

How are access levels decided?

From the verb: Get, Describe and similar are read, List is list, Tag is tagging, verbs that touch policies or ACLs are permissions management, and the rest are write. It is a quick guide; the official AWS service authorization reference is the final word.

What does privilege escalation mean here?

A permission that lets the holder give themselves more access than the policy grants directly, for example by attaching AdministratorAccess to their own user or passing a powerful role to a Lambda function they control.

Where do I get the list of used actions?

In AWS, from CloudTrail event history or IAM Access Advisor's last-accessed data; in Google Cloud, from the IAM recommender or audit logs; in Azure, from activity logs. Paste them one per line.

Does the tool call cloud APIs?

No. It reads the JSON you paste and never contacts AWS, Google Cloud or Azure, so it needs no credentials.

Can it prove a policy is safe?

No. It checks one document against known risky patterns. Effective access also depends on boundaries, organization policies, other attached policies and resource policies, which the page cannot see.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages