Skip to content

Quickstart

The checker is published on npm as a single self-contained package. It reads a bundle, re-hashes every file, and re-derives the verdict. It runs nothing else.

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

Exit code 0 means the bundle verifies. Exit code 1 means it does not, and the reason is printed. If any file in the bundle has been altered, you get the exact hash mismatch:

Bundle invalid: ./path-to-bundle
- [hash] receipt.json: "receipt.json" hash mismatch: artifact-index.json
records 0x7ab1..., computed 0x13f4... from the file on disk

That is the whole trust story: you do not have to believe whoever gave you the receipt. See Verifying a receipt.

Running a case replays an exploit, which means running a repository’s Foundry tests. That needs the repository and Foundry, so it runs from a clone rather than a published package.

Terminal window
git clone https://github.com/solutiono1/exploitlens
cd exploitlens
pnpm install
# describe your case
pnpm exploitlens init
# run it: replays both commits, writes a bundle
pnpm exploitlens run path/to/exploitlens.manifest.json
# read the verdict, with a CI-friendly exit code
pnpm exploitlens report exploitlens-runs/<run-id>

See CLI for every command, Add your own case for the manifest, and GitHub Action to run it in CI.