AWS IAM Policy Auditor

// identity · trust · bucket policies · escalation · OIDC · public access

An identity policy (attached to a user, group or role), a role trust policy, or an S3 bucket policy. The output of aws iam get-policy-version, get-role-policy, get-role or aws s3api get-bucket-policy works too; the wrapper is removed for you.

Policy type
Identity
Trust
Bucket

Findings

    
            

    Statements

    Get your own policy

    A customer-managed policy (find the default version with aws iam get-policy)
    aws iam get-policy-version --policy-arn arn:aws:iam::123456789012:policy/POLICY_NAME --version-id v1
    An inline policy on a role
    aws iam get-role-policy --role-name ROLE_NAME --policy-name POLICY_NAME
    A role's trust policy
    aws iam get-role --role-name ROLE_NAME --query Role.AssumeRolePolicyDocument
    An S3 bucket policy
    aws s3api get-bucket-policy --bucket BUCKET_NAME --query Policy --output text

    AWS IAM Access Analyzer can also validate policies, but it needs an AWS account and credentials. This page works offline and explains why each finding matters. It checks one policy at a time: what an identity can really do also depends on its other policies, permissions boundaries, SCPs and resource policies, and a bucket's real exposure also depends on Block Public Access and ACLs.