A look at trimstray/linux-hardening-checklist: 1.7k stars on GitHub. Simple checklist to help you deploying the most important areas of the GNU/Linux production systems - work in progress.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
In computing, hardening is usually the process of securing a system by reducing its surface of vulnerability, which is larger when a system performs more functions; in principle a single-function system is more secure than a multipurpose one. The main goal of systems hardening is to reduce security risk by eliminating potential attack vectors and condensing the system’s attack surface.
This list contains the most important hardening rules for GNU/Linux systems.
Status
Still work in progress... :construction_worker:
I also created another repository (in a more detailed way): the-practical-linux-hardening-guide.
Todo
Add rationale (e.g. url's, external resources)
Review levels of priority
Prologue
I'm not advocating throwing your existing hardening and deployment best practices out the door but I recommend is to always turn a feature from this checklist on in pre-production environments instead of jumping directly into production.
Levels of priority
All items in this checklist contains three levels of priority:
means that the item has a low priority.
means that the item has a medium priority. You shouldn't avoid tackling that item.
means that the item has a high priority. You can't avoid following that rule and implement the corrections recommended.
OpenSCAP
SCAP (Security Content Automation Protocol) provides a mechanism to check configurations, vulnerability management and evaluate policy compliance for a variety of systems. One of the most popular implementations of SCAP is OpenSCAP and it is very helpful for vulnerability assessment and also as hardening helper.
Some of the external audit tools use this standard. For example Nessus has functionality for authenticated SCAP scans.
I tried to make this list compatible with OpenSCAP standard and rules. However, there may be differences.
Partitioning
Separate partitions
Ensure /boot located on separate partition.
Ensure /home located on separate partition.
Ensure /usr located on separate partition.
Ensure /var located on separate partition.
Ensure /var/log and /var/log/audit located on separate partitions.
Ensure /tmp and /var/tmp located on separate partitions.
Restrict mount options
Restrict /usr partition mount options.
Example:
UUID=<...> /usr ext4 defaults,nodev,ro 0 2
Restrict /var partition mount options.
Example:
UUID=<...> /var ext4 defaults,nosuid 0 2
Restrict /var/log and /var/log/audit partitions mount options.
Restrict /var/log and /var/log/audit mount options
:black_square_button:
Restrict /proc mount options
:black_square_button:
Restrict /boot mount options
:black_square_button:
Restrict /home mount options
:black_square_button:
Restrict /tmp/ and /var/tmp mount options
:black_square_button:
Restrict /dev/shm mount options
:black_square_button:
Polyinstantiated /tmp and /var/tmp
:black_square_button:
Set group for /dev/shm
:black_square_button:
Encrypt swap
:black_square_button:
Physical Access
Password for Single User Mode
Protect Single User Mode with root password.
Example:
# Edit /etc/sysconfig/init.
SINGLE=/sbin/sulogin
:ballot_box_with_check: Summary checklist
Rule
Priority
Checkbox
Protect Single User Mode.
:black_square_button:
Bootloader
Protect bootloader config files
Ensure bootloader config files are set properly permissions.
Example:
# Set the owner and group of /etc/grub.conf to the root user:
chown root:root /etc/grub.conf
chown -R root:root /etc/grub.d
# Set permissions on the /etc/grub.conf or /etc/grub.d file to read and write for root only:
chmod og-rwx /etc/grub.conf
chmod -R og-rwx /etc/grub.d
Lock out accounts after a number of incorrect login (PAM).
Example:
# Edit /etc/pam.d/system-auth and /etc/pam.d/password-auth
# Add the following line immediately before the pam_unix.so statement in the AUTH section:
auth required pam_faillock.so preauth silent deny=3 unlock_time=never fail_interval=900
# Add the following line immediately after the pam_unix.so statement in the AUTH section:
auth [default=die] pam_faillock.so authfail deny=3 unlock_time=never fail_interval=900
# Add the following line immediately before the pam_unix.so statement in the ACCOUNT section:
account required pam_faillock.so
:ballot_box_with_check: Summary checklist
Rule
Priority
Checkbox
Update password policy
:black_square_button:
Limit password reuse
:black_square_button:
Secure /etc/login.defs password policy
:black_square_button:
Set auto logout inactive users.
:black_square_button:
Set last logon/access notification
:black_square_button:
Lock out accounts after a number of incorrect login
Does trimstray/linux-hardening-checklist have a project website?
No homepage URL was recorded for trimstray/linux-hardening-checklist in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Is trimstray/linux-hardening-checklist open source?
Yes — trimstray/linux-hardening-checklist ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/trimstray/linux-hardening-checklist.
What is trimstray/linux-hardening-checklist?
trimstray/linux-hardening-checklist (trimstray/linux-hardening-checklist) is a multi-language project on GitHub. From the project's own README: Simple checklist to help you deploying the most important areas of the GNU/Linux production systems - work in progress.
What license does trimstray/linux-hardening-checklist use?
trimstray/linux-hardening-checklist is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about trimstray/linux-hardening-checklist?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/trimstray/linux-hardening-checklist is the definitive source.
Read full README in the tab above.
Curious whether linux-hardening-checklist is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about linux-hardening-checklist.