IAM Policy Scan
Blocks on an agent's file writes and at turn end.
Acts on
File write · Turn end
When
Before the file write · at turn end
Tested
61 of 61 pass
In a git repo
At commit
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.
Chock adds friction. It is not a security boundary.
Its label on each agent
The catalog grades each policy on each agent. Pick an agent to build with this policy:
- Claude Code TestedBlocks Blocks on an agent's file writes and at turn endBuild →
- Cursor TestedBlocks 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 pointBuild →
- Codex TestedBlocks 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)Build →
- GitHub Copilot TestedBlocks 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)Build →
- Devin TestedBlocks 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)Build →
- Grok Tested Not graded yet for GrokBuild →
- goose Tested Not graded yet for gooseBuild →
- Antigravity Tested Not graded yet for AntigravityBuild →
- OpenHands Untested Not graded yet for OpenHandsBuild →
- Kimi Code Untested Not graded yet for Kimi CodeBuild →
- Factory Droid Untested Not graded yet for Factory DroidBuild →
See it in action
Refused
A JSON policy grants Action star as a list split across lines.
Allowed
A policy lists scoped actions over several lines.
Both examples are this policy's own test cases.
What it misses
This policy does not state what it misses.
Latest change
0.1.4 · · 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.