Repository navigation
Ultimate Hardening 2.6.2
Security release. Reverting the compiler restriction (module 20) on 2.3.0 to 2.6.1 could leave the real compiler binaries world-writable, a local path to root; see GHSA-wff7-cm5c-jw75 for how to check and repair a host that already reverted. Also: macOS runs under a newer bash and stays read-only, and a revert that finds nothing to undo returns to the menu.
Security
- Reverting module 20 (compiler restriction), on versions 2.3.0 to 2.6.1,
could leave the real compiler binaries world-writable (mode 777), letting
any local user replace gcc before root's next build. Update to 2.6.2. The
module recorded symlinks such as/usr/bin/ccwith the link's own mode. It
now records the real binary, and the revert never restores group or other
write, including from inventories written by earlier versions. A host that
already reverted needschmod go-won its compilers and a package check;
the advisory has the commands.
Advisory: GHSA-wff7-cm5c-jw75.
Fixed
- On macOS the tool crashed at once ("unbound variable" in
lib/menu.sh):
macOS ships bash 3.2 as/bin/bashand the library needs bash 4. The script
now restarts itself under a newer bash when one is installed (Homebrew's),
and otherwise stops and says to runbrew install bash. - On macOS, runs that would apply hardening now stop before changing anything
and say that macOS is read-only for now. Most modules write Linux
configuration (sysctl.d, auditd, AppArmor, GRUB, modprobe) that does nothing
useful there. The read-only checks and--dry-runwork as before. - A revert that finds nothing to revert now returns to the menu instead of
ending the program. On a host the tool had not hardened, menu choices R
(full revert), S (SUID/SGID), 9, 12 and 20 (module reverts), and the Pro and
Enterprise revert menu, printed their error and exited to the shell. - The full-revert error no longer tells free-tier users to run
--list-backups, an option only Pro and Enterprise accept. It now lists the
available restore points itself.
Changed
- Dependabot now opens one grouped pull request a week for GitHub Actions
updates, keeping the SHA pins in.github/workflows/current. - The Ansible role tests (
tests/ansible/run.sh) now run in CI on every
push and pull request, and weekly to catch a new ansible-core release
breaking the role. - ShellCheck now also lints
tests/ansible/run.sh, which the helper-script
globs had missed. - CodeQL now analyses the GitHub Actions workflows on every push, pull
request and weekly. CodeQL cannot read Bash; ShellCheck still covers the
scripts. - CI now runs on a real macOS machine (
.github/workflows/macos.yml): the
read-only checks, the dry run, the bash 3.2 restart, and that applying is
refused. tests/run.shnow saves each failed case's full output to
tests/results/, and prints its exit code and last lines when the case
died before any assertion, so a crash or timeout is no longer a bare FAIL.
Documentation
- README, site and comparison page now say plainly that on macOS the tool
runs the read-only checks and dry run only, and needs bash 4 (brew install bash), instead of "detected and adapted". - The project earned the OpenSSF Best Practices "passing" badge; the README
and the site show it. - The site has an interactive replay (
docs/demo.html): click through the
real menu and see what each choice printed in--dry-runon a fresh
Debian 12 VM.docs/capture-demo.shrecords it anddocs/build-demo.sh
builds the page. - The README demo GIF was re-recorded on a Debian 12 VM with 2.6.1.
- The README's local ShellCheck command now includes
tests/ansible/*.sh,
matching CI.