Fix iam:PassRole Privilege Escalation
Scope iam:PassRole, remove CreatePolicyVersion and AdministratorAccess (IAM002–009).
Action: "*" & Resource: "*" Policies
Replace full administrative wildcards (IAM001) and wildcard IAM write actions (IAM004)
with ARN-scoped, TLS-enforced least-privilege policies—verified locally in your browser with 0 bytes uploaded.
0 bytes uploaded · 0 AWS keys · One-time local CLI, SARIF 2.1.0 & SOC 2 CC6.1 evidence via Polar.sh.
.json / .tf Files
.json or Terraform .tf files — scanned strictly in browser memory.
Both Action: "*" on Resource: "*" (IAM001) and wildcard policy mutation
verbs like iam:AttachRolePolicy / iam:PutRolePolicy (IAM004) violate CIS
AWS v5.0 1.16 and fail SOC 2 CC6.1 audits. Narrow actions to explicit API calls, scope resources to exact ARNs,
and enforce TLS via aws:SecureTransport.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "FullWildcardAdmin",
"Effect": "Allow",
"Action": "*",
"Resource": "*"
},
{
"Sid": "PrivilegeEscalationWildcard",
"Effect": "Allow",
"Action": ["iam:AttachRolePolicy", "iam:PutRolePolicy"],
"Resource": "*"
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ScopedArtifactReads",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::acme-prod-releases",
"arn:aws:s3:::acme-prod-releases/*"
],
"Condition": {
"Bool": {
"aws:SecureTransport": "true"
}
}
}
]
}
| Rule | Severity | Policy Anti-Pattern | Compliance Impact |
|---|---|---|---|
IAM001 |
CRITICAL | Effect: "Allow" with Action: "*" on Resource: "*" |
SOC 2 CC6.1 / CC6.3 · CIS 1.16 · ISO A.5.15 / A.8.2 · PCI 7.2 |
IAM002 |
CRITICAL | Service-wide wildcard (iam:*, kms:*, sts:*, s3:*) on * |
SOC 2 CC6.1 / CC6.3 · CIS 1.16 · ISO A.5.15 |
IAM004 |
CRITICAL | iam:AttachRolePolicy, iam:PutRolePolicy, iam:CreatePolicyVersion on * |
SOC 2 CC6.1 / CC6.3 · CIS 1.16 · PCI 7.2 |
IAM012 |
HIGH | kms:Decrypt or secretsmanager:GetSecretValue on Resource: "*" |
SOC 2 CC6.1 / CC6.7 · ISO A.8.24 |
Run leastproof-cli in GitHub Actions to reject wildcard IAM policies before merge and generate
SHA-256 sealed SOC 2 CC6.1 evidence dossiers.
*:* policies?Granting every action on every resource eliminates blast-radius containment: a single leaked key or runtime vulnerability compromises the entire AWS account, KMS keys, and audit logs.
List the exact service API actions observed in CloudTrail, bind explicit ARNs for S3/KMS/DynamoDB targets,
enforce aws:SecureTransport, and test with an IAM permissions boundary before deployment.
No. The complete 36-rule engine executes locally in your browser with zero outbound network requests during scanning.
iam:PassRole Privilege EscalationScope iam:PassRole, remove CreatePolicyVersion and AdministratorAccess (IAM002–009).
0.0.0.0/0 SSH & RDS Security GroupsClose internet-exposed ports 22, 3389, 5432, and 3306 (TF001–TF004) in Terraform.
Complete 36-rule control crosswalk mapped to SOC 2, CIS AWS v5.0, and ISO 27001.