Check a machine against the CIS benchmark¶
What you'll learn:
- What the CIS compliance scan checks and how the score is computed
- How to run a scan from a machine's page and rescan after a fix
- How to read categories, statuses and remediation lines
- What to do with the findings, and what runs automatically
Time: ~15 minutes
Prerequisites: A machine registered in SSH mode (see Add your first client machine).
What the CIS scan answers¶
The vulnerability scan looks for known flaws in installed packages. The CIS scan looks at how the machine is configured: is SSH hardened, is the firewall on, is telnet absent, is logging active. It runs a set of read-only checks inspired by the CIS Linux benchmark (40 controls), over one SSH connection, and never changes the machine.
Step 1 — Run the first scan¶
Open Clients → Machines clientes, click the machine, then open its Conformité CIS tab.
Figure 1 — Before the first scan.
- Aucun scan CIS effectué. No result is stored for this machine yet.
- Lancer le scan CIS. Starts the scan. It runs in the background and takes a few seconds.
Step 2 — Read the score¶
Figure 2 — The result.
- The gauge. The CIS score as a percentage.
- The label. Bon from 80%, Moyen from 60%, Critique below.
- The counters. Conformes, Echecs, Avertissements and Non applicables.
- Date and Rescanner. When the scan ran, and a button to run it again.
- A category. Controls are grouped by theme. The badge ("2 echecs") summarises the group and the dots give one colour per control.
- A failing control. Its number, title, the observed value (
PASS_MAX_DAYS=99999) and, in the red box, the remediation. - Another failing control. Same layout.
The score is conformes / (conformes + échecs + avertissements). Controls marked Non applicable are left out of the calculation, so a machine is never penalised for something that cannot apply to it. Here: 20 / (20 + 12 + 5) = 54%.
Step 3 — Understand the statuses¶
Figure 3 — Categories and statuses.
- A category with a single warning.
- Avertissement. The control is partly satisfied: here AppArmor runs but its profile status is unknown. Worth a look, not necessarily a fault.
- Another category, with the observed value of each control ("fs.suid_dumpable=2, devrait être 0").
- Journalisation. Two failures out of four controls.
- Level 2. A Level 2 badge marks a stricter control meant for high-security environments. Not every machine needs them.
Step 4 — Read the remediation¶
Figure 4 — From finding to fix.
- Client/serveur Telnet non installé. Non conforme, with the command to run:
apt purge telnet telnetd. This is the same telnet package that drift detection flagged: two different tools, one finding. - Système de fichiers. Another category.
- Non applicable. The three options on
/tmpdo not apply because/tmpis not a separate mount point. - The cause. The first control of the group fails (
/tmpis not mounted separately), which is why the three below it cannot be evaluated.
Repod never applies a remediation. Read it, test it, and run it yourself, then click Rescanner to confirm the score moved.
Do not chase 100%
Some controls conflict with how a machine is used. Fix what matters for your risk, and accept the rest knowingly.
What runs automatically¶
- The scan runs every day on its own (09:00 by default, see Schedule the recurring scans and mirrors).
- Besides CIS, other profiles such as DISA STIG can be imported with a script or the API (there is no screen for it), and assigned by tag or by machine. A machine with no assignment always gets CIS.
What's next¶
- Compliance scanning: profiles, assignments and the API
- Detect configuration drift on a machine: enforce your own desired state
- Fix a vulnerability on your machines: the vulnerability side



