Rocky Linux 8 — Implemented CIS Rules
This page lists every CIS Benchmark rule ImageFactory automates for Rocky Linux 8, exactly as implemented by the hardening tasks. See CIS Benchmarks for background on Level 1 vs. Level 2, and CIS Hardening Exceptions for rules that are intentionally not automated.
Level 1 (149 rules)
Section 1 — Initial Setup
| Rule ID | Title |
|---|---|
| 1.1.1.1 | Ensure mounting of cramfs filesystem is disabled |
| 1.1.1.8 | Ensure usb-storage kernel module is not available |
| 1.1.1.9 | Ensure mounting of firewire-core filesystems is disabled |
| 1.1.2.1 | Ensure /tmp is configured |
| 1.1.2.1.2 | Ensure nodev option set on /tmp partition |
| 1.1.2.1.3 | Ensure nosuid option set on /tmp partition |
| 1.1.2.1.4 | Ensure noexec option set on /tmp partition |
| 1.1.2.2.2 | Ensure nodev option set on /dev/shm partition |
| 1.1.2.2.3 | Ensure nosuid option set on /dev/shm partition |
| 1.1.2.2.4 | Ensure noexec option set on /dev/shm partition |
| 1.1.2.3.2 | Ensure nodev option set on /home partition |
| 1.1.2.3.3 | Ensure nosuid option set on /home partition |
| 1.1.2.3.4 | Ensure usrquota option set on /home partition |
| 1.1.2.3.5 | Ensure grpquota option set on /home partition |
| 1.1.2.4.2 | Ensure nodev option set on /var partition |
| 1.1.2.4.3 | Ensure nosuid option set on /var partition |
| 1.1.2.5.2 | Ensure nodev option set on /var/tmp partition |
| 1.1.2.5.3 | Ensure nosuid option set on /var/tmp partition |
| 1.1.2.5.4 | Ensure noexec option set on /var/tmp partition |
| 1.2.2 | Ensure gpgcheck is globally activated |
| 1.3.2 | Ensure permissions on bootloader config are configured |
| 1.4.1 | Ensure address space layout randomization (ASLR) is enabled |
| 1.4.2 | Ensure ptrace_scope is restricted |
| 1.4.3 | Ensure core dump backtraces are disabled |
| 1.4.4 | Ensure core dump storage is disabled |
| 1.5.1 | Ensure core file size is configured |
| 1.5.4 | Ensure fs.suid_dumpable is configured |
| 1.5.5 | Ensure kernel.dmesg_restrict is configured |
| 1.6.2 | 1.6.2-1.6.4 | Ensure system wide crypto policy disables sha1 hash and signature support |
| 1.6.3 | 1.6.2-1.6.4 | Ensure system wide crypto policy disables sha1 hash and signature support |
| 1.6.4 | 1.6.2-1.6.4 | Ensure system wide crypto policy disables sha1 hash and signature support |
| 1.7.1 | Ensure message of the day is configured properly |
| 1.7.2 | Ensure local login warning banner is configured properly |
| 1.7.3 | Ensure remote login warning banner is configured properly |
| 1.7.4 | Ensure permissions on /etc/motd are configured |
| 1.7.5 | Ensure permissions on /etc/issue are configured |
| 1.7.6 | Ensure permissions on /etc/issue.net are configured |
| 1.8.2 | Ensure GDM is removed or login is configured |
| 1.8.6 | Ensure automatic mounting of removable media is disabled |
Section 2 — Services
| Rule ID | Title |
|---|---|
| 2.1.1 | Ensure time synchronization is in use |
| 2.1.2 | Ensure chrony is configured |
| 2.2.1 | Ensure autofs services are not in use |
| 2.2.2 | Ensure Avahi Server is not installed |
| 2.2.3 | Ensure DHCP Server is not installed |
| 2.2.4 | Ensure DNS Server is not installed |
| 2.2.6 | Ensure Samba is not installed |
| 2.2.7 | Ensure FTP Server is not installed |
| 2.2.8 | Ensure IMAP and POP3 server is not installed |
| 2.2.9 | Ensure nfs-utils is not installed or the nfs-server service is masked |
| 2.2.10 | Ensure NIS Server is not installed |
| 2.2.11 | Ensure CUPS is not installed |
| 2.2.12 | Ensure rpcbind is not installed or the rpcbind services are masked |
| 2.2.13 | Ensure rsync is not installed or the rsyncd service is masked |
| 2.2.14 | Ensure net-snmp is not installed |
| 2.2.15 | Ensure telnet-server is not installed |
| 2.2.16 | Ensure TFTP Server is not installed |
| 2.2.18 | Ensure HTTP Proxy Server is not installed |
| 2.2.19 | Ensure xinetd is not installed |
| 2.2.21 | Ensure mail transfer agent is configured for local-only mode |
| 2.3.1 | Ensure NIS Client is not installed |
| 2.3.2 | Ensure rsh client is not installed |
| 2.3.4 | Ensure telnet client is not installed |
| 2.3.5 | Ensure LDAP client is not installed |
| 2.3.6 | Ensure TFTP client is not installed |
| 2.3.7 | Ensure talk client is not installed |
Section 3 — Network Configuration
| Rule ID | Title |
|---|---|
| 3.1.2 | Ensure wireless interfaces are disabled |
| 3.2.1 | Ensure atm kernel module is not available |
| 3.2.2 | Ensure can kernel module is not available |
| 3.2.6 | Ensure tipc kernel module is not available |
| 3.3.1 | Ensure IP forwarding is disabled |
| 3.3.2 | Ensure packet redirect sending is disabled |
| 3.3.3 | Ensure bogus ICMP responses are ignored |
| 3.3.4 | Ensure broadcast ICMP requests are ignored |
| 3.3.5 | Ensure ICMP redirects are not accepted |
| 3.3.6 | Ensure secure ICMP redirects are not accepted |
| 3.3.7 | Ensure Reverse Path Filtering is enabled |
| 3.3.8 | Ensure source routed packets are not accepted |
| 3.3.9 | Ensure suspicious packets are logged |
| 3.3.10 | Ensure TCP SYN Cookies is enabled |
| 3.3.11 | Ensure IPv6 router advertisements are not accepted |
| 3.4.3.1.2 | 3.4.3.2.3 Ensure iptables rules exist for all open ports |
| 3.4.4.1 | Configure IPv4 iptables |
| 3.4.4.2 | Configure IPv6 iptables |
| 3.5.1.1 | Ensure a Firewall package is installed |
Section 4
| Rule ID | Title |
|---|---|
| 4.1.1.1 | Ensure cron daemon is enabled |
| 4.1.1.2 | Ensure permissions on /etc/crontab are configured |
| 4.1.1.3 | Ensure permissions on /etc/cron.hourly are configured |
| 4.1.1.4 | Ensure permissions on /etc/cron.daily are configured |
| 4.1.1.5 | Ensure permissions on /etc/cron.weekly are configured |
| 4.1.1.6 | Ensure permissions on /etc/cron.monthly are configured |
| 4.1.1.7 | Ensure permissions on /etc/cron.d are configured |
| 4.1.1.8 | Ensure at/cron is restricted to authorized users |
| 4.2.1 | Ensure permissions on /etc/ssh/sshd_config are configured |
| 4.2.2 | Ensure permissions on SSH private host key files are configured |
| 4.2.3 | Ensure permissions on SSH public host key files are configured |
| 4.2.4 | Ensure SSH access is limited |
| 4.2.5 | Ensure SSH warning banner is configured |
| 4.2.7 | Ensure SSH Idle Timeout Interval is configured |
| 4.2.8 | Ensure SSH IgnoreRhosts is enabled |
| 4.2.9 | Ensure SSH HostbasedAuthentication is disabled |
| 4.2.10 | Ensure SSH root login is disabled |
| 4.2.11 | Ensure SSH PermitEmptyPasswords is disabled |
| 4.2.12 | Ensure SSH PermitUserEnvironment is disabled |
| 4.2.13 | Ensure SSH LogLevel is appropriate |
| 4.2.14 | Ensure SSH LoginGraceTime is set to one minute or less |
| 4.2.15 | Ensure SSH MaxAuthTries is set to 4 or less |
| 4.2.16 | Ensure SSH MaxSessions is set to 4 or less |
| 4.2.17 | Ensure SSH MaxStartups is configured |
| 4.2.21 | Ensure SSH PAM is enabled |
| 4.3.1 | Ensure sudo is installed |
| 4.3.2 | Ensure sudo commands use pty |
| 4.3.3 | Ensure sudo log file exists |
| 4.3.7 | Ensure access to the su command is restricted |
| 4.4.2.1 | Create custom authselect profile |
| 4.4.2.2 | Select authselect profile |
| 4.4.2.3 | Ensure authselect includes with-faillock |
| 4.4.3.1 | Configure pam_faillock module |
| 4.4.3.2.1 | Ensure password creation requirements are configured |
| 4.4.3.2.2 | Ensure lockout for failed password attempts is configured |
| 4.4.3.2.3 | Ensure password hashing algorithm is SHA-512 |
| 4.4.3.2.4 | Ensure password reuse is limited |
| 4.4.3.3 | Configure pam_pwhistory module |
| 4.5.2.1 | Ensure default group for the root account is GID 0 |
| 4.5.2.3 | Ensure system accounts are secured |
| 4.5.2.4 | Ensure root password is set |
| 4.5.3.2 | Ensure default user shell timeout is 900 seconds or less |
| 4.5.3.3 | Ensure default user umask is 027 or more restrictive |
| 4.6.1.1 | Ensure password expiration is 365 days or less |
| 4.6.1.2 | Ensure minimum days between password changes is 7 or more |
| 4.6.1.3 | Ensure password expiration warning days is 7 or more |
| 4.6.1.4 | Ensure inactive password lock is 30 days or less |
Section 5
| Rule ID | Title |
|---|---|
| 5.1.1.1 | Ensure rsyslog is installed |
| 5.1.1.2 | Ensure rsyslog Service is enabled |
| 5.1.1.3 | Ensure journald is configured to send logs to rsyslog |
| 5.1.1.4 | Ensure rsyslog default file permissions configured |
| 5.1.2.3 | Ensure journald is configured to compress large log files |
| 5.1.2.4 | Ensure journald is configured to write logfiles to persistent disk |
| 5.1.4 | Ensure all logfiles have appropriate access configured |
| 5.2.1 | Ensure sudo is installed |
| 5.2.2 | Ensure sudo commands use pty |
| 5.2.3 | Ensure sudo log file exists |
| 5.2.7 | Ensure access to the su command is restricted |
| 5.3.1 | Ensure AIDE is installed |
| 5.3.2 | Ensure filesystem integrity is regularly checked |
| 5.3.3 | Ensure cryptographic mechanisms are used to protect the integrity of audit tools |
Section 6
| Rule ID | Title |
|---|---|
| 6.1.2 | Ensure sticky bit is set on all world-writable directories |
| 6.2.1.2.3 | Ensure systemd-journal-upload is enabled and active |
| 6.2.7 | Ensure users' home directories permissions are 750 or more restrictive |
| 6.2.8 | Ensure root PATH Integrity |
Level 2 (38 rules)
Section 1 — Initial Setup
| Rule ID | Title |
|---|---|
| 1.1.1.2 | Ensure mounting of squashfs filesystems is disabled |
| 1.1.1.3 | Ensure mounting of udf filesystems is disabled |
| 1.1.1.6 | Ensure overlay kernel module is not available |
| 1.2.1.5 | Ensure weak dependencies are configured |
Section 3 — Network Configuration
| Rule ID | Title |
|---|---|
| 3.4.1 | Ensure DCCP is disabled |
| 3.4.2 | Ensure SCTP is disabled |
| 3.4.3 | Ensure RDS is disabled |
Section 5
| Rule ID | Title |
|---|---|
| 5.1.11 | Ensure sshd GSSAPIAuthentication is disabled |
| 5.3.6 | Ensure SSH X11 forwarding is disabled |
| 5.3.20 | Ensure SSH AllowTcpForwarding is disabled |
Section 6
| Rule ID | Title |
|---|---|
| 6.3.1.1 | Ensure auditd packages are installed |
| 6.3.1.2 | Ensure auditing for processes that start prior to auditd is enabled |
| 6.3.1.3 | Ensure audit_backlog_limit is sufficient |
| 6.3.2.1 | Ensure audit log storage size is configured |
| 6.3.2.2 | Ensure audit logs are not automatically deleted |
| 6.3.2.3 | Ensure system is disabled when audit logs are full |
| 6.3.3.1 | Ensure changes to system administration scope (sudoers) is collected |
| 6.3.3.2 | Ensure actions as another user are always logged |
| 6.3.3.3 | Ensure events that modify the sudo log file are collected |
| 6.3.3.4 | Ensure events that modify date and time information are collected |
| 6.3.3.5 | Ensure events that modify the system's network environment are collected |
| 6.3.3.6 | Ensure use of privileged commands are collected |
| 6.3.3.7 | Ensure unsuccessful file access attempts are collected |
| 6.3.3.8 | Ensure events that modify user/group information are collected |
| 6.3.3.9 | Ensure discretionary access control permission modification events are collected |
| 6.3.3.10 | Ensure successful file system mounts are collected |
| 6.3.3.11 | Ensure session initiation information is collected |
| 6.3.3.12 | Ensure login and logout events are collected |
| 6.3.3.13 | Ensure file deletion events by users are collected |
| 6.3.3.14 | Ensure events that modify the system's Mandatory Access Controls are collected |
| 6.3.3.15 | 6.3.3.15 - 6.3.3.17 | Ensure successful and unsuccessful attempts to use the chcon command are recorded |
| 6.3.3.16 | 6.3.3.15 - 6.3.3.17 | Ensure successful and unsuccessful attempts to use the chcon command are recorded |
| 6.3.3.17 | 6.3.3.15 - 6.3.3.17 | Ensure successful and unsuccessful attempts to use the chcon command are recorded |
| 6.3.3.18 | Ensure successful and unsuccessful attempts to use the usermod command are recorded |
| 6.3.3.19 | Ensure kernel module loading unloading and modification is collected |
| 6.3.3.20 | Ensure the audit configuration is loaded regardless of errors |
| 6.3.3.21 | Ensure the audit configuration is immutable |
| 6.3.4.5 | Ensure audit configuration files mode is configured |