{
  "schema_version": 1,
  "id": "scan-secrets",
  "track": "coding",
  "name": "Scan Secrets",
  "version": "0.1.5",
  "sha256": "9d99cab3f5657d37554d6bd899396d95847825c7ff0d8ec4bd3f850a4a5e8a00",
  "sha256_v1": "003ec2606718aa35d321bf3fd51aca995711452aeb30bf462f54af54a582fc73",
  "keyword": "block",
  "word": "blocks",
  "says": "blocks on an agent's file writes and at turn end",
  "description": "Blocks credentials: vendor tokens (AWS, GitHub, GitLab, Slack, OpenAI, HF, ...), JWTs, private-key and PGP blocks, named key/token/secret/password values (JSON, YAML, env, HCL, code), URI creds, Authorization literals, CLI password flags; files by path (.env*, keys). Misses: split or encoded values, quoted values with spaces, unlisted names, reference-, placeholder- or expression-like values (a call, a subscript, a member chain). Runs: commit, agent write, turn end. Pragma same line; agent: only if in HEAD; MCP gateway: never.",
  "misses": "split or encoded values, quoted values with spaces, unlisted names, reference-, placeholder- or expression-like values (a call, a subscript, a member chain).",
  "where": [
    "write",
    "turn-end"
  ],
  "groups": [
    "secrets"
  ],
  "eval_cases": 64,
  "eval_executed": 64,
  "latest": {
    "version": "0.1.5",
    "date": "2026-11-15",
    "change": "Code that handles a password is no longer refused (SS-1; hardening review of 2026-11-15, REVIEW-secrets sections 4 and 4b). The two bare alternatives, `password[=:]<12+ characters>` and `(api|secret|auth)[_-]?(key|token)[=:]<20+ characters>`, matched any run of characters, so `password = getpass.getpass()`, `password = request.json[\"password\"]`, `password: formData.get(\"password\"),` and `password: <your-password>` were blocked. They now match a literal value: silent on a placeholder (`<...>`, `***`, `xxxx`, `...`, `%(`, `#{`, `[[`, your/example/changeme/redacted/null words) and on an expression (an identifier chain followed by `(`, `[` or `<`; a member chain without a digit such as `event.target.value`; for key and token also a snake_case or UPPER_CASE name). `password::` is a path, not an assignment. Provider formats, the named key rule, the quoted alternatives and the command-password alternatives are unchanged. Misses text now names expressions; a dotted passphrase of letters only (`correct.horse.battery`) is read as a member chain. Measured: the 58 lines of the review's idioms and placeholders, 42 refused before, 0 after; eval suite 59 of 59 before, 64 of 64 after (tc-060 to tc-064, all allow, five of which 0.1.4 fails); every committed refusing case still blocks; replay over first-parent history, chock-catalog 243 commits and 430603 added lines: 141 lines refused before and after, 0 disappear, 0 appear; open-coder-ai/chock 281 commits and 253827 added lines: 44 before and after, 0 and 0. Tests: the scan-secrets pattern tests and the guard-memory-writes copy test."
  },
  "agent_labels": {
    "claude-code": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end"
    },
    "cursor": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end"
    },
    "codex": {
      "keyword": "block",
      "says": "blocks on an agent's file writes and at turn end. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)"
    },
    "copilot": {
      "keyword": "block",
      "says": "blocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (not witnessed; the vendor's row is only partly live-run)"
    },
    "devin": {
      "keyword": "block",
      "says": "blocks at turn end only. It does not check a file write when it happens. If the hook errors, the action goes through (vendor docs only, not witnessed)"
    },
    "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/e3d71d03e4dd32377ad5bc19fb6bacdfe6607ea4/base/scan-secrets",
  "enforces": "enforced-at-commit",
  "examples": [
    {
      "word": "Refused",
      "prompt": "A staged file contains an AWS access key ID pattern.",
      "command": null
    },
    {
      "word": "Allowed",
      "prompt": "A commit adds a source file containing the word 'password' in a comment without a secret value.",
      "command": null
    }
  ]
}
