Chock.sh Build your plugin

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

AgentLabelWhat it does there
Claude CodeAdvisoryAdvisory only. It is skill text, and nothing stops a violation
CursorAdvisoryText only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares
CodexAdvisoryText only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares
GitHub CopilotAdvisoryText only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares
DevinAdvisoryText only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares
GrokNot gradedNot graded yet for Grok
gooseNot gradedNot graded yet for goose
AntigravityNot gradedNot graded yet for Antigravity
OpenHandsNot gradedNot graded yet for OpenHands
Kimi CodeNot gradedNot graded yet for Kimi Code
Factory DroidNot gradedNot 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.