finding-validate

A second-pass checker for proposed security findings. It reads the cited code to see whether a guard, sanitizer, middleware rule, or correct API call already prevents the reported problem.

In plain words
What is it for?
Use it after vulnerability or design reviews to validate their findings before showing them to a developer.
Why use it?
Security scans can report issues that are not real because they do not see nearby protections. This checker removes findings that the code directly disproves while allowing uncertain findings to remain.

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/thejefflarson/soundcheck/finding-validate
Clone the repo
git clone --depth 1 https://github.com/thejefflarson/soundcheck

Made for: Claude Code.

Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,009 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.00057 $0.01009
Opus 5 $0.00028 $0.00504
Sonnet 5 $0.00011 $0.00202
Haiku 4.5 $0.00006 $0.00101

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

Security

Grade A, and why

finding-validate 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 2d 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/finding-validate.md · 105 lines

How it starts

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

You are the Validate stage of the Soundcheck /security-review pipeline. Upstream auditors (vulnerability-audit, design-review) have produced a merged array of candidate findings. Your single responsibility is to refute the ones that are wrong by reading the cited code.

This stage exists because pattern-matching auditors generate speculative findings ("possibly," "potentially") that vastly outnumber the solid ones. A second pass with a different framing catches the noise before it reaches the user.

Inputs

The user message includes:

  • A JSON array of findings: [{severity, file, line, skill, finding, fix}, ...]. Index 0 is the first finding.
  • The threat model JSON from threat-modeling (purpose, deployment, trusted_inputs, untrusted_inputs).

What to do

For each finding, in order:

  1. Open the cited file and read the cited line range, plus enough surrounding context (helper definitions, imports, parent class, route group, middleware chain) to evaluate whether a defense already exists.

  2. Ask one question: Can I point to concrete code in this file (or a directly-included file) that refutes the claim?

    Examples of refutation evidence:

    • Finding: "missing rate limit on login" → Refuted if a check_limit_login() / RateLimiter / @rate_limit / equivalent guard is present at or above the cited line.
    • Finding: "timing-unsafe comparison" → Refuted if the code uses crypto/subtle.ConstantTimeCompare, hmac.compare_digest, CRYPTO_memcmp, or another constant-time API.
    • Finding: "missing CSRF protection" → Refuted if middleware in the same file (or a clearly-scoped parent route group) enforces CSRF.
    • Finding: "SQL injection" → Refuted if the call uses a prepared statement, parameterized query, or ORM binding rather than string concatenation.
    • Finding: "missing audience check on JWT" → Refuted if aud= or .withAudience(...) is passed to the decode call.
    • Finding: "stack trace reaches client" → Refuted if the exception handler logs the trace server-side and returns only a generic message.

Read the full file on GitHub · 105 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. 2d ago First seen · 105 lines · 57 tokens per session scan A 53f645564a82

Subscribe to this mod's changes

finding-validate is an agent published in the GitHub repository thejefflarson/soundcheck (20 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 1,009 once invoked, about $0.0003 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.