云计算、AI、云原生、大数据等一站式技术学习平台

网站首页 > 教程文章 正文

Linux安全基线 - 1

jxf315 2025-08-03 05:41:12 教程文章 3 ℃

Appendix: Summary Table(以CentOS 7.8为例)



Set
Correctly

Control


Yes

No

1

Initial Setup



1.1

Filesystem Configuration



1.1.1

Disable unused filesystems



1.1.1.1

Ensure mounting of cramfs filesystems is disabled
(Automated)



1.1.1.2

Ensure mounting of squashfs filesystems is disabled
(Automated)



1.1.1.3

Ensure mounting of udf filesystems is disabled (Automated)



1.1.1.4

Ensure mounting of FAT filesystems is limited (Manual)



1.1.2

Ensure /tmp is configured (Automated)



1.1.3

Ensure noexec option set on /tmp partition (Automated)



1.1.4

Ensure nodev option set on /tmp partition (Automated)



1.1.5

Ensure nosuid option set on /tmp partition (Automated)



1.1.6

Ensure /dev/shm is configured (Automated)



1.1.7

Ensure noexec option set on /dev/shm partition
(Automated)



1.1.8

Ensure nodev option set on /dev/shm partition
(Automated)



1.1.9

Ensure nosuid option set on /dev/shm partition
(Automated)



1.1.10

Ensure separate partition exists for /var (Automated)



1.1.11

Ensure separate partition exists for /var/tmp (Automated)



1.1.12

Ensure noexec option set on /var/tmp partition
(Automated)



1.1.13

Ensure nodev option set on /var/tmp partition (Automated)



1.1.14

Ensure nosuid option set on /var/tmp partition
(Automated)



1.1.15

Ensure separate partition exists for /var/log (Automated)



1.1.16

Ensure separate partition exists for /var/log/audit
(Automated)



1.1.17

Ensure separate partition exists for /home (Automated)



1.1.18

Ensure nodev option set on /home partition (Automated)



1.1.19

Ensure noexec option set on removable media partitions
(Manual)



1.1.20

Ensure nodev option set on removable media partitions
(Manual)



1.1.21

Ensure nosuid option set on removable media partitions
(Manual)



1.1.22

Ensure sticky bit is set on all world-writable directories
(Automated)



1.1.23

Disable Automounting (Automated)



1.1.24

Disable USB Storage (Automated)



1.2

Configure Software Updates



1.2.1

Ensure GPG keys are configured (Manual)



1.2.2

Ensure package manager repositories are configured
(Manual)



1.2.3

Ensure gpgcheck is globally activated (Automated)



1.3

Configure sudo



1.3.1

Ensure sudo is installed (Automated)



1.3.2

Ensure sudo commands use pty (Automated)



1.3.3

Ensure sudo log file exists (Automated)



1.4

Filesystem Integrity Checking



1.4.1

Ensure AIDE is installed (Automated)



1.4.2

Ensure filesystem integrity is regularly checked
(Automated)



1.5

Secure Boot Settings



1.5.1

Ensure bootloader password is set (Automated)



1.5.2

Ensure permissions on bootloader config are configured
(Automated)



1.5.3

Ensure authentication required for single user mode
(Automated)



1.6

Additional Process Hardening



1.6.1

Ensure core dumps are restricted (Automated)



1.6.2

Ensure XD/NX support is enabled (Automated)



1.6.3

Ensure address space layout randomization (ASLR) is
enabled (Automated)



1.6.4

Ensure prelink is disabled (Automated)



1.7

Mandatory Access Control



1.7.1

Configure SELinux



1.7.1.1

Ensure SELinux is installed (Automated)



1.7.1.2

Ensure SELinux is not disabled in bootloader configuration
(Automated)



1.7.1.3

Ensure SELinux policy is configured (Automated)



1.7.1.4

Ensure the SELinux mode is enforcing or permissive
(Automated)



1.7.1.5

Ensure the SELinux mode is enforcing (Automated)



1.7.1.6

Ensure no unconfined services exist (Automated)



1.7.1.7

Ensure SETroubleshoot is not installed (Automated)



1.7.1.8

Ensure the MCS Translation Service (mcstrans) is not
installed (Automated)



1.8

Warning Banners



1.8.1

Command Line Warning Banners



1.8.1.1

Ensure message of the day is configured properly
(Automated)



1.8.1.2

Ensure local login warning banner is configured properly
(Automated)



1.8.1.3

Ensure remote login warning banner is configured properly
(Automated)



1.8.1.4

Ensure permissions on /etc/motd are configured
(Automated)



1.8.1.5

Ensure permissions on /etc/issue are configured
(Automated)



1.8.1.6

Ensure permissions on /etc/issue.net are configured
(Automated)



1.9

Ensure updates, patches, and additional security software
are installed (Manual)



1.10

Ensure GDM is removed or login is configured (Automated)



2

Services



2.1

inetd Services



2.1.1

Ensure xinetd is not installed (Automated)



2.2

Special Purpose Services



2.2.1

Time Synchronization



2.2.1.1

Ensure time synchronization is in use (Manual)



2.2.1.2

Ensure chrony is configured (Automated)



2.2.1.3

Ensure ntp is configured (Automated)



2.2.2

Ensure X11 Server components are not installed
(Automated)



2.2.3

Ensure Avahi Server is not installed (Automated)



2.2.4

Ensure CUPS is not installed (Automated)



2.2.5

