Skip to main content

RHEL 7 — Implemented CIS Rules

This page lists every CIS Benchmark rule ImageFactory automates for RHEL 7, 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 (127 rules)​

Section 1 — Initial Setup​

Rule IDTitle
1.1.1.1Ensure mounting of cramfs filesystem is disabled
1.1.1.3Ensure hfs kernel module is not available
1.1.1.4Ensure hfsplus kernel module is not available
1.1.1.8Ensure usb-storage kernel module is not available
1.1.2.1Ensure /tmp is configured
1.1.2.1.2Ensure nodev option set on /tmp partition
1.1.2.1.3Ensure nosuid option set on /tmp partition
1.1.2.1.4Ensure noexec option set on /tmp partition
1.1.2.2.2Ensure nodev option set on /dev/shm partition
1.1.2.2.3Ensure nosuid option set on /dev/shm partition
1.1.2.2.4Ensure noexec option set on /dev/shm partition
1.1.2.3.2Ensure nodev option set on /home partition
1.1.2.3.3Ensure nosuid option set on /home partition
1.1.2.4.2Ensure nodev option set on /var partition
1.1.2.4.3Ensure nosuid option set on /var partition
1.1.2.5.2Ensure nodev option set on /var/tmp partition
1.1.2.5.3Ensure nosuid option set on /var/tmp partition
1.1.2.5.4Ensure noexec option set on /var/tmp partition
1.1.22Ensure sticky bit is set on all world-writable directories
1.1.23Disable Automounting
1.2.2Ensure gpgcheck is globally activated
1.4.1Ensure address space layout randomization (ASLR) is enabled
1.4.2Ensure ptrace_scope is restricted
1.4.3Ensure core dump backtraces are disabled
1.4.4Ensure core dump storage is disabled
1.5.1.1Ensure SELinux is installed
1.5.1.2Ensure SELinux is not disabled in bootloader configuration
1.5.1.3Ensure SELinux policy is configured
1.5.1.5Ensure the SELinux mode is enforcing
1.6.1Ensure message of the day is configured properly
1.6.2Ensure local login warning banner is configured properly
1.6.3Ensure remote login warning banner is configured properly
1.6.4Ensure access on /etc/motd is configured
1.6.5Ensure access on /etc/issue is configured
1.6.6Ensure access to /etc/issue.net is configured

Section 2 — Services​

Rule IDTitle
2.1.1Ensure time synchronization is in use
2.1.2Ensure chrony is configured
2.2.2Ensure avahi daemon services are not in use
2.2.3Ensure dhcp server services are not in use
2.2.4Ensure dns server services are not in use
2.2.6Ensure samba file server services are not in use
2.2.7Ensure ftp server services are not in use
2.2.8Ensure message access server services are not in use
2.2.9Ensure network file system services are not in use
2.2.10Ensure nis server services are not in use
2.2.11Ensure print server services are not in use
2.2.12Ensure rpcbind services are not in use
2.2.13Ensure rsync services are not in use
2.2.14Ensure snmp services are not in use
2.2.15Ensure telnet server services are not in use
2.2.17Ensure web proxy server services are not in use
2.2.18Ensure web server services are not in use
2.2.21Ensure mail transfer agents are configured for local-only mode
2.3.2Ensure ldap client is not installed
2.3.3Ensure nis client is not installed
2.3.4Ensure telnet client is not installed

Section 3 — Network Configuration​

Rule IDTitle
3.3.1Ensure IP forwarding is disabled
3.3.2Ensure packet redirect sending is disabled
3.3.3Ensure bogus ICMP responses are ignored
3.3.4Ensure broadcast ICMP requests are ignored
3.3.5Ensure ICMP redirects are not accepted
3.3.6Ensure secure ICMP redirects are not accepted
3.3.7Ensure Reverse Path Filtering is enabled
3.3.8Ensure source routed packets are not accepted
3.3.9Ensure suspicious packets are logged
3.3.10Ensure tcp syn cookies is enabled
3.3.11Ensure IPv6 router advertisements are not accepted
3.4.1.1Ensure a Firewall package is installed
3.4.3.1.23.4.3.2.3 Ensure iptables rules exist for all open ports
3.4.4.1Configure IPv4 iptables
3.4.4.2Configure IPv6 iptables

Section 4​

