{
  "schema_version": 1,
  "id": "block-wildcard-iam",
  "track": "coding",
  "name": "Block Wildcard IAM Grants",
  "version": "0.1.6",
  "sha256": "bbc659a7a2d908a21819e21a461618a4759a26053f136e0d95de3d8108ebe417",
  "sha256_v1": "8f24c77f04e81e6372d94b0c372fe79458c1846c3143f4fa4e0c1a36c1212774",
  "keyword": "block",
  "word": "blocks",
  "says": "blocks on an agent's file writes and at turn end",
  "description": "Pre-commit gate for the mechanizable slice of ASI03, one line at a time, in IaC, config, policy and CDK files, comments skipped: a wildcard action or principal (a bare Resource star is iam-policy-scan's), any quote style (JSON, YAML, Terraform, CDK, escaped JSON), whole-service wildcards on s3, iam, sts, kms and ec2 actions, Allow with an inverted key, administrator, power-user and IAM-admin managed policies, GCP owner and editor roles and public members, Kubernetes RBAC wildcards and cluster-admin, Azure wildcard actions and Owner. Only a one-line strict-JSON AWS Deny is exempt. Friction, not a security boundary: grants split across lines (iam-policy-scan reads those), partial wildcards, unlisted services and roles, YAML aliases or tags and runtime-built grants pass; other Deny forms and admission-webhook wildcards are refused. Escape: 'pragma: allowlist broad-privilege' on the same line, honoured at commit; at agent tool-use only when that exact line is already committed in HEAD. Use iam-policy-scan.",
  "misses": null,
  "where": [
    "write",
    "turn-end"
  ],
  "groups": [
    "cloud-iac"
  ],
  "eval_cases": 38,
  "eval_executed": 38,
  "latest": {
    "version": "0.1.6",
    "date": "2026-11-17",
    "change": "Status production -> draft (owner decision 2026-11-15, CAT-S1; review record discovery/2026-11-15-review-container-iam-ci-policies.md). Measured after 0.1.5: catches 12 of 24 and refuses 7 of 26 correct cases, a line gate that cannot see the Deny, condition or HEAD beside a grant; use iam-policy-scan, which catches 19 of 24 and refuses 2 of 26. No rule, script or eval changed."
  },
  "agent_labels": {
    "claude-code": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end"
    },
    "cursor": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end"
    },
    "codex": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)"
    },
    "copilot": {
      "keyword": "block",
      "says": "blocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)"
    },
    "devin": {
      "keyword": "block",
      "says": "blocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (vendor docs only, not witnessed)"
    },
    "grok": {
      "keyword": "ungraded",
      "says": "Not graded yet for Grok"
    },
    "goose": {
      "keyword": "ungraded",
      "says": "Not graded yet for goose"
    },
    "antigravity": {
      "keyword": "ungraded",
      "says": "Not graded yet for Antigravity"
    },
    "openhands": {
      "keyword": "ungraded",
      "says": "Not graded yet for OpenHands"
    },
    "kimi-code": {
      "keyword": "ungraded",
      "says": "Not graded yet for Kimi Code"
    },
    "factory-droid": {
      "keyword": "ungraded",
      "says": "Not graded yet for Factory Droid"
    }
  },
  "source_url": "https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/agentic-security/block-wildcard-iam",
  "enforces": "enforced-at-commit",
  "examples": [
    {
      "word": "Refused",
      "prompt": "A staged IAM policy document grants Action star.",
      "command": null
    },
    {
      "word": "Allowed",
      "prompt": "A staged IAM document grants a scoped action on a named resource.",
      "command": null
    }
  ]
}
