Skip to content

Verifying a receipt

A Fix Receipt is only worth something if a third party can check it without trusting the person who produced it. That third party installs @exploitlens/verify.

Terminal window
npx @exploitlens/verify ./path-to-bundle

It cannot run anything, and that is provable

Section titled “It cannot run anything, and that is provable”

The checker is the read-only half of ExploitLens, bundled to a single file whose only dependency is zod. It does not run forge, check out a repository, spawn a process, or open a network connection, and it has no code that can.

This is a property of the shipped bytes, not a promise. The only Node builtins the bundle can import are crypto, fs, path and url, which alone makes spawning a process or opening a socket impossible. A test asserts exactly that on the built output and fails if anything else appears.

  • Every file’s hash against artifact-index.json, and that index against the receipt’s bundleDigest.
  • That the receipt’s gate results are what the gate engine re-derives from the bundle’s own evidence. A receipt claiming a verdict its evidence does not support fails.
  • That every reference inside the bundle resolves.
import { verifyBundle, formatReport } from "@exploitlens/verify";
const report = await verifyBundle("./path-to-bundle");
if (!report.ok) {
for (const line of formatReport(report)) console.error(line);
process.exit(1);
}