IAM001 · IAM004 · CIS AWS v5.0 1.16 · SOC 2 CC6.1 / CC6.3

Fix AWS IAM Wildcard 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.

Audit Policy JSON (0 Upload) Pro CLI Pack $49 →

0 bytes uploaded · 0 AWS keys · One-time local CLI, SARIF 2.1.0 & SOC 2 CC6.1 evidence via Polar.sh.

IAM001 (*:* Admin Wildcard) IAM004 (IAM/Lambda Escalation) CIS 1.16 · SOC 2 CC6.1 · PCI Req 7.2 0 Network Requests During Scan
1. Load a Wildcard Policy Sample or Drop Local .json / .tf Files
Drag & drop local IAM policy .json or Terraform .tf files — scanned strictly in browser memory.

Wildcard vs. Least-Privilege Policy JSON (Before & After)

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.

Vulnerable · IAM001 · IAM004 · CIS 1.16 Fail
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "FullWildcardAdmin",
      "Effect": "Allow",
      "Action": "*",
      "Resource": "*"
    },
    {
      "Sid": "PrivilegeEscalationWildcard",
      "Effect": "Allow",
      "Action": ["iam:AttachRolePolicy", "iam:PutRolePolicy"],
      "Resource": "*"
    }
  ]
}
Hardened · 100/100 (Grade A · 0 Findings)
{
  "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"
        }
      }
    }
  ]
}

Wildcard & Over-Privilege Rules Covered

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

Enforce Least-Privilege IAM in CI/CD (One-Time License)

Run leastproof-cli in GitHub Actions to reject wildcard IAM policies before merge and generate SHA-256 sealed SOC 2 CC6.1 evidence dossiers.

Frequently Asked Questions

Why does CIS AWS Foundations Benchmark v5.0 1.16 fail *:* 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.

How do I refactor an IAM wildcard policy without breaking production?

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.

Does LeastProof send my private IAM policy JSON to a server?

No. The complete 36-rule engine executes locally in your browser with zero outbound network requests during scanning.

Related AWS IAM & Terraform Remediation Guides

Fix iam:PassRole Privilege Escalation

Scope iam:PassRole, remove CreatePolicyVersion and AdministratorAccess (IAM002–009).

Read PassRole Escalation Guide

Fix 0.0.0.0/0 SSH & RDS Security Groups

Close internet-exposed ports 22, 3389, 5432, and 3306 (TF001–TF004) in Terraform.

Read Security Group Guide

CIS AWS v5.0 & SOC 2 CC6.1 Checklist

Complete 36-rule control crosswalk mapped to SOC 2, CIS AWS v5.0, and ISO 27001.

Open CIS v5 / SOC 2 Checklist

Oriancy Local Security Quartet

4 Zero-Upload Scanners · 1 One-Time Bundle
DevSecOps Quartet Bundle — All 4 local CLIs & auditor packs on one-time Polar licenses · oriancy.com