Policies
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.
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
Built from engine cd5ab4b54595 and catalog 1509086e5bee.