Linux hardening tools
The tools behind every domain on the map — what each one does, how to install it, and where it fits. Grouped by hardening domain.
35 tools indexed
01Access & Authentication
Guides →The standard SSH server and client; sshd_config is where most remote-access hardening lives.
openssh-server (preinstalled)
PAM module that adds TOTP one-time codes as a second factor for SSH and console logins.
apt install libpam-google-authenticator
02Accounts & Privileges
Guides →Enforces password complexity and length rules at change time via PAM and pwquality.conf.
apt install libpam-pwquality
Locks accounts after repeated failed logins to blunt brute-force and credential-stuffing attacks.
pam (preinstalled)
03Network & Firewall
Guides →The modern in-kernel packet filter that replaces iptables; build a default-deny ruleset in /etc/nftables.conf.
apt install nftables
Zone-based firewall manager (RHEL/Fedora default) with a friendly firewall-cmd front end over nftables.
dnf install firewalld
04Kernel Hardening
Guides →Reads and sets kernel parameters at runtime; drop hardening keys into /etc/sysctl.d and apply with sysctl --system.
procps (preinstalled)
Audits your kernel config and sysctls against KSPP and CIS hardening recommendations.
pip install kernel-hardening-checker
05Filesystem & Permissions
Guides →06Services & systemd
Guides →07Mandatory Access Control
Guides →Label-based mandatory access control that confines processes to an explicit policy; keep it enforcing.
default on RHEL/Fedora
Path-based mandatory access control (Ubuntu/SUSE default) using per-application confinement profiles.
apt install apparmor-utils
08Logging & Auditing
Guides →The kernel audit framework's userspace daemon; records security-relevant events via rules in /etc/audit/rules.d.
apt install auditd
High-throughput syslog daemon for centralizing and forwarding logs to a tamper-resistant collector.
apt install rsyslog
09Updates & Packages
Guides →Automatically installs Debian/Ubuntu security updates so hosts patch without manual intervention.
apt install unattended-upgrades
The RHEL/Fedora equivalent: timer-driven automatic security updates configured in automatic.conf.
dnf install dnf-automatic
10Boot & Physical Security
Guides →Manages LUKS full-disk encryption so a stolen or decommissioned drive reveals nothing.
apt install cryptsetup
The bootloader; set a password to stop edits to boot parameters and recovery/single-user entries.
grub2 (preinstalled)
11Intrusion Detection
Guides →Advanced Intrusion Detection Environment — builds a file-integrity baseline and reports unexpected changes.
apt install aide
Watches logs and bans IPs that repeatedly fail authentication, throttling brute-force at the firewall.
apt install fail2ban
Scans for rootkits, backdoors, and suspicious local changes against a known-good properties database.
apt install rkhunter
12Compliance & Benchmarks
Guides →Agentless audit tool that scores a system's hardening and prints prioritized, actionable suggestions.
apt install lynis
Evaluates a host against SCAP profiles (CIS, STIG) and generates HTML reports plus remediation scripts.
apt install openscap-scanner
Ready-made SCAP content and Ansible roles implementing CIS, STIG, and ANSSI baselines per distribution.
apt install ssg-debian / ssg-base