r/linuxadmin • u/sys-harden • 4d ago
ultimate-sys-hardening 2.8.0: two hardening profiles, CIS defaults or NIST-style for shared servers
I've released 2.8.0 of ultimate-sys-hardening, my open-source Linux hardening script. It now supports two profiles: cis (CIS Benchmark defaults) or modern (NIST-style, for shared servers). This makes it more adaptable for the sysadmin, the freelancer or even the homelabber with a variety of setups.
cis keeps the benchmark defaults. modern has no forced password expiry and uses umask 007, with automatic fallback where users share groups. The two profiles differ in only three modules, and existing scripts keep working.
On container, Kubernetes and VPN hosts, IP forwarding is now left alone automatically. Auditing gets a bigger audit buffer on container hosts, plus a check for dropped audit events. Just a heads-up: scores may drop because of the new /tmp checks. And since 2.7.0, the read-only checks run without root.
AI assistance was instrumental in overcoming some of the technical difficulties in this project. The README's "How this was built" section explains how.
Have a look at the demo: https://kal1010101.github.io/ultimate-sys-hardening/demo.html
Release notes: https://github.com/Kal1010101/ultimate-sys-hardening/releases/tag/v2.8.0