MinakiLabs

Minaki

Hardening an Ubuntu 24.04 server

Hardening a server means two separate things, and it helps to keep them apart. One is configuration — turning settings to their safer values, usually measured by a STIG scan. The other is removal — taking away software the server never uses, so there is less to attack and less to patch.

These figures are locked lab measurements on Ubuntu 24.04 web servers, not a certification.

This page is an overview of hardening Ubuntu 24.04 LTS (x86_64, standard GA 6.8 kernel). It reflects how MinakiLabs approaches the problem with Minaki Tuner, whose focus is removal. Every number here is a lab result, not a paid deployment.

Step 1: know what you actually run

Before changing anything, record what the server uses. A fresh Ubuntu install ships with far more than most workloads touch. On a test web server, the stock install carried hundreds of installed packages (locked lab result on Ubuntu 24.04 web servers). Hardening configuration does not, by itself, shrink that number — only removal does.

Start with a free Minaki Scan to get a picture of a specific server before you touch it.

Step 2: reduce attack surface

Removing unused packages shrinks three things at once: packages to maintain, known CVEs carried on those packages, and SUID (privileged) binaries. Running on its own against the stock install, Minaki Tuner brought a test web server from 672 to 453 packages, cut known package CVEs from 382 to 286, and SUID files from 13 to 7 (same runs). This is Tuner’s main job. See removing unused packages and CVE reduction.

Step 3: hardening and the STIG scan

Configuration posture is scored by OpenSCAP against an open ComplianceAsCode profile. In the lab, the stock install scored 50.6; after Minaki Tuner, the STIG scan score was 70.7, and the Lynis hardening index rose from 66 to 76 (same runs). Tuner does not run a full STIG hardening script — a dedicated STIG script scores higher on the scan than Tuner does. Tuner’s win is the removal, not the STIG number. That distinction is the whole point of the STIG-and-cut approach.

Lab scope: lab web-server runs (packages 672→453). The STIG scan uses an open ComplianceAsCode profile, not a formal certification. Kernel CVEs are not counted.

Step 4: prove it before you keep it

The step most hardening skips: evidence. Minaki Tuner runs your acceptance tests against a frozen candidate and refuses to deliver if any setting came out weaker or a test fails. See proving changes before keeping them.

An honest note on boot safety

Untouched Ubuntu 24.04 booted cleanly 60 of 60; we have not yet run the boot test on a tuned 24.04 server. We do not claim boot safety.

Where the work happens

Tuner runs from our side, against your copy. Give us a staging copy: we work only on the address you give us and can’t check that it is a copy.

Next

Run the free Minaki Scan, read the FAQ, then subscribe to Minaki Tuner at $20 per server per month — see pricing.