Policy Linter IAM & K8s
Policy Definition
Risk Report
Waiting for policy input...
Share MySysAd

⚠️ IMPORTANT DISCLAIMER: The tools and scripts on this site are provided "AS IS" for educational purposes.

Review destructive commands before executing. By using this site, you assume all risk and agree to our Full Terms of Service.

Catch over-permissive access before it ships

Wildcards and one or two quiet permissions turn a narrow role into an admin account. Paste an AWS IAM policy (JSON) or Kubernetes Role or ClusterRole (YAML) and get a risk report that flags broad actions, wildcard resources and known privilege-escalation combinations.

Common questions

Why is "Action": "*" with "Resource": "*" dangerous?

It grants every action on every resource in the account, which is full administrator access. Even "Action": "s3:*" on "Resource": "*" lets the holder read and delete every bucket. List the specific actions and the specific ARNs instead.

What is iam:PassRole privilege escalation?

A user who can pass a powerful role to a service they control, such as a Lambda function or an EC2 instance, can run code with that role’s permissions. Restrict iam:PassRole to the exact role ARNs needed, and add an iam:PassedToService condition.

Which Kubernetes RBAC permissions are risky?

Wildcard verbs or resources (*), read access to secrets, create on pods/exec, the escalate, bind and impersonate verbs, and any binding to cluster-admin. Creating pods in a namespace is also powerful, because a pod can mount that namespace’s secrets and service accounts.

How do I check what a Kubernetes user can do?

kubectl auth can-i --list --as=system:serviceaccount:NAMESPACE:NAME lists the permissions of a service account, and kubectl auth can-i delete pods --as=jane -n prod checks one action.

Is NotAction with Allow a problem?

Usually. "Effect": "Allow" with "NotAction" grants everything except the listed actions, including services added later. Use it with Deny statements, not Allow.

Related tools: Terraform Plan Analyzer · Kubernetes Manifest Builder · Cloud VPC Planner · All tools A–Z