Ensure DHCP Server is not installed (Automated)



2.2.6

Ensure LDAP server is not installed (Automated)



2.2.7

Ensure nfs-utils is not installed or the nfs-server service is
masked (Automated)



2.2.8

Ensure rpcbind is not installed or the rpcbind services are
masked (Automated)



2.2.9

Ensure DNS Server is not installed (Automated)



2.2.10

Ensure FTP Server is not installed (Automated)



2.2.11

Ensure HTTP server is not installed (Automated)



2.2.12

Ensure IMAP and POP3 server is not installed (Automated)



2.2.13

Ensure Samba is not installed (Automated)



2.2.14

Ensure HTTP Proxy Server is not installed (Automated)



2.2.15

Ensure net-snmp is not installed (Automated)



2.2.16

Ensure mail transfer agent is configured for local-only mode
(Automated)



2.2.17

Ensure rsync is not installed or the rsyncd service is masked
(Automated)



2.2.18

Ensure NIS server is not installed (Automated)



2.2.19

Ensure telnet-server is not installed (Automated)



2.3

Service Clients



2.3.1

Ensure NIS Client is not installed (Automated)



2.3.2

Ensure rsh client is not installed (Automated)



2.3.3

Ensure talk client is not installed (Automated)



2.3.4

Ensure telnet client is not installed (Automated)



2.3.5

Ensure LDAP client is not installed (Automated)



2.4

Ensure nonessential services are removed or masked
(Manual)



3

Network Configuration



3.1

Disable unused network protocols and devices



3.1.1

Disable IPv6 (Manual)



3.1.2

Ensure wireless interfaces are disabled (Manual)



3.2

Network Parameters (Host Only)



3.2.1

Ensure IP forwarding is disabled (Automated)



3.2.2

Ensure packet redirect sending is disabled (Automated)



3.3

Network Parameters (Host and Router)



3.3.1

Ensure source routed packets are not accepted (Automated)



3.3.2

Ensure ICMP redirects are not accepted (Automated)



3.3.3

Ensure secure ICMP redirects are not accepted (Automated)



3.3.4

Ensure suspicious packets are logged (Automated)



3.3.5

Ensure broadcast ICMP requests are ignored (Automated)



3.3.6

Ensure bogus ICMP responses are ignored (Automated)



3.3.7

Ensure Reverse Path Filtering is enabled (Automated)



3.3.8

Ensure TCP SYN Cookies is enabled (Automated)



3.3.9

Ensure IPv6 router advertisements are not accepted
(Automated)



3.4

Uncommon Network Protocols



3.4.1

Ensure DCCP is disabled (Automated)



3.4.2

Ensure SCTP is disabled (Automated)



3.5

Firewall Configuration



3.5.1

Configure firewalld



3.5.1.1

Ensure FirewallD is installed (Automated)



3.5.1.2

Ensure iptables-services package is not installed
(Automated)



3.5.1.3

Ensure nftables is not installed or stopped and masked
(Automated)



3.5.1.4

Ensure firewalld service is enabled and running
(Automated)



3.5.1.5

Ensure default zone is set (Automated)



3.5.1.6

Ensure network interfaces are assigned to appropriate zone
(Manual)



3.5.1.7

Ensure unnecessary services and ports are not accepted
(Manual)



3.5.2

Configure nftables



3.5.2.1

Ensure nftables is installed (Automated)



3.5.2.2

Ensure firewalld is not installed or stopped and masked
(Automated)



3.5.2.3

Ensure iptables-services package is not installed
(Automated)



3.5.2.4

Ensure iptables are flushed (Manual)



3.5.2.5

Ensure a table exists (Automated)



3.5.2.6

Ensure base chains exist (Automated)



3.5.2.7

Ensure loopback traffic is configured (Automated)



3.5.2.8

Ensure outbound and established connections are
configured (Manual)



3.5.2.9

Ensure default deny firewall policy (Automated)



3.5.2.10

Ensure nftables service is enabled (Automated)



3.5.2.11

Ensure nftables rules are permanent (Automated)



3.5.3

Configure iptables



3.5.3.1

Configure software



3.5.3.1.1

Ensure iptables packages are installed (Automated)



3.5.3.1.2

Ensure nftables is not installed (Automated)



3.5.3.1.3

Ensure firewalld is not installed or stopped and masked
(Automated)



3.5.3.2

Configure IPv4 iptables



3.5.3.2.1

Ensure default deny firewall policy (Automated)



3.5.3.2.2

Ensure loopback traffic is configured (Automated)



3.5.3.2.3

Ensure outbound and established connections are
configured (Manual)



3.5.3.2.4

Ensure firewall rules exist for all open ports (Manual)



3.5.3.2.5

Ensure iptables rules are saved (Automated)



3.5.3.2.6

Ensure iptables is enabled and running (Automated)



3.5.3.3

Configure IPv6 ip6tables



3.5.3.3.1

Ensure IPv6 default deny firewall policy (Automated)



3.5.3.3.2

Ensure IPv6 loopback traffic is configured (Automated)



3.5.3.3.3

Ensure IPv6 outbound and established connections are
configured (Manual)



3.5.3.3.4

Ensure IPv6 firewall rules exist for all open ports (Manual)



3.5.3.3.5

Ensure ip6tables rules are saved (Automated)



3.5.3.3.6

Ensure ip6tables is enabled and running (Automated)



Tags:

最近发表
标签列表