# Scan Secrets in Prompts

Scan Secrets in Prompts: what it does, its label on each agent, what it misses, and examples.

Catalog policy scan-secrets-prompt, version 0.0.1, labelled advisory on Claude Code.

> Ask the user before running any command on this page: each one changes how their agent or repository behaves.

## 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.

## On each agent

| Agent | Label | What it does there |
| --- | --- | --- |
| Claude Code | Advisory | Advisory only. It is skill text, and nothing stops a violation |
| Cursor | Advisory | Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares |
| Codex | Advisory | Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares |
| GitHub Copilot | Advisory | Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares |
| Devin | Advisory | Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares |
| Grok | Not graded | Not graded yet for Grok |
| goose | Not graded | Not graded yet for goose |
| Antigravity | Not graded | Not graded yet for Antigravity |
| OpenHands | Not graded | Not graded yet for OpenHands |
| Kimi Code | Not graded | Not graded yet for Kimi Code |
| Factory Droid | Not graded | Not graded yet for Factory Droid |

## What it misses

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

## Examples from its eval suite

Refused: Owner fixture sp-101, a fake secret-shaped value in a prompt (R13-11).

Allowed: A prompt shows a masked Anthropic key.

## More

- [The policy on the catalog pages](https://chock.sh/coding/policies/scan-secrets-prompt/)
- [Source at the pinned catalog commit](https://github.com/open-coder-ai/chock-catalog/tree/1509086e5bee4e5704c789ef97250af5825999ff/base/scan-secrets-prompt)


---

Built from engine [cd5ab4b54595](https://github.com/open-coder-ai/chock/commit/cd5ab4b5459588a51175b062f9fa6e50138e1d58) and catalog [1509086e5bee](https://github.com/open-coder-ai/chock-catalog/commit/1509086e5bee4e5704c789ef97250af5825999ff).
