Pavois audits the configuration a Linux server really applies, not the text
of its files. It queries sshd -T, sysctl and systemctl show, grades
each control from A to E, then produces a hardening plan that
nothing applies until you arm it, rule by rule.
This guide installs the tool while checking what it installs, runs a first scan on a fresh machine, and explains how to read the resulting grade. It is written for people who run Linux servers and must demonstrate compliance with CIS, ANSSI-BP-028, NIST, PCI-DSS or STIG.
What you will learn
- Understand what the effective configuration changes compared with a file scan.
- Install the binary while checking its checksum and build provenance.
- Run a first scan and get a graded report.
- Read the grade breakdown, which separates what can be fixed from what cannot.
- Produce a hardening plan without changing anything on the machine.
Prerequisites
A Linux server among the nine covered systems: Debian 12 and 13, Ubuntu 22.04, 24.04 and 26.04, RHEL 8, 9 and 10 with their Rocky and AlmaLinux derivatives, and Fedora. sudo access, and the CINC Auditor engine, covered below.
Why audit the effective state rather than the files?
This is the thesis of the tool, and one concrete case sums it up. A
classic scanner reads /etc/ssh/sshd_config, finds PermitRootLogin no,
and concludes that the machine is compliant.
But sshd does not read only that file. An Include /etc/ssh/sshd_config.d/* at the top, a fragment dropped by a package or a
configuration tool, and the effective directive becomes the opposite of
the one you just read. Only sshd -T, which prints the configuration the
daemon applies, settles it.
Pavois therefore queries the effective state: sshd -T for SSH,
sysctl for the kernel, systemctl show for services, auditctl for
auditing. What an attacker meets is that state, never the text on disk.
The corpus covers SSH, PAM, mandatory access control with SELinux and AppArmor, the local firewall, sudo, permissions, mounts, kernel modules, auditd, logging, systemd services, packages, GRUB and time synchronization.
How to install Pavois without trusting luck
Pavois is a single static binary. Each release publishes checksums, a CycloneDX SBOM, SLSA provenance and a Cosign signature. A hardening tool installed without checking starts off badly:
gh release download --repo stephrobert/pavois \ --pattern 'pavois-linux-amd64' --pattern 'checksums.txt'sha256sum --ignore-missing --check checksums.txtgh attestation verify pavois-linux-amd64 --repo stephrobert/pavoischmod +x pavois-linux-amd64sudo mv pavois-linux-amd64 /usr/local/bin/pavoisThe attestation check must return a provenance pointing at the version
tag, here refs/tags/v0.1.3, and at the workflow that built it. If it
fails, the binary does not come from the announced publishing chain.
The execution engine: CINC Auditor
Pavois does not embed its execution engine. It relies on CINC Auditor, the free build of Chef InSpec, which runs the controls on the target. The rule corpus, however, does ship inside the binary.
On a machine without it, pavois doctor refuses to work and says so. The
installation uses the official package, checksum verified, never a
script downloaded and executed on the fly:
META=$(curl -fsSL "https://omnitruck.cinc.sh/stable/cinc-auditor/metadata?p=ubuntu&pv=24.04&m=x86_64")URL=$(printf '%s\n' "$META" | awk '/^url/ {print $2}')SHA=$(printf '%s\n' "$META" | awk '/^sha256/ {print $2}')curl -fsSL "$URL" -o cinc-auditor.debecho "$SHA cinc-auditor.deb" | sha256sum --check -sudo dpkg -i ./cinc-auditor.debVersion installed when this guide was written: CINC Auditor 7.2.1.
The diagnostic then confirms that everything is in place:
pavois doctor [OK ] norm catalogue 6 standard(s) [OK ] baseline identity Pavois Effective-Configuration Hardening Baseline 0.2.0, released 2026-06-26 [OK ] audit ruleset 62 rule(s) [OK ] behavioral probes 8 probe(s) [OK ] local OS detected ubuntu 24.04
ready: try: pavois scan local --sudoHow to run the first scan
A single command, read-only. It takes several minutes, the time needed to evaluate the hundreds of controls in the corpus:
pavois scan local --sudoOn a freshly installed Ubuntu 24.04, with no hardening at all, the result leaves no doubt:
Grade E Critical · runtime-qualified 252/544 controls passing
auto E 181/408 passing manual B 32/39 passing (no auto-remediation) dangerous C 2/7 passing (high-risk remediation) install-time C 1/34 passing (architecture, e.g. a separate partition) kernel-build C 36/56 passing (needs a kernel rebuild)
Remediable posture: grade E (215/454, excludes install-time + kernel-build)A self-contained HTML report is written alongside, covering 652
controls and 5 standards. The three most serious gaps are listed
first, and on a default install they are always the same:
ssh-disable-empty-passwords and ssh-disable-root-login come out as
critical.
How to read the grade, and above all its breakdown
The overall figure is useless on its own; the breakdown does all the work. This is what sets Pavois apart from a classic compliance percentage.
| Class | What it groups |
|---|---|
auto | What a remediation can fix on its own |
manual | What needs a human decision, with no automatic fix |
dangerous | What can break a service or lock you out when fixed |
install-time | What is decided at install time, such as a separate partition |
kernel-build | What requires a recompiled kernel |
The "Remediable posture" line excludes the last two classes, and it is the only one that answers the useful question: what can I fix tonight, on this machine, without reinstalling it or recompiling its kernel?
The runtime-qualified mention matters just as much. A control that
passes "now" without surviving a reboot caps the grade until
persistence is proven. Compliance that disappears at reboot is not
compliance.
From findings to a hardening plan
Pavois does not stop at measuring. The harden plan command produces a
remediation file from the scan:
pavois harden plan localpavois: plan → hardening-plan-ubuntu2404.yml (compliant 252 · gaps 292 · n/a 108 · baseline installs 3)pavois: every gap is off by design. Flip `apply: true` per rule, or re-plan with --enable autoNothing is armed by default, and that is the right choice: the plan is
reviewed rule by rule, and each wanted fix is switched to apply: true. Rules
that could cut off your access carry a danger: line and also require
acknowledged: true.
The file header flags the two classic traps, the default-deny firewall and SSH user restriction, with the keys that let you keep your own access while restricting everyone else's. Read them before arming anything.
On an equivalent Debian 13, the same binary returns a comparable plan: 229 compliant, 276 gaps, 114 not applicable.
What Pavois does not replace
Pavois measures the configuration of a system. It reads neither the code of your applications, nor the content of your container images, nor the posture of your software supply chain. For those areas, the site's other tools remain the right ones, documented in French except Trivy: Trivy for images, CINC Auditor for your own profiles, OpenSCAP when an auditor requires an official SCAP benchmark, and Lynis for a first assessment with no engine to install.
The project is young: the version documented here is 0.1.3. The full manual and the rule catalogue live on www.pavois.dev.
Key takeaways
- Pavois audits the effective configuration (
sshd -T,sysctl,systemctl show), not the text of the files, which catches the fragments that silently override a directive. - The binary is static and verifiable: checksums, SBOM, SLSA provenance and Cosign signature on every release.
- The CINC Auditor engine is not embedded and is installed separately, checksum verified.
- The grade breakdown is worth more than the grade: the "remediable" line says what can be fixed without reinstalling or recompiling.
- A non-persistent control caps the grade: what does not survive a reboot does not count.
harden planproduces a fully disarmed plan: each fix is enabled by hand, and the riskiest ones require one more confirmation.- A default Ubuntu 24.04 gets grade E, with 252 compliant controls out of 544. That is the normal situation for a fresh install.
Next steps
These pages are written in French for now.