crypto-fp-check · git:20261113.724a92f · 2026-11-13 · sha256 dabbe66139174e94

crypto-fp-check git:20261113.724a92fA

Immutable. This exact content never changes and is served at /api/v1/blob/dabbe66139174e94.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_t5ebr2q36cz3fywr/dabbe66139174e94ee8fee596992cc4691cc9d596ea6aca384c7e306c366ae88.json

Then /plugin install crypto-fp-check@markdownregistry-t5ebr2q36cz3fywr in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: crypto-fp-check
description: >
  Verifies suspected ZK and cryptographic findings before reporting. Use when
  deciding whether a suspected vulnerability is a TRUE POSITIVE or FALSE
  POSITIVE, assigning severity, or enforcing the Critical/High PoC gate.
allowed-tools: Read Grep Glob Bash Write Edit
---

# crypto-fp-check

Do not report a finding because it looks dangerous. Verify it.

## When to Use

- Checking whether a suspected crypto or ZK bug is real
- Deciding whether severity is justified by evidence
- Enforcing PoC requirements before report or index entry
- Reviewing a draft finding that still feels hypothesis-shaped

## When NOT to Use

- Building initial audit context for a new target -> `crypto-audit-context`
- Hunting for new bug patterns across the codebase -> the domain auditor for
  that code
- Writing report prose -> `crypto-report-writer`
- Checking whether a patch fixes a verified finding -> `fix-verification`

## Rationalizations to Reject

| Rationalization | Why it is wrong |
|---|---|
| "This pattern is obviously exploitable" | Crypto bugs often collapse under missing attacker control or missing trigger conditions |
| "Prior art proves this is a real bug here too" | Prior art supports plausibility, not target-specific exploitability |
| "Critical/High is obvious; we can add a PoC later" | Critical/High without executable proof is still a hypothesis |
| "The implementation is weird, so the finding must be real" | Weird code and exploitable code are not the same thing |
| "The code evidence is self-evident for High/Critical" | Self-evident to the auditor is not a PoC. Write and run the test. |
| "I'll note PoC status in the report instead of writing it" | PoC status in prose is not a PoC. The test file must exist and execute. |

## Workflow

Read `workflows/verification-gates.md` and execute it in order. Do not skip the
PoC gate for Critical/High claims.

## Reference Use

- Use `audit-common` severity definitions when assigning severity
- Use `audit-common` testing evidence definitions when arguing that tests are insufficient
- `zkbugs-index` prior art supports plausibility only; it never substitutes
  for a target-specific trigger path

## Output Contract

The final deliverable for each TRUE POSITIVE finding is **two artifacts**, not one:

**1. Verification verdict** (inline):
- `TRUE POSITIVE` or `FALSE POSITIVE`
- The exact gate that failed or the evidence that satisfied each gate
- The justified severity ceiling
- The correct next route: report, more domain review, or discard

**2. PoC test** — mandatory for High/Critical, recommended for Medium/Low:
- File path where the test was written into the target project's test suite
- Test function name, prefixed `poc_<finding-id>_` (e.g., `poc_f02_cross_module_signing`)
- Execution result: the actual `cargo test` / `pytest` / equivalent output line, or an explicit statement of the build blocker with fallback structural evidence
- A test that asserts the bug is present (passes while vulnerable, fails after fix)

**The report is incomplete until both artifacts exist for every High/Critical finding.**

When run inside the staged flow, record each verdict on the candidate in
`session.json`: `status`, `severity`, `verdict_rationale`, `gates`,
`poc_status` (`executed`, `pending_poc`, or `not_required`), and `poc_ref`.
`gates` has one entry per gate evaluated, in order: `claim` (Phase 1),
`trigger` (Phase 2), `impact` (Phase 3), `severity` (Phase 4), each with the
result `pass`, `fail`, or `inconclusive`. Copy each PoC and its runner output
into `pocs/` in the audit workspace. A rejected candidate stays in the list as
`false_positive`; it is never deleted.

## Reference Index

- [workflows/verification-gates.md](workflows/verification-gates.md)