{
  "schema_version": 1,
  "id": "scan-secrets-prompt",
  "track": "coding",
  "name": "Scan Secrets in Prompts",
  "version": "0.0.1",
  "sha256": "c3c04f24658871dabc4c7f302036c47210cf5685fbe0acb23eeaeb8309f8a43a",
  "sha256_v1": "7c5b367a9412895f021cdd58236cdf0af8e93302d0bc95e1b8083b327cc2454f",
  "keyword": "advise",
  "word": "advisory",
  "says": "advisory only. It is skill text, and nothing stops a violation",
  "description": "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.",
  "misses": "a bare password, a split or encoded value, a vendor shape not listed.",
  "where": [
    "text"
  ],
  "groups": [],
  "eval_cases": 50,
  "eval_executed": 50,
  "latest": {
    "version": "0.0.1",
    "date": "2026-11-22",
    "change": "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."
  },
  "agent_labels": {
    "claude-code": {
      "keyword": "advise",
      "says": "advisory only. It is skill text, and nothing stops a violation"
    },
    "cursor": {
      "keyword": "advise",
      "says": "text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares"
    },
    "codex": {
      "keyword": "advise",
      "says": "text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares"
    },
    "copilot": {
      "keyword": "advise",
      "says": "text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares"
    },
    "devin": {
      "keyword": "advise",
      "says": "text only in a plugin. Nothing in the plugin stops a violation. The plugin does not carry the enforcement the manifest declares"
    },
    "grok": {
      "keyword": "ungraded",
      "says": "Not graded yet for Grok"
    },
    "goose": {
      "keyword": "ungraded",
      "says": "Not graded yet for goose"
    },
    "antigravity": {
      "keyword": "ungraded",
      "says": "Not graded yet for Antigravity"
    },
    "openhands": {
      "keyword": "ungraded",
      "says": "Not graded yet for OpenHands"
    },
    "kimi-code": {
      "keyword": "ungraded",
      "says": "Not graded yet for Kimi Code"
    },
    "factory-droid": {
      "keyword": "ungraded",
      "says": "Not graded yet for Factory Droid"
    }
  },
  "source_url": "https://github.com/open-coder-ai/chock-catalog/tree/1509086e5bee4e5704c789ef97250af5825999ff/base/scan-secrets-prompt",
  "enforces": "best-effort (prompt submit, for the clients the engine wires, once hooks are installed)",
  "examples": [
    {
      "word": "Refused",
      "prompt": "Owner fixture sp-101, a fake secret-shaped value in a prompt (R13-11).",
      "command": null
    },
    {
      "word": "Allowed",
      "prompt": "A prompt shows a masked Anthropic key.",
      "command": null
    }
  ]
}
