CIS Red Hat Enterprise Linux 7 Benchmark
Total Page:16
File Type:pdf, Size:1020Kb
CIS Red Hat Enterprise Linux 7 Benchmark v2.1.1 - 01-31-2017 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License. The link to the license terms can be found at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode To further clarify the Creative Commons license related to CIS Benchmark content, you are authorized to copy and redistribute the content for use by you, within your organization and outside your organization for non-commercial purposes only, provided that (i) appropriate credit is given to CIS, (ii) a link to the license is provided. Additionally, if you remix, transform or build upon the CIS Benchmark(s), you may only distribute the modified materials if they are subject to the same license terms as the original Benchmark license and your derivative will no longer be a CIS Benchmark. Commercial use of CIS Benchmarks is subject to the prior approval of the Center for Internet Security. 1 | P a g e Table of Contents Overview ............................................................................................................................................................... 12 Intended Audience ........................................................................................................................................ 12 Consensus Guidance ..................................................................................................................................... 12 Typographical Conventions ...................................................................................................................... 14 Scoring Information ..................................................................................................................................... 14 Profile Definitions ......................................................................................................................................... 15 Acknowledgements ...................................................................................................................................... 17 Recommendations ............................................................................................................................................. 18 1 Initial Setup .................................................................................................................................................. 18 1.1 Filesystem Configuration ............................................................................................................... 18 1.1.1.1 Ensure mounting of cramfs filesystems is disabled (Scored) .............................. 19 1.1.1.2 Ensure mounting of freevxfs filesystems is disabled (Scored)............................ 21 1.1.1.3 Ensure mounting of jffs2 filesystems is disabled (Scored) ................................... 22 1.1.1.4 Ensure mounting of hfs filesystems is disabled (Scored) ...................................... 23 1.1.1.5 Ensure mounting of hfsplus filesystems is disabled (Scored) ............................. 24 1.1.1.6 Ensure mounting of squashfs filesystems is disabled (Scored) .......................... 25 1.1.1.7 Ensure mounting of udf filesystems is disabled (Scored) ..................................... 26 1.1.1.8 Ensure mounting of FAT filesystems is disabled (Scored) ................................... 27 1.1.2 Ensure separate partition exists for /tmp (Scored) .................................................... 28 1.1.3 Ensure nodev option set on /tmp partition (Scored) ................................................. 30 1.1.4 Ensure nosuid option set on /tmp partition (Scored) ................................................ 31 1.1.5 Ensure noexec option set on /tmp partition (Scored) ............................................... 32 1.1.6 Ensure separate partition exists for /var (Scored) ..................................................... 33 1.1.7 Ensure separate partition exists for /var/tmp (Scored) ........................................... 34 1.1.8 Ensure nodev option set on /var/tmp partition (Scored) ........................................ 36 1.1.9 Ensure nosuid option set on /var/tmp partition (Scored) ....................................... 37 1.1.10 Ensure noexec option set on /var/tmp partition (Scored) .................................... 38 2 | P a g e 1.1.11 Ensure separate partition exists for /var/log (Scored) .......................................... 39 1.1.12 Ensure separate partition exists for /var/log/audit (Scored) ............................. 41 1.1.13 Ensure separate partition exists for /home (Scored) .............................................. 43 1.1.14 Ensure nodev option set on /home partition (Scored) ........................................... 44 1.1.15 Ensure nodev option set on /dev/shm partition (Scored) .................................... 45 1.1.16 Ensure nosuid option set on /dev/shm partition (Scored) ................................... 46 1.1.17 Ensure noexec option set on /dev/shm partition (Scored) .................................. 47 1.1.18 Ensure nodev option set on removable media partitions (Not Scored) ........... 48 1.1.19 Ensure nosuid option set on removable media partitions (Not Scored) .......... 49 1.1.20 Ensure noexec option set on removable media partitions (Not Scored) ......... 50 1.1.21 Ensure sticky bit is set on all world-writable directories (Scored) .................... 51 1.1.22 Disable Automounting (Scored) ....................................................................................... 52 1.2 Configure Software Updates ......................................................................................................... 54 1.2.1 Ensure package manager repositories are configured (Not Scored) ................... 54 1.2.2 Ensure gpgcheck is globally activated (Scored) ........................................................... 56 1.2.3 Ensure GPG keys are configured (Not Scored) .............................................................. 57 1.2.4 Ensure Red Hat Network or Subscription Manager connection is configured (Not Scored) ........................................................................................................................................... 58 1.2.5 Disable the rhnsd Daemon (Not Scored) ......................................................................... 59 1.3 Filesystem Integrity Checking ...................................................................................................... 60 1.3.1 Ensure AIDE is installed (Scored) ...................................................................................... 60 1.3.2 Ensure filesystem integrity is regularly checked (Scored) ....................................... 62 1.4 Secure Boot Settings ........................................................................................................................ 64 1.4.1 Ensure permissions on bootloader config are configured (Scored) ..................... 64 1.4.2 Ensure bootloader password is set (Scored) ................................................................. 66 1.4.3 Ensure authentication required for single user mode (Not Scored) .................... 68 1.5 Additional Process Hardening ..................................................................................................... 69 1.5.1 Ensure core dumps are restricted (Scored) ................................................................... 69 1.5.2 Ensure XD/NX support is enabled (Not Scored) .......................................................... 71 1.5.3 Ensure address space layout randomization (ASLR) is enabled (Scored) ......... 73 1.5.4 Ensure prelink is disabled (Scored) .................................................................................. 74 3 | P a g e 1.6 Mandatory Access Control ............................................................................................................. 75 1.6.1.1 Ensure SELinux is not disabled in bootloader configuration (Scored) ............ 77 1.6.1.2 Ensure the SELinux state is enforcing (Scored) ........................................................ 79 1.6.1.3 Ensure SELinux policy is configured (Scored) ........................................................... 80 1.6.1.4 Ensure SETroubleshoot is not installed (Scored) ..................................................... 81 1.6.1.5 Ensure the MCS Translation Service (mcstrans) is not installed (Scored) ..... 82 1.6.1.6 Ensure no unconfined daemons exist (Scored) ......................................................... 83 1.6.2 Ensure SELinux is installed (Scored) ................................................................................ 84 1.7 Warning Banners............................................................................................................................... 84 1.7.1.1 Ensure message of the day is configured properly (Scored) ............................... 86 1.7.1.2 Ensure local login warning banner is configured properly (Not Scored) ....... 88 1.7.1.3 Ensure remote login warning banner is configured properly (Not Scored) .. 90 1.7.1.4 Ensure permissions on /etc/motd are configured (Not Scored) ....................... 92 1.7.1.5 Ensure permissions on /etc/issue are configured (Scored) ................................ 93 1.7.1.6 Ensure permissions on /etc/issue.net are configured (Not Scored) ................ 94 1.7.2 Ensure GDM login banner is configured (Scored) .......................................................