---
id: scan-secrets-prompt
track: coding
version: 0.0.1
label: advisory
keyword: advise
where: text
sha256: c3c04f24658871dabc4c7f302036c47210cf5685fbe0acb23eeaeb8309f8a43a
source: https://github.com/open-coder-ai/chock-catalog/tree/1509086e5bee4e5704c789ef97250af5825999ff/base/scan-secrets-prompt
catalog_ref: 1509086e5bee4e5704c789ef97250af5825999ff
---

# Scan Secrets in Prompts

scan-secrets-prompt · version 0.0.1

Advisory — Advisory only. It is skill text, and nothing stops a violation. Chock adds friction. It is not a security boundary. 

In a git repo: in agent (The agent's hooks check this once chock sync sets them up. If the hook crashes, the action goes through.)



## What it does

Screens a prompt for a credential before the model reads it: vendor tokens (AWS, GitHub, GitLab, Slack, OpenAI, Anthropic, HF, ...), private keys with a body, JWTs, URI logins, Authorization literals. Installed with chock it refuses the prompt; a plugin alone carries text only. No name-based rule, so code that mentions a password passes. Allows AWS example keys, masked keys and variable names. Misses: a bare password, a split or encoded value, a vendor shape not listed. No waiver.

## Its label on each agent

- Claude Code (tested): Advisory — Advisory only. It is skill text, and nothing stops a violation. Builder: /coding/builder/#client=claude-code&p=scan-secrets-prompt
- Cursor (tested): Advisory — Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares. Builder: /coding/builder/#client=cursor&p=scan-secrets-prompt
- Codex (tested): Advisory — Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares. Builder: /coding/builder/#client=codex&p=scan-secrets-prompt
- GitHub Copilot (tested): Advisory — Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares. Builder: /coding/builder/#client=copilot&p=scan-secrets-prompt
- Devin (tested): Advisory — Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares. Builder: /coding/builder/#client=devin&p=scan-secrets-prompt
- Grok (tested): Not graded yet for Grok. Builder: /coding/builder/#client=grok&p=scan-secrets-prompt
- goose (tested): Not graded yet for goose. Builder: /coding/builder/#client=goose&p=scan-secrets-prompt
- Antigravity (tested): Not graded yet for Antigravity. Builder: /coding/builder/#client=antigravity&p=scan-secrets-prompt
- OpenHands (untested): Not graded yet for OpenHands. Builder: /coding/builder/#client=openhands&p=scan-secrets-prompt
- Kimi Code (untested): Not graded yet for Kimi Code. Builder: /coding/builder/#client=kimi-code&p=scan-secrets-prompt
- Factory Droid (untested): Not graded yet for Factory Droid. Builder: /coding/builder/#client=factory-droid&p=scan-secrets-prompt

## What it misses

A bare password, a split or encoded value, a vendor shape not listed.

## Examples

- Refused: Owner fixture sp-101, a fake secret-shaped value in a prompt (R13-11).
- Allowed: A prompt shows a masked Anthropic key.

## Latest change

0.0.1 · 2026-11-22 — Initial draft (R13-11): a content_regex gate at prompt_submit, so a pasted credential is refused before the model reads it. The shapes are scan-secrets' vendor tokens, private-key blocks, JWTs, URI logins and Authorization literals, with none of its name-based rules (password = ..., api_key: ...) or command password flags, which would refuse a person describing code. Four shapes are tighter for prose: they are case-sensitive (Authorization and its scheme word aside), a private key needs a base64 body after the BEGIN line, a JWT needs a non-empty header and payload, and an Authorization literal needs 20 token characters. An AWS key whose last seven characters are EXAMPLE is allowed. Stays draft until a refusal is witnessed live in Claude Code.

## Provenance

- Tested by 50 of 50 cases run automatically
- SHA-256: `c3c04f24658871dabc4c7f302036c47210cf5685fbe0acb23eeaeb8309f8a43a`
- Catalog commit: https://github.com/open-coder-ai/chock-catalog/commit/1509086e5bee4e5704c789ef97250af5825999ff
- Source: https://github.com/open-coder-ai/chock-catalog/tree/1509086e5bee4e5704c789ef97250af5825999ff/base/scan-secrets-prompt (catalog path `base/scan-secrets-prompt`)
- Presets: none
- JSON: `/api/coding/policies/scan-secrets-prompt.json`
- Report a problem: https://chock.sh/report/?policy=scan-secrets-prompt&version=0.0.1&page=%2Fcoding%2Fpolicies%2Fscan-secrets-prompt%2F
