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

# Block Wildcard IAM Grants

block-wildcard-iam · version 0.1.6

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

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.

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

## What it misses

This policy does not state what it misses.

## Examples

- Refused: A staged IAM policy document grants Action star.
- Allowed: A staged IAM document grants a scoped action on a named resource.

## Latest change

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

## Provenance

- Tested by 38 of 38 cases run automatically
- SHA-256: `bbc659a7a2d908a21819e21a461618a4759a26053f136e0d95de3d8108ebe417`
- 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/block-wildcard-iam (catalog path `agentic-security/block-wildcard-iam`)
- Presets: Cloud and containers
- JSON: `/api/coding/policies/block-wildcard-iam.json`
- Report a problem: https://chock.sh/report/?policy=block-wildcard-iam&version=0.1.6&page=%2Fcoding%2Fpolicies%2Fblock-wildcard-iam%2F
