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 server | Compared with | Reference source |
|---|---|---|
| Deployed files of a git checkout | Every tracked file at the reported commit, which must be on the audited branch | A clone of the public repository |
| Files the deploy generates | A build of the same commit that the verifier runs itself | The verifier's own checkout |
| A release deployed without git | Its .attestium-manifest.json, attested by the configured workflow | GitHub's attestation API and SigstoreA public signing service: short-lived certificates from Fulcio tied to an OIDC identity, with signatures logged in Rekor. |
| Installed packages | The package each lockfile at the deployed commit pins | The registries |
| Node.js binaries | The official release archive | nodejs.org/dist |
| Containers | The image, fetched by digest | The container registry |
| System binaries and libraries | The file of the owning Debian or Ubuntu package | The signed distribution archive |
| Other programs | A pinned SHA-256 or a signed checksum list | The 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#
- 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_keysforces 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.. - 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.
- The verifier checks the nonce and the digest, fetches every reference itself, and compares.
- It writes
report.md,report.jsonandbadge.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_OPTIONSorLD_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#
npm install -g auditstatus
auditstatus init --host app1.example.comGetting started goes from auditstatus init to a first published report.