{
  "schema_version": 1,
  "id": "iam-policy-scan",
  "track": "coding",
  "name": "IAM Policy Scan",
  "version": "0.1.4",
  "sha256": "ad8cb226998e68de23207ecbb6894a3155b67ee79a6ecc89448782d7026b8a30",
  "sha256_v1": "74efcc27f56e31bbf94ca060e27b9c566016cc1e164d510995b1b8b685c1090e",
  "keyword": "block",
  "word": "blocks",
  "says": "blocks on an agent's file writes and at turn end",
  "description": "Reads IAM, RBAC and role documents whole (JSON, YAML, Terraform, ARM, Bicep, k8s). Refuses Allow with Action star, an inverted key, a service wildcard or iam:PassRole on every resource; AdministratorAccess attached; public trust; cluster-admin; subscription Owner. Asks for write actions on every resource, cross-account trust. Only added grants. Misses computed grants, partial wildcards, GCP, Azure role definitions, k8s escalate/bind/anonymous, secret reads on *. Waiver: pragma or sidecar.",
  "misses": null,
  "where": [
    "write",
    "turn-end"
  ],
  "groups": [
    "cloud-iac"
  ],
  "eval_cases": 61,
  "eval_executed": 61,
  "latest": {
    "version": "0.1.4",
    "date": "2026-11-17",
    "change": "Status draft -> production (owner approval 2026-11-15, CAT-S1, which is the owner's approval for production; review record discovery/2026-11-15-review-container-iam-ci-policies.md). Measured after 0.1.3: catches 19 of 24 and refuses 2 of 26 correct cases, against 12 of 24 and 7 of 26 for block-wildcard-iam, which becomes draft. 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. Where its description says it asks, it refuses at both points, because this client cannot prompt at either point"
    },
    "codex": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end. Where its description says it asks, it refuses at both points, because this client cannot prompt at either point. 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. Where its description says it asks, it refuses at turn end, because this client cannot prompt there. 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. Where its description says it asks, it refuses at turn end, because this client cannot prompt there. 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/iam-policy-scan",
  "enforces": "enforced-at-commit",
  "examples": [
    {
      "word": "Refused",
      "prompt": "A JSON policy grants Action star as a list split across lines.",
      "command": null
    },
    {
      "word": "Allowed",
      "prompt": "A policy lists scoped actions over several lines.",
      "command": null
    }
  ]
}
