Skip to content

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.

The CIS tab before any scan: an empty state and a button to run the first scan

Figure 1 — Before the first scan.

  1. Aucun scan CIS effectué. No result is stored for this machine yet.
  2. Lancer le scan CIS. Starts the scan. It runs in the background and takes a few seconds.

Step 2 — Read the score

The score gauge, the four counters and the first category with its controls

Figure 2 — The result.

  1. The gauge. The CIS score as a percentage.
  2. The label. Bon from 80%, Moyen from 60%, Critique below.
  3. The counters. Conformes, Echecs, Avertissements and Non applicables.
  4. Date and Rescanner. When the scan ran, and a button to run it again.
  5. A category. Controls are grouped by theme. The badge ("2 echecs") summarises the group and the dots give one colour per control.
  6. A failing control. Its number, title, the observed value (PASS_MAX_DAYS=99999) and, in the red box, the remediation.
  7. 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

Categories with warnings and a level 2 failure

Figure 3 — Categories and statuses.

  1. A category with a single warning.
  2. Avertissement. The control is partly satisfied: here AppArmor runs but its profile status is unknown. Worth a look, not necessarily a fault.
  3. Another category, with the observed value of each control ("fs.suid_dumpable=2, devrait être 0").
  4. Journalisation. Two failures out of four controls.
  5. 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

A failing telnet control with its remediation, and controls marked Non applicable

Figure 4 — From finding to fix.

  1. 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.
  2. Système de fichiers. Another category.
  3. Non applicable. The three options on /tmp do not apply because /tmp is not a separate mount point.
  4. The cause. The first control of the group fails (/tmp is 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