🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@walwarden/verifier

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@walwarden/verifier

Offline Evidence bundle verifier for Walwarden — verifies Manifest signatures and Audit-chain integrity.

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

@walwarden/verifier

Offline verifier for Walwarden Evidence bundles.

walwarden-verify checks that every Manifest in a Walwarden Evidence bundle was signed by the publishing organization's Ed25519 key, and that the Audit chain over that bundle matches its on-write algorithm. The CLI is read-only on disk, requires no network, and depends only on Node ≥20 — an auditor can run it on their own machine without trusting any Walwarden surface.

Install + run

# One-shot, no global install:
npx @walwarden/verifier --bundle <evidence-bundle.tgz> --pubkey <pubkey.pem>

# Local install:
npm install -g @walwarden/verifier
walwarden-verify --bundle <evidence-bundle.tgz> --pubkey <pubkey.pem>

The publishing organization's public key is at:

https://walwarden.com/.well-known/walwarden-pubkey.pem

After a key rotation, prior keys remain downloadable at:

https://walwarden.com/.well-known/walwarden-pubkey-{YYYY-MM-DD}.pem

What it checks

  • Every manifest.json inside the Evidence bundle has a signature field, the signature is valid Ed25519 over the manifest's canonical JSON form (with signature stripped), and the signature verifies against the supplied public key.
  • For every Manifest whose corresponding artifact bytes are also in the bundle, the bundle artifact's SHA-256 matches the Manifest's checksumSha256. Bundles without artifacts skip this with a SKIP line — the auditor sees the omission rather than a silent pass.
  • The Audit chain in audit_events.json is intact:
    • seq starts at 1 and increases by 1 with no gaps
    • every row's prevHash equals the previous row's hash
    • every row's hash equals sha256(prevHash || canonicalJson({ at, jobId, kind, payload }))

Output

Default human-readable form, one line per check:

OK: manifest signature valid for backup_job=job_alpha
OK: manifest artifact sha256 matches for backup_job=job_alpha (a3c8f1b6e7…)
OK: audit chain intact through seq=42 (42 audit events)
OK: 1 manifests verified, 42 audit events chain-intact

Failure lines are deliberately verbatim so dashboard surfaces and runbooks can quote them without copy-paste drift:

FAIL: audit chain broken at seq=23, computed_hash=<64hex>, stored_hash=<64hex>
FAIL: manifest signature invalid for backup_job=<id>

Pass --json to emit one JSON object instead. Stable shape:

{
  "ok": true,
  "manifestResults": [...],
  "chainResult": {...},
  "summary": { "manifestsVerified": 1, "manifestsTotal": 1, "auditEventCount": 42, "chainOk": true }
}

Exit codes

CodeMeaning
0Every Manifest signature verified and the Audit chain is intact.
1At least one Manifest signature did not verify, or the Audit chain diverged. The offending backup_job_id and audit-event seq are named on stdout.
2Usage error (missing flag, unreadable file, malformed PEM, etc.).

Bundle layout

Walwarden Evidence bundle is a .tar.gz containing:

manifests/<backup_job_id>.manifest.json   (one or more)
audit_events.json
artifacts/<artifact_key>                  (optional)

Manifest format follows @walwarden/core's BackupManifest (schemaVersion: 1) with a sibling signature: string (base64-encoded raw 64-byte Ed25519 signature). audit_events.json is a JSON array of stored audit-event rows (seq, at, kind, jobId, payload, prevHash, hash).

v0 status

This package is published from the Walwarden monorepo at noncelogic/walwarden. The published tarball includes a pre-built dist/ (emitted by npm run build in this package, wired through the prepack step) so an auditor running npx @walwarden/verifier invokes the compiled JS directly — no TypeScript loader, no workspace dev dependencies, only Node ≥20.

The verifier is zero runtime dependencies by design — an auditor's npx install must be quick and its supply-chain footprint small.

See also

  • Walwarden architecture
  • Walwarden brand & positioning
  • Issue #52 — engineering ticket
  • Issue #66 Q-op-2 — operator-owned key generation/rotation

Keywords

walwarden

FAQs

Package last updated on 13 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts