RED HAT ENTERPRISE LINUX HARDENING CHECKLIST

Red Hat Enterprise Linux Hardening Checklist

Preparation and Physical Security

  1. If machine is a new install, protect it from hostile network traffic until the operating system is installed and hardened.
  2. Set a BIOS/firmware password.
  3. Configure the device boot order to prevent unauthorized booting from alternate media.
  4. Use the latest version of RHEL possible.
Filesystem Configuration
  1. Create a separate partition with the nodev, nosuid, and noexec options set for /tmp.   Create separate partitions for /var, /var/log, /var/log/audit, and /home.
  2. Bind mount /var/tmp to /tmp.
  3. Set nodev option to /home.
  4. Set nodev, nosuid, and noexec options on /dev/shm.
  5. Set sticky bit on all world-writable directories.
System Updates
  1. Register with Red Hat Satellite Server so that the system can receive patch updates.
  2. Install the Red Hat GPG key and enable gpgcheck.
Secure Boot Settings
  1. Set user/group owner to root, and permissions to read and write for root only, on /boot/grub2/grub.cfg.
  2. Set boot loader password.
  3. Remove the X Window system.
  4. Disable X Font Server.
Process Hardening
  1. Restrict core dumps.
  2. Enable Randomized Virtual Memory Region Placement.
OS Hardening
  1. Remove legacy services (e.g., telnet-server; rsh, rlogin, rcp; ypserv, ypbind; tftp, tftp-server; talk, talk-server)
  2. Disable any services and applications started by xinetd or inetd that are not being utilized.
  3. Remove xinetd, if possible.
  4. Disable legacy services (e.g., chargen-dgram, chargen-stream, daytime-dgram, daytime-stream, echo-dgram, echo-stream, tcpmux-server)
  5. Disable or remove server services that are not going to be utilized (e.g., FTP, DNS, LDAP, SMB, DHCP, NFS, SNMP, etc.)
  6. Set Daemon umask
Network Security and Firewall Configuration
  1. Limit connections to services running on the host to authorized users of the service via firewalls and other access control technologies.
  2. Disable IP forwarding.
  3. Disable send packet redirects.
  4. Disable source routed packet acceptance.
  5. Disable ICMP redirect acceptance.
  6. Enable Ignore Broadcast Requests.
  7. Enable Bad Error Message Protection.
  8. Enable TCP/SYN cookies.
Remote Administration via SSH
  1. Set SSH protocol to 2.
  2. Set SSH LogLevel to INFO.
  3. Disable SSH Root login.
  4. Set SSH PermitEmptyPasswords to No.
System Integrity and Intrusion Detection
  1. Install and configure AIDE.
  2. Configure SELinux.
  3. Install and configure OSSec HIDS.
Logging
  1. Configure Network Time Protocol (NTP).
  2. Enable system accounting (auditd).
  3. Install and configure rsyslog.
  4. All administrator or root access must be logged.
  5. Configure log shipping to separate device/service (e.g. Splunk).
Files/Directory Permissions/Access
  1. Integrity checking of system accounts, group memberships, and their associated privileges should be enabled and tested.
PAM Configuration
  1. Ensure that the configuration files for PAM, /etc/pam.d/* are secure.
  2. Upgrade password hashing algorithm to SHA-512.
  3. Set password creation requirements.
  4. Restrict root login to system console.
Warning Banners
  1. If network or physical access services are running, ensure the university warning banner is displayed.
  2. If the system allows logins via a graphical user interface, ensure the university warning banner is displayed prior to login.
Anti-Virus Considerations
  1. Install and enable anti-virus software.
  2. Configure to update signature daily on AV.
Additional Security Notes
  1. Systems will provide secure storage for Category-I data as required by confidentiality, integrity, and availability needs. Security can be provided by means such as, but not limited to, encryption, access controls, filesystem audits, physically securing the storage media, or any combination thereof as deemed appropriate.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s