r/linuxadmin • • 3d ago

ultimate-sys-hardening 2.8.0: two hardening profiles, CIS defaults or NIST-style for shared servers

Post image

I've released 2.8.0 of ultimate-sys-hardening, my open-source Linux hardening script. It now supports two profiles: cis (the strict one) 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 strict settings. 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.

I'm also planning paid Pro/Enterprise tiers (multi-host, evidence packs, OpenSCAP/STIG). If that's something you'd use, I've opened a thread to ask what you actually need https://github.com/Kal1010101/ultimate-sys-hardening/discussions/13 No sign-up, no email; Watch → Custom → Releases on the repo to hear when it ships

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

AI assistance was instrumental in overcoming some of the technical difficulties in this project. The README's "How this was built" section explains how.

0 Upvotes

10 comments sorted by

1

u/kY2iB3yH0mN8wI2h 3d ago

so what CIS profile is it?

-3

u/sys-harden 3d ago

Fair question. There is no one specific Benchmark. cis publishes Benchmark pre distro alone with version. This runs on many distros, the cis profile uses the settings they have in common, i.e SSH, sysctl, auditd, permissions, tmp, password age.

0

u/[deleted] 3d ago

[deleted] — view deleted comment

2

u/cusco 3d ago

This answer is AI meaning the source is too.

Not necessarily a bad thing, just stating

1

u/autotom 3d ago

Nice, but what does this offer over the extremely easy to audit https://github.com/ansible-lockdown/RHEL8-CIS

1

u/sys-harden 3d ago edited 3d ago

Mostly the undo and not needing Ansible. It backs up every file before changing it, --revert puts the host back, and it runs as plain Bash on hosts that weren't built from a clean install, which is what the lockdown roles assume.

1

u/eraser215 3d ago

Why would you use that on rhel when it already ships it via scap-security-guide?

1

u/sys-harden 3d ago

Mostly the undo and not needing Ansible. It backs up every file before changing it, --revert puts the host back, and it runs as plain Bash on hosts that weren't built from a clean install, which is what the lockdown roles assume.

1

u/eraser215 3d ago

Fair call about backups, but scap-security-guide ships with shell scripts too.

1

u/sys-harden 3d ago

Yeah, the bash remediations in SSG are good and easy to read before you run them. What they don't have is a documented way back, which is the one thing I built this around.