Runtime integrity monitoring for Linux servers
File integrity checks compare files on disk. Code runs in processes. Audit Status inspects every process of each service, explains every executable and library they map, and with its monitor also checks what ran between two audits.
Process checks#
For every process of a service, the attesterThe program on each server. It collects facts and reports them as evidence; it never decides whether the server passes. reports facts and the verifierThe program in CI that sends a nonce, fetches references itself, compares, and writes the report. decides:
- Executable memory. The process's executable pages are compared byte for byte with the files they map, so code patched in memory is found.
- Injection vectors. Environment variables and flags that load code before the application:
LD_PRELOAD,NODE_OPTIONSwith--requireor--import,PYTHONPATH,JAVA_TOOL_OPTIONS,RUBYOPTand the equivalents of each runtime. - Debuggers and inspectors. An attached tracer, and open inspector or debug ports.
- Code without a file.
memfdobjects mapped executable. - The running binary. Read through
/proc/<pid>/exe, so a binary replaced on disk after the process started is still the one checked.
Runtimes recognized: Node.js, Python, the JVM, Ruby, .NET, BEAM, PHP, Perl, Deno and Bun.
Every running file is explained#
Every executable and library an inspected process runs or maps is compared with a reference: the service's commit, a verified package, the official Node.js release, a container image, the owning Debian or Ubuntu package in the signed archive, or a pinned hash or signed checksum list. A file that differs from its reference fails; a file no reference explains is reported. See How it works.
Between audits: the monitor#
An audit sees one moment. Code that ran and was removed before the audit leaves no file to find. auditstatus monitor records, with eBPF through bpftrace, every program started and every file mapped executable, and each audit checks the window before it:
| Finding | Default |
|---|---|
| Programs or libraries loaded since the last audit differ from their references | fail |
| Programs or libraries loaded since the last audit are no longer on disk | fail |
| Programs or libraries loaded since the last audit that no reference explains | fail |
The monitor's log is written by root on the server, so it is software evidence. See Monitor.
Hardware-backed records: IMA#
With IMAIntegrity Measurement Architecture: the Linux kernel hashes files as they are used, logs each hash and extends PCR 10., the kernel hashes files as they are loaded and extends TPMTrusted Platform Module: a chip with keys that cannot be exported and registers (PCRs) that can be extended but never set. PCRPlatform Configuration Register: a TPM register that can only be extended with a hash. Firmware, bootloader and kernel extend PCRs with what they load. 10 before they run. The verifier replays the log to the quoted PCR, so the record holds even against root: files the kernel measured cannot be removed from it. See Hardware evidence.
Limits#
- Code outside files (evaluated strings, output of just-in-time compilers, data interpreted as code) is not verified.
- Kernel and firmware are trusted at every level.
- An attacker who blocks the verifier makes the result inconclusive, never passing.
Next#
- Threat model: what each evidence level holds against.
- Reports: every process and code finding, and what to do about it.