Skip to main content

AWS IAM Policy Validator

Paste your AWS IAM policy JSON and instantly check for security risks: wildcard actions, overly broad resource scopes, privilege escalation paths, missing MFA conditions, and structural errors — without touching the AWS Console.

✓ 60K+ developers trust DevPlaybook ✓ Runs 100% in your browser ✓ 10 security checks

Frequently Asked Questions

What is an AWS IAM policy?▼

An IAM (Identity and Access Management) policy is a JSON document that defines permissions in AWS. It specifies what actions are allowed or denied, on which resources, and under what conditions. Policies are attached to IAM users, groups, or roles. There are two types: identity-based policies (attached to a principal) and resource-based policies (attached to a resource like an S3 bucket or KMS key). Every API call in AWS is evaluated against the applicable policies before being allowed.

Why is Action: '*' dangerous?▼

Action: '*' grants ALL permissions across ALL AWS services — this is equivalent to root access. If an IAM entity with Action: '*' is compromised, the attacker can create new admin users, delete data, spin up infrastructure, exfiltrate secrets, and more. Always replace Action: '*' with the specific actions your application actually needs. Use IAM Access Analyzer and CloudTrail to discover the minimum set of permissions actually used.

What are IAM privilege escalation attacks?▼

Privilege escalation occurs when an attacker uses existing limited permissions to grant themselves or another principal higher permissions. Common escalation paths: iam:CreateAccessKey (create new credentials for an existing admin user), iam:AttachUserPolicy (attach an existing admin policy to a controlled user), iam:UpdateLoginProfile (set a password on an admin account). AWS security researchers have documented over 20 escalation paths. Audit these actions carefully and require MFA conditions.

What is the principle of least privilege?▼

Least privilege means granting only the minimum permissions required to perform a task. Instead of ec2:* (all EC2 actions), grant only the specific operations needed — e.g. ec2:StartInstances and ec2:StopInstances. This limits the blast radius if credentials are compromised. Tools to help: IAM Access Analyzer generates least-privilege policies from CloudTrail logs, and the AWS Policy Simulator lets you test what permissions a policy actually grants.

What are IAM policy conditions?▼

Conditions add extra constraints to when a statement applies. Common examples: aws:MultiFactorAuthPresent (require MFA), aws:SourceIp (restrict by IP or CIDR range), aws:RequestedRegion (limit to specific AWS regions), aws:SecureTransport (require HTTPS), aws:CalledVia (restrict to actions called through specific services). Conditions are a powerful way to harden permissive policies — for example, allowing s3:* only from a specific VPC endpoint.

What is the difference between inline and managed IAM policies?▼

Managed policies are standalone policy documents that can be attached to multiple users, groups, or roles. AWS provides pre-built managed policies (like AmazonS3ReadOnlyAccess), or you can create customer managed policies. Inline policies are embedded directly into a single IAM entity and are deleted when that entity is deleted. Best practice: prefer customer managed policies over inline policies for reusability, version history, and easier auditing. Avoid AWS managed policies for production — they tend to be overly broad.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →