Verify that production matches the source code

Audit Status checks that each production server runs exactly the code in a public repository: the deployed files match a commit on the audited branch, the installed packages match the lockfile, and every running program and library is explained by a reference the verifierThe program in CI that sends a nonce, fetches references itself, compares, and writes the report. fetches itself.

What is compared with what#

On the serverCompared withReference source
Deployed files of a git checkoutEvery tracked file at the reported commit, which must be on the audited branchA clone of the public repository
Files the deploy generatesA build of the same commit that the verifier runs itselfThe verifier's own checkout
A release deployed without gitIts .attestium-manifest.json, attested by the configured workflowGitHub's attestation API and SigstoreA public signing service: short-lived certificates from Fulcio tied to an OIDC identity, with signatures logged in Rekor.
Installed packagesThe package each lockfile at the deployed commit pinsThe registries
Node.js binariesThe official release archivenodejs.org/dist
ContainersThe image, fetched by digestThe container registry
System binaries and librariesThe file of the owning Debian or Ubuntu packageThe signed distribution archive
Other programsA pinned SHA-256 or a signed checksum listThe project's release page

The lockfile is read from the verifier's clone at the deployed commit, never from the server. See How it works.

One run#

  1. The verifier, usually a scheduled GitHub Actions workflow, sends a fresh nonceA random value the verifier chooses for one run, so that an old answer cannot be replayed. to each server over SSH. The server's authorized_keys forces the command, so the key can only run the attesterThe program on each server. It collects facts and reports them as evidence; it never decides whether the server passes..
  2. The attester hashes the deployed files, installed packages and every running executable and library, inspects every process of each service, computes a digest of the evidence, and asks a TPMTrusted Platform Module: a chip with keys that cannot be exported and registers (PCRs) that can be extended but never set. or the CPU to sign it when available.
  3. The verifier checks the nonce and the digest, fetches every reference itself, and compares.
  4. It writes report.md, report.json and badge.json, and can publish them to a branch and open an issue when a server fails.

What a passing report claims#

At the moment of the audit, a passing server:

  • runs a commit on the audited branch of the public repository, with every tracked file unchanged and nothing added that the commit does not ignore;
  • has installed packages that match its lockfiles, build output that matches a reproduced build, and container files that match their images;
  • runs only executables and libraries that some reference explains;
  • has no known code-injection vector open in the inspected processes, such as a preload in NODE_OPTIONS or LD_PRELOAD, an open inspector port or an attached debugger.

It does not claim that the public code is free of bugs. It shows that what runs is what anyone can read. See Threat model.

Drift, mistakes and attacks#

Most failures are not attacks: a hotfix edited on the server, a deploy that did not finish, a dependency installed without the lockfile, a process started before the last deploy. The report names each one with what to do about it. See Reports.

Against an attacker with root on the server, software evidence is not enough: root controls the attester. A TPM quote, IMAIntegrity Measurement Architecture: the Linux kernel hashes files as they are used, logs each hash and extends PCR 10. and confidential VMs raise the bar. The report states the evidence level of every server.

Start#

Shell
npm install -g auditstatus
auditstatus init --host app1.example.com

Getting started goes from auditstatus init to a first published report.

Edit this page on GitHub