---
id: iam-policy-scan
track: coding
version: 0.1.4
label: blocks
keyword: block
where: write turn-end
sha256: ad8cb226998e68de23207ecbb6894a3155b67ee79a6ecc89448782d7026b8a30
source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/agentic-security/iam-policy-scan
catalog_ref: e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
---

# IAM Policy Scan

iam-policy-scan · version 0.1.4

Blocks — Blocks on an agent's file writes and at turn end. Chock adds friction. It is not a security boundary. 

In a git repo: at commit (Chock refuses the commit, locally and in CI.)



## What it does

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.

## Its label on each agent

- Claude Code (tested): Blocks — Blocks on an agent's file writes and at turn end. Builder: /coding/builder/#client=claude-code&p=iam-policy-scan
- Cursor (tested): Blocks — 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. Builder: /coding/builder/#client=cursor&p=iam-policy-scan
- Codex (tested): Blocks — 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). Builder: /coding/builder/#client=codex&p=iam-policy-scan
- GitHub Copilot (tested): Blocks — 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). Builder: /coding/builder/#client=copilot&p=iam-policy-scan
- Devin (tested): Blocks — 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). Builder: /coding/builder/#client=devin&p=iam-policy-scan
- Grok (tested): Not graded yet for Grok. Builder: /coding/builder/#client=grok&p=iam-policy-scan
- goose (tested): Not graded yet for goose. Builder: /coding/builder/#client=goose&p=iam-policy-scan
- Antigravity (tested): Not graded yet for Antigravity. Builder: /coding/builder/#client=antigravity&p=iam-policy-scan
- OpenHands (untested): Not graded yet for OpenHands. Builder: /coding/builder/#client=openhands&p=iam-policy-scan
- Kimi Code (untested): Not graded yet for Kimi Code. Builder: /coding/builder/#client=kimi-code&p=iam-policy-scan
- Factory Droid (untested): Not graded yet for Factory Droid. Builder: /coding/builder/#client=factory-droid&p=iam-policy-scan

## What it misses

This policy does not state what it misses.

## Examples

- Refused: A JSON policy grants Action star as a list split across lines.
- Allowed: A policy lists scoped actions over several lines.

## Latest change

0.1.4 · 2026-11-17 — 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.

## Provenance

- Tested by 61 of 61 cases run automatically
- SHA-256: `ad8cb226998e68de23207ecbb6894a3155b67ee79a6ecc89448782d7026b8a30`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4
- Source: https://github.com/open-coder-ai/chock-catalog/tree/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/agentic-security/iam-policy-scan (catalog path `agentic-security/iam-policy-scan`)
- Presets: Cloud and containers
- JSON: `/api/coding/policies/iam-policy-scan.json`
- Report a problem: https://chock.sh/report/?policy=iam-policy-scan&version=0.1.4&page=%2Fcoding%2Fpolicies%2Fiam-policy-scan%2F
