Điểm qua trimstray/linux-hardening-checklist: 1.7k sao trên GitHub. Simple checklist to help you deploying the most important areas of the GNU/Linux production systems - work in progress.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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
Đọc thêm về trimstray/linux-hardening-checklist ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/trimstray/linux-hardening-checklist là nguồn chính thức.
trimstray/linux-hardening-checklist có phải mã nguồn mở không?
Có — trimstray/linux-hardening-checklist phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/trimstray/linux-hardening-checklist.
trimstray/linux-hardening-checklist có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho trimstray/linux-hardening-checklist. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
trimstray/linux-hardening-checklist dùng license gì?
trimstray/linux-hardening-checklist phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
trimstray/linux-hardening-checklist là gì?
trimstray/linux-hardening-checklist (trimstray/linux-hardening-checklist) là dự án đa ngôn ngữ trên GitHub. Theo mô tả gốc: Simple checklist to help you deploying the most important areas of the GNU/Linux production systems - work in progress.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc linux-hardening-checklist có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về linux-hardening-checklist.