CIS Amazon Linux 2 Benchmark
Total Page:16
File Type:pdf, Size:1020Kb
CIS Amazon Linux 2 Benchmark v1.0.0 - 11-14-2018 Terms of Use Please see the below link for our current terms of use: https://www.cisecurity.org/cis-securesuite/cis-securesuite-membership-terms-of-use/ 1 | P a g e Table of Contents Terms of Use ........................................................................................................................................................... 1 Overview ............................................................................................................................................................... 12 Intended Audience ........................................................................................................................................ 12 Consensus Guidance ..................................................................................................................................... 12 Typographical Conventions ...................................................................................................................... 13 Scoring Information ..................................................................................................................................... 13 Profile Definitions ......................................................................................................................................... 14 Acknowledgements ...................................................................................................................................... 15 Recommendations ............................................................................................................................................. 16 1 Initial Setup .................................................................................................................................................. 16 1.1 Filesystem Configuration ............................................................................................................... 17 1.1.1 Disable unused filesystems ................................................................................................... 18 1.1.1.1 Ensure mounting of cramfs filesystems is disabled (Scored) ......................... 19 1.1.1.2 Ensure mounting of hfs filesystems is disabled (Scored) ................................. 20 1.1.1.3 Ensure mounting of hfsplus filesystems is disabled (Scored) ........................ 21 1.1.1.4 Ensure mounting of squashfs filesystems is disabled (Scored) ..................... 22 1.1.1.5 Ensure mounting of udf filesystems is disabled (Scored) ................................ 23 1.1.2 Ensure /tmp is configured (Scored) ............................................................................. 24 1.1.3 Ensure nodev option set on /tmp partition (Scored) ............................................ 27 1.1.4 Ensure nosuid option set on /tmp partition (Scored) ........................................... 29 1.1.5 Ensure noexec option set on /tmp partition (Scored) .......................................... 31 1.1.6 Ensure separate partition exists for /var (Scored)................................................. 33 1.1.7 Ensure separate partition exists for /var/tmp (Scored) ...................................... 35 1.1.8 Ensure nodev option set on /var/tmp partition (Scored) ................................... 37 1.1.9 Ensure nosuid option set on /var/tmp partition (Scored) .................................. 38 1.1.10 Ensure noexec option set on /var/tmp partition (Scored) ............................... 39 1.1.11 Ensure separate partition exists for /var/log (Scored) ..................................... 40 1.1.12 Ensure separate partition exists for /var/log/audit (Scored) ......................... 42 1.1.13 Ensure separate partition exists for /home (Scored) ......................................... 44 2 | P a g e 1.1.14 Ensure nodev option set on /home partition (Scored) ...................................... 46 1.1.15 Ensure nodev option set on /dev/shm partition (Scored) ............................... 47 1.1.16 Ensure nosuid option set on /dev/shm partition (Scored) .............................. 48 1.1.17 Ensure noexec option set on /dev/shm partition (Scored) .............................. 49 1.1.18 Ensure sticky bit is set on all world-writable directories (Scored) ............... 50 1.1.19 Disable Automounting (Scored) .................................................................................. 51 1.2 Configure Software Updates ......................................................................................................... 53 1.2.1 Ensure package manager repositories are configured (Not Scored) ............... 53 1.2.2 Ensure GPG keys are configured (Not Scored) ......................................................... 55 1.2.3 Ensure gpgcheck is globally activated (Scored) ....................................................... 56 1.3 Filesystem Integrity Checking ...................................................................................................... 57 1.3.1 Ensure AIDE is installed (Scored) .................................................................................. 58 1.3.2 Ensure filesystem integrity is regularly checked (Scored) .................................. 60 1.4 Secure Boot Settings ........................................................................................................................ 62 1.4.1 Ensure permissions on bootloader config are configured (Scored) ................ 63 1.4.2 Ensure authentication required for single user mode (Scored) ........................ 65 1.5 Additional Process Hardening ..................................................................................................... 67 1.5.1 Ensure core dumps are restricted (Scored) .............................................................. 68 1.5.2 Ensure address space layout randomization (ASLR) is enabled (Scored) .... 70 1.5.3 Ensure prelink is disabled (Scored) .............................................................................. 72 1.6 Mandatory Access Control ............................................................................................................. 73 1.6.1 Configure SELinux .................................................................................................................... 74 1.6.1.1 Ensure SELinux is not disabled in bootloader configuration (Scored) ....... 76 1.6.1.2 Ensure the SELinux state is enforcing (Scored) ................................................... 78 1.6.1.3 Ensure SELinux policy is configured (Scored) ...................................................... 79 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............................................................................................................................... 85 3 | P a g e 1.7.1 Command Line Warning Banners ...................................................................................... 86 1.7.1.1 Ensure message of the day is configured properly (Scored) ........................... 87 1.7.1.2 Ensure local login warning banner is configured properly (Not Scored) .. 89 1.7.1.3 Ensure remote login warning banner is configured properly (Not Scored) ................................................................................................................................................................ 91 1.7.1.4 Ensure permissions on /etc/motd are configured (Not Scored) ................... 93 1.7.1.5 Ensure permissions on /etc/issue are configured (Scored) ........................... 94 1.7.1.6 Ensure permissions on /etc/issue.net are configured (Not Scored) ........... 95 1.8 Ensure updates, patches, and additional security software are installed (Scored) .............................................................................................................................................. 96 2 Services .......................................................................................................................................................... 98 2.1 Special Purpose Services ................................................................................................................ 99 2.1.1 Time Synchronization ........................................................................................................... 100 2.1.1.1 Ensure time synchronization is in use (Not Scored) ........................................ 101 2.1.1.2 Ensure ntp is configured (Scored) ........................................................................... 103 2.1.1.3 Ensure chrony is configured (Scored) .................................................................... 105 2.1.2 Ensure X Window System is not installed (Scored) ............................................. 107 2.1.3 Ensure Avahi Server is not enabled (Scored) ......................................................... 108 2.1.4 Ensure CUPS is not enabled (Scored) ......................................................................... 109 2.1.5 Ensure DHCP Server is not enabled (Scored) ......................................................... 111 2.1.6 Ensure LDAP server is not enabled