{
  "schema_version": 1,
  "id": "iam-policy-scan",
  "track": "coding",
  "name": "IAM Policy Scan",
  "version": "0.1.2",
  "sha256": "e5c37ef96755ed2d6cc8e6e771338fb3a489a1948da0327874c9d722856eb59a",
  "sha256_v1": "ac177bf08f70427b9fa6fcca3174377a9b78d38ecb11057b846327d07130343e",
  "keyword": "block",
  "word": "blocks",
  "says": "blocks on an agent's file writes and at turn end",
  "description": "Reads whole IAM, RBAC and role documents, not lines: JSON, YAML, Terraform, ARM, Bicep, Kubernetes. Refuses Allow with Action star or an inverted key, public or any-principal trust, cluster-admin, subscription Owner. Asks for service wildcards on a named resource, cross-account trust. Only added grants. Misses computed grants, partial wildcards, GCP, Azure role definitions, k8s escalate/bind/anonymous, unlisted extensions. Waiver: pragma or sidecar.",
  "misses": null,
  "where": [
    "write",
    "turn-end"
  ],
  "groups": [
    "cloud-iac"
  ],
  "eval_cases": 51,
  "eval_executed": 51,
  "latest": {
    "version": "0.1.2",
    "date": "2026-10-25",
    "change": "Behaviour change, added coverage for YAML that carries template markers: a file counts as a template by its path (a `templates/` directory), never by `{{` or `{%` in its text, so a marker in a comment no longer lets an unreadable file pass; a template that still does not read after its directives are set aside is now refused as `iam-unreadable` instead of skipped. Behaviour change, hardening for sidecar waivers: in the agent a waived grant is excused at most as many times as HEAD's copy of the file holds it (at least once), so a copy of a waived statement added elsewhere in the file is judged; a person's commit still trusts the staged waiver."
  },
  "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/1e60d211c1bb767152c6ab0167932da06ab3a10f/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
    }
  ]
}
