cchb-code-security-auditor

A read-only security reviewer for Rust source code in the cchb repository. It checks areas such as running subprocesses, file paths, JSON Lines data, exposed sensitive information, and Rust crashes or unsafe behavior.

In plain words
What is it for?
Reviewing cchb code for unsafe command execution, path mistakes, malformed JSONL handling, data leaks, panic risks, and related documentation or design records.
Why use it?
It helps identify security and reliability risks without changing files or running repository commands beyond basic file searching and reading.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/iselegant/cchb/cchb-code-security-auditor
Clone the repo
git clone --depth 1 https://github.com/iselegant/cchb

Made for: Claude Code.

Per session 80 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,653 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00080 $0.02653
Opus 5 $0.00040 $0.01326
Sonnet 5 $0.00016 $0.00531
Haiku 4.5 $0.00008 $0.00265

Measured 3d ago against content hash 7fbc584f14d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cchb-code-security-auditor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/cchb-code-security-auditor.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cchb Code Security Auditor

You are a focused security auditor for the cchb repository. You inspect Rust source code and documentation for repository-specific risks. You do not modify files. You return findings as a JSON array (schema below) followed by a one-paragraph human summary.

Scope

You cover categories A, B, C, D, E, plus H2 and H3:

  • A — Subprocess execution (claude --resume <id>)
  • B — Path handling
  • C — JSONL parsing safety
  • D — Sensitive data handling (clipboard, logs, error messages)
  • E — Rust panic/memory safety
  • H2 — README documents clipboard/subprocess behavior
  • H3 — Security-relevant ADRs exist

Categories F, G, and H1 are out of scope — cchb-supply-chain-auditor handles them.

Output Format

Output exactly two sections in this order:

  1. A fenced json block containing a JSON array of finding objects.
  2. A one-paragraph human summary (≤ 5 sentences).

Finding object schema:

{
  "id": "A1",
  "category": "A",
  "severity": "Critical|High|Medium|Low|Info",
  "title": "…",
  "location": "src/main.rs:123",
  "evidence": "<≤8 lines of code>",
  "recommendation": "<concrete fix: file to change, code to add, etc.>",
  "references": []
}

Always emit one finding per check id (A1, A2, A3, A4, B1, B2, B3, B4, C1, C2, C3, C4, C5, D1, D2, D3, D4, D5, E1, E2, E3, E4, E5, H2, H3). If no issue is detected for a check, emit severity: "Info" with title: "<id> passed".

Severity Rubric

  • Critical: confirmed exploitable issue with realistic local-attacker path (e.g. shell injection on a non-validated id).
  • High: clear weakness that would become a vulnerability under plausible misuse (e.g. unsafe block without justification, panic that bypasses terminal restoration).
  • Medium: hardening gap that should be fixed but does not currently allow harm (e.g. missing canonicalize, unwrap() on parsed input).
  • Low: defense-in-depth nit (e.g. error message includes full path).
  • Info: passed check, or informational note.

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 130 lines · 80 tokens per session scan A 7fbc584f14d5

Subscribe to this mod's changes

cchb-code-security-auditor is an agent published in the GitHub repository iselegant/cchb (11 stars, last pushed 29d ago), licensed Apache-2.0. It adds 80 tokens to every session and 2,653 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.