Rule IDTitle
4.1.1.1Ensure cron daemon is enabled
4.1.1.2Ensure permissions on /etc/crontab are configured
4.1.1.3Ensure permissions on /etc/cron.hourly are configured
4.1.1.4Ensure permissions on /etc/cron.daily are configured
4.1.1.5Ensure permissions on /etc/cron.weekly are configured
4.1.1.6Ensure permissions on /etc/cron.monthly are configured
4.1.1.7Ensure permissions on /etc/cron.d are configured
4.1.1.8Ensure crontab is restricted to authorized users
4.1.2.1Ensure at is restricted to authorized users
4.2.1Ensure permissions on /etc/ssh/sshd_config are configured
4.2.2Ensure permissions on SSH private host key files are configured
4.2.3Ensure permissions on SSH public host key files are configured
4.2.4Ensure sshd access is configured
4.2.5Ensure sshd Banner is configured
4.2.6Ensure sshd Ciphers are configured
4.2.7Ensure sshd ClientAliveInterval and ClientAliveCountMax are configured
4.2.8Ensure sshd DisableForwarding is enabled
4.2.9Ensure sshd GSSAPIAuthentication is disabled
4.2.12Ensure sshd KexAlgorithms is configured
4.2.13Ensure sshd LoginGraceTime is configured
4.2.14Ensure sshd LogLevel is configured
4.2.15Ensure sshd MACs are configured
4.2.16Ensure sshd MaxAuthTries is configured
4.2.17Ensure sshd MaxSessions is configured
4.2.18Ensure sshd MaxStartups is configured
4.2.19Ensure sshd PermitEmptyPasswords is disabled
4.2.20Ensure sshd PermitRootLogin is disabled
4.2.21Ensure sshd PermitUserEnvironment is disabled
4.2.22Ensure sshd UsePAM is enabled
4.3.1Ensure sudo is installed
4.3.2Ensure sudo commands use pty
4.3.3Ensure sudo log file exists
4.3.7Ensure access to the su command is restricted
4.4Configure Pluggable Authentication Modules
4.4.1.1Ensure latest version of pam is installed
4.5.1.2Ensure password expiration is 365 days or less
4.5.1.3Ensure password expiration warning days is 7 or more
4.5.1.4Ensure inactive password lock is 30 days or less
4.5.2.1Ensure default group for the root account is GID 0
4.5.2.3Ensure system accounts are secured
4.5.2.4Ensure root password is set
4.5.3.2Ensure default user shell timeout is configured
4.5.3.3Ensure default user umask is configured

Section 5​

Rule IDTitle
5.1.1.1Ensure rsyslog is installed
5.1.1.2Ensure rsyslog Service is enabled
5.1.1.3Ensure journald is configured to send logs to rsyslog
5.1.1.4Ensure rsyslog default file permissions configured
5.1.2.3Ensure journald is configured to compress large log files
5.1.2.4Ensure journald is configured to write logfiles to persistent disk
5.1.4Ensure all logfiles have appropriate access configured
5.3.1Ensure AIDE is installed
5.3.2Ensure filesystem integrity is regularly checked
5.3.3Ensure cryptographic mechanisms are used to protect the integrity of audit tools

Section 6​

Rule IDTitle
6.1.11Ensure world writable files and directories are secured
6.2.7Ensure users' home directories permissions are 750 or more restrictive
6.2.8Ensure root PATH Integrity

Level 2 (35 rules)​

Section 1 — Initial Setup​

Rule IDTitle
1.1.1.6Ensure squashfs kernel module is not available
1.1.1.7Ensure udf kernel module is not available

Section 3 — Network Configuration​

Rule IDTitle
3.2.1Ensure dccp kernel module is not available
3.2.2Ensure tipc kernel module is not available
3.2.3Ensure rds kernel module is not available
3.2.4Ensure sctp kernel module is not available

Section 5​

Rule IDTitle
5.2.1.1Ensure audit is installed
5.2.1.2Ensure auditing for processes that start prior to auditd is enabled
5.2.1.4Ensure audit_backlog_limit is sufficient
5.2.2.1Ensure audit log storage size is configured
5.2.2.2Ensure audit logs are not automatically deleted
5.2.2.3Ensure system is disabled when audit logs are full
5.2.3.1Ensure changes to system administration scope (sudoers) is collected
5.2.3.2Ensure actions as another user are always logged
5.2.3.3Ensure events that modify the sudo log file are collected
5.2.3.4Ensure events that modify date and time information are collected
5.2.3.5Ensure events that modify the system's network environment are collected
5.2.3.6Ensure use of privileged commands are collected
5.2.3.7Ensure unsuccessful file access attempts are collected
5.2.3.8Ensure events that modify user/group information are collected
5.2.3.9Ensure discretionary access control permission modification events are collected
5.2.3.10Ensure successful file system mounts are collected
5.2.3.11Ensure session initiation information is collected
5.2.3.12Ensure login and logout events are collected
5.2.3.13Ensure file deletion events by users are collected
5.2.3.14Ensure events that modify the system's Mandatory Access Controls are collected
5.2.3.15Ensure successful and unsuccessful attempts to use the chcon command are recorded
5.2.3.16Ensure successful and unsuccessful attempts to use the setfacl command are recorded
5.2.3.17Ensure successful and unsuccessful attempts to use the chacl command are recorded
5.2.3.18Ensure successful and unsuccessful attempts to use the usermod command are recorded
5.2.3.19Ensure kernel module loading unloading and modification is collected
5.2.3.20Ensure the audit configuration is immutable
5.2.4.5Ensure audit configuration files are 640 or more restrictive
5.3.6Ensure SSH X11 forwarding is disabled
5.3.20Ensure SSH AllowTcpForwarding is disabled