cirven systems / modules / harden

cirven harden

Turns audit findings into fixes. Without --apply it only prints the plan. Every applied run is snapshotted first and can be rolled back byte for byte.

usage

$ cirven harden
cirven harden ยท plan for laptop

 1  user    chmod 700 ~/.ssh
 2  system  set kernel.kptr_restrict=1 in /etc/sysctl.d/99-zz-cirven.conf and live
 3  system  sshd: PasswordAuthentication no in /etc/ssh/sshd_config.d/10-cirven.conf
            + PasswordAuthentication no
 4  manual  ssh key has no passphrase (~/.ssh/id_ed25519)
            -> ssh-keygen -p -f ~/.ssh/id_ed25519, then load it into ssh-agent

nothing has been changed.
$ cirven harden --apply 1
$ sudo cirven harden --apply 2,3
snapshot 20261017T143000Z saved in /var/lib/cirven/harden
undo with: cirven harden --rollback 20261017T143000Z
$ cirven harden --list

how

threat model

Stops: the attack paths audit reports and harden can close. Does not stop: what you re-enable later; run audit again. A leaked secret is reported, but it must be rotated at its issuer.