CIS_Amazon_Linux_2_Benchmark_v1.0.0.pdf - CIS Amazon Linux 2 Benchmark v1.0.0 Terms of Use Please see the below link for our current terms of use

CIS_Amazon_Linux_2_Benchmark_v1.0.0.pdf - CIS Amazon Linux...

This preview shows page 1 out of 396 pages.

You've reached the end of your free preview.

Want to read all 396 pages?

Unformatted text preview: 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: 1|Page 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|Page 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|Page 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 (Scored) .......................................................... 112 2.1.7 Ensure NFS and RPC are not enabled (Scored) ...................................................... 113 2.1.8 Ensure DNS Server is not enabled (Scored) ............................................................ 115 2.1.9 Ensure FTP Server is not enabled (Scored) ............................................................. 116 2.1.10 Ensure HTTP server is not enabled (Scored) ....................................................... 117 2.1.11 Ensure IMAP and POP3 server is not enabled (Scored) ................................... 118 2.1.12 Ensure Samba is not enabled (Scored) ................................................................... 119 2.1.13 Ensure HTTP Proxy Server is not enabled (Scored) .......................................... 120 2.1.14 Ensure SNMP Server is not enabled (Scored) ...................................................... 121 2.1.15 Ensure mail transfer agent is configured for local-only mode (Scored) .... 122 2.1.16 Ensure NIS Server is not enabled (Scored) ........................................................... 124 4|Page 2.1.17 Ensure rsh server is not enabled (Scored) ............................................................ 125 2.1.18 Ensure telnet server is not enabled (Scored) ....................................................... 127 2.1.19 Ensure tftp server is not enabled (Scored) ........................................................... 128 2.1.20 Ensure rsync service is not enabled (Scored) ...................................................... 129 2.1.21 Ensure talk server is not enabled (Scored) ........................................................... 130 2.2 Service Clients .................................................................................................................................. 131 2.2.1 Ensure NIS Client is not installed (Scored) .............................................................. 131 2.2.2 Ensure rsh client is not installed (Scored) ............................................................... 133 2.2.3 Ensure talk client is not installed (Scored) .............................................................. 134 2.2.4 Ensure telnet client is not installed (Scored) .......................................................... 135 2.2.5 Ensure LDAP client is not installed (Scored) .......................................................... 136 3 Network Configuration.......................................................................................................................... 137 3.1 Network Parameters (Host Only) ............................................................................................. 138 3.1.1 Ensure IP forwarding is disabled (Scored) .............................................................. 139 3.1.2 Ensure packet redirect sending is disabled (Scored) .......................................... 141 3.2 Network Parameters (Host and Router) ................................................................................ 143 3.2.1 Ensure source routed packets are not accepted (Scored) ................................. 144 3.2.2 Ensure ICMP redirects are not accepted (Scored) ................................................ 147 3.2.3 Ensure secure ICMP redirects are not accepted (Scored) .................................. 150 3.2.4 Ensure suspicious packets are logged (Scored) ..................................................... 152 3.2.5 Ensure broadcast ICMP requests are ignored (Scored) ...................................... 154 3.2.6 Ensure bogus ICMP responses are ignored (Scored) ........................................... 156 3.2.7 Ensure Reverse Path Filtering is enabled (Scored) .............................................. 157 3.2.8 Ensure TCP SYN Cookies is enabled (Scored) ......................................................... 159 3.2.9 Ensure IPv6 router advertisements are not accepted (Scored) ...................... 161 3.3 TCP Wrappers................................................................................................................................... 163 3.3.1 Ensure TCP Wrappers is installed (Scored) ............................................................ 164 3.3.2 Ensure /etc/hosts.allow is configured (Not Scored) ........................................... 166 3.3.3 Ensure /etc/hosts.deny is configured (Not Scored)............................................. 167 3.3.4 Ensure permissions on /etc/hosts.allow are configured (Scored) ................ 168 5|Page 3.3.5 Ensure permissions on /etc/hosts.deny are configured (Scored) .................. 169 3.4 Uncommon Network Protocols ................................................................................................. 170 3.4.1 Ensure DCCP is disabled (Not Scored) ....................................................................... 171 3.4.2 Ensure SCTP is disabled (Not Scored) ....................................................................... 172 3.4.3 Ensure RDS is disabled (Not Scored) ......................................................................... 173 3.4.4 Ensure TIPC is disabled (Not Scored) ........................................................................ 174 3.5 Firewall Configuration .................................................................................................................. 175 3.5.1 Configure IPv4 iptables ........................................................................................................ 176 3.5.1.1 Ensure default deny firewall policy (Scored) ...................................................... 178 3.5.1.2 Ensure loopback traffic is configured (Scored) .................................................. 180 3.5.1.3 Ensure outbound and established connections are configured (Not Scored) .............................................................................................................................................................. 182 3.5.1.4 Ensure firewall rules exist for all open ports (Scored) .................................... 184 3.5.2 Configure IPv6 ip6tables...................................................................................................... 186 3.5.2.1 Ensure IPv6 default deny firewall policy (Scored) ............................................ 188 3.5.2.2 Ensure IPv6 loopback traffic is configured (Scored) ........................................ 190 3.5.2.3 Ensure IPv6 outbound and established connections are configured (Not Scored) .............................................................................................................................................. 192 3.5.2.4 Ensure IPv6 firewall rules exist for all open ports (Not Scored) ................. 194 3.5.3 Ensure iptables is installed (Scored) .......................................................................... 196 3.6 Disable IPv6 (Not Scored) .................................................................................................. 197 4 Logging and Auditing ............................................................................................................................. 198 4.1 Configure System Accounting (auditd) ................................................................................... 199 4.1.1 Configure Data Retention .................................................................................................... 200 4.1.1.1 Ensure audit log storage size is configured (Not Scored) ............................... 201 4.1.1.2 Ensure system is disabled when audit logs are full (Scored) ........................ 202 4.1.1.3 Ensure audit logs are not automatically deleted (Scored) ............................. 203 4.1.2 Ensure auditd service is enabled (Scored) ............................................................... 204 4.1.3 Ensure auditing for processes that start prior to auditd is enabled (Scored) .............................................................................................................................................................. 205 6|Page 4.1.4 Ensure events that modify date and time information are collected (Scored) .............................................................................................................................................................. 207 4.1.5 Ensure events that modify user/group information are collected (Scored) .............................................................................................................................................................. 210 4.1.6 Ensure events that modify the system's network environment are collected (Scored) ............................................................................................................................................ 212 4.1.7 Ensure events that modify the system's Mandatory Access Controls are collected (Scored) ......................................................................................................................... 215 4.1.8 Ensure login and logout events are collected (Scored) ....................................... 216 4.1.9 Ensure session initiation information is collected (Scored) ............................. 218 4.1.10 Ensure discretionary access control permission modification events are collected (Scored) ......................................................................................................................... 220 4.1.11 Ensure unsuccessful unauthorized file access attempts are collected (Scored) ............................................................................................................................................ 223 4.1.12 Ensure use of privileged commands is collected (Scored) .............................. 226 4.1.13 Ensure successful file system mounts are collected (Scored) ....................... 228 4.1.14 Ensure file deletion events by users are collected (Scored) ........................... 231 4.1.15 Ensure changes to system administration scope (sudoers) is collected (Scored) ............................................................................................................................................ 233 4.1.16 Ensure system administrator actions (sudolog) are collected (Scored) ... 235 4.1.17 Ensure kernel module loading and unloading is collected (Scored) ........... 237 4.1.18 Ensure the audit configuration is immutab...
View Full Document

  • Spring '11
  • LI

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture