# Reports

Each verification writes `report.md` for people, `report.json` for machines, and `badge.json` for a badge. This page explains the statuses, the parts of the report, and each finding: what it means and what to do about it. Findings are grouped by their check name, which the report shows in parentheses after the severity.


## Statuses

| Status  | Shown as              | Meaning                                                                                                                                       |
| ------- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `pass`  | passing               | Every check ran and matched its reference.                                                                                                    |
| `warn`  | passing with warnings | Passed, with findings worth attention. Counts as passed.                                                                                      |
| `fail`  | failing               | The server differs from its references, or its evidence is invalid.                                                                           |
| `error` | inconclusive          | A check could not be completed (a reference was unreachable, the server did not answer, a check lacked permissions). Never counts as passing. |

Each finding has a severity: `fail`, `warn`, `error` (the check could not complete) or `info` (context). A server's status is the worst of its findings, in the order `fail`, `error`, `warn`, `pass`. The overall status is the worst server's. Settings in `policy` choose between `fail` and `warn` for some findings; the tables below name them.


## report.md

The report starts with the overall status, how many servers passed, and the verifier's version, then a table with one row per server:

| Column         | Meaning                                                                                                                                               |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| Server         | The server's name in the verifier configuration.                                                                                                      |
| Status         | The server's status.                                                                                                                                  |
| Evidence       | The evidence level: software evidence, TPM, TPM + IMA, AMD SEV-SNP, Intel TDX, or a combination. See [How it works](https://auditstatus.com/docs/how-it-works/#evidence-levels). |
| Services       | How many services were checked.                                                                                                                       |
| Processes      | How many application processes were inspected across the services.                                                                                    |
| Code explained | Executables and libraries that matched a reference, out of all those the processes run or map.                                                        |

Then a section per server: when the evidence was collected, by which attester version, on which operating system, and at which level; one line per service; and the findings, failures first. For a directory service the line shows the commit (linked to the repository), `files verified/tracked`, `build verified/files`, `<ecosystem> packages verified/total`, and the processes with their runtimes. For a container, the image and digest, the number of changes from the image, and the processes. Findings list up to 50 items each, then "… and N more"; `report.json` has the same items and, for most findings, the total.

Values from the evidence are escaped, so a server cannot put links or markup into the report.


## report.json

| Field              | Content                                                                                                                                                                                                                                                                                 |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type`, `version`  | `auditstatus-report`, `2`                                                                                                                                                                                                                                                               |
| `generatedAt`      | When the report was written.                                                                                                                                                                                                                                                            |
| `verifier.version` | The verifier's version.                                                                                                                                                                                                                                                                 |
| `services`         | Each configured service's name, repository, and artifact or image signer.                                                                                                                                                                                                               |
| `status`           | The overall status.                                                                                                                                                                                                                                                                     |
| `servers[]`        | `name`, `host`, `status`, `level`, `hardware`, `collectedAt`, `attesterVersion`, `os`, `findings` (`severity`, `check`, `message`, optional `service` and `detail`), `summary` (processes; code by reference source; global packages; monitor), and `services` (per-service summaries). |
| `files`            | Paths of the three files written.                                                                                                                                                                                                                                                       |


## Findings

### evidence, transport

| Message                                                                                  | Severity | What to do                                                                                                                                                            |
| ---------------------------------------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Could not collect evidence                                                               | error    | The verifier could not reach the attester. The detail has the SSH or kubectl error: check the host, the key, `known_hosts`, and `auditstatus doctor --role verifier`. |
| Unsupported evidence format ... (the attester and verifier versions may differ)          | fail     | Upgrade the attester or the verifier so both use evidence version 2.                                                                                                  |
| Evidence does not match the evidence schema                                              | fail     | The evidence is malformed. Run `auditstatus collect` on the server and compare versions.                                                                              |
| Evidence does not answer this verifier's nonce (stale or replayed)                       | fail     | Something other than the attester answered. Investigate.                                                                                                              |
| Evidence timestamp is outside the accepted window                                        | fail     | The server's clock is off, or collection took longer than `policy.maxEvidenceAgeSeconds`. Fix the clock (NTP).                                                        |
| Evidence cannot be canonicalized, Evidence digest does not match its contents            | fail     | The evidence was edited after it was collected. Investigate.                                                                                                          |
| Evidence names a service more than once                                                  | fail     | An attester never reports a service twice. Investigate.                                                                                                               |
| Processes run executables or map files that the evidence does not list with their hashes | fail     | An attester lists every executable and mapped file of the processes it inspects. Investigate.                                                                         |

### tpm, ima, confidential

| Message                                                                                                                            | Severity                         | What to do                                                                                                                                                                                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| TPM quote verified with the pinned attestation key                                                                                 | info                             |                                                                                                                                                                                                                                                                |
| TPM quote did not verify                                                                                                           | fail                             | The quote does not match the pinned key, the nonce and digest, or `expectedPcrs`. After a firmware or boot update, update `expectedPcrs`; after replacing the TPM or its key, enroll again. Otherwise investigate.                                             |
| A TPM quote is required but none was provided                                                                                      | fail                             | A key is pinned but the server sent no quote. Check `auditstatus doctor` on the server.                                                                                                                                                                        |
| The server requires a TPM but none is available                                                                                    | fail                             | `tpm.enabled: true` on a server whose TPM is not usable.                                                                                                                                                                                                       |
| TPM quote present but no attestation key is pinned for this server                                                                 | info                             | Enroll the TPM with `auditstatus tpm-verify --server <name>` to use it. See [Hardware evidence](https://auditstatus.com/docs/hardware/).                                                                                                                                                  |
| IMA log could not be read                                                                                                          | warn                             | Check `ima.log` and the attester's permissions.                                                                                                                                                                                                                |
| IMA log provided but PCR 10 was not quoted in the SHA-256 bank                                                                     | warn                             | Include `10` in `tpm.pcrs` and keep `tpm.bank: sha256`.                                                                                                                                                                                                        |
| IMA log is malformed, IMA log cannot be replayed, IMA log does not replay to the quoted PCR 10 (edited or truncated log)           | fail                             | The log does not match what the TPM recorded. Investigate.                                                                                                                                                                                                     |
| IMA log verified against the TPM                                                                                                   | info                             |                                                                                                                                                                                                                                                                |
| The kernel measured project files whose contents differ from X                                                                     | fail                             | X is the public commit or the attested release. The kernel saw code that is not the public code. Investigate.                                                                                                                                                  |
| The kernel measured other contents than the evidence reports for executables or libraries the processes run                        | fail                             | The attester reported hashes that are not what the kernel loaded at those paths. Investigate.                                                                                                                                                                  |
| The kernel last measured other contents than the evidence reports at these paths                                                   | warn                             | The reported contents ran at the path, but the kernel measured other contents there since: a file replaced while a process still maps the old one (restart it), or a modified file swapped in after the genuine one ran. Investigate if no deploy explains it. |
| An IMA log backed by the TPM quote is required, but none was verified                                                              | fail                             | The server has `tpm.ima: true` and no log replayed to the quote. Check the IMA findings above it and `auditstatus doctor` on the server.                                                                                                                       |
| Project files the kernel measured are compared under the root the server reports                                                   | warn                             | Pin the service's deployed path with `services[].root`.                                                                                                                                                                                                        |
| Since boot, the kernel measured contents of these project files that no commit of the branch has                                   | fail                             | Code ran from these files and they were then restored: no commit of the branch has those contents, however the files look now. Investigate.                                                                                                                    |
| Since boot, the kernel measured contents of these project files that no commit of the branch has, while they were open for writing | warn                             | The kernel logged a process writing each file as it read it, so it may have hashed the file half written: a deploy that wrote a file as an old process loaded it, or code loaded and then restored. It clears at the next boot.                                |
| Since boot, the kernel also measured these project files as other commits of the branch have them                                  | info                             | Earlier deploys, of earlier or later commits (a deploy rolled back). It clears at the next boot.                                                                                                                                                               |
| Since boot, the kernel also measured other contents for these project files                                                        | warn                             | With an attested release, or a repository the verifier could not read: a previous deploy, or code loaded and then restored. It clears at the next boot.                                                                                                        |
| A confidential VM report is required but none was provided                                                                         | fail                             | The server has `confidential` settings but sent no report. Check `auditstatus doctor` on the server.                                                                                                                                                           |
| The server requires a confidential VM report but could not produce one                                                             | fail                             | `confidential.enabled: true` on the server, and no report.                                                                                                                                                                                                     |
| A confidential VM report ... is present but this server has no confidential settings                                               | info                             | Add `confidential` to the server to use it.                                                                                                                                                                                                                    |
| AMD SEV-SNP report verified, Intel TDX report verified                                                                             | info                             |                                                                                                                                                                                                                                                                |
| The confidential VM report did not verify                                                                                          | fail, or error on network errors | Check the detail.                                                                                                                                                                                                                                              |
| The confidential VM is not the expected one                                                                                        | fail                             | The type, launch measurement, MRCONFIGID or MROWNER differs. Update the pinned values after a planned change; otherwise investigate.                                                                                                                           |
| The report verified, but no launch measurement is pinned                                                                           | warn                             | Pin `confidential.measurements`.                                                                                                                                                                                                                               |

### attester

| Message                                                                                                                          | Severity                               | What to do                                                                                                                                                                       |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Attester binary matches the published release                                                                                    | info                                   |                                                                                                                                                                                  |
| Attester binary does not match any published checksum                                                                            | `policy.unverifiedAuditor`             | Install the release binary, not the npm package or a local build.                                                                                                                |
| The attester could not hash its own executable                                                                                   | `policy.unverifiedAuditor`             | Check the attester's installation.                                                                                                                                               |
| Could not fetch release checksums, Could not fetch the checksums of attester X                                                   | error (warn when the policy is `warn`) | A network problem; the next run usually succeeds.                                                                                                                                |
| Evidence from attester ..., which policy.attesters does not allow                                                                | `policy.unverifiedAuditor`             | Evidence from another attester implementation that the verifier configuration does not name. Add it to `policy.attesters` with the hashes of its binaries, or its checksum list. |
| Attester ... binary matches a hash in policy.attesters, Attester ... binary matches the published checksums for X                | info                                   |                                                                                                                                                                                  |
| Attester ... binary does not match any hash in policy.attesters, Attester ... binary does not match any published checksum for X | `policy.unverifiedAuditor`             | Install a binary the configuration pins, or update `policy.attesters`.                                                                                                           |

### service, processes

| Message                                                                                          | Severity | What to do                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The server reported no service named ...                                                         | fail     | Add the service to the server's attester configuration, or remove it from `servers[].services`.                                                                   |
| The server reported services this verifier does not check here                                   | info     |                                                                                                                                                                   |
| The server reports ... as a container service; its root or artifact settings make it a directory | fail     | A service with `root` or `artifact` in the verifier configuration is a directory. Fix the attester configuration.                                                 |
| Expected at least N application process(es), found M                                             | fail     | The application is not running, or `root`, `user` or `cwd` in the attester configuration does not match it. Lower `minProcesses` if fewer processes are expected. |
| The service's user also runs these programs outside the service directory (not inspected)        | info     | Check the list: a process manager or a scheduled job is expected, anything else is worth a look.                                                                  |

### source

The deployed files against the public commit.

| Message                                                               | Severity                 | What to do                                                                                                       |
| --------------------------------------------------------------------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------- |
| All N tracked files match commit ...                                  | info                     |                                                                                                                  |
| No repository is configured for this service                          | error                    | Add `repository` to the service.                                                                                 |
| The server reports the service at ...; the configuration pins ...     | fail                     | The service's `root` in the verifier configuration differs from where the server says it is deployed.            |
| The server did not report a git commit                                | fail                     | `root` is not a git checkout. Deploy with git, or deploy an attested release.                                    |
| Could not read the public repository                                  | error                    | Check the repository URL; a network problem clears on the next run.                                              |
| Commit ... does not exist in the public repository                    | fail                     | The server runs a commit that was never pushed. Push it, or deploy a public commit.                              |
| Commit ... is not on the public ... branch                            | fail                     | Deploy from the audited branch, or change `repository.branch`.                                                   |
| The server runs ... (...)                                             | info                     | The server runs the version `repository.version` names.                                                          |
| The server runs ..., not ...                                          | `policy.versionMismatch` | Deploy the version `repository.version` names. For a deploy in progress, see `policy.versionGraceSeconds`.       |
| The server runs ..., an earlier commit than ...: a deploy in progress | warn                     | The version appeared less than `policy.versionGraceSeconds` ago. Finish the deploy.                              |
| Could not find ...                                                    | error                    | The tag, commit or release `repository.version` names was not found, or GitHub could not be reached.             |
| Deployed commit is N days old                                         | warn                     | Deploy more often, or raise `policy.maxCommitAgeDays`.                                                           |
| Submodules are not verified                                           | warn                     | Files in submodules are not compared.                                                                            |
| Could not evaluate .gitignore                                         | error                    | Ignored files count as untracked until this works.                                                               |
| Files differ from the public commit                                   | fail                     | Someone changed deployed files. Restore them (`git checkout -- .`) and find out who changed them.                |
| Files from the public commit are missing                              | fail                     | Restore them.                                                                                                    |
| Files not in the public commit (and not ignored by it) are present    | fail                     | Remove them, ignore them in `.gitignore`, produce them with `build`, or allow them with `policy.allowUntracked`. |
| File modes differ from the public commit                              | warn                     | Restore the modes, or commit them.                                                                               |
| Some files could not be read on the server                            | fail                     | Give the attester read access (`CAP_DAC_READ_SEARCH` or root).                                                   |
| Files ignored by the commit could not be read (they are not compared) | info                     |                                                                                                                  |
| Files in code paths are not explained by any reference                | `policy.unexplainedCode` | Files in `policy.codePaths` that the commit ignores. Produce them with `build`, or commit them.                  |
| N file(s) ignored by the commit were not compared                     | info                     | What was not compared, grouped by top-level directory (secrets, logs, uploads).                                  |
| The file list was truncated by the server's limits                    | fail                     | Raise `limits.maxFiles`, or `exclude` large data directories.                                                    |

### build

| Message                                                               | Severity              | What to do                                                                                                                                                                                                                                                     |
| --------------------------------------------------------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| All N build output files match a build of commit ...                  | info                  |                                                                                                                                                                                                                                                                |
| Build output differs from a build of the public commit                | `policy.buildOutputs` | The build is not reproducible, or the output was changed. Compare with a local build of the same commit.                                                                                                                                                       |
| Build output of the public commit is missing                          | `policy.buildOutputs` | The deploy did not build, or `outputs` matches more than it produces on the server. Output inside an install directory (a .NET `publish/`, Composer's `vendor/`, a directory of jars) is taken from the files the attester hashed with the installed packages. |
| Files in build output locations that the build does not produce       | `policy.buildOutputs` | Stale files from an earlier build. Clean the output directory on deploy.                                                                                                                                                                                       |
| The build was reproduced with Node.js X; the server runs Y            | warn                  | Set the action's `node-version` to the server's version.                                                                                                                                                                                                       |
| Could not reproduce the build of ...                                  | error                 | The build command failed or timed out. The detail has its last line; the job log has its output.                                                                                                                                                               |
| The build of ... has not been reproduced yet                          | error                 | Registry runs only: the job that holds the SSH key never runs a build, and this commit was not built yet. The registry's build job builds the deployed commits it saw before the next run.                                                                     |
| The build was not reproduced: the commit is not on the audited branch | error                 | The build runs only for commits on the branch and the version `repository.version` names.                                                                                                                                                                      |

### artifact

A release deployed without git, with `.attestium-manifest.json`. See [Binaries](https://auditstatus.com/docs/languages/binaries/).

| Message                                                                                                                          | Severity                         | What to do                                                                                                                     |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| The release was built and attested by ... from commit ...                                                                        | info                             |                                                                                                                                |
| All N files match the attested release                                                                                           | info                             |                                                                                                                                |
| The server deploys a release manifest, but no artifact signer is configured for this service                                     | error                            | Add `artifact.signer` to the service.                                                                                          |
| The release manifest ... is missing                                                                                              | fail                             | Deploy the manifest with the release.                                                                                          |
| The release manifest the server sent differs from the file on disk                                                               | fail                             | Investigate.                                                                                                                   |
| The release manifest is malformed                                                                                                | fail                             | Write it with `auditstatus manifest`.                                                                                          |
| The release manifest is not attested by ...                                                                                      | fail, or error on network errors | Attest the manifest in the release workflow (`actions/attest-build-provenance`), and check `signer.workflow` and `signer.ref`. |
| The attestation is for commit X, the manifest names Y                                                                            | fail                             | The manifest was edited, or attested from another commit.                                                                      |
| Files differ from the attested release, Files of the attested release are missing, Files not in the attested release are present | fail                             | The release directory was changed after deployment. Redeploy it. Allow runtime files with `policy.allowUntracked`.             |

### packages, provenance

Installed packages, with the check name `packages:<ecosystem>` (`packages:npm`, `packages:pypi`, and so on; `packages:go` and `packages:cargo` for the dependencies built into binaries).

| Message                                                                                                                                                 | Severity                                                                                        | What to do                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| All N installed packages in ... match their references                                                                                                  | info                                                                                            |                                                                                                                                                              |
| N installed package(s) differ from their references                                                                                                     | fail                                                                                            | Reinstall from the lockfile (`npm ci`, `pnpm install --frozen-lockfile`, `uv sync --frozen`, and so on). The detail lists modified, missing and added files. |
| N installed package(s) could not be verified                                                                                                            | `policy.unverifiablePackages`                                                                   | The lockfile does not pin them, or no reference exists.                                                                                                      |
| N installed package(s) could not be checked: a reference could not be fetched                                                                           | error                                                                                           | A registry was unreachable; the next run usually succeeds.                                                                                                   |
| No lockfile at the deployed commit pins these packages                                                                                                  | `policy.unverifiablePackages`                                                                   | Commit the lockfile, or set `lockfiles` for its path.                                                                                                        |
| Files or directories the scan could not read                                                                                                            | fail                                                                                            | The attester could not read them, so they were not compared. Give it read access.                                                                            |
| Files in node_modules that belong to no package, Files in vendor/ that belong to no package, Files in site-packages that belong to no installed package | warn for `node_modules` (fail for files Node.js can load in place of a package), fail otherwise | Remove them, or reinstall from the lockfile. The [language pages](https://auditstatus.com/docs/#languages) name each ecosystem's cases.                                          |
| Links in node_modules do not resolve to an installed package, Links in node_modules point to a package other than the one the lockfile names            | fail                                                                                            | Reinstall from the lockfile.                                                                                                                                 |
| Could not compare the packages in ...                                                                                                                   | error                                                                                           | See the detail.                                                                                                                                              |
| Some installed files could not be read                                                                                                                  | fail                                                                                            | Give the attester read access.                                                                                                                               |
| A X lockfile is at the deployed commit, but the server reported no installed X packages                                                                 | warn                                                                                            | Package checks are off on the server, or the packages are installed outside the service root: add `installs`.                                                |
| A X lockfile is at the released commit; the release has no installed X packages                                                                         | info                                                                                            | A release verified by its attested manifest: a compiled release carries its packages in the attested files.                                                  |
| Python bytecode (.pyc) cannot be verified, Python bytecode caches in installed packages are not verified                                                | `policy.bytecode`                                                                               | Bytecode caches are not verified. Remove them, or accept the warning.                                                                                        |
| Gems with native extensions were compiled on the server                                                                                                 | `policy.builtPackages`                                                                          | Their sources match; the compiled output is not verified. RubyGems only.                                                                                     |
| Gemfile.lock has no checksums for these gems, Jars the build does not pin were compared with Maven Central                                              | `policy.unpinnedPackages`                                                                       | Use a lockfile that pins hashes.                                                                                                                             |
| X: N built-in dependencies differ from the lockfile                                                                                                     | fail                                                                                            | The Go or Rust binary was built with other dependencies than the commit pins. Rebuild it from the commit.                                                    |
| X: N built-in dependencies are not pinned                                                                                                               | `policy.unverifiablePackages`                                                                   | Pin them in `go.sum` or `Cargo.lock`.                                                                                                                        |
| X: all N built-in dependencies match the lockfile                                                                                                       | info                                                                                            |                                                                                                                                                              |
| X: No go.mod found in ..., X: No Cargo.lock found                                                                                                       | `policy.unverifiablePackages`                                                                   | X is the binary. Set `goModule`, or `lockfiles.cargo`, to where the lockfile is.                                                                             |
| X: <error>                                                                                                                                              | error                                                                                           | The lockfile of the binary X could not be read. See the error.                                                                                               |
| X: the build information could not be read                                                                                                              | warn                                                                                            |                                                                                                                                                              |
| npm provenance attestations that do not verify                                                                                                          | fail                                                                                            | With `references.npmProvenance`. Investigate the package.                                                                                                    |
| npm provenance attestations could not be fetched                                                                                                        | error                                                                                           | With `references.npmProvenance`: the registry or the network did not answer. It clears on the next run.                                                      |
| N of M npm packages have verified build provenance                                                                                                      | info                                                                                            |                                                                                                                                                              |

The [language pages](https://auditstatus.com/docs/#languages) describe the messages of each ecosystem.

### globalPackages

Tools installed next to Node.js (`runtimes.node.globalPackages`).

| Message                                                                                                    | Severity                           | What to do                                                                                                                                                                                                                                                     |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| All N global packages match their references                                                               | info                               |                                                                                                                                                                                                                                                                |
| N global package(s) differ from their references                                                           | fail                               | Reinstall them (`npm install -g <package>@<version>`), or reinstall Node.js for npm and corepack.                                                                                                                                                              |
| N global package(s) could not be verified                                                                  | `policy.unverifiablePackages`      |                                                                                                                                                                                                                                                                |
| N global package(s) could not be checked, Could not fetch the Node.js X archive                            | error                              | A network problem; the next run usually succeeds.                                                                                                                                                                                                              |
| Files in Python bytecode cache directories that are not bytecode                                           | fail                               | Investigate.                                                                                                                                                                                                                                                   |
| Python bytecode caches in global packages are not verified                                                 | `policy.bytecode`                  | Remove them.                                                                                                                                                                                                                                                   |
| Links among the global packages do not resolve to an installed package                                     | fail                               | A global package is a link (`npm link`, or a directory another tool manages) to files outside the global `node_modules`; the detail names the target. Install it with `npm install -g <package>@<version>`, or leave it out of `runtimes.node.globalPackages`. |
| Some global package files could not be read                                                                | fail                               | Give the attester read access.                                                                                                                                                                                                                                 |
| The PM2 daemon (pid N): PM2's files changed after it started                                               | `policy.modifiedAfterStart`        | PM2 was upgraded or changed while its daemon ran, and the daemon starts every application through its own code. Run `pm2 update`; investigate if no upgrade explains it.                                                                                       |
| The PM2 daemon (pid N): more of PM2's files changed after it started than the server reports               | `policy.modifiedAfterStart`        | The same, over `limits.maxChangedFiles`.                                                                                                                                                                                                                       |
| The PM2 daemon (pid N): the status of PM2's files or directories changed after it started                  | `policy.metadataChangedAfterStart` | A new mode or owner, a file added and removed again, or contents restored with an earlier modification time. Run `pm2 update`; investigate if nothing explains it.                                                                                             |
| The PM2 daemon (pid N): the status of more of PM2's files changed after it started than the server reports | `policy.metadataChangedAfterStart` | The same, over `limits.maxChangedFiles`.                                                                                                                                                                                                                       |

### process

One finding per issue, labelled `pid <pid> (<executable>, <runtime>)`. Command lines are never shown, since they can hold secrets.

| Message                                                                                                                                                                                                 | Severity                             | What to do                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `<label>: <type>` (for example `argv-preload`, `NODE_OPTIONS-inspector`, `pm2-node_args-preload`, `ld.so.preload`, `memfd-exec`, `code-modified-in-memory`, `debugger-attached`, `inspector-listening`) | fail for critical, warn for warnings | A code-injection vector is open or in use: a preloaded library or module, a debugger or management port, a tracer, code in memory that differs from its file. Remove the option or variable and restart.                                                                                   |
| `<label>: argv-rewritten`                                                                                                                                                                               | warn                                 | The process replaced its command line, hiding the options it started with.                                                                                                                                                                                                                 |
| `<label>: memfd-exec`, `memfd-open` with `: the .NET runtime's W^X double mapping of JIT code` or `: the BEAM JIT's dual mapping of generated code` in the detail                                       | info                                 | The runtime's own JIT memory file (`doublemapper` in a .NET process, `vmem` in a BEAM process). Any other memory file, or these names in another runtime, is a failure.                                                                                                                    |
| `<label>: bundler-setup`, `bundler-rubylib`                                                                                                                                                             | info                                 | `bundle exec` set RUBYOPT and RUBYLIB to Bundler's own values. Anything added to either is reported as `RUBYOPT-require`, `RUBYLIB` (fail).                                                                                                                                                |
| ``<label>: Bundler X, which `bundle exec` loads through RUBYOPT and RUBYLIB, matches the published gem``                                                                                                | info                                 | The bundler gem directory on RUBYLIB matches bundler X from RubyGems.org.                                                                                                                                                                                                                  |
| `<label>: the Bundler directory on RUBYLIB (...) differs from bundler X on RubyGems.org`                                                                                                                | fail                                 | Files of the installed bundler gem were changed or added. Reinstall it (`gem install bundler -v X`).                                                                                                                                                                                       |
| `<label>: the Bundler directory on RUBYLIB (...) was not reported`, `files of the Bundler directory on RUBYLIB could not be read`                                                                       | fail                                 | The attester could not hash the gem directory. Give it read access.                                                                                                                                                                                                                        |
| `<label>: Bundler X (on RUBYLIB) could not be compared with the published gem`                                                                                                                          | fail or error                        | RubyGems.org has no such version (fail), or could not be reached (error).                                                                                                                                                                                                                  |
| `<label>: deleted-backing`, `replaced-backing`                                                                                                                                                          | warn                                 | A mapped library was upgraded without a restart. Restart the process.                                                                                                                                                                                                                      |
| `<label>: ld.so.preload could not be read: what the dynamic linker preloads is not known`                                                                                                               | error                                | The attester could not read `/etc/ld.so.preload` (the linker finding `ld.so.preload-unreadable`), so a library preloaded into every program would go unseen. Give the attester read access, or check what replaced the file.                                                               |
| `<label>: some checks could not run (missing permissions?)`                                                                                                                                             | error                                | Give the attester `CAP_SYS_PTRACE` and `CAP_DAC_READ_SEARCH`, or run it as root. Check with `auditstatus doctor`.                                                                                                                                                                          |
| `<label>: executable was replaced after the process started (restart required)`                                                                                                                         | warn                                 | Restart the process.                                                                                                                                                                                                                                                                       |
| `<label>: tracked files, build output or installed packages changed after the process started`                                                                                                          | `policy.modifiedAfterStart`          | The process may run code that is no longer on disk, or a file that was modified and restored. Restart it after each deploy; investigate if no deploy explains it.                                                                                                                          |
| `<label>: more files changed after the process started than the server reports`                                                                                                                         | `policy.modifiedAfterStart`          | The same, over `limits.maxChangedFiles`.                                                                                                                                                                                                                                                   |
| `<label>: the status of tracked files, build output, installed packages or their directories changed after the process started`                                                                         | `policy.metadataChangedAfterStart`   | A new mode or owner, contents restored with an earlier modification time, or a directory whose entries changed: a file added and removed again (it may have been loaded in place of another), or a configuration file replaced. Restart the process; investigate if no deploy explains it. |

### code

Every executable and library of the inspected processes.

| Message                                                                      | Severity                                   | What to do                                                                                                                                                                                                                                                                                                                                    |
| ---------------------------------------------------------------------------- | ------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| N of M executables and libraries match a reference                           | info                                       | Followed by the count per source: `git`, `build`, `artifact`, each package ecosystem, `packages` (global packages), `image`, `node`, `pinned`, `checksums` and `distro`.                                                                                                                                                                      |
| Executables or libraries differ from their references                        | fail (`policy.unofficialNode` for Node.js) | A binary differs from its package in the signed archive, or from the official Node.js release. Reinstall it and investigate.                                                                                                                                                                                                                  |
| Code runs in containers that is not in their image and no reference explains | `policy.containerCode`                     | A container ran a program or library from a volume, a bind mount or its writable layer. Put the code in the image, or pin it in `executables`.                                                                                                                                                                                                |
| Executables or libraries that no reference explains                          | `policy.unexplainedCode`                   | Pin the program in `executables` (a hash or a signed checksum list), install it from the distribution, or remove it. A checksum list explains a file only under its own name: `... lists its hash for <names>, not for <name>` means the list has the hash for another program; set `checksums.name` when the file is renamed when installed. |
| Executables or libraries could not be checked                                | error                                      | A reference could not be fetched, or the file could not be read.                                                                                                                                                                                                                                                                              |

### container

See [Containers](https://auditstatus.com/docs/containers/#root-filesystem-comparison) for the file comparison. The other container findings:

| Message                                                                                    | Severity                         | What to do                                                                                                                                                                                                  |
| ------------------------------------------------------------------------------------------ | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| No running container matches this service                                                  | fail                             | Check the `container` filter in the attester configuration, and that the container runs.                                                                                                                    |
| Invalid image reference: ...                                                               | fail                             | The runtime reports an image reference that cannot be parsed. Investigate.                                                                                                                                  |
| Runs `<registry>/<repository>@<digest>`                                                    | info                             |                                                                                                                                                                                                             |
| The container runs ..., not an image of ... (image.repository)                             | fail                             | The container runs an image of a repository that `image.repository` does not list. Deploy the service's own image, or add the repository.                                                                   |
| Could not inspect the container                                                            | error                            | The runtime could not be asked about it.                                                                                                                                                                    |
| The image has no registry digest ...                                                       | `policy.containerChanges`        | Deploy an image pushed to a registry.                                                                                                                                                                       |
| Could not fetch `<image>`                                                                  | error                            | Registry unreachable, or no credentials: see `references.containerRegistries`.                                                                                                                              |
| The image's registry ... is not in references.containerRegistries and is not a public host | error                            | The evidence names a registry on a loopback, private, link-local or shared address, or a name without a dot. Add it to `references.containerRegistries` to use it.                                          |
| The container runs manifest ..., which is not the image's ... manifest                     | fail                             | The runtime runs something other than the image it names. Investigate.                                                                                                                                      |
| The image was built and attested by ...                                                    | info                             |                                                                                                                                                                                                             |
| The image is not attested by ...                                                           | fail, or error on network errors | Attest the image in its release workflow, or fix `image.signer`.                                                                                                                                            |
| Container files are not compared with the image                                            | info                             | `image.compareFiles` is `false`.                                                                                                                                                                            |
| The writable layer could not be read completely                                            | error                            | Give the attester read access.                                                                                                                                                                              |
| Mounts hide files of the image                                                             | `policy.containerChanges`        | A volume or bind mount covers files of the image, so the container sees the mounted files instead. Keep code in the image; allow paths mounted on purpose (a configuration file) with `image.allowChanges`. |
| The server reported neither the root filesystem nor the writable layer                     | error                            | The files were not compared. Enable `containers.hashRootfs` on the server, or set `image.compareFiles: false`.                                                                                              |
| Writable volumes are not compared with the image                                           | info                             |                                                                                                                                                                                                             |

### monitor

See [Monitor](https://auditstatus.com/docs/monitor/#how-the-verifier-explains-entries) for these findings. A path longer than the monitor keeps is reported on its own, as a warning, not as a file that is no longer on disk.

### retry

| Message                                                                                        | Severity | What to do                                                                                                                                                             |
| ---------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Collected again after N seconds; the first attempt was X                                       | warn     | X is failing or inconclusive. With `policy.retryAfterSeconds`. The detail lists what the first attempt found. If a deploy explains it, nothing; otherwise investigate. |
| Collected again after N seconds; the first attempt was failing and the second was inconclusive | fail     | The server failed, then could not be checked again. A failure is not traded for an inconclusive result. Investigate.                                                   |
