---
id: scan-secrets
track: coding
version: 0.1.4
label: blocks
keyword: block
where: write turn-end
sha256: 97ead4b680b101b3d17c06142dac0900fc3cfc894dfaa5cb5e09f7e01e4a8edb
source: https://github.com/open-coder-ai/chock-catalog/tree/38fb487f7768f3d5c06853a0d4a346587abec937/base/scan-secrets
catalog_ref: 38fb487f7768f3d5c06853a0d4a346587abec937
---

# Scan Secrets

scan-secrets · 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

Blocks credentials: vendor tokens (AWS, GitHub, GitLab, Slack, OpenAI, HF, ...), JWTs, private-key and PGP blocks, named key/token/secret/password values (JSON, YAML, env, HCL, code), URI creds, Authorization literals, CLI password flags; files by path (.env*, keys). Misses: split or encoded values, quoted values with spaces, unlisted names, reference- or placeholder-like values. Runs: commit, agent write, turn end. Pragma same line; agent: only if in HEAD; MCP gateway: never.

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

## What it misses

Split or encoded values, quoted values with spaces, unlisted names, reference- or placeholder-like values.

## Examples

- Refused: A staged file contains an AWS access key ID pattern.
- Allowed: A commit adds a source file containing the word 'password' in a comment without a secret value.

## Latest change

0.1.4 · 2026-11-09 — Changelog order only (IR-F46): entries had been added at the top of a list that ran oldest-first, so it rose and fell by version; they now run newest-first throughout. No entry's text or version, and no rule, guard or eval, changed. Patch bump because the manifest is part of the published pack hash.

## Provenance

- Tested by 59 of 59 cases run automatically
- SHA-256: `97ead4b680b101b3d17c06142dac0900fc3cfc894dfaa5cb5e09f7e01e4a8edb`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/38fb487f7768f3d5c06853a0d4a346587abec937
- Source: https://github.com/open-coder-ai/chock-catalog/tree/38fb487f7768f3d5c06853a0d4a346587abec937/base/scan-secrets (catalog path `base/scan-secrets`)
- Presets: Secrets
- JSON: `/api/coding/policies/scan-secrets.json`
- Report a problem: https://chock.sh/report/?policy=scan-secrets&version=0.1.4&page=%2Fcoding%2Fpolicies%2Fscan-secrets%2F
