Chock.sh Build your plugin
Advisoryv0.0.1

Scan Secrets in Prompts

Advisory only. It is skill text, and nothing stops a violation.

Acts on

Agent instructions

When

As instructions the agent reads

Tested

50 of 50 pass

In a git repo

In agent

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.

Chock adds friction. It is not a security boundary.

Its label on each agent

The catalog grades each policy on each agent. Pick an agent to build with this policy:

  • Claude Code TestedAdvisory Advisory only. It is skill text, and nothing stops a violationBuild →
  • Cursor TestedAdvisory Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declaresBuild →
  • Codex TestedAdvisory Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declaresBuild →
  • GitHub Copilot TestedAdvisory Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declaresBuild →
  • Devin TestedAdvisory Text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declaresBuild →
  • Grok Tested Not graded yet for GrokBuild →
  • goose Tested Not graded yet for gooseBuild →
  • Antigravity Tested Not graded yet for AntigravityBuild →
  • OpenHands Untested Not graded yet for OpenHandsBuild →
  • Kimi Code Untested Not graded yet for Kimi CodeBuild →
  • Factory Droid Untested Not graded yet for Factory DroidBuild →

See it in action

Refused

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

Allowed

A prompt shows a masked Anthropic key.

Both examples are this policy's own test cases.

What it misses

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

Latest change

0.0.1 · · 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.