[1/3]Sigstore + Rekor
Checks the Fulcio certificate's issuer identity, verifies the DSSE signature, authenticates the Rekor checkpoint and Merkle inclusion proof, and confirms the workflow URI names the source repo.
██████╗██╗ ███████╗ █████╗ ██████╗ ██╗ ██╗ █████╗ ███████╗██╗ ██╗ ██╔════╝██║ ██╔════╝██╔══██╗██╔══██╗██║ ██║██╔══██╗██╔════╝██║ ██║ ██║ ██║ █████╗ ███████║██████╔╝███████║███████║███████╗███████║ ██║ ██║ ██╔══╝ ██╔══██║██╔══██╗██╔══██║██╔══██║╚════██║██╔══██║ ╚██████╗███████╗███████╗██║ ██║██║ ██║██║ ██║██║ ██║███████║██║ ██║ ╚═════╝╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
supply-chain integrity verifier for npm, PyPI and Cargo packages.
ClearHash fetches a package, verifies its SLSA attestation through Sigstore + Rekor, rebuilds it from the attested source commit in a Docker container, and compares the rebuilt file tree against the registry artifact. If anything differs, the install is blocked.
A recording of the full pipeline from an earlier release, which rebuilt online. The run took about 36 seconds; the GIF plays at 4× speed. The current release rebuilds offline and refuses this package because its pinned source has no dependency integrity hashes.

[1/5] Fetching sigstore from npm sha256: 1b5041a35f86125db7f872742502470753fd2e1109521b7dbff8a61d229a03c2 [2/5] Verifying Sigstore attestation WARN clearhash_provenance: provenance: validated commit: 46e7056ff991 (workflow: github.com/sigstore/sigstore-js/.github/workflows/release.yml@refs/heads/main) [3/5] Spinning up rebuild container (node:20.11.1-bookworm-slim) [4/5] Rebuilding from source at commit 46e7056ff991 [5/5] Comparing file trees ✓ MATCH npm:sigstore@2.3.1 tree-hash ec714016d7e4ce742f9aa23b6f16f19cb967bf82
In event-stream, ua-parser-js, xz-utils and the post-install wallet stealers, the published tarball held code the source repo did not. A signature tells you who published a tarball, and a transparency log tells you every mirror serves the same one. Neither tells you whether the tarball is what the source would build. ClearHash rebuilds it and compares.
Checks the Fulcio certificate's issuer identity, verifies the DSSE signature, authenticates the Rekor checkpoint and Merkle inclusion proof, and confirms the workflow URI names the source repo.
Clones the source repo, checks out the attested commit, and builds the package in a pinned Docker image. npm builds run with --ignore-scripts, so lifecycle hooks never execute.
Extracts both archives, drops the metadata the registry adds, and compares Merkle-hashed file trees. A match exits 0; a mismatch exits 1 with a per-file diff.
Needs Rust 1.88+ and a running Docker daemon (Docker Desktop or OrbStack on macOS). The /inspect page on this site skips the rebuild, so it needs neither.
$ git clone https://github.com/Builder106/clear-hash.git $ cd clear-hash $ cargo install --path crates/clearhash-cli $ clearhash inspect npm:sigstore@2.3.1
The inspect endpoint also returns JSON:
$ curl 'https://clearhash.vercel.app/api/inspect?package=npm:sigstore@2.3.1' { "package": "npm:sigstore@2.3.1", "registry_sha256": "1b5041a35f86125db7f872742502470753fd2e1109521b7dbff8a61d229a03c2", "attestation": { "source_repo": "git+https://github.com/sigstore/sigstore-js@refs/heads/main", "commit_sha": "46e7056ff9912ebfee5298d94024895a9fea76c0", "builder_id": "https://github.com/actions/runner/github-hosted", "issuer_dn": "O=sigstore.dev, CN=sigstore-intermediate", "workflow_uri": "https://github.com/sigstore/sigstore-js/.github/workflows/release.yml@refs/heads/main", "rekor_log_index": 94408136 } }
Warning: rate-limited to 30 requests/minute globally. For higher throughput, run the CLI locally.