Characteristics

User root started the evaluation at 2014-07-17T13:46:34. Evaluation finished at 2014-07-17T13:53:55. The target machine was called localhost.localdomain.

Benchmark from /usr/share/xml/scap/ssg/content/ssg-rhel6-ds.xml with ID xccdf_org.ssgproject.content_benchmark_RHEL-6 was used. Profile was selected.

CPE Platforms

  • cpe:/o:redhat:enterprise_linux:6
  • cpe:/o:redhat:enterprise_linux:6::client

Addresses

  • IPv4  127.0.0.1
  • IPv4  192.168.122.148
  • IPv6  0:0:0:0:0:0:0:1
  • IPv6  fe80:0:0:0:5054:ff:fe67:dc41
  • MAC  00:00:00:00:00:00
  • MAC  52:54:00:67:DC:41

Compliance and Scoring

The system is not compliant! Please review rule results and consider applying remediation.
138 passed
169 failed
80 other
Scoring systemScoreMaximum%
urn:xccdf:scoring:default54.081947100.000000
54.08%

Rule Overview

TitleSeverityResult
Guide to the Secure Configuration of Red Hat Enterprise Linux 6 169x fail 2x unknown
Introduction
General Principles
Encrypt Transmitted Data Whenever Possible
Minimize Software to Minimize Vulnerability
Run Different Network Services on Separate Systems
Configure Security Tools to Improve System Robustness
Least Privilege
How to Use This Guide
Read Sections Completely and in Order
Test in Non-Production Environment
Root Shell Environment Assumed
Formatting Conventions
Reboot Required
System Settings 136x fail 2x unknown
Installing and Maintaining Software 8x fail
Disk Partitioning 5x fail
Ensure /tmp Located On Separate Partitionlow
fail
Ensure /var Located On Separate Partitionlow
fail
Ensure /var/log Located On Separate Partitionlow
fail
Ensure /var/log/audit Located On Separate Partitionlow
fail
Ensure /home Located On Separate Partitionlow
fail
Encrypt Partitionslow
notselected
Updating Software
Ensure Red Hat GPG Key Installedhigh
pass
Ensure gpgcheck Enabled In Main Yum Configurationhigh
pass
Ensure gpgcheck Enabled For All Yum Package Repositorieshigh
pass
Ensure Software Patches Installedhigh
notselected
Software Integrity Checking 3x fail
Verify Integrity with AIDE 2x fail
Install AIDEmedium
fail
Disable Prelinkinglow
fail
Build and Test AIDE Databaselow
notchecked
Configure Periodic Execution of AIDEmedium
notchecked
Verify Integrity with RPM 1x fail
Verify and Correct File Permissions with RPMlow
fail
Verify File Hashes with RPMlow
pass
Additional Security Software
Install Intrusion Detection Softwarehigh
notselected
Install Virus Scanning Softwarelow
notselected
File Permissions and Masks 30x fail
Restrict Partition Mount Options 11x fail
Add nodev Option to Non-Root Local Partitionslow
fail
Add nodev Option to Removable Media Partitionslow
fail
Add noexec Option to Removable Media Partitionslow
fail
Add nosuid Option to Removable Media Partitionslow
fail
Add nodev Option to /tmplow
fail
Add noexec Option to /tmplow
fail
Add nosuid Option to /tmplow
fail
Add nodev Option to /dev/shmlow
fail
Add noexec Option to /dev/shmlow
fail
Add nosuid Option to /dev/shmlow
fail
Bind Mount /var/tmp To /tmplow
fail
Restrict Dynamic Mounting and Unmounting of Filesystems 11x fail
Disable Modprobe Loading of USB Storage Driverlow
fail
Disable Kernel Support for USB via Bootloader Configurationlow
fail
Disable Booting from USB Devices in Boot Firmwarelow
notchecked
Assign Password to Prevent Changes to Boot Firmware Configurationlow
notchecked
Disable the Automounterlow
pass
Disable GNOME Automountinglow
fail
Disable Mounting of cramfslow
fail
Disable Mounting of freevxfslow
fail
Disable Mounting of jffs2low
fail
Disable Mounting of hfslow
fail
Disable Mounting of hfspluslow
fail
Disable Mounting of squashfslow
fail
Disable Mounting of udflow
fail
Disable All GNOME Thumbnailerslow
fail
Verify Permissions on Important Files and Directories 2x fail
Verify Permissions on Files with Local Account Information and Credentials
Verify User Who Owns shadow Filemedium
pass
Verify Group Who Owns shadow Filemedium
pass
Verify Permissions on shadow Filemedium
pass
Verify User Who Owns group Filemedium
pass
Verify Group Who Owns group Filemedium
pass
Verify Permissions on group Filemedium
pass
Verify User Who Owns gshadow Filemedium
pass
Verify Group Who Owns gshadow Filemedium
pass
Verify Permissions on gshadow Filemedium
pass
Verify User Who Owns passwd Filemedium
pass
Verify Group Who Owns passwd Filemedium
pass
Verify Permissions on passwd Filemedium
pass
Verify File Permissions Within Some Important Directories
Verify that Shared Library Files Have Restrictive Permissionsmedium
pass
Verify that Shared Library Files Have Root Ownershipmedium
pass
Verify that System Executables Have Restrictive Permissionsmedium
pass
Verify that System Executables Have Root Ownershipmedium
pass
Verify that All World-Writable Directories Have Sticky Bits Setlow
fail
Ensure No World-Writable Files Existmedium
pass
Ensure All SGID Executables Are Authorizedlow
pass
Ensure All SUID Executables Are Authorizedlow
pass
Ensure All Files Are Owned by a Userlow
pass
Ensure All Files Are Owned by a Grouplow
fail
Ensure All World-Writable Directories Are Owned by a System Accountlow
pass
Restrict Programs from Dangerous Execution Patterns 6x fail
Daemon Umask 1x fail
Set Daemon Umasklow
fail
Disable Core Dumps 2x fail
Disable Core Dumps for All Userslow
fail
Disable Core Dumps for SUID programslow
fail
Enable ExecShield 2x fail
Enable ExecShieldmedium
fail
Enable Randomized Layout of Virtual Address Spacemedium
fail
Enable Execute Disable (XD) or No Execute (NX) Support on x86 Systems
Install PAE Kernel on Supported 32-bit x86 Systemslow
notchecked
Enable NX or XD Support in the BIOSlow
notchecked
Restrict Access to Kernel Message Bufferlow
fail
SELinux 2x fail
Ensure SELinux Not Disabled in /etc/grub.confmedium
pass
Ensure SELinux State is Enforcingmedium
pass
Configure SELinux Policylow
pass
Enable the SELinux Context Restoration Service (restorecond)low
fail
Uninstall setroubleshoot Packagelow
pass
Uninstall mcstrans Packagelow
pass
Ensure No Daemons are Unconfined by SELinuxmedium
notchecked
Ensure No Device Files are Unlabeled by SELinuxlow
fail
Account and Access Control 34x fail
Protect Accounts by Restricting Password-Based Login 7x fail
Restrict Root Logins 2x fail
Direct root Logins Not Allowedmedium
notchecked
Restrict Virtual Console Root Loginsmedium
fail
Restrict Serial Port Root Loginslow
pass
Restrict Web Browser Use for Administrative Accountslow
notchecked
Ensure that System Accounts Do Not Run a Shell Upon Loginmedium
fail
Verify Only Root Has UID 0medium
pass
Root Path Must Be Vendor Defaultlow
notchecked
Verify Proper Storage and Existence of Password Hashes 1x fail
Prevent Log In to Accounts With Empty Passwordhigh
fail
Verify All Account Password Hashes are Shadowedmedium
pass
All GIDs referenced in /etc/passwd must be defined in /etc/grouplow
notchecked
Verify No netrc Files Existmedium
pass
Set Password Expiration Parameters 3x fail
Set Password Minimum Length in login.defsmedium
fail
Set Password Minimum Agemedium
fail
Set Password Maximum Agemedium
fail
Set Password Warning Agelow
pass
Set Account Expiration Parameters 1x fail
Set Account Expiration Following Inactivitylow
fail
Ensure All Accounts on the System Have Unique Nameslow
notchecked
Assign Expiration Date to Temporary Accountslow
notchecked
Protect Accounts by Configuring PAM 10x fail
Set Password Quality Requirements 5x fail
Set Password Quality Requirements, if using pam_cracklib 5x fail
Set Password Retry Prompts Permitted Per-Sessionlow
pass
Set Password to Maximum of Three Consecutive Repeating Characterslow
notchecked
Set Password Strength Minimum Digit Characterslow
fail
Set Password Strength Minimum Uppercase Characterslow
fail
Set Password Strength Minimum Special Characterslow
fail
Set Password Strength Minimum Lowercase Characterslow
fail
Set Password Strength Minimum Different Characterslow
fail
Set Password Strength Minimum Different Categorieslow
pass
Set Lockouts for Failed Password Attempts 4x fail
Set Deny For Failed Password Attemptsmedium
fail
Set Lockout Time For Failed Password Attemptsmedium
fail
Set Interval For Counting Failed Password Attemptsmedium
fail
Limit Password Reusemedium
fail
Set Password Hashing Algorithm
Set Password Hashing Algorithm in /etc/pam.d/system-authmedium
pass
Set Password Hashing Algorithm in /etc/login.defsmedium
pass
Set Password Hashing Algorithm in /etc/libuser.confmedium
pass
Set Last Logon/Access Notificationlow
fail
Secure Session Configuration Files for Login Accounts 7x fail
Ensure that No Dangerous Directories Exist in Root's Path 1x fail
Ensure that Root's Path Does Not Include Relative Paths or Null Directorieslow
pass
Ensure that Root's Path Does Not Include World or Group-Writable Directorieslow
fail
Ensure that Users Have Sensible Umask Values 4x fail
Ensure the Default Bash Umask is Set Correctlylow
fail
Ensure the Default C Shell Umask is Set Correctlylow
fail
Ensure the Default Umask is Set Correctly in /etc/profilelow
fail
Ensure the Default Umask is Set Correctly in login.defslow
fail
Limit the Number of Concurrent Login Sessions Allowed Per Userlow
fail
Ensure that User Home Directories are not Group-Writable or World-Readablelow
fail
Protect Physical Console Access 8x fail
Set Boot Loader Password 1x fail
Verify /etc/grub.conf User Ownershipmedium
pass
Verify /etc/grub.conf Group Ownershipmedium
pass
Verify /boot/grub/grub.conf Permissionsmedium
pass
Set Boot Loader Passwordmedium
fail
Configure Screen Locking 5x fail
Configure GUI Screen Locking 4x fail
Set GNOME Login Inactivity Timeoutmedium
fail
GNOME Desktop Screensaver Mandatory Usemedium
fail
Enable Screen Lock Activation After Idle Periodmedium
fail
Implement Blank Screensaverlow
fail
Configure Console Screen Locking 1x fail
Install the screen Packagelow
fail
Hardware Tokens for Authentication
Enable Smart Card Loginmedium
notselected
Require Authentication for Single User Modemedium
fail
Disable Ctrl-Alt-Del Reboot Activationhigh
notchecked
Disable Interactive Bootmedium
fail
Warning Banners for System Accesses 2x fail
Implement a GUI Warning Banner 1x fail
Enable GUI Warning Bannermedium
fail
Set GUI Warning Banner Textmedium
notchecked
Modify the System Login Bannermedium
fail
Disable the User Listlow
notchecked
Network Configuration and Firewalls 25x fail
Disable Unused Interfaces
Kernel Parameters Which Affect Networking 11x fail
Network Parameters for Hosts Only 2x fail
Disable Kernel Parameter for Sending ICMP Redirects by Defaultmedium
fail
Disable Kernel Parameter for Sending ICMP Redirects for All Interfacesmedium
fail
Disable Kernel Parameter for IP Forwardingmedium
pass
Network Related Kernel Runtime Parameters for Hosts and Routers 9x fail
Disable Kernel Parameter for Accepting Source-Routed Packets for All Interfacesmedium
fail
Disable Kernel Parameter for Accepting ICMP Redirects for All Interfacesmedium
fail
Disable Kernel Parameter for Accepting Secure Redirects for All Interfacesmedium
fail
Enable Kernel Parameter to Log Martian Packetslow
fail
Disable Kernel Parameter for Accepting Source-Routed Packets By Defaultmedium
pass
Disable Kernel Parameter for Accepting ICMP Redirects By Defaultlow
fail
Disable Kernel Parameter for Accepting Secure Redirects By Defaultmedium
fail
Enable Kernel Parameter to Ignore ICMP Broadcast Echo Requestslow
fail
Enable Kernel Parameter to Ignore Bogus ICMP Error Responseslow
fail
Enable Kernel Parameter to Use TCP Syncookiesmedium
pass
Enable Kernel Parameter to Use Reverse Path Filtering for All Interfacesmedium
fail
Enable Kernel Parameter to Use Reverse Path Filtering by Defaultmedium
pass
Wireless Networking 1x fail
Disable Wireless Through Software Configuration 1x fail
Disable WiFi or Bluetooth in BIOSlow
notchecked
Deactivate Wireless Network Interfaceslow
pass
Disable Bluetooth Servicemedium
pass
Disable Bluetooth Kernel Modulesmedium
fail
IPv6 6x fail
Disable Support for IPv6 Unless Needed 1x fail
Disable IPv6 Networking Support Automatic Loadingmedium
fail
Disable Interface Usage of IPv6low
notchecked
Disable Support for RPC IPv6low
pass
Configure IPv6 Settings if Necessary 5x fail
Disable Automatic Configuration 2x fail
Disable Accepting IPv6 Router Advertisementslow
fail
Disable Accepting IPv6 Redirectsmedium
fail
Limit Network-Transmitted Configuration if Using Static IPv6 Addresses
Manually Assign Global IPv6 Addresslow
fail
Use Privacy Extensions for Addresslow
fail
Manually Assign IPv6 Router Addresslow
fail
iptables and ip6tables 1x fail
Inspect and Activate Default Rules
Verify ip6tables Enabled if Using IPv6medium
pass
Set Default ip6tables Policy for Incoming Packetsmedium
notchecked
Verify iptables Enabledmedium
pass
Strengthen the Default Ruleset 1x fail
Restrict ICMP Message Types
Log and Drop Packets with Suspicious Source Addresses
Set Default iptables Policy for Incoming Packetsmedium
fail
Set Default iptables Policy for Forwarded Packetsmedium
notchecked
Transport Layer Security Support
Uncommon Network Protocols 4x fail
Disable DCCP Supportmedium
fail
Disable SCTP Supportmedium
fail
Disable RDS Supportlow
fail
Disable TIPC Supportmedium
fail
IPSec Support 1x fail
Install openswan Packagelow
fail
Disable Zeroconf Networkinglow
fail
Ensure System is Not Acting as a Network Snifferlow
pass
Configure Syslog 4x fail 2x unknown
Ensure Proper Configuration of Log Files 1x fail 2x unknown
Ensure Log Files Are Owned By Appropriate Usermedium
fail
Ensure Log Files Are Owned By Appropriate Groupmedium
unknown
Ensure System Log Files Have Correct Permissionsmedium
unknown
Rsyslog Logs Sent To Remote Host 1x fail
Ensure Logs Sent To Remote Hostlow
fail
Configure rsyslogd to Accept Remote Messages If Acting as a Log Server
Ensure rsyslog Does Not Accept Remote Messages Unless Acting As Log Serverlow
pass
Enable rsyslog to Accept Messages via TCP, if Acting As Log Serverlow
notchecked
Enable rsyslog to Accept Messages via UDP, if Acting As Log Serverlow
notchecked
Ensure All Logs are Rotated by logrotate
Ensure Logrotate Runs Periodicallylow
pass
Configure Logwatch on the Central Log Server 2x fail
Configure Logwatch HostLimit Linelow
fail
Configure Logwatch SplitHosts Linelow
fail
Ensure rsyslog is Installedmedium
pass
Enable rsyslog Servicemedium
pass
Disable Logwatch on Clients if a Logserver Existslow
notchecked
System Accounting with auditd 33x fail
Configure auditd Data Retention 2x fail
Configure auditd Number of Logs Retainedmedium
pass
Configure auditd Max Log File Sizemedium
pass
Configure auditd max_log_file_action Upon Reaching Maximum Log Sizemedium
pass
Configure auditd space_left Action on Low Disk Spacemedium
fail
Configure auditd admin_space_left Action on Low Disk Spacemedium
fail
Configure auditd mail_acct Action on Low Disk Spacemedium
pass
Configure auditd to use audispd pluginmedium
notchecked
Configure auditd Rules for Comprehensive Auditing 30x fail
Records Events that Modify Date and Time Information 5x fail
Record attempts to alter time through adjtimexlow
fail
Record attempts to alter time through settimeofdaylow
fail
Record Attempts to Alter Time Through stimelow
fail
Record Attempts to Alter Time Through clock_settimelow
fail
Record Attempts to Alter the localtime Filelow
fail
Record Events that Modify the System's Discretionary Access Controls 13x fail
Record Events that Modify the System's Discretionary Access Controls - chmodlow
fail
Record Events that Modify the System's Discretionary Access Controls - chownlow
fail
Record Events that Modify the System's Discretionary Access Controls - fchmodlow
fail
Record Events that Modify the System's Discretionary Access Controls - fchmodatlow
fail
Record Events that Modify the System's Discretionary Access Controls - fchownlow
fail
Record Events that Modify the System's Discretionary Access Controls - fchownatlow
fail
Record Events that Modify the System's Discretionary Access Controls - fremovexattrlow
fail
Record Events that Modify the System's Discretionary Access Controls - fsetxattrlow
fail
Record Events that Modify the System's Discretionary Access Controls - lchownlow
fail
Record Events that Modify the System's Discretionary Access Controls - lremovexattrlow
fail
Record Events that Modify the System's Discretionary Access Controls - lsetxattrlow
fail
Record Events that Modify the System's Discretionary Access Controls - removexattrlow
fail
Record Events that Modify the System's Discretionary Access Controls - setxattrlow
fail
Record Events that Modify User/Group Informationlow
fail
Record Events that Modify the System's Network Environmentlow
fail
System Audit Logs Must Have Mode 0640 or Less Permissivelow
pass
System Audit Logs Must Be Owned By Rootlow
pass
Record Events that Modify the System's Mandatory Access Controlslow
fail
Record Attempts to Alter Logon and Logout Eventslow
fail
Record Attempts to Alter Process and Session Initiation Informationlow
fail
Ensure auditd Collects Unauthorized Access Attempts to Files (unsuccessful)low
fail
Ensure auditd Collects Information on the Use of Privileged Commandslow
fail
Ensure auditd Collects Information on Exporting to Media (successful)low
fail
Ensure auditd Collects File Deletion Events by Userlow
fail
Ensure auditd Collects System Administrator Actionslow
fail
Ensure auditd Collects Information on Kernel Module Loading and Unloadinglow
fail
Make the auditd Configuration Immutablelow
fail
Enable auditd Servicemedium
pass
Enable Auditing for Processes Which Start Prior to the Audit Daemonmedium
fail
Services 33x fail
Obsolete Services
Xinetd
Disable xinetd Servicemedium
pass
Uninstall xinetd Packagelow
pass
Telnet
Disable telnet Servicehigh
pass
Uninstall telnet-server Packagehigh
pass
Remove telnet Clientslow
pass
Rlogin, Rsh, and Rexec
Uninstall rsh-server Packagehigh
pass
Disable rexec Servicehigh
pass
Disable rsh Servicehigh
pass
Uninstal rsh Packagelow
pass
Disable rlogin Servicehigh
pass
Remove Rsh Trust Fileshigh
pass
NIS
Uninstall ypserv Packagemedium
pass
Disable ypbind Servicemedium
pass
Remove NIS Clientlow
pass
TFTP Server
Disable tftp Servicemedium
pass
Uninstall tftp-server Packagemedium
pass
Remove tftplow
pass
Ensure tftp Daemon Uses Secure Modehigh
pass
Chat/Messaging Services
Uninstall talk-server Packagemedium
pass
Uninstall talk Packagelow
pass
Base Services 11x fail
Disable Automatic Bug Reporting Tool (abrtd)low
fail
Disable Advanced Configuration and Power Interface (acpid)low
fail
Disable Certmonger Service (certmonger)low
pass
Disable Control Group Config (cgconfig)low
pass
Disable Control Group Rules Engine (cgred)low
pass
Disable CPU Speed (cpuspeed)low
fail
Disable Hardware Abstraction Layer Service (haldaemon)low
fail
Enable IRQ Balance (irqbalance)low
pass
Disable KDump Kernel Crash Analyzer (kdump)low
pass
Disable Software RAID Monitor (mdmonitor)low
fail
Disable D-Bus IPC Service (messagebus)low
fail
Disable Network Console (netconsole)low
pass
Disable ntpdate Service (ntpdate)low
pass
Disable Odd Job Daemon (oddjobd)low
pass
Disable Portreserve (portreserve)low
fail
Enable Process Accounting (psacct)low
fail
Disable Apache Qpid (qpidd)low
pass
Disable Quota Netlink (quota_nld)low
pass
Disable Network Router Discovery Daemon (rdisc)low
pass
Disable Red Hat Network Service (rhnsd)low
fail
Disable Red Hat Subscription Manager Daemon (rhsmcertd)low
fail
Disable Cyrus SASL Authentication Daemon (saslauthd)low
pass
Disable SMART Disk Monitoring Service (smartd)low
pass
Disable System Statistics Reset Service (sysstat)low
fail
Cron and At Daemons 1x fail
Restrict at and cron to Authorized Users if Necessary
Enable cron Servicemedium
pass
Disable anacron Servicelow
notchecked
Disable At Service (atd)low
fail
SSH Server 8x fail
Configure OpenSSH Server if Necessary 6x fail
Strengthen Firewall Configuration if Possible
Allow Only SSH Protocol 2high
pass
Limit Users' SSH Accesslow
notchecked
Set SSH Idle Timeout Intervallow
fail
Set SSH Client Alive Countlow
fail
Disable SSH Support for .rhosts Filesmedium
pass
Disable Host-Based Authenticationmedium
pass
Disable SSH Root Loginmedium
pass
Disable SSH Access via Empty Passwordshigh
fail
Enable SSH Warning Bannermedium
fail
Do Not Allow SSH Environment Optionslow
fail
Use Only Approved Ciphersmedium
fail
Disable SSH Server If Possible (Unusual)low
fail
Remove SSH Server iptables Firewall exception (Unusual)low
fail
X Window System 2x fail
Disable X Windows 2x fail
Disable X Windows Startup By Setting Runlevellow
fail
Remove the X Windows Package Grouplow
fail
Avahi Server
Disable Avahi Server if Possible
Disable Avahi Server Softwarelow
pass
Configure Avahi if Necessary
Serve Avahi Only via Required Protocollow
notchecked
Check Avahi Responses' TTL Fieldlow
notchecked
Prevent Other Programs from Using Avahi's Portlow
notchecked
Disable Avahi Publishinglow
notchecked
Restrict Information Published by Avahilow
notchecked
Print Support 2x fail
Configure the CUPS Service if Necessary 1x fail
Disable Printer Browsing Entirely if Possiblelow
fail
Disable Print Server Capabilitieslow
pass
Disable the CUPS Servicelow
fail
DHCP 1x fail
Disable DHCP Server
Disable DHCP Servicemedium
pass
Uninstall DHCP Server Packagemedium
pass
Disable DHCP Server
Minimize Served Information
Do Not Use Dynamic DNSlow
notchecked
Deny Decline Messageslow
notchecked
Deny BOOTP Querieslow
notchecked
Configure Logginglow
notchecked
Disable DHCP Client 1x fail
Disable DHCP Clientlow
fail
Configure DHCP Client if Necessary
Minimize the DHCP-Configured Options
Network Time Protocol 1x fail
Enable the NTP Daemonmedium
fail
Specify a Remote NTP Servermedium
pass
Specify Additional Remote NTP Serverslow
notchecked
Mail Server Software 1x fail
Configure SMTP For Mail Clients
Disable Postfix Network Listeningmedium
pass
Configure Operating System to Protect Mail Server  1x fail
Configure SSL Certificates for Use with SMTP AUTH
Ensure Security of Postfix SSL Certificate
Configure Postfix if Necessary 1x fail
Configure Postfix Resource Usage to Limit Denial of Service Attacks
Control Mail Relaying
Configure Trusted Networks and Hosts
Enact SMTP Relay Restrictions
Enact SMTP Recipient Restrictions
Require SMTP AUTH Before Relaying from Untrusted Clients
Use TLS for SMTP AUTH
Configure SMTP Greeting Bannermedium
fail
Enable Postfix Servicelow
pass
Uninstall Sendmail Packagemedium
pass
LDAP
Configure OpenLDAP Clients
Configure LDAP Client to Use TLS For All Transactionsmedium
pass
Configure Certificate Directives for LDAP Use of TLSmedium
pass
Configure OpenLDAP Server
Install and Protect LDAP Certificate Files
Uninstall openldap-servers Packagelow
pass
NFS and RPC 1x fail
Disable All NFS Services if Possible 1x fail
Disable Services Used Only by NFS
Disable Network File System Lock Service (nfslock)low
pass
Disable Secure RPC Client Service (rpcgssd)low
pass
Disable RPC ID Mapping Service (rpcidmapd)low
pass
Disable netfs if Possible 1x fail
Disable Network File Systems (netfs)low
fail
Configure All Machines which Use NFS
Make Each Machine a Client or a Server, not Both
Configure NFS Services to Use Fixed Ports (NFSv3 and NFSv2)
Configure lockd to use static TCP portlow
notchecked
Configure lockd to use static UDP portlow
notchecked
Configure statd to use static portlow
notchecked
Configure mountd to use static portlow
notchecked
Configure NFS Clients
Disable NFS Server Daemons
Specify UID and GID for Anonymous NFS Connectionslow
notchecked
Disable Network File System (nfs)low
pass
Disable Secure RPC Server Service (rpcsvcgssd)low
pass
Mount Remote Filesystems with Restrictive Options
Mount Remote Filesystems with nodevmedium
pass
Mount Remote Filesystems with nosuidmedium
pass
Configure NFS Servers
Configure the Exports File Restrictively
Use Access Lists to Enforce Authorization Restrictions
Export Filesystems Read-Only if Possible
Use Root-Squashing on All Exportslow
notchecked
Restrict NFS Clients to Privileged Portslow
notchecked
Ensure Insecure File Locking is Not Allowedmedium
notchecked
DNS Server
Disable DNS Server
Disable DNS Serverlow
pass
Uninstall bind Packagelow
pass
Isolate DNS from Other Services
Run DNS Software on Dedicated Servers
Run DNS Software in a chroot Jail
Protect DNS Data from Tampering or Attack
Run Separate DNS Servers for External and Internal Queries
Use Views to Partition External and Internal Information
Disable Zone Transfers from the Nameserverlow
notchecked
Authenticate Zone Transferslow
notchecked
Disable Dynamic Updateslow
notchecked
FTP Server 1x fail
Disable vsftpd if Possible
Disable vsftpd Servicelow
pass
Uninstall vsftpd Packagelow
pass
Use vsftpd to Provide FTP Service if Necessary 1x fail
Install vsftpd Packagelow
fail
Use vsftpd to Provide FTP Service if Necessary
Restrict the Set of Users Allowed to Access FTP
Limit Users Allowed FTP Access if Necessary
Restrict Access to Anonymous Users if Possiblelow
notchecked
Configure Firewalls to Protect the FTP Server
Enable Logging of All FTP Transactionslow
notchecked
Create Warning Banners for All FTP Usersmedium
notchecked
Disable FTP Uploads if Possiblelow
notchecked
Place the FTP Home Directory on its Own Partitionlow
notchecked
Web Server 3x fail
Disable Apache if Possible
Disable httpd Servicelow
pass
Uninstall httpd Packagelow
pass
Install Apache if Necessary
Confirm Minimal Built-in Modules Installed
Secure Apache Configuration 3x fail
Restrict Web Server Information Leakage
Set httpd ServerTokens Directive to Prodlow
notchecked
Set httpd ServerSignature Directive to Offlow
notchecked
Minimize Web Server Loadable Modules
httpd Core Modules
Minimize Modules for HTTP Basic Authentication
Minimize Various Optional Components
Minimize Configuration Files Included
Disable HTTP Digest Authenticationlow
notchecked
Disable HTTP mod_rewritelow
notchecked
Disable LDAP Supportlow
notchecked
Disable Server Side Includeslow
notchecked
Disable MIME Magiclow
notchecked
Disable WebDAV (Distributed Authoring and Versioning)low
notchecked
Disable Server Activity Statuslow
notchecked
Disable Web Server Configuration Displaylow
notchecked
Disable URL Correction on Misspelled Entrieslow
notchecked
Disable Proxy Supportlow
notchecked
Disable Cache Supportlow
notchecked
Disable CGI Supportlow
notchecked
Directory Restrictions
Restrict Root Directorylow
notchecked
Restrict Web Directorylow
notchecked
Restrict Other Critical Directorieslow
notchecked
Limit Available Methodslow
notchecked
Use Appropriate Modules to Improve httpd's Security
Deploy mod_ssl
Install mod_ssllow
notchecked
Deploy mod_security
Install mod_securitylow
notchecked
Use Denial-of-Service Protection Modules
Configure PHP Securely
Configure Operating System to Protect Web Server 3x fail
Restrict File and Directory Access 3x fail
Set Permissions on the /var/log/httpd/ Directorylow
fail
Set Permissions on the /etc/httpd/conf/ Directorylow
fail
Set Permissions on All Configuration Files Inside /etc/httpd/conf/low
fail
Configure iptables to Allow Access to the Web Server
Run httpd in a chroot Jail if Practical
IMAP and POP3 Server
Disable Dovecot
Disable Dovecot Servicelow
pass
Uninstall dovecot Packagelow
pass
Configure Dovecot if Necessary
Support Only the Necessary Protocols
Enable SSL Support
Enable the SSL flag in /etc/dovecot.conflow
pass
Configure Dovecot to Use the SSL Certificate filelow
notchecked
Configure Dovecot to Use the SSL Key filelow
notchecked
Disable Plaintext Authenticationlow
pass
Allow IMAP Clients to Access the Server
Samba(SMB) Microsoft Windows File Sharing Server 1x fail
Disable Samba if Possible
Disable Sambalow
pass
Configure Samba if Necessary 1x fail
Restrict SMB File Sharing to Configured Networks
Restrict Printer Sharing
Disable Root Access to SMB Shareslow
notchecked
Require Client SMB Packet Signing, if using smbclientlow
fail
Require Client SMB Packet Signing, if using mount.cifslow
pass
Proxy Server
Disable Squid if Possible
Disable Squidlow
pass
Uninstall squid Packagelow
pass
SNMP Server
Disable SNMP Server if Possible
Disable snmpd Servicelow
pass
Uninstall net-snmp Packagelow
pass
Configure SNMP Server if Necessary
Configure SNMP Service to Use Only SNMPv3 or Newer medium
notchecked
Ensure Default Password Is Not Usedmedium
notchecked
Documentation to Support DISA OS SRG Mapping
Product Meets this Requirementlow
notselected
Product Meets this Requirementlow
notselected
Product Meets this Requirementlow
notselected
Guidance Does Not Meet this Requirement Due to Impracticality or Scopelow
notselected
Implementation of the Requirement is Not Supportedlow
notselected
Guidance Does Not Meet this Requirement Due to Impracticality or Scopelow
notselected
A process for prompt installation of OS updates must exist.low
notselected

Result Details

Ensure /tmp Located On Separate Partition xccdf_org.ssgproject.content_rule_partition_for_tmp CCE-26435-8

Ensure /tmp Located On Separate Partition

Rule IDxccdf_org.ssgproject.content_rule_partition_for_tmp
Result
fail
Time2014-07-17T13:46:43
Severitylow
Identifiers
  • CCE-26435-8

The /tmp directory is a world-writable directory used for temporary file storage. Ensure it has its own partition or logical volume at installation time, or migrate it using LVM.

Ensure /var Located On Separate Partition xccdf_org.ssgproject.content_rule_partition_for_var CCE-26639-5

Ensure /var Located On Separate Partition

Rule IDxccdf_org.ssgproject.content_rule_partition_for_var
Result
fail
Time2014-07-17T13:46:43
Severitylow
Identifiers
  • CCE-26639-5

The /var directory is used by daemons and other system services to store frequently-changing data. Ensure that /var has its own partition or logical volume at installation time, or migrate it using LVM.

Ensure /var/log Located On Separate Partition xccdf_org.ssgproject.content_rule_partition_for_var_log CCE-26215-4

Ensure /var/log Located On Separate Partition

Rule IDxccdf_org.ssgproject.content_rule_partition_for_var_log
Result
fail
Time2014-07-17T13:46:43
Severitylow
Identifiers
  • CCE-26215-4

System logs are stored in the /var/log directory. Ensure that it has its own partition or logical volume at installation time, or migrate it using LVM.

Ensure /var/log/audit Located On Separate Partition xccdf_org.ssgproject.content_rule_partition_for_var_log_audit CCE-26436-6

Ensure /var/log/audit Located On Separate Partition

Rule IDxccdf_org.ssgproject.content_rule_partition_for_var_log_audit
Result
fail
Time2014-07-17T13:46:43
Severitylow
Identifiers
  • CCE-26436-6

Audit logs are stored in the /var/log/audit directory. Ensure that it has its own partition or logical volume at installation time, or migrate it later using LVM. Make absolutely certain that it is large enough to store all audit logs that will be created by the auditing daemon.

Ensure /home Located On Separate Partition xccdf_org.ssgproject.content_rule_partition_for_home CCE-26557-9

Ensure /home Located On Separate Partition

Rule IDxccdf_org.ssgproject.content_rule_partition_for_home
Result
fail
Time2014-07-17T13:46:43
Severitylow
Identifiers
  • CCE-26557-9

If user home directories will be stored locally, create a separate partition for /home at installation time (or migrate it later using LVM). If /home will be mounted from another system such as an NFS server, then creating a separate partition is not necessary at installation time, and the mountpoint can instead be configured later.

Encrypt Partitions xccdf_org.ssgproject.content_rule_encrypt_partitions CCE-27596-6

Encrypt Partitions

Rule IDxccdf_org.ssgproject.content_rule_encrypt_partitions
Result
notselected
Time2014-07-17T13:46:43
Severitylow
Identifiers
  • CCE-27596-6

Red Hat Enterprise Linux 6 natively supports partition encryption through the Linux Unified Key Setup-on-disk-format (LUKS) technology. The easiest way to encrypt a partition is during installation time.



For manual installations, select the Encrypt checkbox during partition creation to encrypt the partition. When this option is selected the system will prompt for a passphrase to use in decrypting the partition. The passphrase will subsequently need to be entered manually every time the system boots.



For automated/unattended installations, it is possible to use Kickstart by adding the --encrypted and --passphrase= options to the definition of each partition to be encrypted. For example, the following line would encrypt the root partition:

part / --fstype=ext3 --size=100 --onpart=hda1 --encrypted --passphrase=PASSPHRASE
Any PASSPHRASE is stored in the Kickstart in plaintext, and the Kickstart must then be protected accordingly. Omitting the --passphrase= option from the partition definition will cause the installer to pause and interactively ask for the passphrase during installation.



Detailed information on encrypting partitions using LUKS can be found on the Red Hat Documentation web site:

https://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/sect-Security_Guide-LUKS_Disk_Encryption.html

Ensure Red Hat GPG Key Installed xccdf_org.ssgproject.content_rule_ensure_redhat_gpgkey_installed CCE-26506-6

Ensure Red Hat GPG Key Installed

Rule IDxccdf_org.ssgproject.content_rule_ensure_redhat_gpgkey_installed
Result
pass
Time2014-07-17T13:46:43
Severityhigh
Identifiers
  • CCE-26506-6

To ensure the system can cryptographically verify base software packages come from Red Hat (and to connect to the Red Hat Network to receive them), the Red Hat GPG key must properly be installed. To install the Red Hat GPG key, run:

# rhn_register
If the system is not connected to the Internet or an RHN Satellite, then install the Red Hat GPG key from trusted media such as the Red Hat installation CD-ROM or DVD. Assuming the disc is mounted in /media/cdrom, use the following command as the root user to import it into the keyring:
# rpm --import /media/cdrom/RPM-GPG-KEY

Ensure gpgcheck Enabled In Main Yum Configuration xccdf_org.ssgproject.content_rule_ensure_gpgcheck_globally_activated CCE-26709-6

Ensure gpgcheck Enabled In Main Yum Configuration

Rule IDxccdf_org.ssgproject.content_rule_ensure_gpgcheck_globally_activated
Result
pass
Time2014-07-17T13:46:43
Severityhigh
Identifiers
  • CCE-26709-6

The gpgcheck option controls whether RPM packages' signatures are always checked prior to installation. To configure yum to check package signatures before installing them, ensure the following line appears in /etc/yum.conf in the [main] section:

gpgcheck=1

Ensure gpgcheck Enabled For All Yum Package Repositories xccdf_org.ssgproject.content_rule_ensure_gpgcheck_never_disabled CCE-26647-8

Ensure gpgcheck Enabled For All Yum Package Repositories

Rule IDxccdf_org.ssgproject.content_rule_ensure_gpgcheck_never_disabled
Result
pass
Time2014-07-17T13:46:43
Severityhigh
Identifiers
  • CCE-26647-8

To ensure signature checking is not disabled for any repos, remove any lines from files in /etc/yum.repos.d of the form:

gpgcheck=0

Ensure Software Patches Installed xccdf_org.ssgproject.content_rule_security_patches_up_to_date CCE-27635-2

Ensure Software Patches Installed

Rule IDxccdf_org.ssgproject.content_rule_security_patches_up_to_date
Result
notselected
Time2014-07-17T13:46:43
Severityhigh
Identifiers
  • CCE-27635-2

If the system is joined to the Red Hat Network, a Red Hat Satellite Server, or a yum server, run the following command to install updates:

# yum update
If the system is not configured to use one of these sources, updates (in the form of RPM packages) can be manually downloaded from the Red Hat Network and installed using rpm.

Install AIDE xccdf_org.ssgproject.content_rule_package_aide_installed CCE-27024-9

Install AIDE

Rule IDxccdf_org.ssgproject.content_rule_package_aide_installed
Result
fail
Time2014-07-17T13:46:43
Severitymedium
Identifiers
  • CCE-27024-9

Install the AIDE package with the command:

# yum install aide

Remediation script:
yum -y install aide
Disable Prelinking xccdf_org.ssgproject.content_rule_disable_prelink CCE-27221-1

Disable Prelinking

Rule IDxccdf_org.ssgproject.content_rule_disable_prelink
Result
fail
Time2014-07-17T13:46:43
Severitylow
Identifiers
  • CCE-27221-1

The prelinking feature changes binaries in an attempt to decrease their startup time. In order to disable it, change or add the following line inside the file /etc/sysconfig/prelink:

PRELINKING=no
Next, run the following command to return binaries to a normal, non-prelinked state:
# /usr/sbin/prelink -ua

Remediation script:
#
# Disable prelinking altogether
#
if grep -q ^PRELINKING /etc/sysconfig/prelink
then
  sed -i 's/PRELINKING.*/PRELINKING=no/g' /etc/sysconfig/prelink
else
  echo -e "\n# Set PRELINKING=no per security requirements" >> /etc/sysconfig/prelink
  echo "PRELINKING=no" >> /etc/sysconfig/prelink
fi

#
# Undo previous prelink changes to binaries
#
/usr/sbin/prelink -ua
Build and Test AIDE Database xccdf_org.ssgproject.content_rule_aide_build_database CCE-27135-3

Build and Test AIDE Database

Rule IDxccdf_org.ssgproject.content_rule_aide_build_database
Result
notchecked
Time2014-07-17T13:46:43
Severitylow
Identifiers
  • CCE-27135-3

Run the following command to generate a new database:

# /usr/sbin/aide --init
By default, the database will be written to the file /var/lib/aide/aide.db.new.gz. Storing the database, the configuration file /etc/aide.conf, and the binary /usr/sbin/aide (or hashes of these files), in a secure location (such as on read-only media) provides additional assurance about their integrity. The newly-generated database can be installed as follows:
# cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
To initiate a manual check, run the following command:
# /usr/sbin/aide --check
If this check produces any unexpected output, investigate.

Configure Periodic Execution of AIDE xccdf_org.ssgproject.content_rule_aide_periodic_cron_checking CCE-27222-9

Configure Periodic Execution of AIDE

Rule IDxccdf_org.ssgproject.content_rule_aide_periodic_cron_checking
Result
notchecked
Time2014-07-17T13:46:43
Severitymedium
Identifiers
  • CCE-27222-9

To implement a daily execution of AIDE at 4:05am using cron, add the following line to /etc/crontab:

05 4 * * * root /usr/sbin/aide --check
AIDE can be executed periodically through other means; this is merely one example.

Verify and Correct File Permissions with RPM xccdf_org.ssgproject.content_rule_rpm_verify_permissions CCE-26731-0

Verify and Correct File Permissions with RPM

Rule IDxccdf_org.ssgproject.content_rule_rpm_verify_permissions
Result
fail
Time2014-07-17T13:48:50
Severitylow
Identifiers
  • CCE-26731-0

The RPM package management system can check file access permissions of installed software packages, including many that are important to system security. After locating a file with incorrect permissions, run the following command to determine which package owns it:

# rpm -qf FILENAME
Next, run the following command to reset its permissions to the correct values:
# rpm --setperms PACKAGENAME

Verify File Hashes with RPM xccdf_org.ssgproject.content_rule_rpm_verify_hashes CCE-27223-7

Verify File Hashes with RPM

Rule IDxccdf_org.ssgproject.content_rule_rpm_verify_hashes
Result
pass
Time2014-07-17T13:52:54
Severitylow
Identifiers
  • CCE-27223-7

The RPM package management system can check the hashes of installed software packages, including many that are important to system security. Run the following command to list which files on the system have hashes that differ from what is expected by the RPM database:

# rpm -Va | grep '^..5'
A "c" in the second column indicates that a file is a configuration file, which may appropriately be expected to change. If the file was not expected to change, investigate the cause of the change using audit logs or other means. The package can then be reinstalled to restore the file. Run the following command to determine which package owns the file:
# rpm -qf FILENAME
The package can be reinstalled from a yum repository using the command:
yum reinstall PACKAGENAME
Alternatively, the package can be reinstalled from trusted media using the command:
rpm -Uvh PACKAGENAME

Install Intrusion Detection Software xccdf_org.ssgproject.content_rule_install_hids CCE-27409-2

Install Intrusion Detection Software

Rule IDxccdf_org.ssgproject.content_rule_install_hids
Result
notselected
Time2014-07-17T13:52:54
Severityhigh
Identifiers
  • CCE-27409-2

The base Red Hat platform already includes a sophisticated auditing system that can detect intruder activity, as well as SELinux, which provides host-based intrusion prevention capabilities by confining privileged programs and user sessions which may become compromised.

Install Virus Scanning Software xccdf_org.ssgproject.content_rule_install_antivirus CCE-27529-7

Install Virus Scanning Software

Rule IDxccdf_org.ssgproject.content_rule_install_antivirus
Result
notselected
Time2014-07-17T13:52:54
Severitylow
Identifiers
  • CCE-27529-7

Install virus scanning software, which uses signatures to search for the presence of viruses on the filesystem. The McAfee uvscan virus scanning tool is provided for DoD systems. Ensure virus definition files are no older than 7 days, or their last release. Configure the virus scanning software to perform scans dynamically on all accessed files. If this is not possible, configure the system to scan all altered files on the system on a daily basis. If the system processes inbound SMTP mail, configure the virus scanner to scan all received mail.

Add nodev Option to Non-Root Local Partitions xccdf_org.ssgproject.content_rule_mountopt_nodev_on_nonroot_partitions CCE-27045-4

Add nodev Option to Non-Root Local Partitions

Rule IDxccdf_org.ssgproject.content_rule_mountopt_nodev_on_nonroot_partitions
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-27045-4

The nodev mount option prevents files from being interpreted as character or block devices. Legitimate character and block devices should exist only in the /dev directory on the root partition or within chroot jails built for system services. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of any non-root local partitions.

Add nodev Option to Removable Media Partitions xccdf_org.ssgproject.content_rule_mountopt_nodev_on_removable_partitions CCE-26860-7

Add nodev Option to Removable Media Partitions

Rule IDxccdf_org.ssgproject.content_rule_mountopt_nodev_on_removable_partitions
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26860-7

The nodev mount option prevents files from being interpreted as character or block devices. Legitimate character and block devices should exist only in the /dev directory on the root partition or within chroot jails built for system services. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of any removable media partitions.

Add noexec Option to Removable Media Partitions xccdf_org.ssgproject.content_rule_mount_option_noexec_removable_partitions CCE-27196-5

Add noexec Option to Removable Media Partitions

Rule IDxccdf_org.ssgproject.content_rule_mount_option_noexec_removable_partitions
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-27196-5

The noexec mount option prevents the direct execution of binaries on the mounted filesystem. Preventing the direct execution of binaries from removable media (such as a USB key) provides a defense against malicious software that may be present on such untrusted media. Add the noexec option to the fourth column of /etc/fstab for the line which controls mounting of any removable media partitions.

Add nosuid Option to Removable Media Partitions xccdf_org.ssgproject.content_rule_mountopt_nosuid_on_removable_partitions CCE-27056-1

Add nosuid Option to Removable Media Partitions

Rule IDxccdf_org.ssgproject.content_rule_mountopt_nosuid_on_removable_partitions
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-27056-1

The nosuid mount option prevents set-user-identifier (SUID) and set-group-identifier (SGID) permissions from taking effect. These permissions allow users to execute binaries with the same permissions as the owner and group of the file respectively. Users should not be allowed to introduce SUID and SGID files into the system via partitions mounted from removeable media. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of any removable media partitions.

Add nodev Option to /tmp xccdf_org.ssgproject.content_rule_mount_option_tmp_nodev CCE-26499-4

Add nodev Option to /tmp

Rule IDxccdf_org.ssgproject.content_rule_mount_option_tmp_nodev
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26499-4

The nodev mount option can be used to prevent device files from being created in /tmp. Legitimate character and block devices should not exist within temporary directories like /tmp. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of /tmp.

Add noexec Option to /tmp xccdf_org.ssgproject.content_rule_mount_option_tmp_noexec CCE-26720-3

Add noexec Option to /tmp

Rule IDxccdf_org.ssgproject.content_rule_mount_option_tmp_noexec
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26720-3

The noexec mount option can be used to prevent binaries from being executed out of /tmp. Add the noexec option to the fourth column of /etc/fstab for the line which controls mounting of /tmp.

Add nosuid Option to /tmp xccdf_org.ssgproject.content_rule_mount_option_tmp_nosuid CCE-26762-5

Add nosuid Option to /tmp

Rule IDxccdf_org.ssgproject.content_rule_mount_option_tmp_nosuid
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26762-5

The nosuid mount option can be used to prevent execution of setuid programs in /tmp. The SUID and SGID permissions should not be required in these world-writable directories. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of /tmp.

Add nodev Option to /dev/shm xccdf_org.ssgproject.content_rule_mount_option_dev_shm_nodev CCE-26778-1

Add nodev Option to /dev/shm

Rule IDxccdf_org.ssgproject.content_rule_mount_option_dev_shm_nodev
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26778-1

The nodev mount option can be used to prevent creation of device files in /dev/shm. Legitimate character and block devices should not exist within temporary directories like /dev/shm. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of /dev/shm.

Add noexec Option to /dev/shm xccdf_org.ssgproject.content_rule_mount_option_dev_shm_noexec CCE-26622-1

Add noexec Option to /dev/shm

Rule IDxccdf_org.ssgproject.content_rule_mount_option_dev_shm_noexec
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26622-1

The noexec mount option can be used to prevent binaries from being executed out of /dev/shm. It can be dangerous to allow the execution of binaries from world-writable temporary storage directories such as /dev/shm. Add the noexec option to the fourth column of /etc/fstab for the line which controls mounting of /dev/shm.

Add nosuid Option to /dev/shm xccdf_org.ssgproject.content_rule_mount_option_dev_shm_nosuid CCE-26486-1

Add nosuid Option to /dev/shm

Rule IDxccdf_org.ssgproject.content_rule_mount_option_dev_shm_nosuid
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26486-1

The nosuid mount option can be used to prevent execution of setuid programs in /dev/shm. The SUID and SGID permissions should not be required in these world-writable directories. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of /dev/shm.

Bind Mount /var/tmp To /tmp xccdf_org.ssgproject.content_rule_mount_option_var_tmp_bind_var CCE-26582-7

Bind Mount /var/tmp To /tmp

Rule IDxccdf_org.ssgproject.content_rule_mount_option_var_tmp_bind_var
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26582-7

The /var/tmp directory is a world-writable directory. Bind-mount it to /tmp in order to consolidate temporary storage into one location protected by the same techniques as /tmp. To do so, edit /etc/fstab and add the following line:

/tmp     /var/tmp     none     rw,nodev,noexec,nosuid,bind     0 0
See the mount(8) man page for further explanation of bind mounting.

Disable Modprobe Loading of USB Storage Driver xccdf_org.ssgproject.content_rule_kernel_module_usb-storage_disabled CCE-27016-5

Disable Modprobe Loading of USB Storage Driver

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_usb-storage_disabled
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-27016-5

To prevent USB storage devices from being used, configure the kernel module loading system to prevent automatic loading of the USB storage driver. To configure the system to prevent the usb-storage kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install usb-storage /bin/false This will prevent the modprobe program from loading the usb-storage module, but will not prevent an administrator (or another program) from using the insmod program to load the module manually.

Remediation script:
echo "install usb-storage /bin/false" > /etc/modprobe.d/usb-storage.conf
Disable Kernel Support for USB via Bootloader Configuration xccdf_org.ssgproject.content_rule_bootloader_nousb_argument CCE-27011-6

Disable Kernel Support for USB via Bootloader Configuration

Rule IDxccdf_org.ssgproject.content_rule_bootloader_nousb_argument
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-27011-6

All USB support can be disabled by adding the nousb argument to the kernel's boot loader configuration. To do so, append "nousb" to the kernel line in /etc/grub.conf as shown:

kernel /vmlinuz-VERSION ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet nousb
WARNING: Disabling all kernel support for USB will cause problems for systems with USB-based keyboards, mice, or printers. This configuration is infeasible for systems which require USB devices, which is common.

Disable Booting from USB Devices in Boot Firmware xccdf_org.ssgproject.content_rule_bios_disable_usb_boot CCE-26923-3

Disable Booting from USB Devices in Boot Firmware

Rule IDxccdf_org.ssgproject.content_rule_bios_disable_usb_boot
Result
notchecked
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26923-3

Configure the system boot firmware (historically called BIOS on PC systems) to disallow booting from USB drives.

Assign Password to Prevent Changes to Boot Firmware Configuration xccdf_org.ssgproject.content_rule_bios_assign_password CCE-27131-2

Assign Password to Prevent Changes to Boot Firmware Configuration

Rule IDxccdf_org.ssgproject.content_rule_bios_assign_password
Result
notchecked
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-27131-2

Assign a password to the system boot firmware (historically called BIOS on PC systems) to require a password for any configuration changes.

Disable the Automounter xccdf_org.ssgproject.content_rule_service_autofs_disabled CCE-26976-1

Disable the Automounter

Rule IDxccdf_org.ssgproject.content_rule_service_autofs_disabled
Result
pass
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26976-1

The autofs daemon mounts and unmounts filesystems, such as user home directories shared via NFS, on demand. In addition, autofs can be used to handle removable media, and the default configuration provides the cdrom device as /misc/cd. However, this method of providing access to removable media is not common, so autofs can almost always be disabled if NFS is not in use. Even if NFS is required, it may be possible to configure filesystem mounts statically by editing /etc/fstab rather than relying on the automounter.



The autofs service can be disabled with the following command: # chkconfig autofs off

Remediation script:
#
# Disable autofs for all run levels
#
chkconfig --level 0123456 autofs off

#
# Stop autofs if currently running
#
service autofs stop
Disable GNOME Automounting xccdf_org.ssgproject.content_rule_gconf_gnome_disable_automount CCE-27035-5

Disable GNOME Automounting

Rule IDxccdf_org.ssgproject.content_rule_gconf_gnome_disable_automount
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-27035-5

The system's default desktop environment, GNOME, will mount devices and removable media (such as DVDs, CDs and USB flash drives) whenever they are inserted into the system. Disable automount and autorun within GNOME by running the following:

# gconftool-2 --direct \
	--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
	--type bool \
	--set /apps/nautilus/preferences/media_automount false
# gconftool-2 --direct \
	--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
	--type bool \
	--set /apps/nautilus/preferences/media_autorun_never true

Disable Mounting of cramfs xccdf_org.ssgproject.content_rule_kernel_module_cramfs_disabled CCE-26340-0

Disable Mounting of cramfs

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_cramfs_disabled
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26340-0

To configure the system to prevent the cramfs kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install cramfs /bin/false This effectively prevents usage of this uncommon filesystem.

Remediation script:
echo "install cramfs /bin/false" > /etc/modprobe.d/cramfs.conf
Disable Mounting of freevxfs xccdf_org.ssgproject.content_rule_kernel_module_freevxfs_disabled CCE-26544-7

Disable Mounting of freevxfs

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_freevxfs_disabled
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26544-7

To configure the system to prevent the freevxfs kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install freevxfs /bin/false This effectively prevents usage of this uncommon filesystem.

Remediation script:
echo "install freevxfs /bin/false" > /etc/modprobe.d/freevxfs.conf
Disable Mounting of jffs2 xccdf_org.ssgproject.content_rule_kernel_module_jffs2_disabled CCE-26670-0

Disable Mounting of jffs2

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_jffs2_disabled
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26670-0

To configure the system to prevent the jffs2 kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install jffs2 /bin/false This effectively prevents usage of this uncommon filesystem.

Remediation script:
echo "install jffs2 /bin/false" > /etc/modprobe.d/jffs2.conf
Disable Mounting of hfs xccdf_org.ssgproject.content_rule_kernel_module_hfs_disabled CCE-26800-3

Disable Mounting of hfs

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_hfs_disabled
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26800-3

To configure the system to prevent the hfs kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install hfs /bin/false This effectively prevents usage of this uncommon filesystem.

Remediation script:
echo "install hfs /bin/false" > /etc/modprobe.d/hfs.conf
Disable Mounting of hfsplus xccdf_org.ssgproject.content_rule_kernel_module_hfsplus_disabled CCE-26361-6

Disable Mounting of hfsplus

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_hfsplus_disabled
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26361-6

To configure the system to prevent the hfsplus kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install hfsplus /bin/false This effectively prevents usage of this uncommon filesystem.

Remediation script:
echo "install hfsplus /bin/false" > /etc/modprobe.d/hfsplus.conf
Disable Mounting of squashfs xccdf_org.ssgproject.content_rule_kernel_module_squashfs_disabled CCE-26404-4

Disable Mounting of squashfs

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_squashfs_disabled
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26404-4

To configure the system to prevent the squashfs kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install squashfs /bin/false This effectively prevents usage of this uncommon filesystem.

Remediation script:
echo "install squashfs /bin/false" > /etc/modprobe.d/squashfs.conf
Disable Mounting of udf xccdf_org.ssgproject.content_rule_kernel_module_udf_disabled CCE-26677-5

Disable Mounting of udf

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_udf_disabled
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-26677-5

To configure the system to prevent the udf kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install udf /bin/false This effectively prevents usage of this uncommon filesystem.

Remediation script:
echo "install udf /bin/false" > /etc/modprobe.d/udf.conf
Disable All GNOME Thumbnailers xccdf_org.ssgproject.content_rule_disable_gnome_thumbnailers CCE-27224-5

Disable All GNOME Thumbnailers

Rule IDxccdf_org.ssgproject.content_rule_disable_gnome_thumbnailers
Result
fail
Time2014-07-17T13:52:55
Severitylow
Identifiers
  • CCE-27224-5

The system's default desktop environment, GNOME, uses a number of different thumbnailer programs to generate thumbnails for any new or modified content in an opened folder. The following command can disable the execution of these thumbnail applications:

# gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type bool \
  --set /desktop/gnome/thumbnailers/disable_all true
This effectively prevents an attacker from gaining access to a system through a flaw in GNOME's Nautilus thumbnail creators.

Verify User Who Owns shadow File xccdf_org.ssgproject.content_rule_userowner_shadow_file CCE-26947-2

Verify User Who Owns shadow File

Rule IDxccdf_org.ssgproject.content_rule_userowner_shadow_file
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26947-2

To properly set the owner of /etc/shadow, run the command: # chown root /etc/shadow

Remediation script:
chown root /etc/shadow
Verify Group Who Owns shadow File xccdf_org.ssgproject.content_rule_groupowner_shadow_file CCE-26967-0

Verify Group Who Owns shadow File

Rule IDxccdf_org.ssgproject.content_rule_groupowner_shadow_file
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26967-0

To properly set the group owner of /etc/shadow, run the command: # chgrp root /etc/shadow

Remediation script:
chgrp root /etc/shadow
Verify Permissions on shadow File xccdf_org.ssgproject.content_rule_file_permissions_etc_shadow CCE-26992-8

Verify Permissions on shadow File

Rule IDxccdf_org.ssgproject.content_rule_file_permissions_etc_shadow
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26992-8

To properly set the permissions of /etc/shadow, run the command: # chmod 0000 /etc/shadow

Remediation script:
chmod 0000 /etc/shadow
Verify User Who Owns group File xccdf_org.ssgproject.content_rule_file_owner_etc_group CCE-26822-7

Verify User Who Owns group File

Rule IDxccdf_org.ssgproject.content_rule_file_owner_etc_group
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26822-7

To properly set the owner of /etc/group, run the command: # chown root /etc/group

Verify Group Who Owns group File xccdf_org.ssgproject.content_rule_file_groupowner_etc_group CCE-26930-8

Verify Group Who Owns group File

Rule IDxccdf_org.ssgproject.content_rule_file_groupowner_etc_group
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26930-8

To properly set the group owner of /etc/group, run the command: # chgrp root /etc/group

Verify Permissions on group File xccdf_org.ssgproject.content_rule_file_permissions_etc_group CCE-26954-8

Verify Permissions on group File

Rule IDxccdf_org.ssgproject.content_rule_file_permissions_etc_group
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26954-8

To properly set the permissions of /etc/group, run the command: # chmod 644 /etc/group

Verify User Who Owns gshadow File xccdf_org.ssgproject.content_rule_file_owner_etc_gshadow CCE-27026-4

Verify User Who Owns gshadow File

Rule IDxccdf_org.ssgproject.content_rule_file_owner_etc_gshadow
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-27026-4

To properly set the owner of /etc/gshadow, run the command: # chown root /etc/gshadow

Verify Group Who Owns gshadow File xccdf_org.ssgproject.content_rule_file_groupowner_etc_gshadow CCE-26975-3

Verify Group Who Owns gshadow File

Rule IDxccdf_org.ssgproject.content_rule_file_groupowner_etc_gshadow
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26975-3

To properly set the group owner of /etc/gshadow, run the command: # chgrp root /etc/gshadow

Verify Permissions on gshadow File xccdf_org.ssgproject.content_rule_file_permissions_etc_gshadow CCE-26951-4

Verify Permissions on gshadow File

Rule IDxccdf_org.ssgproject.content_rule_file_permissions_etc_gshadow
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26951-4

To properly set the permissions of /etc/gshadow, run the command: # chmod 0000 /etc/gshadow

Verify User Who Owns passwd File xccdf_org.ssgproject.content_rule_file_owner_etc_passwd CCE-26953-0

Verify User Who Owns passwd File

Rule IDxccdf_org.ssgproject.content_rule_file_owner_etc_passwd
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26953-0

To properly set the owner of /etc/passwd, run the command: # chown root /etc/passwd

Verify Group Who Owns passwd File xccdf_org.ssgproject.content_rule_file_groupowner_etc_passwd CCE-26856-5

Verify Group Who Owns passwd File

Rule IDxccdf_org.ssgproject.content_rule_file_groupowner_etc_passwd
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26856-5

To properly set the group owner of /etc/passwd, run the command: # chgrp root /etc/passwd

Verify Permissions on passwd File xccdf_org.ssgproject.content_rule_file_permissions_etc_passwd CCE-26868-0

Verify Permissions on passwd File

Rule IDxccdf_org.ssgproject.content_rule_file_permissions_etc_passwd
Result
pass
Time2014-07-17T13:52:55
Severitymedium
Identifiers
  • CCE-26868-0

To properly set the permissions of /etc/passwd, run the command: # chmod 0644 /etc/passwd

Verify that Shared Library Files Have Restrictive Permissions xccdf_org.ssgproject.content_rule_file_permissions_library_dirs CCE-27381-3

Verify that Shared Library Files Have Restrictive Permissions

Rule IDxccdf_org.ssgproject.content_rule_file_permissions_library_dirs
Result
pass
Time2014-07-17T13:52:58
Severitymedium
Identifiers
  • CCE-27381-3

System-wide shared library files, which are linked to executables during process load time or run time, are stored in the following directories by default:

/lib
/lib64
/usr/lib
/usr/lib64
Kernel modules, which can be added to the kernel during runtime, are stored in /lib/modules. All files in these directories should not be group-writable or world-writable. If any file in these directories is found to be group-writable or world-writable, correct its permission with the following command:
# chmod go-w FILE

Remediation script:
DIRS="/lib /lib64 /usr/lib /usr/lib64"
for dirPath in $DIRS; do
	find $dirPath -perm /022 -type f -exec chmod go-w '{}' \;
done
Verify that Shared Library Files Have Root Ownership xccdf_org.ssgproject.content_rule_file_ownership_library_dirs CCE-27424-1

Verify that Shared Library Files Have Root Ownership

Rule IDxccdf_org.ssgproject.content_rule_file_ownership_library_dirs
Result
pass
Time2014-07-17T13:52:58
Severitymedium
Identifiers
  • CCE-27424-1

System-wide shared library files, which are linked to executables during process load time or run time, are stored in the following directories by default:

/lib
/lib64
/usr/lib
/usr/lib64
Kernel modules, which can be added to the kernel during runtime, are also stored in /lib/modules. All files in these directories should be owned by the root user. If the directory, or any file in these directories, is found to be owned by a user other than root correct its ownership with the following command:
# chown root FILE

Remediation script:
for LIBDIR in /usr/lib /usr/lib64 /lib /lib64
do
  if [ -d $LIBDIR ]
  then
    find -L $LIBDIR \! -user root -exec chown root {} \; 
  fi
done
Verify that System Executables Have Restrictive Permissions xccdf_org.ssgproject.content_rule_file_permissions_binary_dirs CCE-27289-8

Verify that System Executables Have Restrictive Permissions

Rule IDxccdf_org.ssgproject.content_rule_file_permissions_binary_dirs
Result
pass
Time2014-07-17T13:52:59
Severitymedium
Identifiers
  • CCE-27289-8

System executables are stored in the following directories by default:

/bin
/usr/bin
/usr/local/bin
/sbin
/usr/sbin
/usr/local/sbin
All files in these directories should not be group-writable or world-writable. If any file FILE in these directories is found to be group-writable or world-writable, correct its permission with the following command:
# chmod go-w FILE

Remediation script:
DIRS="/bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin"
for dirPath in $DIRS; do
	find $dirPath -perm /022 -exec chmod go-w '{}' \;
done
Verify that System Executables Have Root Ownership xccdf_org.ssgproject.content_rule_file_ownership_binary_dirs CCE-27623-8

Verify that System Executables Have Root Ownership

Rule IDxccdf_org.ssgproject.content_rule_file_ownership_binary_dirs
Result
pass
Time2014-07-17T13:52:59
Severitymedium
Identifiers
  • CCE-27623-8

System executables are stored in the following directories by default:

/bin
/usr/bin
/usr/local/bin
/sbin
/usr/sbin
/usr/local/sbin
All files in these directories should be owned by the root user. If any file FILE in these directories is found to be owned by a user other than root, correct its ownership with the following command:
# chown root FILE

Verify that All World-Writable Directories Have Sticky Bits Set xccdf_org.ssgproject.content_rule_sticky_world_writable_dirs CCE-26840-9

Verify that All World-Writable Directories Have Sticky Bits Set

Rule IDxccdf_org.ssgproject.content_rule_sticky_world_writable_dirs
Result
fail
Time2014-07-17T13:53:11
Severitylow
Identifiers
  • CCE-26840-9

When the so-called 'sticky bit' is set on a directory, only the owner of a given file may remove that file from the directory. Without the sticky bit, any user with write access to a directory may remove any file in the directory. Setting the sticky bit prevents users from removing each other's files. In cases where there is no reason for a directory to be world-writable, a better solution is to remove that permission rather than to set the sticky bit. However, if a directory is used by a particular application, consult that application's documentation instead of blindly changing modes.

To set the sticky bit on a world-writable directory DIR, run the following command:

# chmod +t DIR

Remediation script:
df --local -P | awk {'if (NR!=1) print $6'} \
| xargs -I '{}' find '{}' -xdev -type d \
\( -perm -0002 -a ! -perm -1000 \) 2>/dev/null \
| xargs chmod a+t
Ensure No World-Writable Files Exist xccdf_org.ssgproject.content_rule_world_writeable_files CCE-26910-0

Ensure No World-Writable Files Exist

Rule IDxccdf_org.ssgproject.content_rule_world_writeable_files
Result
pass
Time2014-07-17T13:53:19
Severitymedium
Identifiers
  • CCE-26910-0

It is generally a good idea to remove global (other) write access to a file when it is discovered. However, check with documentation for specific applications before making changes. Also, monitor for recurring world-writable files, as these may be symptoms of a misconfigured application or user account.

Ensure All SGID Executables Are Authorized xccdf_org.ssgproject.content_rule_no_unpackaged_sgid_files CCE-26769-0

Ensure All SGID Executables Are Authorized

Rule IDxccdf_org.ssgproject.content_rule_no_unpackaged_sgid_files
Result
pass
Time2014-07-17T13:53:25
Severitylow
Identifiers
  • CCE-26769-0

The SGID (set group id) bit should be set only on files that were installed via authorized means. A straightforward means of identifying unauthorized SGID files is determine if any were not installed as part of an RPM package, which is cryptographically verified. Investigate the origin of any unpackaged SGID files.

Ensure All SUID Executables Are Authorized xccdf_org.ssgproject.content_rule_no_unpackaged_suid_files CCE-26497-8

Ensure All SUID Executables Are Authorized

Rule IDxccdf_org.ssgproject.content_rule_no_unpackaged_suid_files
Result
pass
Time2014-07-17T13:53:32
Severitylow
Identifiers
  • CCE-26497-8

The SUID (set user id) bit should be set only on files that were installed via authorized means. A straightforward means of identifying unauthorized SGID files is determine if any were not installed as part of an RPM package, which is cryptographically verified. Investigate the origin of any unpackaged SUID files.

Ensure All Files Are Owned by a User xccdf_org.ssgproject.content_rule_no_files_unowned_by_user CCE-27032-2

Ensure All Files Are Owned by a User

Rule IDxccdf_org.ssgproject.content_rule_no_files_unowned_by_user
Result
pass
Time2014-07-17T13:53:40
Severitylow
Identifiers
  • CCE-27032-2

If any files are not owned by a user, then the cause of their lack of ownership should be investigated. Following this, the files should be deleted or assigned to an appropriate user.

Ensure All Files Are Owned by a Group xccdf_org.ssgproject.content_rule_no_files_unowned_by_group CCE-26872-2

Ensure All Files Are Owned by a Group

Rule IDxccdf_org.ssgproject.content_rule_no_files_unowned_by_group
Result
fail
Time2014-07-17T13:53:40
Severitylow
Identifiers
  • CCE-26872-2

If any files are not owned by a group, then the cause of their lack of group-ownership should be investigated. Following this, the files should be deleted or assigned to an appropriate group.

Ensure All World-Writable Directories Are Owned by a System Account xccdf_org.ssgproject.content_rule_world_writable_files_system_ownership CCE-26642-9

Ensure All World-Writable Directories Are Owned by a System Account

Rule IDxccdf_org.ssgproject.content_rule_world_writable_files_system_ownership
Result
pass
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-26642-9

All directories in local partitions which are world-writable should be owned by root or another system account. If any world-writable directories are not owned by a system account, this should be investigated. Following this, the files should be deleted or assigned to an appropriate group.

Set Daemon Umask xccdf_org.ssgproject.content_rule_umask_for_daemons CCE-27031-4

Set Daemon Umask

Rule IDxccdf_org.ssgproject.content_rule_umask_for_daemons
Result
fail
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-27031-4

The file /etc/init.d/functions includes initialization parameters for most or all daemons started at boot time. The default umask of 022 prevents creation of group- or world-writable files. To set the default umask for daemons, edit the following line, inserting 022 or 027 for UMASK appropriately:

umask UMASK
Setting the umask to too restrictive a setting can cause serious errors at runtime. Many daemons on the system already individually restrict themselves to a umask of 077 in their own init scripts.

Remediation script:
var_umask_for_daemons="022"
grep -q ^umask /etc/init.d/functions && \
  sed -i "s/umask.*/umask $var_umask_for_daemons/g" /etc/init.d/functions
if ! [ $? -eq 0 ]; then
    echo "umask $var_umask_for_daemons" >> /etc/init.d/functions
fi
Disable Core Dumps for All Users xccdf_org.ssgproject.content_rule_disable_users_coredumps CCE-27033-0

Disable Core Dumps for All Users

Rule IDxccdf_org.ssgproject.content_rule_disable_users_coredumps
Result
fail
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-27033-0

To disable core dumps for all users, add the following line to /etc/security/limits.conf:

*     hard   core    0

Remediation script:
echo "*     hard   core    0" >> /etc/security/limits.conf
Disable Core Dumps for SUID programs xccdf_org.ssgproject.content_rule_sysctl_fs_suid_dumpable CCE-27044-7

Disable Core Dumps for SUID programs

Rule IDxccdf_org.ssgproject.content_rule_sysctl_fs_suid_dumpable
Result
fail
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-27044-7

To set the runtime status of the fs.suid_dumpable kernel parameter, run the following command: # sysctl -w fs.suid_dumpable=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: fs.suid_dumpable = 0

Remediation script:
#
# Set runtime for fs.suid_dumpable
#
sysctl -q -n -w fs.suid_dumpable=0

#
# If fs.suid_dumpable present in /etc/sysctl.conf, change value to "0"
#	else, add "fs.suid_dumpable = 0" to /etc/sysctl.conf
#
if grep --silent ^fs.suid_dumpable /etc/sysctl.conf ; then
	sed -i 's/^fs.suid_dumpable.*/fs.suid_dumpable = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set fs.suid_dumpable to 0 per security requirements" >> /etc/sysctl.conf
	echo "fs.suid_dumpable = 0" >> /etc/sysctl.conf
fi
Enable ExecShield xccdf_org.ssgproject.content_rule_sysctl_kernel_exec_shield CCE-27007-4

Enable ExecShield

Rule IDxccdf_org.ssgproject.content_rule_sysctl_kernel_exec_shield
Result
fail
Time2014-07-17T13:53:43
Severitymedium
Identifiers
  • CCE-27007-4

To set the runtime status of the kernel.exec-shield kernel parameter, run the following command: # sysctl -w kernel.exec-shield=1 If this is not the system's default value, add the following line to /etc/sysctl.conf: kernel.exec-shield = 1

Remediation script:
#
# Set runtime for kernel.exec-shield
#
sysctl -q -n -w kernel.exec-shield=1

#
# If kernel.exec-shield present in /etc/sysctl.conf, change value to "1"
#	else, add "kernel.exec-shield = 1" to /etc/sysctl.conf
#
if grep --silent ^kernel.exec-shield /etc/sysctl.conf ; then
	sed -i 's/^kernel.exec-shield.*/kernel.exec-shield = 1/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set kernel.exec-shield to 1 per security requirements" >> /etc/sysctl.conf
	echo "kernel.exec-shield = 1" >> /etc/sysctl.conf
fi
Enable Randomized Layout of Virtual Address Space xccdf_org.ssgproject.content_rule_sysctl_kernel_randomize_va_space CCE-26999-3

Enable Randomized Layout of Virtual Address Space

Rule IDxccdf_org.ssgproject.content_rule_sysctl_kernel_randomize_va_space
Result
fail
Time2014-07-17T13:53:43
Severitymedium
Identifiers
  • CCE-26999-3

To set the runtime status of the kernel.randomize_va_space kernel parameter, run the following command: # sysctl -w kernel.randomize_va_space=2 If this is not the system's default value, add the following line to /etc/sysctl.conf: kernel.randomize_va_space = 2

Remediation script:
#
# Set runtime for kernel.randomize_va_space
#
sysctl -q -n -w kernel.randomize_va_space=2

#
# If kernel.randomize_va_space present in /etc/sysctl.conf, change value to "2"
#	else, add "kernel.randomize_va_space = 2" to /etc/sysctl.conf
#
if grep --silent ^kernel.randomize_va_space /etc/sysctl.conf ; then
	sed -i 's/^kernel.randomize_va_space.*/kernel.randomize_va_space = 2/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set kernel.randomize_va_space to 2 per security requirements" >> /etc/sysctl.conf
	echo "kernel.randomize_va_space = 2" >> /etc/sysctl.conf
fi
Install PAE Kernel on Supported 32-bit x86 Systems xccdf_org.ssgproject.content_rule_install_PAE_kernel_on_x86-32 CCE-27010-8

Install PAE Kernel on Supported 32-bit x86 Systems

Rule IDxccdf_org.ssgproject.content_rule_install_PAE_kernel_on_x86-32
Result
notchecked
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-27010-8

Systems that are using the 64-bit x86 kernel package do not need to install the kernel-PAE package because the 64-bit x86 kernel already includes this support. However, if the system is 32-bit and also supports the PAE and NX features as determined in the previous section, the kernel-PAE package should be installed to enable XD or NX support:

# yum install kernel-PAE
The installation process should also have configured the bootloader to load the new kernel at boot. Verify this at reboot and modify /etc/grub.conf if necessary.

Enable NX or XD Support in the BIOS xccdf_org.ssgproject.content_rule_bios_enable_execution_restrictions CCE-27163-5

Enable NX or XD Support in the BIOS

Rule IDxccdf_org.ssgproject.content_rule_bios_enable_execution_restrictions
Result
notchecked
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-27163-5

Reboot the system and enter the BIOS or Setup configuration menu. Navigate the BIOS configuration menu and make sure that the option is enabled. The setting may be located under a Security section. Look for Execute Disable (XD) on Intel-based systems and No Execute (NX) on AMD-based systems.

Restrict Access to Kernel Message Buffer xccdf_org.ssgproject.content_rule_enable_dmesg_restriction CCE-27366-4

Restrict Access to Kernel Message Buffer

Rule IDxccdf_org.ssgproject.content_rule_enable_dmesg_restriction
Result
fail
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-27366-4

To set the runtime status of the kernel.dmesg_restrict kernel parameter, run the following command: # sysctl -w kernel.dmesg_restrict=1 If this is not the system's default value, add the following line to /etc/sysctl.conf: kernel.dmesg_restrict = 1

Ensure SELinux Not Disabled in /etc/grub.conf xccdf_org.ssgproject.content_rule_enable_selinux_bootloader CCE-26956-3

Ensure SELinux Not Disabled in /etc/grub.conf

Rule IDxccdf_org.ssgproject.content_rule_enable_selinux_bootloader
Result
pass
Time2014-07-17T13:53:43
Severitymedium
Identifiers
  • CCE-26956-3

SELinux can be disabled at boot time by an argument in /etc/grub.conf. Remove any instances of selinux=0 from the kernel arguments in that file to prevent SELinux from being disabled at boot.

Remediation script:
sed -i "s/selinux=0//gI" /etc/grub.conf
sed -i "s/enforcing=0//gI" /etc/grub.conf
Ensure SELinux State is Enforcing xccdf_org.ssgproject.content_rule_selinux_state CCE-26969-6

Ensure SELinux State is Enforcing

Rule IDxccdf_org.ssgproject.content_rule_selinux_state
Result
pass
Time2014-07-17T13:53:43
Severitymedium
Identifiers
  • CCE-26969-6

The SELinux state should be set to enforcing at system boot time. In the file /etc/selinux/config, add or correct the following line to configure the system to boot into enforcing mode:

SELINUX=enforcing

Remediation script:
var_selinux_state="enforcing"
grep -q ^SELINUX= /etc/selinux/config && \
  sed -i "s/SELINUX=.*/SELINUX=$var_selinux_state/g" /etc/selinux/config
if ! [ $? -eq 0 ]; then
    echo "SELINUX=$var_selinux_state" >> /etc/selinux/config
fi
Configure SELinux Policy xccdf_org.ssgproject.content_rule_selinux_policytype CCE-26875-5

Configure SELinux Policy

Rule IDxccdf_org.ssgproject.content_rule_selinux_policytype
Result
pass
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-26875-5

The SELinux targeted policy is appropriate for general-purpose desktops and servers, as well as systems in many other roles. To configure the system to use this policy, add or correct the following line in /etc/selinux/config:

SELINUXTYPE=targeted
Other policies, such as mls, provide additional security labeling and greater confinement but are not compatible with many general-purpose use cases.

Remediation script:
var_selinux_policy_name="targeted"
grep -q ^SELINUXTYPE /etc/selinux/config && \
  sed -i "s/SELINUXTYPE=.*/SELINUXTYPE=$var_selinux_policy_name/g" /etc/selinux/config
if ! [ $? -eq 0 ]; then
    echo "SELINUXTYPE=$var_selinux_policy_name" >> /etc/selinux/config
fi
Enable the SELinux Context Restoration Service (restorecond) xccdf_org.ssgproject.content_rule_service_restorecond_enabled CCE-26991-0

Enable the SELinux Context Restoration Service (restorecond)

Rule IDxccdf_org.ssgproject.content_rule_service_restorecond_enabled
Result
fail
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-26991-0

The restorecond service utilizes inotify to look for the creation of new files listed in the /etc/selinux/restorecond.conf configuration file. When a file is created, restorecond ensures the file receives the proper SELinux security context. The restorecond service can be enabled with the following command: # chkconfig --level 2345 restorecond on

Remediation script:
#
# Enable restorecond for all run levels
#
chkconfig --level 0123456 restorecond on

#
# Start restorecond if not currently running
#
service restorecond start
Uninstall setroubleshoot Package xccdf_org.ssgproject.content_rule_package_setroubleshoot_removed CCE-

Uninstall setroubleshoot Package

Rule IDxccdf_org.ssgproject.content_rule_package_setroubleshoot_removed
Result
pass
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-

The SETroubleshoot service notifies desktop users of SELinux denials. The service provides information around configuration errors, unauthorized intrusions, and other potential errors. The setroubleshoot package can be removed with the following command: # yum erase setroubleshoot

Uninstall mcstrans Package xccdf_org.ssgproject.content_rule_package_mcstrans_removed CCE-

Uninstall mcstrans Package

Rule IDxccdf_org.ssgproject.content_rule_package_mcstrans_removed
Result
pass
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-

The mcstransd daemon provides category label information to client processes requesting information. The label translations are defined in /etc/selinux/targeted/setrans.conf. The mcstrans package can be removed with the following command: # yum erase mcstrans

Ensure No Daemons are Unconfined by SELinux xccdf_org.ssgproject.content_rule_selinux_confinement_of_daemons CCE-27111-4

Ensure No Daemons are Unconfined by SELinux

Rule IDxccdf_org.ssgproject.content_rule_selinux_confinement_of_daemons
Result
notchecked
Time2014-07-17T13:53:43
Severitymedium
Identifiers
  • CCE-27111-4

Daemons for which the SELinux policy does not contain rules will inherit the context of the parent process. Because daemons are launched during startup and descend from the init process, they inherit the initrc_t context.



To check for unconfined daemons, run the following command:

# ps -eZ | egrep "initrc" | egrep -vw "tr|ps|egrep|bash|awk" | tr ':' ' ' | awk '{ print $NF }'
It should produce no output in a well-configured system.

Ensure No Device Files are Unlabeled by SELinux xccdf_org.ssgproject.content_rule_selinux_all_devicefiles_labeled CCE-26774-0

Ensure No Device Files are Unlabeled by SELinux

Rule IDxccdf_org.ssgproject.content_rule_selinux_all_devicefiles_labeled
Result
fail
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-26774-0

Device files, which are used for communication with important system resources, should be labeled with proper SELinux types. If any device files carry the SELinux type unlabeled_t, investigate the cause and correct the file's context.

Direct root Logins Not Allowed xccdf_org.ssgproject.content_rule_no_direct_root_logins CCE-26891-2

Direct root Logins Not Allowed

Rule IDxccdf_org.ssgproject.content_rule_no_direct_root_logins
Result
notchecked
Time2014-07-17T13:53:43
Severitymedium
Identifiers
  • CCE-26891-2

To further limit access to the root account, administrators can disable root logins at the console by editing the /etc/securetty file. This file lists all devices the root user is allowed to login to. If the file does not exist at all, the root user can login through any communication device on the system, whether via the console or via a raw network interface. This is dangerous as user can login to his machine as root via Telnet, which sends the password in plain text over the network. By default, Red Hat Enteprise Linux's /etc/securetty file only allows the root user to login at the console physically attached to the machine. To prevent root from logging in, remove the contents of this file. To prevent direct root logins, remove the contents of this file by typing the following command:

echo > /etc/securetty

Restrict Virtual Console Root Logins xccdf_org.ssgproject.content_rule_securetty_root_login_console_only CCE-26855-7

Restrict Virtual Console Root Logins

Rule IDxccdf_org.ssgproject.content_rule_securetty_root_login_console_only
Result
fail
Time2014-07-17T13:53:43
Severitymedium
Identifiers
  • CCE-26855-7

To restrict root logins through the (deprecated) virtual console devices, ensure lines of this form do not appear in /etc/securetty:

vc/1
vc/2
vc/3
vc/4

Remediation script:
sed -i '/^vc\//d' /etc/securetty
Restrict Serial Port Root Logins xccdf_org.ssgproject.content_rule_restrict_serial_port_logins CCE-27047-0

Restrict Serial Port Root Logins

Rule IDxccdf_org.ssgproject.content_rule_restrict_serial_port_logins
Result
pass
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-27047-0

To restrict root logins on serial ports, ensure lines of this form do not appear in /etc/securetty:

ttyS0
ttyS1

Restrict Web Browser Use for Administrative Accounts xccdf_org.ssgproject.content_rule_no_root_webbrowsing CCE-26795-5

Restrict Web Browser Use for Administrative Accounts

Rule IDxccdf_org.ssgproject.content_rule_no_root_webbrowsing
Result
notchecked
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-26795-5

Enforce policy requiring administrative accounts use web browsers only for local service administration.

Ensure that System Accounts Do Not Run a Shell Upon Login xccdf_org.ssgproject.content_rule_no_shelllogin_for_systemaccounts CCE-26966-2

Ensure that System Accounts Do Not Run a Shell Upon Login

Rule IDxccdf_org.ssgproject.content_rule_no_shelllogin_for_systemaccounts
Result
fail
Time2014-07-17T13:53:43
Severitymedium
Identifiers
  • CCE-26966-2

Some accounts are not associated with a human user of the system, and exist to perform some administrative function. Should an attacker be able to log into these accounts, they should not be granted access to a shell.



The login shell for each local account is stored in the last field of each line in /etc/passwd. System accounts are those user accounts with a user ID less than 500. The user ID is stored in the third field. If any system account SYSACCT (other than root) has a login shell, disable it with the command:

# usermod -s /sbin/nologin SYSACCT

Verify Only Root Has UID 0 xccdf_org.ssgproject.content_rule_accounts_no_uid_except_zero CCE-26971-2

Verify Only Root Has UID 0

Rule IDxccdf_org.ssgproject.content_rule_accounts_no_uid_except_zero
Result
pass
Time2014-07-17T13:53:43
Severitymedium
Identifiers
  • CCE-26971-2

If any account other than root has a UID of 0, this misconfiguration should be investigated and the accounts other than root should be removed or have their UID changed.

Remediation script:
awk -F: '$3 == 0 && $1 != "root" { print $1 }' /etc/passwd | xargs passwd -l
Root Path Must Be Vendor Default xccdf_org.ssgproject.content_rule_root_path_default CCE-27125-4

Root Path Must Be Vendor Default

Rule IDxccdf_org.ssgproject.content_rule_root_path_default
Result
notchecked
Time2014-07-17T13:53:43
Severitylow
Identifiers
  • CCE-27125-4

Assuming root shell is bash, edit the following files:

~/.profile
~/.bashrc
Change any PATH variables to the vendor default for root and remove any empty PATH entries or references to relative paths.

Prevent Log In to Accounts With Empty Password xccdf_org.ssgproject.content_rule_no_empty_passwords CCE-27038-9

Prevent Log In to Accounts With Empty Password

Rule IDxccdf_org.ssgproject.content_rule_no_empty_passwords
Result
fail
Time2014-07-17T13:53:44
Severityhigh
Identifiers
  • CCE-27038-9

If an account is configured for password authentication but does not have an assigned password, it may be possible to log into the account without authentication. Remove any instances of the nullok option in /etc/pam.d/system-auth to prevent logins with empty passwords.

Remediation script:
sed --follow-symlinks -i 's/\<nullok\>//g' /etc/pam.d/system-auth
Verify All Account Password Hashes are Shadowed xccdf_org.ssgproject.content_rule_accounts_password_all_shadowed CCE-26476-2

Verify All Account Password Hashes are Shadowed

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_all_shadowed
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26476-2

If any password hashes are stored in /etc/passwd (in the second field, instead of an x), the cause of this misconfiguration should be investigated. The account should have its password reset and the hash should be properly stored, or the account should be deleted entirely.

All GIDs referenced in /etc/passwd must be defined in /etc/group xccdf_org.ssgproject.content_rule_gid_passwd_group_same CCE-27379-7

All GIDs referenced in /etc/passwd must be defined in /etc/group

Rule IDxccdf_org.ssgproject.content_rule_gid_passwd_group_same
Result
notchecked
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27379-7

Add a group to the system for each GID referenced without a corresponding group.

Verify No netrc Files Exist xccdf_org.ssgproject.content_rule_no_netrc_files CCE-27225-2

Verify No netrc Files Exist

Rule IDxccdf_org.ssgproject.content_rule_no_netrc_files
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27225-2

The .netrc files contain login information used to auto-login into FTP servers and reside in the user's home directory. These files may contain unencrypted passwords to remote FTP servers making them susceptible to access by unauthorized users and should not be used. Any .netrc files should be removed.

Set Password Minimum Length in login.defs xccdf_org.ssgproject.content_rule_accounts_password_minlen_login_defs CCE-27002-5

Set Password Minimum Length in login.defs

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_minlen_login_defs
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27002-5

To specify password length requirements for new accounts, edit the file /etc/login.defs and add or correct the following lines:

PASS_MIN_LEN 14




The DoD requirement is 14. The FISMA requirement is 12. If a program consults /etc/login.defs and also another PAM module (such as pam_cracklib) during a password change operation, then the most restrictive must be satisfied. See PAM section for more information about enforcing password quality requirements.

Remediation script:
var_accounts_password_minlen_login_defs="14"
grep -q ^PASS_MIN_LEN /etc/login.defs && \
  sed -i "s/PASS_MIN_LEN.*/PASS_MIN_LEN     $var_accounts_password_minlen_login_defs/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
    echo "PASS_MIN_LEN      $var_accounts_password_minlen_login_defs" >> /etc/login.defs
fi
Set Password Minimum Age xccdf_org.ssgproject.content_rule_accounts_minimum_age_login_defs CCE-27013-2

Set Password Minimum Age

Rule IDxccdf_org.ssgproject.content_rule_accounts_minimum_age_login_defs
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27013-2

To specify password minimum age for new accounts, edit the file /etc/login.defs and add or correct the following line, replacing DAYS appropriately:

PASS_MIN_DAYS DAYS
A value of 1 day is considered for sufficient for many environments. The DoD requirement is 1.

Remediation script:
var_accounts_minimum_age_login_defs="7"
grep -q ^PASS_MIN_DAYS /etc/login.defs && \
  sed -i "s/PASS_MIN_DAYS.*/PASS_MIN_DAYS     $var_accounts_minimum_age_login_defs/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
    echo "PASS_MIN_DAYS      $var_accounts_minimum_age_login_defs" >> /etc/login.defs
fi
Set Password Maximum Age xccdf_org.ssgproject.content_rule_accounts_maximum_age_login_defs CCE-26985-2

Set Password Maximum Age

Rule IDxccdf_org.ssgproject.content_rule_accounts_maximum_age_login_defs
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26985-2

To specify password maximum age for new accounts, edit the file /etc/login.defs and add or correct the following line, replacing DAYS appropriately:

PASS_MAX_DAYS DAYS
A value of 180 days is sufficient for many environments. The DoD requirement is 60.

Remediation script:
var_accounts_maximum_age_login_defs="60"
grep -q ^PASS_MAX_DAYS /etc/login.defs && \
  sed -i "s/PASS_MAX_DAYS.*/PASS_MAX_DAYS     $var_accounts_maximum_age_login_defs/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
    echo "PASS_MAX_DAYS      $var_accounts_maximum_age_login_defs" >> /etc/login.defs
fi
Set Password Warning Age xccdf_org.ssgproject.content_rule_accounts_password_warn_age_login_defs CCE-26988-6

Set Password Warning Age

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_warn_age_login_defs
Result
pass
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26988-6

To specify how many days prior to password expiration that a warning will be issued to users, edit the file /etc/login.defs and add or correct the following line, replacing DAYS appropriately:

PASS_WARN_AGE DAYS
The DoD requirement is 7.

Remediation script:
var_accounts_password_warn_age_login_defs="7"
grep -q ^PASS_WARN_AGE /etc/login.defs && \
  sed -i "s/PASS_WARN_AGE.*/PASS_WARN_AGE     $var_accounts_password_warn_age_login_defs/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
    echo "PASS_WARN_AGE      $var_accounts_password_warn_age_login_defs" >> /etc/login.defs
fi
Set Account Expiration Following Inactivity xccdf_org.ssgproject.content_rule_account_disable_post_pw_expiration CCE-27283-1

Set Account Expiration Following Inactivity

Rule IDxccdf_org.ssgproject.content_rule_account_disable_post_pw_expiration
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27283-1

To specify the number of days after a password expires (which signifies inactivity) until an account is permanently disabled, add or correct the following lines in /etc/default/useradd, substituting NUM_DAYS appropriately:

INACTIVE=NUM_DAYS
A value of 35 is recommended. If a password is currently on the verge of expiration, then 35 days remain until the account is automatically disabled. However, if the password will not expire for another 60 days, then 95 days could elapse until the account would be automatically disabled. See the useradd man page for more information. Determining the inactivity timeout must be done with careful consideration of the length of a "normal" period of inactivity for users in the particular environment. Setting the timeout too low incurs support costs and also has the potential to impact availability of the system to legitimate users.

Remediation script:
var_account_disable_post_pw_expiration="35"
grep -q ^INACTIVE /etc/default/useradd && \
  sed -i "s/INACTIVE.*/INACTIVE=$var_account_disable_post_pw_expiration/g" /etc/default/useradd
if ! [ $? -eq 0 ]; then
    echo "INACTIVE=$var_account_disable_post_pw_expiration" >> /etc/default/useradd
fi
Ensure All Accounts on the System Have Unique Names xccdf_org.ssgproject.content_rule_account_unique_name CCE-27609-7

Ensure All Accounts on the System Have Unique Names

Rule IDxccdf_org.ssgproject.content_rule_account_unique_name
Result
notchecked
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27609-7

Change usernames, or delete accounts, so each has a unique name.

Assign Expiration Date to Temporary Accounts xccdf_org.ssgproject.content_rule_account_temp_expire_date CCE-27474-6

Assign Expiration Date to Temporary Accounts

Rule IDxccdf_org.ssgproject.content_rule_account_temp_expire_date
Result
notchecked
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27474-6

In the event temporary or emergency accounts are required, configure the system to terminate them after a documented time period. For every temporary and emergency account, run the following command to set an expiration date on it, substituting USER and YYYY-MM-DD appropriately:

# chage -E YYYY-MM-DD USER
YYYY-MM-DD indicates the documented expiration date for the account.

Set Password Retry Prompts Permitted Per-Session xccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_retry CCE-27123-9

Set Password Retry Prompts Permitted Per-Session

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_retry
Result
pass
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27123-9

To configure the number of retry prompts that are permitted per-session:



Edit the pam_cracklib.so statement in /etc/pam.d/system-auth to show retry=3, or a lower value if site policy is more restrictive.



The DoD requirement is a maximum of 3 prompts per session.

Set Password to Maximum of Three Consecutive Repeating Characters xccdf_org.ssgproject.content_rule_password_require_consecrepeat CCE-27227-8

Set Password to Maximum of Three Consecutive Repeating Characters

Rule IDxccdf_org.ssgproject.content_rule_password_require_consecrepeat
Result
notchecked
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27227-8

The pam_cracklib module's maxrepeat parameter controls requirements for consecutive repeating characters. When set to a positive number, it will reject passwords which contain more than that number of consecutive characters. Add maxrepeat=3 after pam_cracklib.so to prevent a run of four or more identical characters.

Set Password Strength Minimum Digit Characters xccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_dcredit CCE-26374-9

Set Password Strength Minimum Digit Characters

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_dcredit
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26374-9

The pam_cracklib module's dcredit parameter controls requirements for usage of digits in a password. When set to a negative number, any password will be required to contain that many digits. When set to a positive number, pam_cracklib will grant +1 additional length credit for each digit. Add dcredit=-1 after pam_cracklib.so to require use of a digit in passwords.

Set Password Strength Minimum Uppercase Characters xccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_ucredit CCE-26601-5

Set Password Strength Minimum Uppercase Characters

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_ucredit
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26601-5

The pam_cracklib module's ucredit= parameter controls requirements for usage of uppercase letters in a password. When set to a negative number, any password will be required to contain that many uppercase characters. When set to a positive number, pam_cracklib will grant +1 additional length credit for each uppercase character. Add ucredit=-1 after pam_cracklib.so to require use of an upper case character in passwords.

Set Password Strength Minimum Special Characters xccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_ocredit CCE-26409-3

Set Password Strength Minimum Special Characters

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_ocredit
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26409-3

The pam_cracklib module's ocredit= parameter controls requirements for usage of special (or ``other'') characters in a password. When set to a negative number, any password will be required to contain that many special characters. When set to a positive number, pam_cracklib will grant +1 additional length credit for each special character. Add ocredit=-1 after pam_cracklib.so to require use of a special character in passwords.

Set Password Strength Minimum Lowercase Characters xccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_lcredit CCE-26631-2

Set Password Strength Minimum Lowercase Characters

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_lcredit
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26631-2

The pam_cracklib module's lcredit= parameter controls requirements for usage of lowercase letters in a password. When set to a negative number, any password will be required to contain that many lowercase characters. When set to a positive number, pam_cracklib will grant +1 additional length credit for each lowercase character. Add lcredit=-1 after pam_cracklib.so to require use of a lowercase character in passwords.

Set Password Strength Minimum Different Characters xccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_difok CCE-26615-5

Set Password Strength Minimum Different Characters

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_difok
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26615-5

The pam_cracklib module's difok parameter controls requirements for usage of different characters during a password change. Add difok=NUM after pam_cracklib.so to require differing characters when changing passwords, substituting NUM appropriately. The DoD requirement is 4.

Set Password Strength Minimum Different Categories xccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_minclass CCE-27115-5

Set Password Strength Minimum Different Categories

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_minclass
Result
pass
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27115-5

The pam_cracklib module's minclass parameter controls requirements for usage of different character classes, or types, of character that must exist in a password before it is considered valid. For example, setting this value to three (3) requires that any password must have characters from at least three different categories in order to be approved. The default value is zero (0), meaning there are no required classes. There are four categories available:

* Upper-case characters
* Lower-case characters
* Digits
* Special characters (for example, punctuation)
Add minclass=NUM after pam_cracklib.so entry into the /etc/pam.d/system-auth file in order to require differing categories of characters when changing passwords, substituting NUM appropriately (for example to require at least three character classes to be used in password, use minclass=3).

Remediation script:
var_password_pam_cracklib_minclass="3"
grep -q minclass /etc/pam.d/system-auth
if [ $? = "0" ]; then
    sed --follow-symlinks -i "/pam_cracklib.so/s/minclass=[0-$var_password_pam_cracklib_minclass]/minclass=$var_password_pam_cracklib_minclass/" /etc/pam.d/system-auth
else
    sed --follow-symlinks -i "/pam_cracklib.so/s/pam_cracklib.so /pam_cracklib.so minclass=$var_password_pam_cracklib_minclass /" /etc/pam.d/system-auth
fi
Set Deny For Failed Password Attempts xccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_deny CCE-26844-1

Set Deny For Failed Password Attempts

Rule IDxccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_deny
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26844-1

To configure the system to lock out accounts after a number of incorrect login attempts using pam_faillock.so:



Add the following lines immediately below the pam_unix.so statement in AUTH section of both /etc/pam.d/system-auth and /etc/pam.d/password-auth:

auth [default=die] pam_faillock.so authfail deny=3 unlock_time=604800 fail_interval=900
auth required pam_faillock.so authsucc deny=3 unlock_time=604800 fail_interval=900

Set Lockout Time For Failed Password Attempts xccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_unlock_time CCE-27110-6

Set Lockout Time For Failed Password Attempts

Rule IDxccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_unlock_time
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27110-6

To configure the system to lock out accounts after a number of incorrect login attempts and require an administrator to unlock the account using pam_faillock.so:



Add the following lines immediately below the pam_env.so statement in /etc/pam.d/system-auth:

auth [default=die] pam_faillock.so authfail deny=3 unlock_time=604800 fail_interval=900
auth required pam_faillock.so authsucc deny=3 unlock_time=604800 fail_interval=900

Set Interval For Counting Failed Password Attempts xccdf_org.ssgproject.content_rule_accounts_passwords_pam_fail_interval CCE-27215-3

Set Interval For Counting Failed Password Attempts

Rule IDxccdf_org.ssgproject.content_rule_accounts_passwords_pam_fail_interval
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27215-3

Utilizing pam_faillock.so, the fail_interval directive configures the system to lock out accounts after a number of incorrect login attempts.



Add the following fail_interval directives to pam_faillock.so immediately below the pam_env.so statement in /etc/pam.d/system-auth and /etc/pam.d/password-auth:

auth [default=die] pam_faillock.so authfail deny=3 unlock_time=604800 fail_interval=900
auth required pam_faillock.so authsucc deny=3 unlock_time=604800 fail_interval=900

Limit Password Reuse xccdf_org.ssgproject.content_rule_accounts_password_reuse_limit CCE-26741-9

Limit Password Reuse

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_reuse_limit
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26741-9

Do not allow users to reuse recent passwords. This can be accomplished by using the remember option for the pam_unix PAM module. In the file /etc/pam.d/system-auth, append remember=24 to the line which refers to the pam_unix.so module, as shown:

password sufficient pam_unix.so existing_options remember=24
The DoD and FISMA requirement is 24 passwords.

Set Password Hashing Algorithm in /etc/pam.d/system-auth xccdf_org.ssgproject.content_rule_set_password_hashing_algorithm_systemauth CCE-26303-8

Set Password Hashing Algorithm in /etc/pam.d/system-auth

Rule IDxccdf_org.ssgproject.content_rule_set_password_hashing_algorithm_systemauth
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26303-8

In /etc/pam.d/system-auth, the password section of the file controls which PAM modules execute during a password change. Set the pam_unix.so module in the password section to include the argument sha512, as shown below:

password    sufficient    pam_unix.so sha512 other arguments...
This will help ensure when local users change their passwords, hashes for the new passwords will be generated using the SHA-512 algorithm. This is the default.

Set Password Hashing Algorithm in /etc/login.defs xccdf_org.ssgproject.content_rule_set_password_hashing_algorithm_logindefs CCE-27228-6

Set Password Hashing Algorithm in /etc/login.defs

Rule IDxccdf_org.ssgproject.content_rule_set_password_hashing_algorithm_logindefs
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27228-6

In /etc/login.defs, add or correct the following line to ensure the system will use SHA-512 as the hashing algorithm:

ENCRYPT_METHOD SHA512

Set Password Hashing Algorithm in /etc/libuser.conf xccdf_org.ssgproject.content_rule_set_password_hashing_algorithm_libuserconf CCE-27229-4

Set Password Hashing Algorithm in /etc/libuser.conf

Rule IDxccdf_org.ssgproject.content_rule_set_password_hashing_algorithm_libuserconf
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27229-4

In /etc/libuser.conf, add or correct the following line in its [defaults] section to ensure the system will use the SHA-512 algorithm for password hashing:

crypt_style = sha512

Set Last Logon/Access Notification xccdf_org.ssgproject.content_rule_display_login_attempts CCE-27291-4

Set Last Logon/Access Notification

Rule IDxccdf_org.ssgproject.content_rule_display_login_attempts
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27291-4

To configure the system to notify users of last logon/access using pam_lastlog, add the following line immediately after session required pam_limits.so:

session       required     pam_lastlog.so showfailed

Ensure that Root's Path Does Not Include Relative Paths or Null Directories xccdf_org.ssgproject.content_rule_root_path_no_dot CCE-26826-8

Ensure that Root's Path Does Not Include Relative Paths or Null Directories

Rule IDxccdf_org.ssgproject.content_rule_root_path_no_dot
Result
pass
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26826-8

Ensure that none of the directories in root's path is equal to a single . character, or that it contains any instances that lead to relative path traversal, such as .. or beginning a path without the slash (/) character. Also ensure that there are no "empty" elements in the path, such as in these examples:

PATH=:/bin
PATH=/bin:
PATH=/bin::/sbin
These empty elements have the same effect as a single . character.

Ensure that Root's Path Does Not Include World or Group-Writable Directories xccdf_org.ssgproject.content_rule_root_path_no_groupother_writable CCE-26768-2

Ensure that Root's Path Does Not Include World or Group-Writable Directories

Rule IDxccdf_org.ssgproject.content_rule_root_path_no_groupother_writable
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26768-2

For each element in root's path, run:

# ls -ld DIR
and ensure that write permissions are disabled for group and other.

Ensure the Default Bash Umask is Set Correctly xccdf_org.ssgproject.content_rule_accounts_umask_bashrc CCE-26917-5

Ensure the Default Bash Umask is Set Correctly

Rule IDxccdf_org.ssgproject.content_rule_accounts_umask_bashrc
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26917-5

To ensure the default umask for users of the Bash shell is set properly, add or correct the umask setting in /etc/bashrc to read as follows:

umask 077

Remediation script:
var_accounts_user_umask="027"
grep -q umask /etc/bashrc && \
  sed -i "s/umask.*/umask $var_accounts_user_umask/g" /etc/bashrc
if ! [ $? -eq 0 ]; then
    echo "umask $var_accounts_user_umask" >> /etc/bashrc
fi
Ensure the Default C Shell Umask is Set Correctly xccdf_org.ssgproject.content_rule_accounts_umask_cshrc CCE-27034-8

Ensure the Default C Shell Umask is Set Correctly

Rule IDxccdf_org.ssgproject.content_rule_accounts_umask_cshrc
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27034-8

To ensure the default umask for users of the C shell is set properly, add or correct the umask setting in /etc/csh.cshrc to read as follows:

umask 077

Remediation script:
var_accounts_user_umask="027"
grep -q umask /etc/csh.cshrc && \
  sed -i "s/umask.*/umask $var_accounts_user_umask/g" /etc/csh.cshrc
if ! [ $? -eq 0 ]; then
    echo "umask $var_accounts_user_umask" >> /etc/csh.cshrc
fi
Ensure the Default Umask is Set Correctly in /etc/profile xccdf_org.ssgproject.content_rule_accounts_umask_etc_profile CCE-26669-2

Ensure the Default Umask is Set Correctly in /etc/profile

Rule IDxccdf_org.ssgproject.content_rule_accounts_umask_etc_profile
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26669-2

To ensure the default umask controlled by /etc/profile is set properly, add or correct the umask setting in /etc/profile to read as follows:

umask 077

Remediation script:
var_accounts_user_umask="027"
grep -q umask /etc/profile && \
  sed -i "s/umask.*/umask $var_accounts_user_umask/g" /etc/profile
if ! [ $? -eq 0 ]; then
    echo "umask $var_accounts_user_umask" >> /etc/profile
fi
Ensure the Default Umask is Set Correctly in login.defs xccdf_org.ssgproject.content_rule_accounts_umask_login_defs CCE-26371-5

Ensure the Default Umask is Set Correctly in login.defs

Rule IDxccdf_org.ssgproject.content_rule_accounts_umask_login_defs
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26371-5

To ensure the default umask controlled by /etc/login.defs is set properly, add or correct the UMASK setting in /etc/login.defs to read as follows:

UMASK 077

Remediation script:
var_accounts_user_umask="027"
grep -q UMASK /etc/login.defs && \
  sed -i "s/UMASK.*/UMASK $var_accounts_user_umask/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
    echo "UMASK $var_accounts_user_umask" >> /etc/login.defs
fi
Limit the Number of Concurrent Login Sessions Allowed Per User xccdf_org.ssgproject.content_rule_accounts_max_concurrent_login_sessions CCE-27457-1

Limit the Number of Concurrent Login Sessions Allowed Per User

Rule IDxccdf_org.ssgproject.content_rule_accounts_max_concurrent_login_sessions
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27457-1

Limiting the number of allowed users and sessions per user can limit risks related to Denial of Service attacks. This addresses concurrent sessions for a single account and does not address concurrent sessions by a single user via multiple accounts. The DoD requirement is 10. To set the number of concurrent sessions per user add the following line in /etc/security/limits.conf:

* hard maxlogins 10

Remediation script:
var_accounts_max_concurrent_login_sessions="1"
echo "*	hard	maxlogins	$var_accounts_max_concurrent_login_sessions" >> /etc/security/limits.conf
Ensure that User Home Directories are not Group-Writable or World-Readable xccdf_org.ssgproject.content_rule_homedir_perms_no_groupwrite_worldread CCE-26981-1

Ensure that User Home Directories are not Group-Writable or World-Readable

Rule IDxccdf_org.ssgproject.content_rule_homedir_perms_no_groupwrite_worldread
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26981-1

For each human user of the system, view the permissions of the user's home directory:

# ls -ld /home/USER
Ensure that the directory is not group-writable and that it is not world-readable. If necessary, repair the permissions:
# chmod g-w /home/USER
# chmod o-rwx /home/USER

Verify /etc/grub.conf User Ownership xccdf_org.ssgproject.content_rule_user_owner_grub_conf CCE-26995-1

Verify /etc/grub.conf User Ownership

Rule IDxccdf_org.ssgproject.content_rule_user_owner_grub_conf
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26995-1

The file /etc/grub.conf should be owned by the root user to prevent destruction or modification of the file. To properly set the owner of /etc/grub.conf, run the command: # chown root /etc/grub.conf

Verify /etc/grub.conf Group Ownership xccdf_org.ssgproject.content_rule_group_owner_grub_conf CCE-27022-3

Verify /etc/grub.conf Group Ownership

Rule IDxccdf_org.ssgproject.content_rule_group_owner_grub_conf
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27022-3

The file /etc/grub.conf should be group-owned by the root group to prevent destruction or modification of the file. To properly set the group owner of /etc/grub.conf, run the command: # chgrp root /etc/grub.conf

Verify /boot/grub/grub.conf Permissions xccdf_org.ssgproject.content_rule_permissions_grub_conf CCE-26949-8

Verify /boot/grub/grub.conf Permissions

Rule IDxccdf_org.ssgproject.content_rule_permissions_grub_conf
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26949-8

File permissions for /boot/grub/grub.conf should be set to 600, which is the default. To properly set the permissions of /boot/grub/grub.conf, run the command: # chmod 600 /boot/grub/grub.conf

Set Boot Loader Password xccdf_org.ssgproject.content_rule_bootloader_password CCE-26911-8

Set Boot Loader Password

Rule IDxccdf_org.ssgproject.content_rule_bootloader_password
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26911-8

The grub boot loader should have password protection enabled to protect boot-time settings. To do so, select a password and then generate a hash from it by running the following command:

# grub-crypt --sha-512
When prompted to enter a password, insert the following line into /etc/grub.conf immediately after the header comments. (Use the output from grub-crypt as the value of password-hash):
password --encrypted password-hash
NOTE: To meet FISMA Moderate, the bootloader password MUST differ from the root password.

Set GNOME Login Inactivity Timeout xccdf_org.ssgproject.content_rule_set_screensaver_inactivity_timeout CCE-26828-4

Set GNOME Login Inactivity Timeout

Rule IDxccdf_org.ssgproject.content_rule_set_screensaver_inactivity_timeout
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26828-4

Run the following command to set the idle time-out value for inactivity in the GNOME desktop to 15 minutes:

# gconftool-2 \
  --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type int \
  --set /desktop/gnome/session/idle_delay 15

GNOME Desktop Screensaver Mandatory Use xccdf_org.ssgproject.content_rule_enable_screensaver_after_idle CCE-26600-7

GNOME Desktop Screensaver Mandatory Use

Rule IDxccdf_org.ssgproject.content_rule_enable_screensaver_after_idle
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26600-7

Run the following command to activate the screensaver in the GNOME desktop after a period of inactivity:

# gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type bool \
  --set /apps/gnome-screensaver/idle_activation_enabled true

Enable Screen Lock Activation After Idle Period xccdf_org.ssgproject.content_rule_enable_screensaver_password_lock CCE-26235-2

Enable Screen Lock Activation After Idle Period

Rule IDxccdf_org.ssgproject.content_rule_enable_screensaver_password_lock
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26235-2

Run the following command to activate locking of the screensaver in the GNOME desktop when it is activated:

# gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type bool \
  --set /apps/gnome-screensaver/lock_enabled true

Implement Blank Screensaver xccdf_org.ssgproject.content_rule_set_blank_screensaver CCE-26638-7

Implement Blank Screensaver

Rule IDxccdf_org.ssgproject.content_rule_set_blank_screensaver
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26638-7

Run the following command to set the screensaver mode in the GNOME desktop to a blank screen:

# gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type string \
  --set /apps/gnome-screensaver/mode blank-only

Install the screen Package xccdf_org.ssgproject.content_rule_package_screen_installed CCE-26940-7

Install the screen Package

Rule IDxccdf_org.ssgproject.content_rule_package_screen_installed
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26940-7

To enable console screen locking, install the screen package:

# yum install screen
Instruct users to begin new terminal sessions with the following command:
$ screen
The console can now be locked with the following key combination:
ctrl+a x

Remediation script:
yum -y install screen
Enable Smart Card Login xccdf_org.ssgproject.content_rule_smartcard_auth CCE-27440-7

Enable Smart Card Login

Rule IDxccdf_org.ssgproject.content_rule_smartcard_auth
Result
notselected
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27440-7

To enable smart card authentication, consult the documentation at:

  • https://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Smart_Cards/enabling-smart-card-login.html

Require Authentication for Single User Mode xccdf_org.ssgproject.content_rule_require_singleuser_auth CCE-27040-5

Require Authentication for Single User Mode

Rule IDxccdf_org.ssgproject.content_rule_require_singleuser_auth
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27040-5

Single-user mode is intended as a system recovery method, providing a single user root access to the system by providing a boot option at startup. By default, no authentication is performed if single-user mode is selected.



To require entry of the root password even if the system is started in single-user mode, add or correct the following line in the file /etc/sysconfig/init:

SINGLE=/sbin/sulogin

Remediation script:
grep -q ^SINGLE /etc/sysconfig/init && \
  sed -i "s/SINGLE.*/SINGLE=\/sbin\/sulogin/g" /etc/sysconfig/init
if ! [ $? -eq 0 ]; then
    echo "SINGLE=/sbin/sulogin" >> /etc/sysconfig/init
fi
Disable Ctrl-Alt-Del Reboot Activation xccdf_org.ssgproject.content_rule_disable_ctrlaltdel_reboot CCE-27567-7

Disable Ctrl-Alt-Del Reboot Activation

Rule IDxccdf_org.ssgproject.content_rule_disable_ctrlaltdel_reboot
Result
notchecked
Time2014-07-17T13:53:44
Severityhigh
Identifiers
  • CCE-27567-7

By default, the system includes the following line in /etc/init/control-alt-delete.conf to reboot the system when the Ctrl-Alt-Del key sequence is pressed:

exec /sbin/shutdown -r now "Control-Alt-Delete pressed"


To configure the system to log a message instead of rebooting the system, alter that line to read as follows:
exec /usr/bin/logger -p security.info "Control-Alt-Delete pressed"

Disable Interactive Boot xccdf_org.ssgproject.content_rule_disable_interactive_boot CCE-27043-9

Disable Interactive Boot

Rule IDxccdf_org.ssgproject.content_rule_disable_interactive_boot
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27043-9

To disable the ability for users to perform interactive startups, edit the file /etc/sysconfig/init. Add or correct the line:

PROMPT=no
The PROMPT option allows the console user to perform an interactive system startup, in which it is possible to select the set of services which are started on boot.

Remediation script:
grep -q ^PROMPT /etc/sysconfig/init && \
  sed -i "s/PROMPT.*/PROMPT=no/g" /etc/sysconfig/init
if ! [ $? -eq 0 ]; then
    echo "PROMPT=no" >> /etc/sysconfig/init
fi
Enable GUI Warning Banner xccdf_org.ssgproject.content_rule_enable_gdm_login_banner CCE-27195-7

Enable GUI Warning Banner

Rule IDxccdf_org.ssgproject.content_rule_enable_gdm_login_banner
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27195-7

To enable displaying a login warning banner in the GNOME Display Manager's login screen, run the following command:

sudo -u gdm gconftool-2 \
  --type bool \
  --set /apps/gdm/simple-greeter/banner_message_enable true
To display a banner, this setting must be enabled and then banner text must also be set.

Set GUI Warning Banner Text xccdf_org.ssgproject.content_rule_set_gdm_login_banner_text CCE-27017-3

Set GUI Warning Banner Text

Rule IDxccdf_org.ssgproject.content_rule_set_gdm_login_banner_text
Result
notchecked
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27017-3

To set the text shown by the GNOME Display Manager in the login screen, run the following command:

sudo -u gdm gconftool-2 \
  --type string \
  --set /apps/gdm/simple-greeter/banner_message_text \
  "Text of the warning banner here"
When entering a warning banner that spans several lines, remember to begin and end the string with ". This command writes directly to the file /var/lib/gdm/.gconf/apps/gdm/simple-greeter/%gconf.xml, and this file can later be edited directly if necessary.

Modify the System Login Banner xccdf_org.ssgproject.content_rule_set_system_login_banner CCE-26974-6

Modify the System Login Banner

Rule IDxccdf_org.ssgproject.content_rule_set_system_login_banner
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26974-6

To configure the system login banner:



Edit /etc/issue. Replace the default text with a message compliant with the local site policy or a legal disclaimer. The DoD required text is either:



You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only. By using this IS (which includes any device attached to this IS), you consent to the following conditions:

-The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations.

-At any time, the USG may inspect and seize data stored on this IS.

-Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose.

-This IS includes security measures (e.g., authentication and access controls) to protect USG interests -- not for your personal benefit or privacy.

-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details.




OR:



I've read & consent to terms in IS user agreem't.

Remediation script:
login_banner_text="
-- WARNING --[\s\n]*This system is for the use of authorized users only. Individuals[\s\n]*using this computer system without authority or in excess of their[\s\n]*authority are subject to having all their activities on this system[\s\n]*monitored and recorded by system personnel. Anyone using this[\s\n]*system expressly consents to such monitoring and is advised that[\s\n]*if such monitoring reveals possible evidence of criminal activity[\s\n]*system personal may provide the evidence of such monitoring to law[\s\n]*enforcement officials."
cat <<EOF >/etc/issue
$login_banner_text
EOF
Disable the User List xccdf_org.ssgproject.content_rule_disable_user_list CCE-27230-2

Disable the User List

Rule IDxccdf_org.ssgproject.content_rule_disable_user_list
Result
notchecked
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27230-2

In the default graphical environment, users logging directly into the system are greeted with a login screen that displays all known users. This functionality should be disabled.



Run the following command to disable the user list:

sudo -u gdm gconftool-2 \
  --type bool \
  --set /apps/gdm/simple-greeter/disable_user_list true

Disable Kernel Parameter for Sending ICMP Redirects by Default xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_send_redirects CCE-27001-7

Disable Kernel Parameter for Sending ICMP Redirects by Default

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_send_redirects
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27001-7

To set the runtime status of the net.ipv4.conf.default.send_redirects kernel parameter, run the following command: # sysctl -w net.ipv4.conf.default.send_redirects=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.default.send_redirects = 0

Remediation script:
#
# Set runtime for net.ipv4.conf.default.send_redirects
#
sysctl -q -n -w net.ipv4.conf.default.send_redirects=0

#
# If net.ipv4.conf.default.send_redirects present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv4.conf.default.send_redirects = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.send_redirects /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.default.send_redirects.*/net.ipv4.conf.default.send_redirects = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.default.send_redirects to 0 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.default.send_redirects = 0" >> /etc/sysctl.conf
fi
Disable Kernel Parameter for Sending ICMP Redirects for All Interfaces xccdf_org.ssgproject.content_rule_sysctl_ipv4_all_send_redirects CCE-27004-1

Disable Kernel Parameter for Sending ICMP Redirects for All Interfaces

Rule IDxccdf_org.ssgproject.content_rule_sysctl_ipv4_all_send_redirects
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27004-1

To set the runtime status of the net.ipv4.conf.all.send_redirects kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.send_redirects=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.all.send_redirects = 0

Disable Kernel Parameter for IP Forwarding xccdf_org.ssgproject.content_rule_sysctl_ipv4_ip_forward CCE-26866-4

Disable Kernel Parameter for IP Forwarding

Rule IDxccdf_org.ssgproject.content_rule_sysctl_ipv4_ip_forward
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26866-4

To set the runtime status of the net.ipv4.ip_forward kernel parameter, run the following command: # sysctl -w net.ipv4.ip_forward=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.ip_forward = 0

Disable Kernel Parameter for Accepting Source-Routed Packets for All Interfaces xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_accept_source_route CCE-27037-1

Disable Kernel Parameter for Accepting Source-Routed Packets for All Interfaces

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_accept_source_route
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27037-1

To set the runtime status of the net.ipv4.conf.all.accept_source_route kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.accept_source_route=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.all.accept_source_route = 0

Remediation script:
#
# Set runtime for net.ipv4.conf.all.accept_source_route
#
sysctl -q -n -w net.ipv4.conf.all.accept_source_route=0

#
# If net.ipv4.conf.all.accept_source_route present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv4.conf.all.accept_source_route = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.accept_source_route /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.all.accept_source_route.*/net.ipv4.conf.all.accept_source_route = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.accept_source_route to 0 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.all.accept_source_route = 0" >> /etc/sysctl.conf
fi
Disable Kernel Parameter for Accepting ICMP Redirects for All Interfaces xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_accept_redirects CCE-27027-2

Disable Kernel Parameter for Accepting ICMP Redirects for All Interfaces

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_accept_redirects
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27027-2

To set the runtime status of the net.ipv4.conf.all.accept_redirects kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.accept_redirects=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.all.accept_redirects = 0

Remediation script:
#
# Set runtime for net.ipv4.conf.all.accept_redirects
#
sysctl -q -n -w net.ipv4.conf.all.accept_redirects=0

#
# If net.ipv4.conf.all.accept_redirects present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv4.conf.all.accept_redirects = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.accept_redirects /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.all.accept_redirects.*/net.ipv4.conf.all.accept_redirects = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.accept_redirects to 0 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.all.accept_redirects = 0" >> /etc/sysctl.conf
fi
Disable Kernel Parameter for Accepting Secure Redirects for All Interfaces xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_secure_redirects CCE-26854-0

Disable Kernel Parameter for Accepting Secure Redirects for All Interfaces

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_secure_redirects
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26854-0

To set the runtime status of the net.ipv4.conf.all.secure_redirects kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.secure_redirects=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.all.secure_redirects = 0

Remediation script:
#
# Set runtime for net.ipv4.conf.all.secure_redirects
#
sysctl -q -n -w net.ipv4.conf.all.secure_redirects=0

#
# If net.ipv4.conf.all.secure_redirects present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv4.conf.all.secure_redirects = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.secure_redirects /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.all.secure_redirects.*/net.ipv4.conf.all.secure_redirects = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.secure_redirects to 0 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.all.secure_redirects = 0" >> /etc/sysctl.conf
fi
Enable Kernel Parameter to Log Martian Packets xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_log_martians CCE-27066-0

Enable Kernel Parameter to Log Martian Packets

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_log_martians
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27066-0

To set the runtime status of the net.ipv4.conf.all.log_martians kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.log_martians=1 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.all.log_martians = 1

Remediation script:
#
# Set runtime for net.ipv4.conf.all.log_martians
#
sysctl -q -n -w net.ipv4.conf.all.log_martians=1

#
# If net.ipv4.conf.all.log_martians present in /etc/sysctl.conf, change value to "1"
#	else, add "net.ipv4.conf.all.log_martians = 1" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.log_martians /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.all.log_martians.*/net.ipv4.conf.all.log_martians = 1/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.log_martians to 1 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.all.log_martians = 1" >> /etc/sysctl.conf
fi
Disable Kernel Parameter for Accepting Source-Routed Packets By Default xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_accept_source_route CCE-26983-7

Disable Kernel Parameter for Accepting Source-Routed Packets By Default

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_accept_source_route
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26983-7

To set the runtime status of the net.ipv4.conf.default.accept_source_route kernel parameter, run the following command: # sysctl -w net.ipv4.conf.default.accept_source_route=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.default.accept_source_route = 0

Remediation script:
#
# Set runtime for net.ipv4.conf.default.accept_source_route
#
sysctl -q -n -w net.ipv4.conf.default.accept_source_route=0

#
# If net.ipv4.conf.default.accept_source_route present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv4.conf.default.accept_source_route = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.accept_source_route /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.default.accept_source_route.*/net.ipv4.conf.default.accept_source_route = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.default.accept_source_route to 0 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.default.accept_source_route = 0" >> /etc/sysctl.conf
fi
Disable Kernel Parameter for Accepting ICMP Redirects By Default xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_accept_redirects CCE-27015-7

Disable Kernel Parameter for Accepting ICMP Redirects By Default

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_accept_redirects
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27015-7

To set the runtime status of the net.ipv4.conf.default.accept_redirects kernel parameter, run the following command: # sysctl -w net.ipv4.conf.default.accept_redirects=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.default.accept_redirects = 0

Remediation script:
#
# Set runtime for net.ipv4.conf.default.accept_redirects
#
sysctl -q -n -w net.ipv4.conf.default.accept_redirects=0

#
# If net.ipv4.conf.default.accept_redirects present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv4.conf.default.accept_redirects = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.accept_redirects /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.default.accept_redirects.*/net.ipv4.conf.default.accept_redirects = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.default.accept_redirects to 0 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.default.accept_redirects = 0" >> /etc/sysctl.conf
fi
Disable Kernel Parameter for Accepting Secure Redirects By Default xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_secure_redirects CCE-26831-8

Disable Kernel Parameter for Accepting Secure Redirects By Default

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_secure_redirects
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26831-8

To set the runtime status of the net.ipv4.conf.default.secure_redirects kernel parameter, run the following command: # sysctl -w net.ipv4.conf.default.secure_redirects=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.default.secure_redirects = 0

Remediation script:
#
# Set runtime for net.ipv4.conf.default.secure_redirects
#
sysctl -q -n -w net.ipv4.conf.default.secure_redirects=0

#
# If net.ipv4.conf.default.secure_redirects present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv4.conf.default.secure_redirects = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.secure_redirects /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.default.secure_redirects.*/net.ipv4.conf.default.secure_redirects = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.default.secure_redirects to 0 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.default.secure_redirects = 0" >> /etc/sysctl.conf
fi
Enable Kernel Parameter to Ignore ICMP Broadcast Echo Requests xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_icmp_echo_ignore_broadcasts CCE-26883-9

Enable Kernel Parameter to Ignore ICMP Broadcast Echo Requests

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_icmp_echo_ignore_broadcasts
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26883-9

To set the runtime status of the net.ipv4.icmp_echo_ignore_broadcasts kernel parameter, run the following command: # sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=1 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.icmp_echo_ignore_broadcasts = 1

Remediation script:
#
# Set runtime for net.ipv4.icmp_echo_ignore_broadcasts
#
sysctl -q -n -w net.ipv4.icmp_echo_ignore_broadcasts=1

#
# If net.ipv4.icmp_echo_ignore_broadcasts present in /etc/sysctl.conf, change value to "1"
#	else, add "net.ipv4.icmp_echo_ignore_broadcasts = 1" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.icmp_echo_ignore_broadcasts /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.icmp_echo_ignore_broadcasts.*/net.ipv4.icmp_echo_ignore_broadcasts = 1/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.icmp_echo_ignore_broadcasts to 1 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.icmp_echo_ignore_broadcasts = 1" >> /etc/sysctl.conf
fi
Enable Kernel Parameter to Ignore Bogus ICMP Error Responses xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_icmp_ignore_bogus_error_responses CCE-26993-6

Enable Kernel Parameter to Ignore Bogus ICMP Error Responses

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_icmp_ignore_bogus_error_responses
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26993-6

To set the runtime status of the net.ipv4.icmp_ignore_bogus_error_responses kernel parameter, run the following command: # sysctl -w net.ipv4.icmp_ignore_bogus_error_responses=1 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.icmp_ignore_bogus_error_responses = 1

Remediation script:
#
# Set runtime for net.ipv4.icmp_ignore_bogus_error_responses
#
sysctl -q -n -w net.ipv4.icmp_ignore_bogus_error_responses=1

#
# If net.ipv4.icmp_ignore_bogus_error_responses present in /etc/sysctl.conf, change value to "1"
#	else, add "net.ipv4.icmp_ignore_bogus_error_responses = 1" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.icmp_ignore_bogus_error_responses /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.icmp_ignore_bogus_error_responses.*/net.ipv4.icmp_ignore_bogus_error_responses = 1/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.icmp_ignore_bogus_error_responses to 1 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.icmp_ignore_bogus_error_responses = 1" >> /etc/sysctl.conf
fi
Enable Kernel Parameter to Use TCP Syncookies xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_tcp_syncookies CCE-27053-8

Enable Kernel Parameter to Use TCP Syncookies

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_tcp_syncookies
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27053-8

To set the runtime status of the net.ipv4.tcp_syncookies kernel parameter, run the following command: # sysctl -w net.ipv4.tcp_syncookies=1 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.tcp_syncookies = 1

Remediation script:
#
# Set runtime for net.ipv4.tcp_syncookies
#
sysctl -q -n -w net.ipv4.tcp_syncookies=1

#
# If net.ipv4.tcp_syncookies present in /etc/sysctl.conf, change value to "1"
#	else, add "net.ipv4.tcp_syncookies = 1" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.tcp_syncookies /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.tcp_syncookies.*/net.ipv4.tcp_syncookies = 1/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.tcp_syncookies to 1 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.tcp_syncookies = 1" >> /etc/sysctl.conf
fi
Enable Kernel Parameter to Use Reverse Path Filtering for All Interfaces xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_rp_filter CCE-26979-5

Enable Kernel Parameter to Use Reverse Path Filtering for All Interfaces

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_rp_filter
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26979-5

To set the runtime status of the net.ipv4.conf.all.rp_filter kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.rp_filter=1 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.all.rp_filter = 1

Remediation script:
#
# Set runtime for net.ipv4.conf.all.rp_filter
#
sysctl -q -n -w net.ipv4.conf.all.rp_filter=1

#
# If net.ipv4.conf.all.rp_filter present in /etc/sysctl.conf, change value to "1"
#	else, add "net.ipv4.conf.all.rp_filter = 1" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.rp_filter /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.all.rp_filter.*/net.ipv4.conf.all.rp_filter = 1/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.rp_filter to 1 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.all.rp_filter = 1" >> /etc/sysctl.conf
fi
Enable Kernel Parameter to Use Reverse Path Filtering by Default xccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_rp_filter CCE-26915-9

Enable Kernel Parameter to Use Reverse Path Filtering by Default

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_rp_filter
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26915-9

To set the runtime status of the net.ipv4.conf.default.rp_filter kernel parameter, run the following command: # sysctl -w net.ipv4.conf.default.rp_filter=1 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv4.conf.default.rp_filter = 1

Remediation script:
#
# Set runtime for net.ipv4.conf.default.rp_filter
#
sysctl -q -n -w net.ipv4.conf.default.rp_filter=1

#
# If net.ipv4.conf.default.rp_filter present in /etc/sysctl.conf, change value to "1"
#	else, add "net.ipv4.conf.default.rp_filter = 1" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.rp_filter /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.default.rp_filter.*/net.ipv4.conf.default.rp_filter = 1/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.default.rp_filter to 1 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.default.rp_filter = 1" >> /etc/sysctl.conf
fi
Disable WiFi or Bluetooth in BIOS xccdf_org.ssgproject.content_rule_wireless_disable_in_bios CCE-26878-9

Disable WiFi or Bluetooth in BIOS

Rule IDxccdf_org.ssgproject.content_rule_wireless_disable_in_bios
Result
notchecked
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26878-9

Some systems that include built-in wireless support offer the ability to disable the device through the BIOS. This is system-specific; consult your hardware manual or explore the BIOS setup during boot.

Deactivate Wireless Network Interfaces xccdf_org.ssgproject.content_rule_deactivate_wireless_interfaces CCE-27057-9

Deactivate Wireless Network Interfaces

Rule IDxccdf_org.ssgproject.content_rule_deactivate_wireless_interfaces
Result
pass
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27057-9

Deactivating wireless network interfaces should prevent normal usage of the wireless capability.



First, identify the interfaces available with the command:

# ifconfig -a
Additionally, the following command may be used to determine whether wireless support is included for a particular interface, though this may not always be a clear indicator:
# iwconfig
After identifying any wireless interfaces (which may have names like wlan0, ath0, wifi0, em1 or eth0), deactivate the interface with the command:
# ifdown interface
These changes will only last until the next reboot. To disable the interface for future boots, remove the appropriate interface file from /etc/sysconfig/network-scripts:
# rm /etc/sysconfig/network-scripts/ifcfg-interface

Disable Bluetooth Service xccdf_org.ssgproject.content_rule_service_bluetooth_disabled CCE-27081-9

Disable Bluetooth Service

Rule IDxccdf_org.ssgproject.content_rule_service_bluetooth_disabled
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27081-9

The bluetooth service can be disabled with the following command: # chkconfig bluetooth off

# service bluetooth stop

Remediation script:
#
# Disable bluetooth for all run levels
#
chkconfig --level 0123456 bluetooth off

#
# Stop bluetooth if currently running
#
service bluetooth stop
Disable Bluetooth Kernel Modules xccdf_org.ssgproject.content_rule_kernel_module_bluetooth_disabled CCE-26763-3

Disable Bluetooth Kernel Modules

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_bluetooth_disabled
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26763-3

The kernel's module loading system can be configured to prevent loading of the Bluetooth module. Add the following to the appropriate /etc/modprobe.d configuration file to prevent the loading of the Bluetooth module:

install net-pf-31 /bin/false
install bluetooth /bin/false

Disable IPv6 Networking Support Automatic Loading xccdf_org.ssgproject.content_rule_kernel_module_ipv6_option_disabled CCE-27153-6

Disable IPv6 Networking Support Automatic Loading

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_ipv6_option_disabled
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27153-6

To prevent the IPv6 kernel module (ipv6) from loading the IPv6 networking stack, add the following line to /etc/modprobe.d/disabled.conf (or another file in /etc/modprobe.d):

options ipv6 disable=1
This permits the IPv6 module to be loaded (and thus satisfy other modules that depend on it), while disabling support for the IPv6 protocol.

Disable Interface Usage of IPv6 xccdf_org.ssgproject.content_rule_network_ipv6_disable_interfaces CCE-27161-9

Disable Interface Usage of IPv6

Rule IDxccdf_org.ssgproject.content_rule_network_ipv6_disable_interfaces
Result
notchecked
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27161-9

To disable interface usage of IPv6, add or correct the following lines in /etc/sysconfig/network:

NETWORKING_IPV6=no
IPV6INIT=no

Disable Support for RPC IPv6 xccdf_org.ssgproject.content_rule_network_ipv6_disable_rpc CCE-27232-8

Disable Support for RPC IPv6

Rule IDxccdf_org.ssgproject.content_rule_network_ipv6_disable_rpc
Result
pass
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27232-8

RPC services for NFSv4 try to load transport modules for udp6 and tcp6 by default, even if IPv6 has been disabled in /etc/modprobe.d. To prevent RPC services such as rpc.mountd from attempting to start IPv6 network listeners, remove or comment out the following two lines in /etc/netconfig:

udp6       tpi_clts      v     inet6    udp     -       -
tcp6       tpi_cots_ord  v     inet6    tcp     -       -

Disable Accepting IPv6 Router Advertisements xccdf_org.ssgproject.content_rule_sysctl_net_ipv6_conf_default_accept_ra CCE-27164-3

Disable Accepting IPv6 Router Advertisements

Rule IDxccdf_org.ssgproject.content_rule_sysctl_net_ipv6_conf_default_accept_ra
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27164-3

To set the runtime status of the net.ipv6.conf.default.accept_ra kernel parameter, run the following command: # sysctl -w net.ipv6.conf.default.accept_ra=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv6.conf.default.accept_ra = 0

Remediation script:
#
# Set runtime for net.ipv6.conf.default.accept_ra
#
sysctl -q -n -w net.ipv6.conf.default.accept_ra=0

#
# If net.ipv6.conf.default.accept_ra present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv6.conf.default.accept_ra = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv6.conf.default.accept_ra /etc/sysctl.conf ; then
	sed -i 's/^net.ipv6.conf.default.accept_ra.*/net.ipv6.conf.default.accept_ra = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv6.conf.default.accept_ra to 0 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv6.conf.default.accept_ra = 0" >> /etc/sysctl.conf
fi
Disable Accepting IPv6 Redirects xccdf_org.ssgproject.content_rule_sysctl_ipv6_default_accept_redirects CCE-27166-8

Disable Accepting IPv6 Redirects

Rule IDxccdf_org.ssgproject.content_rule_sysctl_ipv6_default_accept_redirects
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27166-8

To set the runtime status of the net.ipv6.conf.default.accept_redirects kernel parameter, run the following command: # sysctl -w net.ipv6.conf.default.accept_redirects=0 If this is not the system's default value, add the following line to /etc/sysctl.conf: net.ipv6.conf.default.accept_redirects = 0

Manually Assign Global IPv6 Address xccdf_org.ssgproject.content_rule_network_ipv6_static_address CCE-27233-6

Manually Assign Global IPv6 Address

Rule IDxccdf_org.ssgproject.content_rule_network_ipv6_static_address
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27233-6

To manually assign an IP address for an interface, edit the file /etc/sysconfig/network-scripts/ifcfg-interface. Add or correct the following line (substituting the correct IPv6 address):

IPV6ADDR=2001:0DB8::ABCD/64
Manually assigning an IP address is preferable to accepting one from routers or from the network otherwise. The example address here is an IPv6 address reserved for documentation purposes, as defined by RFC3849.

Use Privacy Extensions for Address xccdf_org.ssgproject.content_rule_network_ipv6_privacy_extensions CCE-27154-4

Use Privacy Extensions for Address

Rule IDxccdf_org.ssgproject.content_rule_network_ipv6_privacy_extensions
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27154-4

To introduce randomness into the automatic generation of IPv6 addresses, add or correct the following line in /etc/sysconfig/network-scripts/ifcfg-interface:

IPV6_PRIVACY=rfc3041
Automatically-generated IPv6 addresses are based on the underlying hardware (e.g. Ethernet) address, and so it becomes possible to track a piece of hardware over its lifetime using its traffic. If it is important for a system's IP address to not trivially reveal its hardware address, this setting should be applied.

Manually Assign IPv6 Router Address xccdf_org.ssgproject.content_rule_network_ipv6_default_gateway CCE-27234-4

Manually Assign IPv6 Router Address

Rule IDxccdf_org.ssgproject.content_rule_network_ipv6_default_gateway
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27234-4

Edit the file /etc/sysconfig/network-scripts/ifcfg-interface, and add or correct the following line (substituting your gateway IP as appropriate):

IPV6_DEFAULTGW=2001:0DB8::0001
Router addresses should be manually set and not accepted via any auto-configuration or router advertisement.

Verify ip6tables Enabled if Using IPv6 xccdf_org.ssgproject.content_rule_service_ip6tables_enabled CCE-27006-6

Verify ip6tables Enabled if Using IPv6

Rule IDxccdf_org.ssgproject.content_rule_service_ip6tables_enabled
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27006-6

The ip6tables service can be enabled with the following command: # chkconfig --level 2345 ip6tables on

Remediation script:
#
# Enable ip6tables for all run levels
#
chkconfig --level 0123456 ip6tables on

#
# Start ip6tables if not currently running
#
service ip6tables start
Set Default ip6tables Policy for Incoming Packets xccdf_org.ssgproject.content_rule_set_ip6tables_default_rule CCE-27317-7

Set Default ip6tables Policy for Incoming Packets

Rule IDxccdf_org.ssgproject.content_rule_set_ip6tables_default_rule
Result
notchecked
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27317-7

To set the default policy to DROP (instead of ACCEPT) for the built-in INPUT chain which processes incoming packets, add or correct the following line in /etc/sysconfig/ip6tables:

:INPUT DROP [0:0]

Verify iptables Enabled xccdf_org.ssgproject.content_rule_service_iptables_enabled CCE-27018-1

Verify iptables Enabled

Rule IDxccdf_org.ssgproject.content_rule_service_iptables_enabled
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27018-1

The iptables service can be enabled with the following command: # chkconfig --level 2345 iptables on

Remediation script:
#
# Enable iptables for all run levels
#
chkconfig --level 0123456 iptables on

#
# Start iptables if not currently running
#
service iptables start
Set Default iptables Policy for Incoming Packets xccdf_org.ssgproject.content_rule_set_iptables_default_rule CCE-26444-0

Set Default iptables Policy for Incoming Packets

Rule IDxccdf_org.ssgproject.content_rule_set_iptables_default_rule
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26444-0

To set the default policy to DROP (instead of ACCEPT) for the built-in INPUT chain which processes incoming packets, add or correct the following line in /etc/sysconfig/iptables:

:INPUT DROP [0:0]

Set Default iptables Policy for Forwarded Packets xccdf_org.ssgproject.content_rule_set_iptables_default_rule_forward CCE-27186-6

Set Default iptables Policy for Forwarded Packets

Rule IDxccdf_org.ssgproject.content_rule_set_iptables_default_rule_forward
Result
notchecked
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27186-6

To set the default policy to DROP (instead of ACCEPT) for the built-in FORWARD chain which processes packets that will be forwarded from one interface to another, add or correct the following line in /etc/sysconfig/iptables:

:FORWARD DROP [0:0]

Disable DCCP Support xccdf_org.ssgproject.content_rule_kernel_module_dccp_disabled CCE-26448-1

Disable DCCP Support

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_dccp_disabled
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26448-1

The Datagram Congestion Control Protocol (DCCP) is a relatively new transport layer protocol, designed to support streaming media and telephony. To configure the system to prevent the dccp kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install dccp /bin/false

Remediation script:
echo "install dccp /bin/false" > /etc/modprobe.d/dccp.conf
Disable SCTP Support xccdf_org.ssgproject.content_rule_kernel_module_sctp_disabled CCE-26410-1

Disable SCTP Support

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_sctp_disabled
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26410-1

The Stream Control Transmission Protocol (SCTP) is a transport layer protocol, designed to support the idea of message-oriented communication, with several streams of messages within one connection. To configure the system to prevent the sctp kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install sctp /bin/false

Remediation script:
echo "install sctp /bin/false" > /etc/modprobe.d/sctp.conf
Disable RDS Support xccdf_org.ssgproject.content_rule_kernel_module_rds_disabled CCE-26239-4

Disable RDS Support

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_rds_disabled
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-26239-4

The Reliable Datagram Sockets (RDS) protocol is a transport layer protocol designed to provide reliable high- bandwidth, low-latency communications between nodes in a cluster. To configure the system to prevent the rds kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install rds /bin/false

Remediation script:
echo "install rds /bin/false" > /etc/modprobe.d/rds.conf
Disable TIPC Support xccdf_org.ssgproject.content_rule_kernel_module_tipc_disabled CCE-26696-5

Disable TIPC Support

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_tipc_disabled
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26696-5

The Transparent Inter-Process Communication (TIPC) protocol is designed to provide communications between nodes in a cluster. To configure the system to prevent the tipc kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install tipc /bin/false

Remediation script:
echo "install tipc /bin/false" > /etc/modprobe.d/tipc.conf
Install openswan Package xccdf_org.ssgproject.content_rule_package_openswan_installed CCE-27626-1

Install openswan Package

Rule IDxccdf_org.ssgproject.content_rule_package_openswan_installed
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27626-1

The Openswan package provides an implementation of IPsec and IKE, which permits the creation of secure tunnels over untrusted networks. The openswan package can be installed with the following command: # yum install openswan

Remediation script:
yum -y install openswan
Disable Zeroconf Networking xccdf_org.ssgproject.content_rule_network_disable_zeroconf CCE-27151-0

Disable Zeroconf Networking

Rule IDxccdf_org.ssgproject.content_rule_network_disable_zeroconf
Result
fail
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27151-0

Zeroconf networking allows the system to assign itself an IP address and engage in IP communication without a statically-assigned address or even a DHCP server. Automatic address assignment via Zeroconf (or DHCP) is not recommended. To disable Zeroconf automatic route assignment in the 169.254.0.0 subnet, add or correct the following line in /etc/sysconfig/network:

NOZEROCONF=yes

Remediation script:
echo "NOZEROCONF=yes" >> /etc/sysconfig/network
Ensure System is Not Acting as a Network Sniffer xccdf_org.ssgproject.content_rule_network_sniffer_disabled CCE-27152-8

Ensure System is Not Acting as a Network Sniffer

Rule IDxccdf_org.ssgproject.content_rule_network_sniffer_disabled
Result
pass
Time2014-07-17T13:53:44
Severitylow
Identifiers
  • CCE-27152-8

The system should not be acting as a network sniffer, which can capture all traffic on the network to which it is connected. Run the following to determine if any interface is running in promiscuous mode:

$ ip link | grep PROMISC

Ensure Log Files Are Owned By Appropriate User xccdf_org.ssgproject.content_rule_userowner_rsyslog_files CCE-26812-8

Ensure Log Files Are Owned By Appropriate User

Rule IDxccdf_org.ssgproject.content_rule_userowner_rsyslog_files
Result
fail
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26812-8

The owner of all log files written by rsyslog should be root. These log files are determined by the second part of each Rule line in /etc/rsyslog.conf and typically all appear in /var/log. For each log file LOGFILE referenced in /etc/rsyslog.conf, run the following command to inspect the file's owner:

$ ls -l LOGFILE
If the owner is not root, run the following command to correct this:
# chown root LOGFILE

Ensure Log Files Are Owned By Appropriate Group xccdf_org.ssgproject.content_rule_groupowner_rsyslog_files CCE-26821-9

Ensure Log Files Are Owned By Appropriate Group

Rule IDxccdf_org.ssgproject.content_rule_groupowner_rsyslog_files
Result
unknown
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26821-9

The group-owner of all log files written by rsyslog should be root. These log files are determined by the second part of each Rule line in /etc/rsyslog.conf and typically all appear in /var/log. For each log file LOGFILE referenced in /etc/rsyslog.conf, run the following command to inspect the file's group owner:

$ ls -l LOGFILE
If the owner is not root, run the following command to correct this:
# chgrp root LOGFILE

Ensure System Log Files Have Correct Permissions xccdf_org.ssgproject.content_rule_rsyslog_file_permissions CCE-27190-8

Ensure System Log Files Have Correct Permissions

Rule IDxccdf_org.ssgproject.content_rule_rsyslog_file_permissions
Result
unknown
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-27190-8

The file permissions for all log files written by rsyslog should be set to 600, or more restrictive. These log files are determined by the second part of each Rule line in /etc/rsyslog.conf and typically all appear in /var/log. For each log file LOGFILE referenced in /etc/rsyslog.conf, run the following command to inspect the file's permissions:

$ ls -l LOGFILE
If the permissions are not 600 or more restrictive, run the following command to correct this:
# chmod 0600 LOGFILE

Ensure Logs Sent To Remote Host xccdf_org.ssgproject.content_rule_rsyslog_send_messages_to_logserver CCE-26801-1

Ensure Logs Sent To Remote Host

Rule IDxccdf_org.ssgproject.content_rule_rsyslog_send_messages_to_logserver
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-26801-1

To configure rsyslog to send logs to a remote log server, open /etc/rsyslog.conf and read and understand the last section of the file, which describes the multiple directives necessary to activate remote logging. Along with these other directives, the system can be configured to forward its logs to a particular log server by adding or correcting one of the following lines, substituting loghost.example.com appropriately. The choice of protocol depends on the environment of the system; although TCP and RELP provide more reliable message delivery, they may not be supported in all environments.

To use UDP for log message delivery:

*.* @loghost.example.com


To use TCP for log message delivery:
*.* @@loghost.example.com


To use RELP for log message delivery:
*.* :omrelp:loghost.example.com

Ensure rsyslog Does Not Accept Remote Messages Unless Acting As Log Server xccdf_org.ssgproject.content_rule_rsyslog_accept_remote_messages_none CCE-26803-7

Ensure rsyslog Does Not Accept Remote Messages Unless Acting As Log Server

Rule IDxccdf_org.ssgproject.content_rule_rsyslog_accept_remote_messages_none
Result
pass
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-26803-7

The rsyslog daemon should not accept remote messages unless the system acts as a log server. To ensure that it is not listening on the network, ensure the following lines are not found in /etc/rsyslog.conf:

$ModLoad imtcp
$InputTCPServerRun port
$ModLoad imudp
$UDPServerRun port
$ModLoad imrelp
$InputRELPServerRun port

Enable rsyslog to Accept Messages via TCP, if Acting As Log Server xccdf_org.ssgproject.content_rule_rsyslog_accept_remote_messages_tcp CCE-27235-1

Enable rsyslog to Accept Messages via TCP, if Acting As Log Server

Rule IDxccdf_org.ssgproject.content_rule_rsyslog_accept_remote_messages_tcp
Result
notchecked
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27235-1

The rsyslog daemon should not accept remote messages unless the system acts as a log server. If the system needs to act as a central log server, add the following lines to /etc/rsyslog.conf to enable reception of messages over TCP:

$ModLoad imtcp
$InputTCPServerRun 514

Enable rsyslog to Accept Messages via UDP, if Acting As Log Server xccdf_org.ssgproject.content_rule_rsyslog_accept_remote_messages_udp CCE-27236-9

Enable rsyslog to Accept Messages via UDP, if Acting As Log Server

Rule IDxccdf_org.ssgproject.content_rule_rsyslog_accept_remote_messages_udp
Result
notchecked
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27236-9

The rsyslog daemon should not accept remote messages unless the system acts as a log server. If the system needs to act as a central log server, add the following lines to /etc/rsyslog.conf to enable reception of messages over UDP:

$ModLoad imudp
$UDPServerRun 514

Ensure Logrotate Runs Periodically xccdf_org.ssgproject.content_rule_ensure_logrotate_activated CCE-27014-0

Ensure Logrotate Runs Periodically

Rule IDxccdf_org.ssgproject.content_rule_ensure_logrotate_activated
Result
pass
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27014-0

The logrotate utility allows for the automatic rotation of log files. The frequency of rotation is specified in /etc/logrotate.conf, which triggers a cron task. To configure logrotate to run daily, add or correct the following line in /etc/logrotate.conf:

# rotate log files frequency
daily

Configure Logwatch HostLimit Line xccdf_org.ssgproject.content_rule_configure_logwatch_hostlimit CCE-27197-3

Configure Logwatch HostLimit Line

Rule IDxccdf_org.ssgproject.content_rule_configure_logwatch_hostlimit
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27197-3

On a central logserver, you want Logwatch to summarize all syslog entries, including those which did not originate on the logserver itself. The HostLimit setting tells Logwatch to report on all hosts, not just the one on which it is running.

 HostLimit = no 

Configure Logwatch SplitHosts Line xccdf_org.ssgproject.content_rule_configure_logwatch_splithosts CCE-27069-4

Configure Logwatch SplitHosts Line

Rule IDxccdf_org.ssgproject.content_rule_configure_logwatch_splithosts
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27069-4

If SplitHosts is set, Logwatch will separate entries by hostname. This makes the report longer but significantly more usable. If it is not set, then Logwatch will not report which host generated a given log entry, and that information is almost always necessary

 SplitHosts = yes 

Ensure rsyslog is Installed xccdf_org.ssgproject.content_rule_package_rsyslog_installed CCE-26809-4

Ensure rsyslog is Installed

Rule IDxccdf_org.ssgproject.content_rule_package_rsyslog_installed
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26809-4

Rsyslog is installed by default. The rsyslog package can be installed with the following command: # yum install rsyslog

Remediation script:
yum -y install rsyslog
Enable rsyslog Service xccdf_org.ssgproject.content_rule_service_rsyslog_enabled CCE-26807-8

Enable rsyslog Service

Rule IDxccdf_org.ssgproject.content_rule_service_rsyslog_enabled
Result
pass
Time2014-07-17T13:53:44
Severitymedium
Identifiers
  • CCE-26807-8

The rsyslog service provides syslog-style logging by default on RHEL 6. The rsyslog service can be enabled with the following command: # chkconfig --level 2345 rsyslog on

Remediation script:
#
# Enable rsyslog for all run levels
#
chkconfig --level 0123456 rsyslog on

#
# Start rsyslog if not currently running
#
service rsyslog start
Disable Logwatch on Clients if a Logserver Exists xccdf_org.ssgproject.content_rule_disable_logwatch_for_logserver CCE-27162-7

Disable Logwatch on Clients if a Logserver Exists

Rule IDxccdf_org.ssgproject.content_rule_disable_logwatch_for_logserver
Result
notchecked
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27162-7

Does your site have a central logserver which has been configured to report on logs received from all systems? If so:

 
# rm /etc/cron.daily/0logwatch 
If no logserver exists, it will be necessary for each machine to run Logwatch individually. Using a central logserver provides the security and reliability benefits discussed earlier, and also makes monitoring logs easier and less time-intensive for administrators.

Configure auditd Number of Logs Retained xccdf_org.ssgproject.content_rule_configure_auditd_num_logs CCE-27522-2

Configure auditd Number of Logs Retained

Rule IDxccdf_org.ssgproject.content_rule_configure_auditd_num_logs
Result
pass
Time2014-07-17T13:53:45
Severitymedium
Identifiers
  • CCE-27522-2

Determine how many log files auditd should retain when it rotates logs. Edit the file /etc/audit/auditd.conf. Add or modify the following line, substituting NUMLOGS with the correct value:

num_logs = NUMLOGS
Set the value to 5 for general-purpose systems. Note that values less than 2 result in no log rotation.

Configure auditd Max Log File Size xccdf_org.ssgproject.content_rule_configure_auditd_max_log_file CCE-27550-3

Configure auditd Max Log File Size

Rule IDxccdf_org.ssgproject.content_rule_configure_auditd_max_log_file
Result
pass
Time2014-07-17T13:53:45
Severitymedium
Identifiers
  • CCE-27550-3

Determine the amount of audit data (in megabytes) which should be retained in each log file. Edit the file /etc/audit/auditd.conf. Add or modify the following line, substituting the correct value for STOREMB:

max_log_file = STOREMB
Set the value to 6 (MB) or higher for general-purpose systems. Larger values, of course, support retention of even more audit data.

Configure auditd max_log_file_action Upon Reaching Maximum Log Size xccdf_org.ssgproject.content_rule_configure_auditd_max_log_file_action CCE-27237-7

Configure auditd max_log_file_action Upon Reaching Maximum Log Size

Rule IDxccdf_org.ssgproject.content_rule_configure_auditd_max_log_file_action
Result
pass
Time2014-07-17T13:53:45
Severitymedium
Identifiers
  • CCE-27237-7

The default action to take when the logs reach their maximum size is to rotate the log files, discarding the oldest one. To configure the action taken by auditd, add or correct the line in /etc/audit/auditd.conf:

max_log_file_action = ACTION
Possible values for ACTION are described in the auditd.conf man page. These include:
  • ignore
  • syslog
  • suspend
  • rotate
  • keep_logs
Set the ACTION to rotate to ensure log rotation occurs. This is the default. The setting is case-insensitive.

Configure auditd space_left Action on Low Disk Space xccdf_org.ssgproject.content_rule_auditd_data_retention_space_left_action CCE-27238-5

Configure auditd space_left Action on Low Disk Space

Rule IDxccdf_org.ssgproject.content_rule_auditd_data_retention_space_left_action
Result
fail
Time2014-07-17T13:53:45
Severitymedium
Identifiers
  • CCE-27238-5

The auditd service can be configured to take an action when disk space starts to run low. Edit the file /etc/audit/auditd.conf. Modify the following line, substituting ACTION appropriately:

space_left_action = ACTION
Possible values for ACTION are described in the auditd.conf man page. These include:
  • ignore
  • syslog
  • email
  • exec
  • suspend
  • single
  • halt
Set this to email (instead of the default, which is suspend) as it is more likely to get prompt attention. Acceptable values also include suspend, single, and halt.

Configure auditd admin_space_left Action on Low Disk Space xccdf_org.ssgproject.content_rule_auditd_data_retention_admin_space_left_action CCE-27239-3

Configure auditd admin_space_left Action on Low Disk Space

Rule IDxccdf_org.ssgproject.content_rule_auditd_data_retention_admin_space_left_action
Result
fail
Time2014-07-17T13:53:45
Severitymedium
Identifiers
  • CCE-27239-3

The auditd service can be configured to take an action when disk space is running low but prior to running out of space completely. Edit the file /etc/audit/auditd.conf. Add or modify the following line, substituting ACTION appropriately:

admin_space_left_action = ACTION
Set this value to single to cause the system to switch to single user mode for corrective action. Acceptable values also include suspend and halt. For certain systems, the need for availability outweighs the need to log all actions, and a different setting should be determined. Details regarding all possible values for ACTION are described in the auditd.conf man page.

Remediation script:
var_auditd_admin_space_left_action="single"
grep -q ^admin_space_left_action /etc/audit/auditd.conf && \
  sed -i "s/admin_space_left_action.*/admin_space_left_action = $var_auditd_admin_space_left_action/g" /etc/audit/auditd.conf
if ! [ $? -eq 0 ]; then
    echo "admin_space_left_action = $var_auditd_admin_space_left_action" >> /etc/audit/auditd.conf
fi
Configure auditd mail_acct Action on Low Disk Space xccdf_org.ssgproject.content_rule_auditd_data_retention_action_mail_acct CCE-27241-9

Configure auditd mail_acct Action on Low Disk Space

Rule IDxccdf_org.ssgproject.content_rule_auditd_data_retention_action_mail_acct
Result
pass
Time2014-07-17T13:53:45
Severitymedium
Identifiers
  • CCE-27241-9

The auditd service can be configured to send email to a designated account in certain situations. Add or correct the following line in /etc/audit/auditd.conf to ensure that administrators are notified via email for those situations:

action_mail_acct = root

Configure auditd to use audispd plugin xccdf_org.ssgproject.content_rule_configure_auditd_audispd CCE-26933-2

Configure auditd to use audispd plugin

Rule IDxccdf_org.ssgproject.content_rule_configure_auditd_audispd
Result
notchecked
Time2014-07-17T13:53:45
Severitymedium
Identifiers
  • CCE-26933-2

To configure the auditd service to use the audispd plugin, set the active line in /etc/audisp/plugins.d/syslog.conf to yes. Restart the auditdservice:

# service auditd restart

Record attempts to alter time through adjtimex xccdf_org.ssgproject.content_rule_audit_rules_time_adjtimex CCE-26242-8

Record attempts to alter time through adjtimex

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_time_adjtimex
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-26242-8

On a 32-bit system, add the following to /etc/audit/audit.rules:

# audit_time_rules
-a always,exit -F arch=b32 -S adjtimex -k audit_time_rules
On a 64-bit system, add the following to /etc/audit/audit.rules:
# audit_time_rules
-a always,exit -F arch=b64 -S adjtimex -k audit_time_rules
The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport. Multiple system calls can be defined on the same line to save space if desired, but is not required. See an example of multiple combined syscalls:
-a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime 
-k audit_time_rules

Record attempts to alter time through settimeofday xccdf_org.ssgproject.content_rule_audit_rules_time_settimeofday CCE-27203-9

Record attempts to alter time through settimeofday

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_time_settimeofday
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27203-9

On a 32-bit system, add the following to /etc/audit/audit.rules:

# audit_time_rules
-a always,exit -F arch=b32 -S settimeofday -k audit_time_rules
On a 64-bit system, add the following to /etc/audit/audit.rules:
# audit_time_rules
-a always,exit -F arch=b64 -S settimeofday -k audit_time_rules
The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport. Multiple system calls can be defined on the same line to save space if desired, but is not required. See an example of multiple combined syscalls:
-a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime 
-k audit_time_rules

Record Attempts to Alter Time Through stime xccdf_org.ssgproject.content_rule_audit_rules_time_stime CCE-27169-2

Record Attempts to Alter Time Through stime

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_time_stime
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27169-2

On a 32-bit system, add the following to /etc/audit/audit.rules:

# audit_time_rules
-a always,exit -F arch=b32 -S stime -k audit_time_rules
On a 64-bit system, the "-S stime" is not necessary. The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport. Multiple system calls can be defined on the same line to save space if desired, but is not required. See an example of multiple combined syscalls:
-a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime 
-k audit_time_rules

Record Attempts to Alter Time Through clock_settime xccdf_org.ssgproject.content_rule_audit_rules_time_clock_settime CCE-27170-0

Record Attempts to Alter Time Through clock_settime

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_time_clock_settime
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27170-0

On a 32-bit system, add the following to /etc/audit/audit.rules:

# audit_time_rules
-a always,exit -F arch=b32 -S clock_settime -k audit_time_rules
On a 64-bit system, add the following to /etc/audit/audit.rules:
# audit_time_rules
-a always,exit -F arch=b64 -S clock_settime -k audit_time_rules
The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport. Multiple system calls can be defined on the same line to save space if desired, but is not required. See an example of multiple combined syscalls:
-a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime 
-k audit_time_rules

Record Attempts to Alter the localtime File xccdf_org.ssgproject.content_rule_audit_rules_time_watch_localtime CCE-27172-6

Record Attempts to Alter the localtime File

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_time_watch_localtime
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27172-6

Add the following to /etc/audit/audit.rules:

-w /etc/localtime -p wa -k audit_time_rules
The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport and should always be used.

Record Events that Modify the System's Discretionary Access Controls - chmod xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_chmod CCE-26280-8

Record Events that Modify the System's Discretionary Access Controls - chmod

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_chmod
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-26280-8

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S chmod -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S chmod  -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - chown xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_chown CCE-27173-4

Record Events that Modify the System's Discretionary Access Controls - chown

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_chown
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27173-4

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S chown -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S chown -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - fchmod xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchmod CCE-27174-2

Record Events that Modify the System's Discretionary Access Controls - fchmod

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchmod
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27174-2

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S fchmod -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S fchmod -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - fchmodat xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchmodat CCE-27175-9

Record Events that Modify the System's Discretionary Access Controls - fchmodat

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchmodat
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27175-9

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S fchmodat -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S fchmodat -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - fchown xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchown CCE-27177-5

Record Events that Modify the System's Discretionary Access Controls - fchown

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchown
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27177-5

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S fchown -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S fchown -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - fchownat xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchownat CCE-27178-3

Record Events that Modify the System's Discretionary Access Controls - fchownat

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchownat
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27178-3

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S fchownat -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S fchownat -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - fremovexattr xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fremovexattr CCE-27179-1

Record Events that Modify the System's Discretionary Access Controls - fremovexattr

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fremovexattr
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27179-1

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - fsetxattr xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fsetxattr CCE-27180-9

Record Events that Modify the System's Discretionary Access Controls - fsetxattr

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fsetxattr
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27180-9

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S fsetxattr -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S fsetxattr -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - lchown xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_lchown CCE-27181-7

Record Events that Modify the System's Discretionary Access Controls - lchown

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_lchown
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27181-7

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S lchown -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S lchown -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - lremovexattr xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_lremovexattr CCE-27182-5

Record Events that Modify the System's Discretionary Access Controls - lremovexattr

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_lremovexattr
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27182-5

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S lremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S lremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - lsetxattr xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_lsetxattr CCE-27183-3

Record Events that Modify the System's Discretionary Access Controls - lsetxattr

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_lsetxattr
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27183-3

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S lsetxattr -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S lsetxattr -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - removexattr xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_removexattr CCE-27184-1

Record Events that Modify the System's Discretionary Access Controls - removexattr

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_removexattr
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27184-1

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S removexattr -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S removexattr -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify the System's Discretionary Access Controls - setxattr xccdf_org.ssgproject.content_rule_audit_rules_dac_modification_setxattr CCE-27185-8

Record Events that Modify the System's Discretionary Access Controls - setxattr

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_setxattr
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27185-8

At a minimum the audit system should collect file permission changes for all users and root. Add the following to /etc/audit/audit.rules:

-a always,exit -F arch=b32 -S setxattr -F auid>=500 -F auid!=4294967295 -k perm_mod
If the system is 64 bit then also add the following:
-a always,exit -F arch=b64 -S setxattr -F auid>=500 -F auid!=4294967295 -k perm_mod

Record Events that Modify User/Group Information xccdf_org.ssgproject.content_rule_audit_account_changes CCE-26664-3

Record Events that Modify User/Group Information

Rule IDxccdf_org.ssgproject.content_rule_audit_account_changes
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-26664-3

Add the following to /etc/audit/audit.rules, in order to capture events that modify account changes:

# audit_account_changes
-w /etc/group -p wa -k audit_account_changes
-w /etc/passwd -p wa -k audit_account_changes
-w /etc/gshadow -p wa -k audit_account_changes
-w /etc/shadow -p wa -k audit_account_changes
-w /etc/security/opasswd -p wa -k audit_account_changes

Record Events that Modify the System's Network Environment xccdf_org.ssgproject.content_rule_audit_network_modifications CCE-26648-6

Record Events that Modify the System's Network Environment

Rule IDxccdf_org.ssgproject.content_rule_audit_network_modifications
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-26648-6

Add the following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:

# audit_network_modifications
-a always,exit -F arch=ARCH -S sethostname -S setdomainname -k audit_network_modifications
-w /etc/issue -p wa -k audit_network_modifications
-w /etc/issue.net -p wa -k audit_network_modifications
-w /etc/hosts -p wa -k audit_network_modifications
-w /etc/sysconfig/network -p wa -k audit_network_modifications

System Audit Logs Must Have Mode 0640 or Less Permissive xccdf_org.ssgproject.content_rule_file_permissions_var_log_audit CCE-27243-5

System Audit Logs Must Have Mode 0640 or Less Permissive

Rule IDxccdf_org.ssgproject.content_rule_file_permissions_var_log_audit
Result
pass
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27243-5

Change the mode of the audit log files with the following command:

# chmod 0640 audit_file

System Audit Logs Must Be Owned By Root xccdf_org.ssgproject.content_rule_audit_logs_rootowner CCE-27244-3

System Audit Logs Must Be Owned By Root

Rule IDxccdf_org.ssgproject.content_rule_audit_logs_rootowner
Result
pass
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-27244-3

To properly set the owner of /var/log, run the command: # chown root /var/log

Record Events that Modify the System's Mandatory Access Controls xccdf_org.ssgproject.content_rule_audit_mac_changes CCE-26657-7

Record Events that Modify the System's Mandatory Access Controls

Rule IDxccdf_org.ssgproject.content_rule_audit_mac_changes
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-26657-7

Add the following to /etc/audit/audit.rules:

-w /etc/selinux/ -p wa -k MAC-policy

Record Attempts to Alter Logon and Logout Events xccdf_org.ssgproject.content_rule_audit_manual_logon_edits CCE-26691-6

Record Attempts to Alter Logon and Logout Events

Rule IDxccdf_org.ssgproject.content_rule_audit_manual_logon_edits
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-26691-6

The audit system already collects login info for all users and root. To watch for attempted manual edits of files involved in storing logon events, add the following to /etc/audit/audit.rules:

-w /var/log/faillog -p wa -k logins 
-w /var/log/lastlog -p wa -k logins

Record Attempts to Alter Process and Session Initiation Information xccdf_org.ssgproject.content_rule_audit_manual_session_edits CCE-26610-6

Record Attempts to Alter Process and Session Initiation Information

Rule IDxccdf_org.ssgproject.content_rule_audit_manual_session_edits
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-26610-6

The audit system already collects process information for all users and root. To watch for attempted manual edits of files involved in storing such process information, add the following to /etc/audit/audit.rules:

-w /var/run/utmp -p wa -k session
-w /var/log/btmp -p wa -k session
-w /var/log/wtmp -p wa -k session

Ensure auditd Collects Unauthorized Access Attempts to Files (unsuccessful) xccdf_org.ssgproject.content_rule_audit_rules_unsuccessful_file_modification CCE-26712-0

Ensure auditd Collects Unauthorized Access Attempts to Files (unsuccessful)

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_unsuccessful_file_modification
Result
fail
Time2014-07-17T13:53:45
Severitylow
Identifiers
  • CCE-26712-0

At a minimum the audit system should collect unauthorized file accesses for all users and root. Add the following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:

-a always,exit -F arch=ARCH -S creat -S open -S openat -S truncate -S ftruncate -F exit=-EACCES -F auid>=500 -F auid!=4294967295 -k access
-a always,exit -F arch=ARCH -S creat -S open -S openat -S truncate -S ftruncate -F exit=-EPERM -F auid>=500 -F auid!=4294967295 -k access

Ensure auditd Collects Information on the Use of Privileged Commands xccdf_org.ssgproject.content_rule_audit_privileged_commands CCE-26457-2

Ensure auditd Collects Information on the Use of Privileged Commands

Rule IDxccdf_org.ssgproject.content_rule_audit_privileged_commands
Result
fail
Time2014-07-17T13:53:53
Severitylow
Identifiers
  • CCE-26457-2

At a minimum the audit system should collect the execution of privileged commands for all users and root. To find the relevant setuid / setgid programs:

# find / -xdev -type f -perm -4000 -o -perm -2000 2>/dev/null
Then, for each setuid / setgid program on the system, add a line of the following form to /etc/audit/audit.rules, where SETUID_PROG_PATH is the full path to each setuid / setgid program in the list:
-a always,exit -F path=SETUID_PROG_PATH -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged

Ensure auditd Collects Information on Exporting to Media (successful) xccdf_org.ssgproject.content_rule_audit_media_exports CCE-26573-6

Ensure auditd Collects Information on Exporting to Media (successful)

Rule IDxccdf_org.ssgproject.content_rule_audit_media_exports
Result
fail
Time2014-07-17T13:53:53
Severitylow
Identifiers
  • CCE-26573-6

At a minimum the audit system should collect media exportation events for all users and root. Add the following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:

-a always,exit -F arch=ARCH -S mount -F auid>=500 -F auid!=4294967295 -k export

Ensure auditd Collects File Deletion Events by User xccdf_org.ssgproject.content_rule_audit_rules_file_deletion_events CCE-26651-0

Ensure auditd Collects File Deletion Events by User

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_file_deletion_events
Result
fail
Time2014-07-17T13:53:53
Severitylow
Identifiers
  • CCE-26651-0

At a minimum the audit system should collect file deletion events for all users and root. Add the following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:

-a always,exit -F arch=ARCH -S rmdir -S unlink -S unlinkat -S rename -S renameat -F auid>=500 -F auid!=4294967295 -k delete

Ensure auditd Collects System Administrator Actions xccdf_org.ssgproject.content_rule_audit_sysadmin_actions CCE-26662-7

Ensure auditd Collects System Administrator Actions

Rule IDxccdf_org.ssgproject.content_rule_audit_sysadmin_actions
Result
fail
Time2014-07-17T13:53:53
Severitylow
Identifiers
  • CCE-26662-7

At a minimum the audit system should collect administrator actions for all users and root. Add the following to /etc/audit/audit.rules:

-w /etc/sudoers -p wa -k actions

Ensure auditd Collects Information on Kernel Module Loading and Unloading xccdf_org.ssgproject.content_rule_audit_kernel_module_loading CCE-26611-4

Ensure auditd Collects Information on Kernel Module Loading and Unloading

Rule IDxccdf_org.ssgproject.content_rule_audit_kernel_module_loading
Result
fail
Time2014-07-17T13:53:53
Severitylow
Identifiers
  • CCE-26611-4

Add the following to /etc/audit/audit.rules in order to capture kernel module loading and unloading events, setting ARCH to either b32 or b64 as appropriate for your system:

-w /sbin/insmod -p x -k modules
-w /sbin/rmmod -p x -k modules
-w /sbin/modprobe -p x -k modules
-a always,exit -F arch=ARCH -S init_module -S delete_module -k modules

Make the auditd Configuration Immutable xccdf_org.ssgproject.content_rule_audit_config_immutable CCE-26612-2

Make the auditd Configuration Immutable

Rule IDxccdf_org.ssgproject.content_rule_audit_config_immutable
Result
fail
Time2014-07-17T13:53:53
Severitylow
Identifiers
  • CCE-26612-2

Add the following to /etc/audit/audit.rules in order to make the configuration immutable:

-e 2
With this setting, a reboot will be required to change any audit rules.

Enable auditd Service xccdf_org.ssgproject.content_rule_service_auditd_enabled CCE-27058-7

Enable auditd Service

Rule IDxccdf_org.ssgproject.content_rule_service_auditd_enabled
Result
pass
Time2014-07-17T13:53:45
Severitymedium
Identifiers
  • CCE-27058-7

The auditd service is an essential userspace component of the Linux Auditing System, as it is responsible for writing audit records to disk. The auditd service can be enabled with the following command: # chkconfig --level 2345 auditd on

Remediation script:
#
# Enable auditd for all run levels
#
chkconfig --level 0123456 auditd on

#
# Start auditd if not currently running
#
service auditd start
Enable Auditing for Processes Which Start Prior to the Audit Daemon xccdf_org.ssgproject.content_rule_enable_auditd_bootloader CCE-26785-6

Enable Auditing for Processes Which Start Prior to the Audit Daemon

Rule IDxccdf_org.ssgproject.content_rule_enable_auditd_bootloader
Result
fail
Time2014-07-17T13:53:45
Severitymedium
Identifiers
  • CCE-26785-6

To ensure all processes can be audited, even those which start prior to the audit daemon, add the argument audit=1 to the kernel line in /etc/grub.conf, in the manner below:

kernel /vmlinuz-version ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet audit=1

Disable xinetd Service xccdf_org.ssgproject.content_rule_disable_xinetd CCE-27046-2

Disable xinetd Service

Rule IDxccdf_org.ssgproject.content_rule_disable_xinetd
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27046-2

The xinetd service can be disabled with the following command: # chkconfig xinetd off

Uninstall xinetd Package xccdf_org.ssgproject.content_rule_uninstall_xinetd CCE-27005-8

Uninstall xinetd Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_xinetd
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27005-8

The xinetd package can be uninstalled with the following command:

# yum erase xinetd

Remediation script:
if rpm -qa | grep -q xinetd; then
	yum -y remove xinetd
fi
Disable telnet Service xccdf_org.ssgproject.content_rule_disable_telnet_service CCE-26836-7

Disable telnet Service

Rule IDxccdf_org.ssgproject.content_rule_disable_telnet_service
Result
pass
Time2014-07-17T13:53:54
Severityhigh
Identifiers
  • CCE-26836-7

The telnet service can be disabled with the following command: # chkconfig telnet off

Uninstall telnet-server Package xccdf_org.ssgproject.content_rule_uninstall_telnet_server CCE-27073-6

Uninstall telnet-server Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_telnet_server
Result
pass
Time2014-07-17T13:53:54
Severityhigh
Identifiers
  • CCE-27073-6

The telnet-server package can be uninstalled with the following command:

# yum erase telnet-server

Remediation script:
if rpm -qa | grep -q telnet-server; then
	yum -y remove telnet-server
fi
Remove telnet Clients xccdf_org.ssgproject.content_rule_package_telnet_removed CCE-

Remove telnet Clients

Rule IDxccdf_org.ssgproject.content_rule_package_telnet_removed
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-

The telnet client allows users to start connections to other systems via the telnet protocol.

Uninstall rsh-server Package xccdf_org.ssgproject.content_rule_uninstall_rsh-server CCE-27062-9

Uninstall rsh-server Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_rsh-server
Result
pass
Time2014-07-17T13:53:54
Severityhigh
Identifiers
  • CCE-27062-9

The rsh-server package can be uninstalled with the following command:

# yum erase rsh-server

Disable rexec Service xccdf_org.ssgproject.content_rule_disable_rexec CCE-27208-8

Disable rexec Service

Rule IDxccdf_org.ssgproject.content_rule_disable_rexec
Result
pass
Time2014-07-17T13:53:54
Severityhigh
Identifiers
  • CCE-27208-8

The rexec service, which is available with the rsh-server package and runs as a service through xinetd, should be disabled. The rexec service can be disabled with the following command: # chkconfig rexec off

Disable rsh Service xccdf_org.ssgproject.content_rule_disable_rsh CCE-26994-4

Disable rsh Service

Rule IDxccdf_org.ssgproject.content_rule_disable_rsh
Result
pass
Time2014-07-17T13:53:54
Severityhigh
Identifiers
  • CCE-26994-4

The rsh service, which is available with the rsh-server package and runs as a service through xinetd, should be disabled. The rsh service can be disabled with the following command: # chkconfig rsh off

Uninstal rsh Package xccdf_org.ssgproject.content_rule_package_rsh_removed CCE-

Uninstal rsh Package

Rule IDxccdf_org.ssgproject.content_rule_package_rsh_removed
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-

The rsh package contains the client commands for the rsh services

Disable rlogin Service xccdf_org.ssgproject.content_rule_disable_rlogin CCE-26865-6

Disable rlogin Service

Rule IDxccdf_org.ssgproject.content_rule_disable_rlogin
Result
pass
Time2014-07-17T13:53:54
Severityhigh
Identifiers
  • CCE-26865-6

The rlogin service, which is available with the rsh-server package and runs as a service through xinetd, should be disabled. The rlogin service can be disabled with the following command: # chkconfig rlogin off

Remove Rsh Trust Files xccdf_org.ssgproject.content_rule_no_rsh_trust_files CCE-27270-8

Remove Rsh Trust Files

Rule IDxccdf_org.ssgproject.content_rule_no_rsh_trust_files
Result
pass
Time2014-07-17T13:53:54
Severityhigh
Identifiers
  • CCE-27270-8

The files /etc/hosts.equiv and ~/.rhosts (in each user's home directory) list remote hosts and users that are trusted by the local system when using the rshd daemon. To remove these files, run the following command to delete them from any location:

# rm /etc/hosts.equiv
$ rm ~/.rhosts

Uninstall ypserv Package xccdf_org.ssgproject.content_rule_uninstall_ypserv CCE-27079-3

Uninstall ypserv Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_ypserv
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27079-3

The ypserv package can be uninstalled with the following command:

# yum erase ypserv

Remediation script:
if rpm -qa | grep -q ypserv; then
	yum -y remove ypserv
fi
Disable ypbind Service xccdf_org.ssgproject.content_rule_disable_ypbind CCE-26894-6

Disable ypbind Service

Rule IDxccdf_org.ssgproject.content_rule_disable_ypbind
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-26894-6

The ypbind service, which allows the system to act as a client in a NIS or NIS+ domain, should be disabled. The ypbind service can be disabled with the following command: # chkconfig ypbind off

Remove NIS Client xccdf_org.ssgproject.content_rule_package_ypbind_removed CCE-

Remove NIS Client

Rule IDxccdf_org.ssgproject.content_rule_package_ypbind_removed
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-

The Network Information Service (NIS), formerly known as Yellow Pages, is a client-server directory service protocol used to distribute system configuration files. The NIS client (ypbind) was used to bind a machine to an NIS server and receive the distributed configuration files.

Disable tftp Service xccdf_org.ssgproject.content_rule_disable_tftp CCE-27055-3

Disable tftp Service

Rule IDxccdf_org.ssgproject.content_rule_disable_tftp
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27055-3

The tftp service should be disabled. The tftp service can be disabled with the following command: # chkconfig tftp off

Uninstall tftp-server Package xccdf_org.ssgproject.content_rule_uninstall_tftp-server CCE-26946-4

Uninstall tftp-server Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_tftp-server
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-26946-4

The tftp-server package can be removed with the following command: # yum erase tftp-server

Remove tftp xccdf_org.ssgproject.content_rule_package_tftp_removed CCE-

Remove tftp

Rule IDxccdf_org.ssgproject.content_rule_package_tftp_removed
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-

Trivial File Transfer Protocol (TFTP) is a simple file transfer protocol, typically used to automatically transfer configuration or boot files between machines. TFTP does not support authentication and can be easily hacked. The package tftp is a client program that allows for connections to a tftp server.

Ensure tftp Daemon Uses Secure Mode xccdf_org.ssgproject.content_rule_tftpd_uses_secure_mode CCE-27272-4

Ensure tftp Daemon Uses Secure Mode

Rule IDxccdf_org.ssgproject.content_rule_tftpd_uses_secure_mode
Result
pass
Time2014-07-17T13:53:54
Severityhigh
Identifiers
  • CCE-27272-4

If running the tftp service is necessary, it should be configured to change its root directory at startup. To do so, ensure /etc/xinetd.d/tftp includes -s as a command line argument, as shown in the following example (which is also the default):

server_args = -s /var/lib/tftpboot

Uninstall talk-server Package xccdf_org.ssgproject.content_rule_uninstall_talk-server CCE-

Uninstall talk-server Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_talk-server
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-

The talk-server package can be removed with the following command: # yum erase talk-server

Uninstall talk Package xccdf_org.ssgproject.content_rule_package_talk_removed CCE-

Uninstall talk Package

Rule IDxccdf_org.ssgproject.content_rule_package_talk_removed
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-

The talk package contains the client program for the Internet talk protocol, which allows the user to chat with other users on different systems. Talk is a communication program which copies lines from one terminal to the terminal of another user.

Disable Automatic Bug Reporting Tool (abrtd) xccdf_org.ssgproject.content_rule_service_abrtd_disabled CCE-27247-6

Disable Automatic Bug Reporting Tool (abrtd)

Rule IDxccdf_org.ssgproject.content_rule_service_abrtd_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27247-6

The Automatic Bug Reporting Tool (abrtd) daemon collects and reports crash data when an application crash is detected. Using a variety of plugins, abrtd can email crash reports to system administrators, log crash reports to files, or forward crash reports to a centralized issue tracking system such as RHTSupport. The abrtd service can be disabled with the following command: # chkconfig abrtd off

Remediation script:
#
# Disable abrtd for all run levels
#
chkconfig --level 0123456 abrtd off

#
# Stop abrtd if currently running
#
service abrtd stop
Disable Advanced Configuration and Power Interface (acpid) xccdf_org.ssgproject.content_rule_service_acpid_disabled CCE-27061-1

Disable Advanced Configuration and Power Interface (acpid)

Rule IDxccdf_org.ssgproject.content_rule_service_acpid_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27061-1

The Advanced Configuration and Power Interface Daemon (acpid) dispatches ACPI events (such as power/reset button depressed) to userspace programs. The acpid service can be disabled with the following command: # chkconfig acpid off

Remediation script:
#
# Disable acpid for all run levels
#
chkconfig --level 0123456 acpid off

#
# Stop acpid if currently running
#
service acpid stop
Disable Certmonger Service (certmonger) xccdf_org.ssgproject.content_rule_service_certmonger_disabled CCE-27267-4

Disable Certmonger Service (certmonger)

Rule IDxccdf_org.ssgproject.content_rule_service_certmonger_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27267-4

Certmonger is a D-Bus based service that attempts to simplify interaction with certifying authorities on networks which use public-key infrastructure. It is often combined with Red Hat's IPA (Identity Policy Audit) security information management solution to aid in the management of certificates. The certmonger service can be disabled with the following command: # chkconfig certmonger off

Remediation script:
#
# Disable certmonger for all run levels
#
chkconfig --level 0123456 certmonger off

#
# Stop certmonger if currently running
#
service certmonger stop
Disable Control Group Config (cgconfig) xccdf_org.ssgproject.content_rule_service_cgconfig_disabled CCE-27250-0

Disable Control Group Config (cgconfig)

Rule IDxccdf_org.ssgproject.content_rule_service_cgconfig_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27250-0

Control groups allow an administrator to allocate system resources (such as CPU, memory, network bandwidth, etc) among a defined group (or groups) of processes executing on a system. The cgconfig daemon starts at boot and establishes the predefined control groups. The cgconfig service can be disabled with the following command: # chkconfig cgconfig off

Remediation script:
#
# Disable cgconfig for all run levels
#
chkconfig --level 0123456 cgconfig off

#
# Stop cgconfig if currently running
#
service cgconfig stop
Disable Control Group Rules Engine (cgred) xccdf_org.ssgproject.content_rule_service_cgred_disabled CCE-27252-6

Disable Control Group Rules Engine (cgred)

Rule IDxccdf_org.ssgproject.content_rule_service_cgred_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27252-6

The cgred service moves tasks into control groups according to parameters set in the /etc/cgrules.conf configuration file. The cgred service can be disabled with the following command: # chkconfig cgred off

Remediation script:
#
# Disable cgred for all run levels
#
chkconfig --level 0123456 cgred off

#
# Stop cgred if currently running
#
service cgred stop
Disable CPU Speed (cpuspeed) xccdf_org.ssgproject.content_rule_service_cpuspeed_disabled CCE-26973-8

Disable CPU Speed (cpuspeed)

Rule IDxccdf_org.ssgproject.content_rule_service_cpuspeed_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26973-8

The cpuspeed service can adjust the clock speed of supported CPUs based upon the current processing load thereby conserving power and reducing heat. The cpuspeed service can be disabled with the following command: # chkconfig cpuspeed off

Remediation script:
#
# Disable cpuspeed for all run levels
#
chkconfig --level 0123456 cpuspeed off

#
# Stop cpuspeed if currently running
#
service cpuspeed stop
Disable Hardware Abstraction Layer Service (haldaemon) xccdf_org.ssgproject.content_rule_service_haldaemon_disabled CCE-27086-8

Disable Hardware Abstraction Layer Service (haldaemon)

Rule IDxccdf_org.ssgproject.content_rule_service_haldaemon_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27086-8

The Hardware Abstraction Layer Daemon (haldaemon) collects and maintains information about the system's hardware configuration. This service is required on a workstation running a desktop environment, and may be necessary on any system which deals with removable media or devices. The haldaemon service can be disabled with the following command: # chkconfig haldaemon off

Remediation script:
#
# Disable haldaemon for all run levels
#
chkconfig --level 0123456 haldaemon off

#
# Stop haldaemon if currently running
#
service haldaemon stop
Enable IRQ Balance (irqbalance) xccdf_org.ssgproject.content_rule_service_irqbalance_enabled CCE-26990-2

Enable IRQ Balance (irqbalance)

Rule IDxccdf_org.ssgproject.content_rule_service_irqbalance_enabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26990-2

The irqbalance service optimizes the balance between power savings and performance through distribution of hardware interrupts across multiple processors. The irqbalance service can be enabled with the following command: # chkconfig --level 2345 irqbalance on

Remediation script:
#
# Enable irqbalance for all run levels
#
chkconfig --level 0123456 irqbalance on

#
# Start irqbalance if not currently running
#
service irqbalance start
Disable KDump Kernel Crash Analyzer (kdump) xccdf_org.ssgproject.content_rule_service_kdump_disabled CCE-26850-8

Disable KDump Kernel Crash Analyzer (kdump)

Rule IDxccdf_org.ssgproject.content_rule_service_kdump_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26850-8

The kdump service provides a kernel crash dump analyzer. It uses the kexec system call to boot a secondary kernel ("capture" kernel) following a system crash, which can load information from the crashed kernel for analysis. The kdump service can be disabled with the following command: # chkconfig kdump off

Remediation script:
#
# Disable kdump for all run levels
#
chkconfig --level 0123456 kdump off

#
# Stop kdump if currently running
#
service kdump stop
Disable Software RAID Monitor (mdmonitor) xccdf_org.ssgproject.content_rule_service_mdmonitor_disabled CCE-27193-2

Disable Software RAID Monitor (mdmonitor)

Rule IDxccdf_org.ssgproject.content_rule_service_mdmonitor_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27193-2

The mdmonitor service is used for monitoring a software RAID array; hardware RAID setups do not use this service. The mdmonitor service can be disabled with the following command: # chkconfig mdmonitor off

Remediation script:
#
# Disable mdmonitor for all run levels
#
chkconfig --level 0123456 mdmonitor off

#
# Stop mdmonitor if currently running
#
service mdmonitor stop
Disable D-Bus IPC Service (messagebus) xccdf_org.ssgproject.content_rule_service_messagebus_disabled CCE-26913-4

Disable D-Bus IPC Service (messagebus)

Rule IDxccdf_org.ssgproject.content_rule_service_messagebus_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26913-4

D-Bus provides an IPC mechanism used by a growing list of programs, such as those used for Gnome, Bluetooth, and Avahi. Due to these dependencies, disabling D-Bus may not be practical for many systems. The messagebus service can be disabled with the following command: # chkconfig messagebus off

Remediation script:
#
# Disable messagebus for all run levels
#
chkconfig --level 0123456 messagebus off

#
# Stop messagebus if currently running
#
service messagebus stop
Disable Network Console (netconsole) xccdf_org.ssgproject.content_rule_service_netconsole_disabled CCE-27254-2

Disable Network Console (netconsole)

Rule IDxccdf_org.ssgproject.content_rule_service_netconsole_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27254-2

The netconsole service is responsible for loading the netconsole kernel module, which logs kernel printk messages over UDP to a syslog server. This allows debugging of problems where disk logging fails and serial consoles are impractical. The netconsole service can be disabled with the following command: # chkconfig netconsole off

Remediation script:
#
# Disable netconsole for all run levels
#
chkconfig --level 0123456 netconsole off

#
# Stop netconsole if currently running
#
service netconsole stop
Disable ntpdate Service (ntpdate) xccdf_org.ssgproject.content_rule_service_ntpdate_disabled CCE-27256-7

Disable ntpdate Service (ntpdate)

Rule IDxccdf_org.ssgproject.content_rule_service_ntpdate_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27256-7

The ntpdate service sets the local hardware clock by polling NTP servers when the system boots. It synchronizes to the NTP servers listed in /etc/ntp/step-tickers or /etc/ntp.conf and then sets the local hardware clock to the newly synchronized system time. The ntpdate service can be disabled with the following command: # chkconfig ntpdate off

Disable Odd Job Daemon (oddjobd) xccdf_org.ssgproject.content_rule_service_oddjobd_disabled CCE-27257-5

Disable Odd Job Daemon (oddjobd)

Rule IDxccdf_org.ssgproject.content_rule_service_oddjobd_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27257-5

The oddjobd service exists to provide an interface and access control mechanism through which specified privileged tasks can run tasks for unprivileged client applications. Communication with oddjobd through the system message bus. The oddjobd service can be disabled with the following command: # chkconfig oddjobd off

Remediation script:
#
# Disable oddjobd for all run levels
#
chkconfig --level 0123456 oddjobd off

#
# Stop oddjobd if currently running
#
service oddjobd stop
Disable Portreserve (portreserve) xccdf_org.ssgproject.content_rule_service_portreserve_disabled CCE-27258-3

Disable Portreserve (portreserve)

Rule IDxccdf_org.ssgproject.content_rule_service_portreserve_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27258-3

The portreserve service is a TCP port reservation utility that can be used to prevent portmap from binding to well known TCP ports that are required for other services. The portreserve service can be disabled with the following command: # chkconfig portreserve off

Remediation script:
#
# Disable portreserve for all run levels
#
chkconfig --level 0123456 portreserve off

#
# Stop portreserve if currently running
#
service portreserve stop
Enable Process Accounting (psacct) xccdf_org.ssgproject.content_rule_service_psacct_enabled CCE-27259-1

Enable Process Accounting (psacct)

Rule IDxccdf_org.ssgproject.content_rule_service_psacct_enabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27259-1

The process accounting service, psacct, works with programs including acct and ac to allow system administrators to view user activity, such as commands issued by users of the system. The psacct service can be enabled with the following command: # chkconfig --level 2345 psacct on

Remediation script:
#
# Enable psacct for all run levels
#
chkconfig --level 0123456 psacct on

#
# Start psacct if not currently running
#
service psacct start
Disable Apache Qpid (qpidd) xccdf_org.ssgproject.content_rule_service_qpidd_disabled CCE-26928-2

Disable Apache Qpid (qpidd)

Rule IDxccdf_org.ssgproject.content_rule_service_qpidd_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26928-2

The qpidd service provides high speed, secure, guaranteed delivery services. It is an implementation of the Advanced Message Queuing Protocol. By default the qpidd service will bind to port 5672 and listen for connection attempts. The qpidd service can be disabled with the following command: # chkconfig qpidd off

Remediation script:
#
# Disable qpidd for all run levels
#
chkconfig --level 0123456 qpidd off

#
# Stop qpidd if currently running
#
service qpidd stop
Disable Quota Netlink (quota_nld) xccdf_org.ssgproject.content_rule_service_quota_nld_disabled CCE-27260-9

Disable Quota Netlink (quota_nld)

Rule IDxccdf_org.ssgproject.content_rule_service_quota_nld_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27260-9

The quota_nld service provides notifications to users of disk space quota violations. It listens to the kernel via a netlink socket for disk quota violations and notifies the appropriate user of the violation using D-Bus or by sending a message to the terminal that the user has last accessed. The quota_nld service can be disabled with the following command: # chkconfig quota_nld off

Remediation script:
#
# Disable quota_nld for all run levels
#
chkconfig --level 0123456 quota_nld off

#
# Stop quota_nld if currently running
#
service quota_nld stop
Disable Network Router Discovery Daemon (rdisc) xccdf_org.ssgproject.content_rule_service_rdisc_disabled CCE-27261-7

Disable Network Router Discovery Daemon (rdisc)

Rule IDxccdf_org.ssgproject.content_rule_service_rdisc_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27261-7

The rdisc service implements the client side of the ICMP Internet Router Discovery Protocol (IRDP), which allows discovery of routers on the local subnet. If a router is discovered then the local routing table is updated with a corresponding default route. By default this daemon is disabled. The rdisc service can be disabled with the following command: # chkconfig rdisc off

Remediation script:
#
# Disable rdisc for all run levels
#
chkconfig --level 0123456 rdisc off

#
# Stop rdisc if currently running
#
service rdisc stop
Disable Red Hat Network Service (rhnsd) xccdf_org.ssgproject.content_rule_service_rhnsd_disabled CCE-26846-6

Disable Red Hat Network Service (rhnsd)

Rule IDxccdf_org.ssgproject.content_rule_service_rhnsd_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26846-6

The Red Hat Network service automatically queries Red Hat Network servers to determine whether there are any actions that should be executed, such as package updates. This only occurs if the system was registered to an RHN server or satellite and managed as such. The rhnsd service can be disabled with the following command: # chkconfig rhnsd off

Remediation script:
#
# Disable rhnsd for all run levels
#
chkconfig --level 0123456 rhnsd off

#
# Stop rhnsd if currently running
#
service rhnsd stop
Disable Red Hat Subscription Manager Daemon (rhsmcertd) xccdf_org.ssgproject.content_rule_service_rhsmcertd_disabled CCE-27262-5

Disable Red Hat Subscription Manager Daemon (rhsmcertd)

Rule IDxccdf_org.ssgproject.content_rule_service_rhsmcertd_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27262-5

The Red Hat Subscription Manager (rhsmcertd) periodically checks for changes in the entitlement certificates for a registered system and updates it accordingly. The rhsmcertd service can be disabled with the following command: # chkconfig rhsmcertd off

Remediation script:
#
# Disable rhsmcertd for all run levels
#
chkconfig --level 0123456 rhsmcertd off

#
# Stop rhsmcertd if currently running
#
service rhsmcertd stop
Disable Cyrus SASL Authentication Daemon (saslauthd) xccdf_org.ssgproject.content_rule_service_saslauthd_disabled CCE-27263-3

Disable Cyrus SASL Authentication Daemon (saslauthd)

Rule IDxccdf_org.ssgproject.content_rule_service_saslauthd_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27263-3

The saslauthd service handles plaintext authentication requests on behalf of the SASL library. The service isolates all code requiring superuser privileges for SASL authentication into a single process, and can also be used to provide proxy authentication services to clients that do not understand SASL based authentication. The saslauthd service can be disabled with the following command: # chkconfig saslauthd off

Remediation script:
#
# Disable saslauthd for all run levels
#
chkconfig --level 0123456 saslauthd off

#
# Stop saslauthd if currently running
#
service saslauthd stop
Disable SMART Disk Monitoring Service (smartd) xccdf_org.ssgproject.content_rule_service_smartd_disabled CCE-26853-2

Disable SMART Disk Monitoring Service (smartd)

Rule IDxccdf_org.ssgproject.content_rule_service_smartd_disabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26853-2

SMART (Self-Monitoring, Analysis, and Reporting Technology) is a feature of hard drives that allows them to detect symptoms of disk failure and relay an appropriate warning. The smartd service can be disabled with the following command: # chkconfig smartd off

Remediation script:
#
# Disable smartd for all run levels
#
chkconfig --level 0123456 smartd off

#
# Stop smartd if currently running
#
service smartd stop
Disable System Statistics Reset Service (sysstat) xccdf_org.ssgproject.content_rule_service_sysstat_disabled CCE-27265-8

Disable System Statistics Reset Service (sysstat)

Rule IDxccdf_org.ssgproject.content_rule_service_sysstat_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27265-8

The sysstat service resets various I/O and CPU performance statistics to zero in order to begin counting from a fresh state at boot time. The sysstat service can be disabled with the following command: # chkconfig sysstat off

Remediation script:
#
# Disable sysstat for all run levels
#
chkconfig --level 0123456 sysstat off

#
# Stop sysstat if currently running
#
service sysstat stop
Enable cron Service xccdf_org.ssgproject.content_rule_service_crond_enabled CCE-27070-2

Enable cron Service

Rule IDxccdf_org.ssgproject.content_rule_service_crond_enabled
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27070-2

The crond service is used to execute commands at preconfigured times. It is required by almost all systems to perform necessary maintenance tasks, such as notifying root of system activity. The crond service can be enabled with the following command: # chkconfig --level 2345 crond on

Remediation script:
#
# Enable crond for all run levels
#
chkconfig --level 0123456 crond on

#
# Start crond if not currently running
#
service crond start
Disable anacron Service xccdf_org.ssgproject.content_rule_disable_anacron CCE-27158-5

Disable anacron Service

Rule IDxccdf_org.ssgproject.content_rule_disable_anacron
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27158-5

The cronie-anacron package, which provides anacron functionality, is installed by default. The cronie-anacron package can be removed with the following command: # yum erase cronie-anacron

Disable At Service (atd) xccdf_org.ssgproject.content_rule_service_atd_disabled CCE-27249-2

Disable At Service (atd)

Rule IDxccdf_org.ssgproject.content_rule_service_atd_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27249-2

The at and batch commands can be used to schedule tasks that are meant to be executed only once. This allows delayed execution in a manner similar to cron, except that it is not recurring. The daemon atd keeps track of tasks scheduled via at and batch, and executes them at the specified time. The atd service can be disabled with the following command: # chkconfig atd off

Remediation script:
#
# Disable atd for all run levels
#
chkconfig --level 0123456 atd off

#
# Stop atd if currently running
#
service atd stop
Allow Only SSH Protocol 2 xccdf_org.ssgproject.content_rule_sshd_allow_only_protocol2 CCE-27072-8

Allow Only SSH Protocol 2

Rule IDxccdf_org.ssgproject.content_rule_sshd_allow_only_protocol2
Result
pass
Time2014-07-17T13:53:54
Severityhigh
Identifiers
  • CCE-27072-8

Only SSH protocol version 2 connections should be permitted. The default setting in /etc/ssh/sshd_config is correct, and can be verified by ensuring that the following line appears:

Protocol 2

Limit Users' SSH Access xccdf_org.ssgproject.content_rule_sshd_limit_user_access CCE-27556-0

Limit Users' SSH Access

Rule IDxccdf_org.ssgproject.content_rule_sshd_limit_user_access
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27556-0

By default, the SSH configuration allows any user with an account to access the system. In order to specify the users that are allowed to login via SSH and deny all other users, add or correct the following line in the /etc/ssh/sshd_config file:

DenyUsers USER1 USER2
Where USER1 and USER2 are valid user names.

Set SSH Idle Timeout Interval xccdf_org.ssgproject.content_rule_sshd_set_idle_timeout CCE-26919-1

Set SSH Idle Timeout Interval

Rule IDxccdf_org.ssgproject.content_rule_sshd_set_idle_timeout
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26919-1

SSH allows administrators to set an idle timeout interval. After this interval has passed, the idle user will be automatically logged out.



To set an idle timeout interval, edit the following line in /etc/ssh/sshd_config as follows:

ClientAliveInterval interval
The timeout interval is given in seconds. To have a timeout of 15 minutes, set interval to 900.



If a shorter timeout has already been set for the login shell, that value will preempt any SSH setting made here. Keep in mind that some processes may stop SSH from correctly detecting that the user is idle.

Remediation script:
sshd_idle_timeout_value="300"
grep -q ^ClientAliveInterval /etc/ssh/sshd_config && \
  sed -i "s/ClientAliveInterval.*/ClientAliveInterval $sshd_idle_timeout_value/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "ClientAliveInterval $sshd_idle_timeout_value" >> /etc/ssh/sshd_config
fi
Set SSH Client Alive Count xccdf_org.ssgproject.content_rule_sshd_set_keepalive CCE-26282-4

Set SSH Client Alive Count

Rule IDxccdf_org.ssgproject.content_rule_sshd_set_keepalive
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26282-4

To ensure the SSH idle timeout occurs precisely when the ClientAliveCountMax is set, edit /etc/ssh/sshd_config as follows:

ClientAliveCountMax 0

Remediation script:
grep -q ^ClientAliveCountMax /etc/ssh/sshd_config && \
  sed -i "s/ClientAliveCountMax.*/ClientAliveCountMax 0/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "ClientAliveCountMax 0" >> /etc/ssh/sshd_config
fi
Disable SSH Support for .rhosts Files xccdf_org.ssgproject.content_rule_sshd_disable_rhosts CCE-27124-7

Disable SSH Support for .rhosts Files

Rule IDxccdf_org.ssgproject.content_rule_sshd_disable_rhosts
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27124-7

SSH can emulate the behavior of the obsolete rsh command in allowing users to enable insecure access to their accounts via .rhosts files.



To ensure this behavior is disabled, add or correct the following line in /etc/ssh/sshd_config:

IgnoreRhosts yes

Remediation script:
grep -q ^IgnoreRhosts /etc/ssh/sshd_config && \
  sed -i "s/IgnoreRhosts.*/IgnoreRhosts yes/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "IgnoreRhosts yes" >> /etc/ssh/sshd_config
fi
Disable Host-Based Authentication xccdf_org.ssgproject.content_rule_disable_host_auth CCE-27091-8

Disable Host-Based Authentication

Rule IDxccdf_org.ssgproject.content_rule_disable_host_auth
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27091-8

SSH's cryptographic host-based authentication is more secure than .rhosts authentication. However, it is not recommended that hosts unilaterally trust one another, even within an organization.



To disable host-based authentication, add or correct the following line in /etc/ssh/sshd_config:

HostbasedAuthentication no

Remediation script:
grep -q ^HostbasedAuthentication /etc/ssh/sshd_config && \
  sed -i "s/HostbasedAuthentication.*/HostbasedAuthentication no/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "HostbasedAuthentication no" >> /etc/ssh/sshd_config
fi
Disable SSH Root Login xccdf_org.ssgproject.content_rule_sshd_disable_root_login CCE-27100-7

Disable SSH Root Login

Rule IDxccdf_org.ssgproject.content_rule_sshd_disable_root_login
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27100-7

The root user should never be allowed to login to a system directly over a network. To disable root login via SSH, add or correct the following line in /etc/ssh/sshd_config:

PermitRootLogin no

Remediation script:
grep -q ^PermitRootLogin /etc/ssh/sshd_config && \
  sed -i "s/PermitRootLogin.*/PermitRootLogin no/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "PermitRootLogin "no >> /etc/ssh/sshd_config
fi
Disable SSH Access via Empty Passwords xccdf_org.ssgproject.content_rule_sshd_disable_empty_passwords CCE-26887-0

Disable SSH Access via Empty Passwords

Rule IDxccdf_org.ssgproject.content_rule_sshd_disable_empty_passwords
Result
fail
Time2014-07-17T13:53:54
Severityhigh
Identifiers
  • CCE-26887-0

To explicitly disallow remote login from accounts with empty passwords, add or correct the following line in /etc/ssh/sshd_config:

PermitEmptyPasswords no
Any accounts with empty passwords should be disabled immediately, and PAM configuration should prevent users from being able to assign themselves empty passwords.

Remediation script:
grep -q ^PermitEmptyPasswords /etc/ssh/sshd_config && \
  sed -i "s/PermitEmptyPasswords.*/PermitEmptyPasswords no/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "PermitEmptyPasswords no" >> /etc/ssh/sshd_config
fi
Enable SSH Warning Banner xccdf_org.ssgproject.content_rule_sshd_enable_warning_banner CCE-27112-2

Enable SSH Warning Banner

Rule IDxccdf_org.ssgproject.content_rule_sshd_enable_warning_banner
Result
fail
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27112-2

To enable the warning banner and ensure it is consistent across the system, add or correct the following line in /etc/ssh/sshd_config:

Banner /etc/issue
Another section contains information on how to create an appropriate system-wide warning banner.

Remediation script:
grep -q ^Banner /etc/ssh/sshd_config && \
  sed -i "s/Banner.*/Banner \/etc\/issue/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "Banner /etc/issue" >> /etc/ssh/sshd_config
fi
Do Not Allow SSH Environment Options xccdf_org.ssgproject.content_rule_sshd_do_not_permit_user_env CCE-27201-3

Do Not Allow SSH Environment Options

Rule IDxccdf_org.ssgproject.content_rule_sshd_do_not_permit_user_env
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27201-3

To ensure users are not able to present environment options to the SSH daemon, add or correct the following line in /etc/ssh/sshd_config:

PermitUserEnvironment no

Remediation script:
grep -q ^PermitUserEnvironment /etc/ssh/sshd_config && \
  sed -i "s/PermitUserEnvironment.*/PermitUserEnvironment no/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "PermitUserEnvironment no" >> /etc/ssh/sshd_config
fi
Use Only Approved Ciphers xccdf_org.ssgproject.content_rule_sshd_use_approved_ciphers CCE-26555-3

Use Only Approved Ciphers

Rule IDxccdf_org.ssgproject.content_rule_sshd_use_approved_ciphers
Result
fail
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-26555-3

Limit the ciphers to those algorithms which are FIPS-approved. Counter (CTR) mode is also preferred over cipher-block chaining (CBC) mode. The following line in /etc/ssh/sshd_config demonstrates use of FIPS-approved ciphers:

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
The man page sshd_config(5) contains a list of supported ciphers.

Remediation script:
grep -q ^Ciphers /etc/ssh/sshd_config && \
  sed -i "s/Ciphers.*/Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc" >> /etc/ssh/sshd_config
fi
Disable SSH Server If Possible (Unusual) xccdf_org.ssgproject.content_rule_ssh_server_disabled CCE-27054-6

Disable SSH Server If Possible (Unusual)

Rule IDxccdf_org.ssgproject.content_rule_ssh_server_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27054-6

The SSH server service, sshd, is commonly needed. However, if it can be disabled, do so. The sshd service can be disabled with the following command: # chkconfig sshd off This is unusual, as SSH is a common method for encrypted and authenticated remote access.

Remove SSH Server iptables Firewall exception (Unusual) xccdf_org.ssgproject.content_rule_ssh_server_iptables_exception CCE-27060-3

Remove SSH Server iptables Firewall exception (Unusual)

Rule IDxccdf_org.ssgproject.content_rule_ssh_server_iptables_exception
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27060-3

By default, inbound connections to SSH's port are allowed. If the SSH server is not being used, this exception should be removed from the firewall configuration.



Edit the files /etc/sysconfig/iptables and /etc/sysconfig/ip6tables (if IPv6 is in use). In each file, locate and delete the line:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
This is unusual, as SSH is a common method for encrypted and authenticated remote access.

Disable X Windows Startup By Setting Runlevel xccdf_org.ssgproject.content_rule_disable_xwindows_with_runlevel CCE-27119-7

Disable X Windows Startup By Setting Runlevel

Rule IDxccdf_org.ssgproject.content_rule_disable_xwindows_with_runlevel
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27119-7

Setting the system's runlevel to 3 will prevent automatic startup of the X server. To do so, ensure the following line in /etc/inittab features a 3 as shown:

id:3:initdefault:

Remove the X Windows Package Group xccdf_org.ssgproject.content_rule_packagegroup_xwindows_remove CCE-27198-1

Remove the X Windows Package Group

Rule IDxccdf_org.ssgproject.content_rule_packagegroup_xwindows_remove
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27198-1

Removing all packages which constitute the X Window System ensures users or malicious software cannot start X. To do so, run the following command:

# yum groupremove "X Window System"

Disable Avahi Server Software xccdf_org.ssgproject.content_rule_disable_avahi CCE-27087-6

Disable Avahi Server Software

Rule IDxccdf_org.ssgproject.content_rule_disable_avahi
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27087-6

The avahi-daemon service can be disabled with the following command: # chkconfig avahi-daemon off

Serve Avahi Only via Required Protocol xccdf_org.ssgproject.content_rule_avahi_ip_only CCE-27590-9

Serve Avahi Only via Required Protocol

Rule IDxccdf_org.ssgproject.content_rule_avahi_ip_only
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27590-9

If you are using only IPv4, edit /etc/avahi/avahi-daemon.conf and ensure the following line exists in the [server] section:

use-ipv6=no
Similarly, if you are using only IPv6, disable IPv4 sockets with the line:
use-ipv4=no

Check Avahi Responses' TTL Field xccdf_org.ssgproject.content_rule_avahi_check_ttl CCE-27340-9

Check Avahi Responses' TTL Field

Rule IDxccdf_org.ssgproject.content_rule_avahi_check_ttl
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27340-9

To make Avahi ignore packets unless the TTL field is 255, edit /etc/avahi/avahi-daemon.conf and ensure the following line appears in the [server] section:

check-response-ttl=yes

Prevent Other Programs from Using Avahi's Port xccdf_org.ssgproject.content_rule_avahi_prevent_port_sharing CCE-27308-6

Prevent Other Programs from Using Avahi's Port

Rule IDxccdf_org.ssgproject.content_rule_avahi_prevent_port_sharing
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27308-6

To prevent other mDNS stacks from running, edit /etc/avahi/avahi-daemon.conf and ensure the following line appears in the [server] section:

disallow-other-stacks=yes

Disable Avahi Publishing xccdf_org.ssgproject.content_rule_avahi_disable_publishing CCE-27526-3

Disable Avahi Publishing

Rule IDxccdf_org.ssgproject.content_rule_avahi_disable_publishing
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27526-3

To prevent other mDNS stacks from running, edit /etc/avahi/avahi-daemon.conf and ensure the following line appears in the [server] section:

disallow-other-stacks=yes

Restrict Information Published by Avahi xccdf_org.ssgproject.content_rule_avahi_restrict_published_information CCE-27300-3

Restrict Information Published by Avahi

Rule IDxccdf_org.ssgproject.content_rule_avahi_restrict_published_information
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27300-3

If it is necessary to publish some information to the network, it should not be joined by any extraneous information, or by information supplied by a non-trusted source on the system. Prevent user applications from using Avahi to publish services by adding or correcting the following line in the [publish] section:

disable-user-service-publishing=yes
Implement as many of the following lines as possible, to restrict the information published by Avahi.
publish-addresses=no
publish-hinfo=no
publish-workstation=no
publish-domain=no
Inspect the files in the directory /etc/avahi/services/. Unless there is an operational need to publish information about each of these services, delete the corresponding file.

Disable Printer Browsing Entirely if Possible xccdf_org.ssgproject.content_rule_cups_disable_browsing CCE-27108-0

Disable Printer Browsing Entirely if Possible

Rule IDxccdf_org.ssgproject.content_rule_cups_disable_browsing
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27108-0

By default, CUPS listens on the network for printer list broadcasts on UDP port 631. This functionality is called printer browsing. To disable printer browsing entirely, edit the CUPS configuration file, located at /etc/cups/cupsd.conf, to include the following:

Browsing Off

Disable Print Server Capabilities xccdf_org.ssgproject.content_rule_cups_disable_printserver CCE-27107-2

Disable Print Server Capabilities

Rule IDxccdf_org.ssgproject.content_rule_cups_disable_printserver
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27107-2

To prevent remote users from potentially connecting to and using locally configured printers, disable the CUPS print server sharing capabilities. To do so, limit how the server will listen for print jobs by removing the more generic port directive from /etc/cups/cupsd.conf:

Port 631
and replacing it with the Listen directive:
Listen localhost:631
This will prevent remote users from printing to locally configured printers while still allowing local users on the machine to print normally.

Disable the CUPS Service xccdf_org.ssgproject.content_rule_service_cups_disabled CCE-26899-5

Disable the CUPS Service

Rule IDxccdf_org.ssgproject.content_rule_service_cups_disabled
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26899-5

The cups service can be disabled with the following command: # chkconfig cups off

Remediation script:
#
# Disable cups for all run levels
#
chkconfig --level 0123456 cups off

#
# Stop cups if currently running
#
service cups stop
Disable DHCP Service xccdf_org.ssgproject.content_rule_disable_dhcp_server CCE-27074-4

Disable DHCP Service

Rule IDxccdf_org.ssgproject.content_rule_disable_dhcp_server
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27074-4

The dhcpd service should be disabled on any system that does not need to act as a DHCP server. The dhcpd service can be disabled with the following command: # chkconfig dhcpd off

Uninstall DHCP Server Package xccdf_org.ssgproject.content_rule_uninstall_dhcp_server CCE-27120-5

Uninstall DHCP Server Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_dhcp_server
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27120-5

If the system does not need to act as a DHCP server, the dhcp package can be uninstalled. The dhcp package can be removed with the following command: # yum erase dhcp

Do Not Use Dynamic DNS xccdf_org.ssgproject.content_rule_dhcp_server_disable_ddns CCE-27049-6

Do Not Use Dynamic DNS

Rule IDxccdf_org.ssgproject.content_rule_dhcp_server_disable_ddns
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27049-6

To prevent the DHCP server from receiving DNS information from clients, edit /etc/dhcp/dhcpd.conf, and add or correct the following global option:

ddns-update-style none;

Deny Decline Messages xccdf_org.ssgproject.content_rule_dhcp_server_deny_decline CCE-27106-4

Deny Decline Messages

Rule IDxccdf_org.ssgproject.content_rule_dhcp_server_deny_decline
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27106-4

Edit /etc/dhcp/dhcpd.conf and add or correct the following global option to prevent the DHCP server from responding the DHCPDECLINE messages, if possible:

deny declines;

Deny BOOTP Queries xccdf_org.ssgproject.content_rule_dhcp_server_deny_bootp CCE-27077-7

Deny BOOTP Queries

Rule IDxccdf_org.ssgproject.content_rule_dhcp_server_deny_bootp
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27077-7

Unless your network needs to support older BOOTP clients, disable support for the bootp protocol by adding or correcting the global option:

deny bootp;

Configure Logging xccdf_org.ssgproject.content_rule_dhcp_server_configure_logging CCE-26898-7

Configure Logging

Rule IDxccdf_org.ssgproject.content_rule_dhcp_server_configure_logging
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26898-7

Ensure that the following line exists in /etc/rsyslog.conf:

daemon.*           /var/log/daemon.log
Configure logwatch or other log monitoring tools to summarize error conditions reported by the dhcpd process.

Disable DHCP Client xccdf_org.ssgproject.content_rule_disable_dhcp_client CCE-27021-5

Disable DHCP Client

Rule IDxccdf_org.ssgproject.content_rule_disable_dhcp_client
Result
fail
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-27021-5

For each interface on the system (e.g. eth0), edit /etc/sysconfig/network-scripts/ifcfg-interface and make the following changes:

  • Correct the BOOTPROTO line to read:
    BOOTPROTO=none
  • Add or correct the following lines, substituting the appropriate values based on your site's addressing scheme:
    NETMASK=255.255.255.0
    IPADDR=192.168.1.2
    GATEWAY=192.168.1.1

Enable the NTP Daemon xccdf_org.ssgproject.content_rule_service_ntpd_enabled CCE-27093-4

Enable the NTP Daemon

Rule IDxccdf_org.ssgproject.content_rule_service_ntpd_enabled
Result
fail
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27093-4

The ntpd service can be enabled with the following command: # chkconfig --level 2345 ntpd on

Remediation script:
#
# Enable ntpd for all run levels
#
chkconfig --level 0123456 ntpd on

#
# Start ntpd if not currently running
#
service ntpd start
Specify a Remote NTP Server xccdf_org.ssgproject.content_rule_ntpd_specify_remote_server CCE-27098-3

Specify a Remote NTP Server

Rule IDxccdf_org.ssgproject.content_rule_ntpd_specify_remote_server
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27098-3

To specify a remote NTP server for time synchronization, edit the file /etc/ntp.conf. Add or correct the following lines, substituting the IP or hostname of a remote NTP server for ntpserver:

server ntpserver
This instructs the NTP software to contact that remote server to obtain time data.

Specify Additional Remote NTP Servers xccdf_org.ssgproject.content_rule_ntpd_specify_multiple_servers CCE-26958-9

Specify Additional Remote NTP Servers

Rule IDxccdf_org.ssgproject.content_rule_ntpd_specify_multiple_servers
Result
notchecked
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26958-9

Additional NTP servers can be specified for time synchronization in the file /etc/ntp.conf. To do so, add additional lines of the following form, substituting the IP address or hostname of a remote NTP server for ntpserver:

server ntpserver

Disable Postfix Network Listening xccdf_org.ssgproject.content_rule_postfix_network_listening CCE-26780-7

Disable Postfix Network Listening

Rule IDxccdf_org.ssgproject.content_rule_postfix_network_listening
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-26780-7

Edit the file /etc/postfix/main.cf to ensure that only the following inet_interfaces line appears:

inet_interfaces = localhost

Configure SMTP Greeting Banner xccdf_org.ssgproject.content_rule_postfix_server_banner CCE-27508-1

Configure SMTP Greeting Banner

Rule IDxccdf_org.ssgproject.content_rule_postfix_server_banner
Result
fail
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27508-1

Edit /etc/postfix/main.cf, and add or correct the following line, substituting some other wording for the banner information if you prefer:

smtpd_banner = $myhostname ESMTP

Enable Postfix Service xccdf_org.ssgproject.content_rule_service_postfix_enabled CCE-26325-1

Enable Postfix Service

Rule IDxccdf_org.ssgproject.content_rule_service_postfix_enabled
Result
pass
Time2014-07-17T13:53:54
Severitylow
Identifiers
  • CCE-26325-1

The Postfix mail transfer agent is used for local mail delivery within the system. The default configuration only listens for connections to the default SMTP port (port 25) on the loopback interface (127.0.0.1). It is recommended to leave this service enabled for local mail delivery. The postfix service can be enabled with the following command: # chkconfig --level 2345 postfix on

Remediation script:
#
# Enable postfix for all run levels
#
chkconfig --level 0123456 postfix on

#
# Start postfix if not currently running
#
service postfix start
Uninstall Sendmail Package xccdf_org.ssgproject.content_rule_package_sendmail_removed CCE-27515-6

Uninstall Sendmail Package

Rule IDxccdf_org.ssgproject.content_rule_package_sendmail_removed
Result
pass
Time2014-07-17T13:53:54
Severitymedium
Identifiers
  • CCE-27515-6

Sendmail is not the default mail transfer agent and is not installed by default. The sendmail package can be removed with the following command: # yum erase sendmail

Configure LDAP Client to Use TLS For All Transactions xccdf_org.ssgproject.content_rule_ldap_client_start_tls CCE-26690-8

Configure LDAP Client to Use TLS For All Transactions

Rule IDxccdf_org.ssgproject.content_rule_ldap_client_start_tls
Result
pass
Time2014-07-17T13:53:55
Severitymedium
Identifiers
  • CCE-26690-8

Configure LDAP to enforce TLS use. First, edit the file /etc/pam_ldap.conf, and add or correct the following lines:

ssl start_tls
Then review the LDAP server and ensure TLS has been configured.

Configure Certificate Directives for LDAP Use of TLS xccdf_org.ssgproject.content_rule_ldap_client_tls_cacertpath CCE-27189-0

Configure Certificate Directives for LDAP Use of TLS

Rule IDxccdf_org.ssgproject.content_rule_ldap_client_tls_cacertpath
Result
pass
Time2014-07-17T13:53:55
Severitymedium
Identifiers
  • CCE-27189-0

Ensure a copy of a trusted CA certificate has been placed in the file /etc/pki/tls/CA/cacert.pem. Configure LDAP to enforce TLS use and to trust certificates signed by that CA. First, edit the file /etc/pam_ldap.conf, and add or correct either of the following lines:

tls_cacertdir /etc/pki/tls/CA
or
tls_cacertfile /etc/pki/tls/CA/cacert.pem
Then review the LDAP server and ensure TLS has been configured.

Uninstall openldap-servers Package xccdf_org.ssgproject.content_rule_package_openldap-servers_removed CCE-26858-1

Uninstall openldap-servers Package

Rule IDxccdf_org.ssgproject.content_rule_package_openldap-servers_removed
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26858-1

The openldap-servers package should be removed if not in use. Is this machine the OpenLDAP server? If not, remove the package.

# yum erase openldap-servers
The openldap-servers RPM is not installed by default on RHEL 6 machines. It is needed only by the OpenLDAP server, not by the clients which use LDAP for authentication. If the system is not intended for use as an LDAP Server it should be removed.

Disable Network File System Lock Service (nfslock) xccdf_org.ssgproject.content_rule_service_nfslock_disabled CCE-27104-9

Disable Network File System Lock Service (nfslock)

Rule IDxccdf_org.ssgproject.content_rule_service_nfslock_disabled
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27104-9

The Network File System Lock (nfslock) service starts the required remote procedure call (RPC) processes which allow clients to lock files on the server. If the local machine is not configured to mount NFS filesystems then this service should be disabled. The nfslock service can be disabled with the following command: # chkconfig nfslock off

Remediation script:
#
# Disable nfslock for all run levels
#
chkconfig --level 0123456 nfslock off

#
# Stop nfslock if currently running
#
service nfslock stop
Disable Secure RPC Client Service (rpcgssd) xccdf_org.ssgproject.content_rule_service_rpcgssd_disabled CCE-26864-9

Disable Secure RPC Client Service (rpcgssd)

Rule IDxccdf_org.ssgproject.content_rule_service_rpcgssd_disabled
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26864-9

The rpcgssd service manages RPCSEC GSS contexts required to secure protocols that use RPC (most often Kerberos and NFS). The rpcgssd service is the client-side of RPCSEC GSS. If the system does not require secure RPC then this service should be disabled. The rpcgssd service can be disabled with the following command: # chkconfig rpcgssd off

Remediation script:
#
# Disable rpcgssd for all run levels
#
chkconfig --level 0123456 rpcgssd off

#
# Stop rpcgssd if currently running
#
service rpcgssd stop
Disable RPC ID Mapping Service (rpcidmapd) xccdf_org.ssgproject.content_rule_service_rpcidmapd_disabled CCE-26870-6

Disable RPC ID Mapping Service (rpcidmapd)

Rule IDxccdf_org.ssgproject.content_rule_service_rpcidmapd_disabled
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26870-6

The rpcidmapd service is used to map user names and groups to UID and GID numbers on NFSv4 mounts. If NFS is not in use on the local system then this service should be disabled. The rpcidmapd service can be disabled with the following command: # chkconfig rpcidmapd off

Remediation script:
#
# Disable rpcidmapd for all run levels
#
chkconfig --level 0123456 rpcidmapd off

#
# Stop rpcidmapd if currently running
#
service rpcidmapd stop
Disable Network File Systems (netfs) xccdf_org.ssgproject.content_rule_service_netfs_disabled CCE-27137-9

Disable Network File Systems (netfs)

Rule IDxccdf_org.ssgproject.content_rule_service_netfs_disabled
Result
fail
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27137-9

The netfs script manages the boot-time mounting of several types of networked filesystems, of which NFS and Samba are the most common. If these filesystem types are not in use, the script can be disabled, protecting the system somewhat against accidental or malicious changes to /etc/fstab and against flaws in the netfs script itself. The netfs service can be disabled with the following command: # chkconfig netfs off

Remediation script:
#
# Disable netfs for all run levels
#
chkconfig --level 0123456 netfs off

#
# Stop netfs if currently running
#
service netfs stop
Configure lockd to use static TCP port xccdf_org.ssgproject.content_rule_nfs_fixed_lockd_tcp_port CCE-27149-4

Configure lockd to use static TCP port

Rule IDxccdf_org.ssgproject.content_rule_nfs_fixed_lockd_tcp_port
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27149-4

Configure the lockd daemon to use a static TCP port as opposed to letting the RPC Bind service dynamically assign a port. Edit the file /etc/sysconfig/nfs. Add or correct the following line:

LOCKD_TCPPORT=lockd-port
Where lockd-port is a port which is not used by any other service on your network.

Configure lockd to use static UDP port xccdf_org.ssgproject.content_rule_nfs_fixed_lockd_udp_port CCE-27063-7

Configure lockd to use static UDP port

Rule IDxccdf_org.ssgproject.content_rule_nfs_fixed_lockd_udp_port
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27063-7

Configure the lockd daemon to use a static UDP port as opposed to letting the RPC Bind service dynamically assign a port. Edit the file /etc/sysconfig/nfs. Add or correct the following line:

LOCKD_UDPPORT=lockd-port
Where lockd-port is a port which is not used by any other service on your network.

Configure statd to use static port xccdf_org.ssgproject.content_rule_nfs_fixed_statd_port CCE-26889-6

Configure statd to use static port

Rule IDxccdf_org.ssgproject.content_rule_nfs_fixed_statd_port
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26889-6

Configure the statd daemon to use a static port as opposed to letting the RPC Bind service dynamically assign a port. Edit the file /etc/sysconfig/nfs. Add or correct the following line:

STATD_PORT=statd-port
Where statd-port is a port which is not used by any other service on your network.

Configure mountd to use static port xccdf_org.ssgproject.content_rule_nfs_fixed_mountd_port CCE-27114-8

Configure mountd to use static port

Rule IDxccdf_org.ssgproject.content_rule_nfs_fixed_mountd_port
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27114-8

Configure the mountd daemon to use a static port as opposed to letting the RPC Bind service dynamically assign a port. Edit the file /etc/sysconfig/nfs. Add or correct the following line:

MOUNTD_PORT=statd-port
Where mountd-port is a port which is not used by any other service on your network.

Specify UID and GID for Anonymous NFS Connections xccdf_org.ssgproject.content_rule_nfs_no_anonymous CCE-27414-2

Specify UID and GID for Anonymous NFS Connections

Rule IDxccdf_org.ssgproject.content_rule_nfs_no_anonymous
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27414-2

To specify the UID and GID for remote root users, edit the /etc/exports file and add the following for each export:

anonuid=-1
anongid=-1

Disable Network File System (nfs) xccdf_org.ssgproject.content_rule_service_nfs_disabled CCE-27199-9

Disable Network File System (nfs)

Rule IDxccdf_org.ssgproject.content_rule_service_nfs_disabled
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27199-9

The Network File System (NFS) service allows remote hosts to mount and interact with shared filesystems on the local machine. If the local machine is not designated as a NFS server then this service should be disabled. The nfs service can be disabled with the following command: # chkconfig nfs off

Remediation script:
#
# Disable nfs for all run levels
#
chkconfig --level 0123456 nfs off

#
# Stop nfs if currently running
#
service nfs stop
Disable Secure RPC Server Service (rpcsvcgssd) xccdf_org.ssgproject.content_rule_service_rpcsvcgssd_disabled CCE-27122-1

Disable Secure RPC Server Service (rpcsvcgssd)

Rule IDxccdf_org.ssgproject.content_rule_service_rpcsvcgssd_disabled
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27122-1

The rpcsvcgssd service manages RPCSEC GSS contexts required to secure protocols that use RPC (most often Kerberos and NFS). The rpcsvcgssd service is the server-side of RPCSEC GSS. If the system does not require secure RPC then this service should be disabled. The rpcsvcgssd service can be disabled with the following command: # chkconfig rpcsvcgssd off

Remediation script:
#
# Disable rpcsvcgssd for all run levels
#
chkconfig --level 0123456 rpcsvcgssd off

#
# Stop rpcsvcgssd if currently running
#
service rpcsvcgssd stop
Mount Remote Filesystems with nodev xccdf_org.ssgproject.content_rule_use_nodev_option_on_nfs_mounts CCE-27090-0

Mount Remote Filesystems with nodev

Rule IDxccdf_org.ssgproject.content_rule_use_nodev_option_on_nfs_mounts
Result
pass
Time2014-07-17T13:53:55
Severitymedium
Identifiers
  • CCE-27090-0

Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of any NFS mounts.

Mount Remote Filesystems with nosuid xccdf_org.ssgproject.content_rule_use_nosuid_option_on_nfs_mounts CCE-26972-0

Mount Remote Filesystems with nosuid

Rule IDxccdf_org.ssgproject.content_rule_use_nosuid_option_on_nfs_mounts
Result
pass
Time2014-07-17T13:53:55
Severitymedium
Identifiers
  • CCE-26972-0

Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of any NFS mounts.

Use Root-Squashing on All Exports xccdf_org.ssgproject.content_rule_use_root_squashing_all_exports CCE-27138-7

Use Root-Squashing on All Exports

Rule IDxccdf_org.ssgproject.content_rule_use_root_squashing_all_exports
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27138-7

If a filesystem is exported using root squashing, requests from root on the client are considered to be unprivileged (mapped to a user such as nobody). This provides some mild protection against remote abuse of an NFS server. Root squashing is enabled by default, and should not be disabled.



Ensure that no line in /etc/exports contains the option no_root_squash.

Restrict NFS Clients to Privileged Ports xccdf_org.ssgproject.content_rule_restrict_nfs_clients_to_privileged_ports CCE-27121-3

Restrict NFS Clients to Privileged Ports

Rule IDxccdf_org.ssgproject.content_rule_restrict_nfs_clients_to_privileged_ports
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27121-3

By default, the server NFS implementation requires that all client requests be made from ports less than 1024. If your organization has control over machines connected to its network, and if NFS requests are prohibited at the border firewall, this offers some protection against malicious requests from unprivileged users. Therefore, the default should not be changed.



To ensure that the default has not been changed, ensure no line in /etc/exports contains the option insecure.

Ensure Insecure File Locking is Not Allowed xccdf_org.ssgproject.content_rule_no_insecure_locks_exports CCE-27167-6

Ensure Insecure File Locking is Not Allowed

Rule IDxccdf_org.ssgproject.content_rule_no_insecure_locks_exports
Result
notchecked
Time2014-07-17T13:53:55
Severitymedium
Identifiers
  • CCE-27167-6

By default the NFS server requires secure file-lock requests, which require credentials from the client in order to lock a file. Most NFS clients send credentials with file lock requests, however, there are a few clients that do not send credentials when requesting a file-lock, allowing the client to only be able to lock world-readable files. To get around this, the insecure_locks option can be used so these clients can access the desired export. This poses a security risk by potentially allowing the client access to data for which it does not have authorization. Remove any instances of the insecure_locks option from the file /etc/exports.

Disable DNS Server xccdf_org.ssgproject.content_rule_disable_dns_server CCE-26873-0

Disable DNS Server

Rule IDxccdf_org.ssgproject.content_rule_disable_dns_server
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26873-0

The named service can be disabled with the following command: # chkconfig named off

Uninstall bind Package xccdf_org.ssgproject.content_rule_uninstall_bind CCE-27030-6

Uninstall bind Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_bind
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27030-6

To remove the bind package, which contains the named service, run the following command:

# yum erase bind

Disable Zone Transfers from the Nameserver xccdf_org.ssgproject.content_rule_dns_server_disable_zone_transfers CCE-27528-9

Disable Zone Transfers from the Nameserver

Rule IDxccdf_org.ssgproject.content_rule_dns_server_disable_zone_transfers
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27528-9

Is it necessary for a secondary nameserver to receive zone data via zone transfer from the primary server? If not, follow the instructions in this section. If so, see the next section for instructions on protecting zone transfers. Add or correct the following directive within /etc/named.conf:

options {
  allow-transfer { none; };
  ...
}

Authenticate Zone Transfers xccdf_org.ssgproject.content_rule_dns_server_authenticate_zone_transfers CCE-27496-9

Authenticate Zone Transfers

Rule IDxccdf_org.ssgproject.content_rule_dns_server_authenticate_zone_transfers
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27496-9

If it is necessary for a secondary nameserver to receive zone data via zone transfer from the primary server, follow the instructions here. Use dnssec-keygen to create a symmetric key file in the current directory:

# cd /tmp
# dnssec-keygen -a HMAC-MD5 -b 128 -n HOST dns.example.com
Kdns.example.com .+aaa +iiiii
This output is the name of a file containing the new key. Read the file to find the base64-encoded key string:
# cat Kdns.example.com .+NNN +MMMMM .key
dns.example.com IN KEY 512 3 157 base64-key-string
Add the directives to /etc/named.conf on the primary server:
key zone-transfer-key {
  algorithm hmac-md5;
  secret "base64-key-string ";
};
zone "example.com " IN {
  type master;
  allow-transfer { key zone-transfer-key; };
  ...
};
Add the directives below to /etc/named.conf on the secondary nameserver:
key zone-transfer-key {
  algorithm hmac-md5;
  secret "base64-key-string ";
};

server IP-OF-MASTER {
  keys { zone-transfer-key; };
};

zone "example.com " IN {
  type slave;
  masters { IP-OF-MASTER ; };
  ...
};

Disable Dynamic Updates xccdf_org.ssgproject.content_rule_dns_server_disable_dynamic_updates CCE-27105-6

Disable Dynamic Updates

Rule IDxccdf_org.ssgproject.content_rule_dns_server_disable_dynamic_updates
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27105-6

Is there a mission-critical reason to enable the risky dynamic update functionality? If not, edit /etc/named.conf. For each zone specification, correct the following directive if necessary:

zone "example.com " IN {
  allow-update { none; };
  ...
};

Disable vsftpd Service xccdf_org.ssgproject.content_rule_disable_vsftpd CCE-26948-0

Disable vsftpd Service

Rule IDxccdf_org.ssgproject.content_rule_disable_vsftpd
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26948-0

The vsftpd service can be disabled with the following command: # chkconfig vsftpd off

Remediation script:
if service vsftpd status >/dev/null; then
	service vsftpd stop
fi
Uninstall vsftpd Package xccdf_org.ssgproject.content_rule_uninstall_vsftpd CCE-26687-4

Uninstall vsftpd Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_vsftpd
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26687-4

The vsftpd package can be removed with the following command: # yum erase vsftpd

Install vsftpd Package xccdf_org.ssgproject.content_rule_package_vsftpd_installed CCE-27187-4

Install vsftpd Package

Rule IDxccdf_org.ssgproject.content_rule_package_vsftpd_installed
Result
fail
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27187-4

If this machine must operate as an FTP server, install the vsftpd package via the standard channels.

# yum install vsftpd

Remediation script:
yum -y install vsftpd
Restrict Access to Anonymous Users if Possible xccdf_org.ssgproject.content_rule_ftp_restrict_to_anon CCE-27115-5

Restrict Access to Anonymous Users if Possible

Rule IDxccdf_org.ssgproject.content_rule_ftp_restrict_to_anon
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27115-5

Is there a mission-critical reason for users to transfer files to/from their own accounts using FTP, rather than using a secure protocol like SCP/SFTP? If not, edit the vsftpd configuration file. Add or correct the following configuration option:

local_enable=NO
If non-anonymous FTP logins are necessary, follow the guidance in the remainder of this section to secure these logins as much as possible.

Enable Logging of All FTP Transactions xccdf_org.ssgproject.content_rule_ftp_log_transactions CCE-27142-9

Enable Logging of All FTP Transactions

Rule IDxccdf_org.ssgproject.content_rule_ftp_log_transactions
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27142-9

Add or correct the following configuration options within the vsftpd configuration file, located at /etc/vsftpd/vsftpd.conf:

xferlog_enable=YES
xferlog_std_format=NO
log_ftp_protocol=YES

Create Warning Banners for All FTP Users xccdf_org.ssgproject.content_rule_ftp_present_banner CCE-27145-2

Create Warning Banners for All FTP Users

Rule IDxccdf_org.ssgproject.content_rule_ftp_present_banner
Result
notchecked
Time2014-07-17T13:53:55
Severitymedium
Identifiers
  • CCE-27145-2

Edit the vsftpd configuration file, which resides at /etc/vsftpd/vsftpd.conf by default. Add or correct the following configuration options:

banner_file=/etc/issue

Disable FTP Uploads if Possible xccdf_org.ssgproject.content_rule_ftp_disable_uploads CCE-27117-1

Disable FTP Uploads if Possible

Rule IDxccdf_org.ssgproject.content_rule_ftp_disable_uploads
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27117-1

Is there a mission-critical reason for users to upload files via FTP? If not, edit the vsftpd configuration file to add or correct the following configuration options:

write_enable=NO
If FTP uploads are necessary, follow the guidance in the remainder of this section to secure these transactions as much as possible.

Place the FTP Home Directory on its Own Partition xccdf_org.ssgproject.content_rule_ftp_home_partition CCE-27411-8

Place the FTP Home Directory on its Own Partition

Rule IDxccdf_org.ssgproject.content_rule_ftp_home_partition
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27411-8

By default, the anonymous FTP root is the home directory of the FTP user account. The df command can be used to verify that this directory is on its own partition.

Disable httpd Service xccdf_org.ssgproject.content_rule_disable_httpd CCE-27075-1

Disable httpd Service

Rule IDxccdf_org.ssgproject.content_rule_disable_httpd
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27075-1

The httpd service can be disabled with the following command: # chkconfig httpd off

Uninstall httpd Package xccdf_org.ssgproject.content_rule_uninstall_httpd CCE-27133-8

Uninstall httpd Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_httpd
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27133-8

The httpd package can be removed with the following command: # yum erase httpd

Set httpd ServerTokens Directive to Prod xccdf_org.ssgproject.content_rule_httpd_servertokens_prod CCE-27425-8

Set httpd ServerTokens Directive to Prod

Rule IDxccdf_org.ssgproject.content_rule_httpd_servertokens_prod
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27425-8

ServerTokens Prod restricts information in page headers, returning only the word "Apache."



Add or correct the following directive in /etc/httpd/conf/httpd.conf:

ServerTokens Prod

Set httpd ServerSignature Directive to Off xccdf_org.ssgproject.content_rule_httpd_serversignature_off CCE-27586-7

Set httpd ServerSignature Directive to Off

Rule IDxccdf_org.ssgproject.content_rule_httpd_serversignature_off
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27586-7

ServerSignature Off restricts httpd from displaying server version number on error pages.



Add or correct the following directive in /etc/httpd/conf/httpd.conf:

ServerSignature Off

Disable HTTP Digest Authentication xccdf_org.ssgproject.content_rule_httpd_digest_authentication CCE-27553-7

Disable HTTP Digest Authentication

Rule IDxccdf_org.ssgproject.content_rule_httpd_digest_authentication
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27553-7

The auth_digest module provides encrypted authentication sessions. If this functionality is unnecessary, comment out the related module:

#LoadModule auth_digest_module modules/mod_auth_digest.so

Disable HTTP mod_rewrite xccdf_org.ssgproject.content_rule_httpd_mod_rewrite CCE-27570-1

Disable HTTP mod_rewrite

Rule IDxccdf_org.ssgproject.content_rule_httpd_mod_rewrite
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27570-1

The mod_rewrite module is very powerful and can protect against certain classes of web attacks. However, it is also very complex and has a significant history of vulnerabilities itself. If its functionality is unnecessary, comment out the related module:

#LoadModule rewrite_module modules/mod_rewrite.so

Disable LDAP Support xccdf_org.ssgproject.content_rule_httpd_ldap_support CCE-27395-3

Disable LDAP Support

Rule IDxccdf_org.ssgproject.content_rule_httpd_ldap_support
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27395-3

The ldap module provides HTTP authentication via an LDAP directory. If its functionality is unnecessary, comment out the related modules:

#LoadModule ldap_module modules/mod_ldap.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
If LDAP is to be used, SSL encryption should be used as well.

Disable Server Side Includes xccdf_org.ssgproject.content_rule_httpd_server_side_includes CCE-27558-6

Disable Server Side Includes

Rule IDxccdf_org.ssgproject.content_rule_httpd_server_side_includes
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27558-6

Server Side Includes provide a method of dynamically generating web pages through the insertion of server-side code. However, the technology is also deprecated and introduces significant security concerns. If this functionality is unnecessary, comment out the related module:

#LoadModule include_module modules/mod_include.so
If there is a critical need for Server Side Includes, they should be enabled with the option IncludesNoExec to prevent arbitrary code execution. Additionally, user supplied data should be encoded to prevent cross-site scripting vulnerabilities.

Disable MIME Magic xccdf_org.ssgproject.content_rule_httpd_mime_magic CCE-27541-2

Disable MIME Magic

Rule IDxccdf_org.ssgproject.content_rule_httpd_mime_magic
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27541-2

The mime_magic module provides a second layer of MIME support that in most configurations is likely extraneous. If its functionality is unnecessary, comment out the related module:

#LoadModule mime_magic_module modules/mod_mime_magic.so

Disable WebDAV (Distributed Authoring and Versioning) xccdf_org.ssgproject.content_rule_httpd_webdav CCE-27329-2

Disable WebDAV (Distributed Authoring and Versioning)

Rule IDxccdf_org.ssgproject.content_rule_httpd_webdav
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27329-2

WebDAV is an extension of the HTTP protocol that provides distributed and collaborative access to web content. If its functionality is unnecessary, comment out the related modules:

#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
If there is a critical need for WebDAV, extra care should be taken in its configuration. Since DAV access allows remote clients to manipulate server files, any location on the server that is DAV enabled should be protected by access controls.

Disable Server Activity Status xccdf_org.ssgproject.content_rule_httpd_server_activity_status CCE-27468-8

Disable Server Activity Status

Rule IDxccdf_org.ssgproject.content_rule_httpd_server_activity_status
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27468-8

The status module provides real-time access to statistics on the internal operation of the web server. This may constitute an unnecessary information leak and should be disabled unless necessary. To do so, comment out the related module:

#LoadModule status_module modules/mod_status.so
If there is a critical need for this module, ensure that access to the status page is properly restricted to a limited set of hosts in the status handler configuration.

Disable Web Server Configuration Display xccdf_org.ssgproject.content_rule_httpd_server_configuration_display CCE-27507-3

Disable Web Server Configuration Display

Rule IDxccdf_org.ssgproject.content_rule_httpd_server_configuration_display
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27507-3

The info module creates a web page illustrating the configuration of the web server. This can create an unnecessary security leak and should be disabled. If its functionality is unnecessary, comment out the module:

#LoadModule info_module modules/mod_info.so
If there is a critical need for this module, use the Location directive to provide an access control list to restrict access to the information.

Disable URL Correction on Misspelled Entries xccdf_org.ssgproject.content_rule_httpd_url_correction CCE-27276-5

Disable URL Correction on Misspelled Entries

Rule IDxccdf_org.ssgproject.content_rule_httpd_url_correction
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27276-5

The speling module attempts to find a document match by allowing one misspelling in an otherwise failed request. If this functionality is unnecessary, comment out the module:

#LoadModule speling_module modules/mod_speling.so
This functionality weakens server security by making site enumeration easier.

Disable Proxy Support xccdf_org.ssgproject.content_rule_httpd_proxy_support CCE-27442-3

Disable Proxy Support

Rule IDxccdf_org.ssgproject.content_rule_httpd_proxy_support
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27442-3

The proxy module provides proxying support, allowing httpd to forward requests and serve as a gateway for other servers. If its functionality is unnecessary, comment out the module:

#LoadModule proxy_module modules/mod_proxy.so
If proxy support is needed, load mod_proxy and the appropriate proxy protocol handler module (one of mod_proxy_http, mod_proxy_ftp, or mod_proxy_connect). Additionally, make certain that a server is secure before enabling proxying, as open proxy servers are a security risk. mod_proxy_balancer enables load balancing, but requires that mod status be enabled.

Disable Cache Support xccdf_org.ssgproject.content_rule_httpd_cache_support CCE-26859-9

Disable Cache Support

Rule IDxccdf_org.ssgproject.content_rule_httpd_cache_support
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26859-9

The cache module allows httpd to cache data, optimizing access to frequently accessed content. However, it introduces potential security flaws such as the possibility of circumventing Allow and Deny directives.



If this functionality is unnecessary, comment out the module:

#LoadModule cache_module modules/mod_cache.so
If caching is required, it should not be enabled for any limited-access content.

Disable CGI Support xccdf_org.ssgproject.content_rule_httpd_cgi_support CCE-27362-3

Disable CGI Support

Rule IDxccdf_org.ssgproject.content_rule_httpd_cgi_support
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27362-3

The cgi module allows HTML to interact with the CGI web programming language.



If this functionality is unnecessary, comment out the module:

#LoadModule cgi_module modules/mod_cgi.so
[an error occurred while processing this directive] If the web server requires the use of CGI, enable mod_cgi.

Restrict Root Directory xccdf_org.ssgproject.content_rule_httpd_restrict_root_directory CCE-27009-0

Restrict Root Directory

Rule IDxccdf_org.ssgproject.content_rule_httpd_restrict_root_directory
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27009-0

The httpd root directory should always have the most restrictive configuration enabled.

<Directory / >
   Options None
   AllowOverride None
   Order allow,deny
</Directory>

Restrict Web Directory xccdf_org.ssgproject.content_rule_httpd_restrict_web_directory CCE-27574-3

Restrict Web Directory

Rule IDxccdf_org.ssgproject.content_rule_httpd_restrict_web_directory
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27574-3

The default configuration for the web (/var/www/html) Directory allows directory indexing (Indexes) and the following of symbolic links (FollowSymLinks). Neither of these is recommended.



The /var/www/html directory hierarchy should not be viewable via the web, and symlinks should only be followed if the owner of the symlink also owns the linked file.



Ensure that this policy is adhered to by altering the related section of the configuration:

<Directory "/var/www/html">
#  ...
   Options SymLinksIfOwnerMatch
#  ...
</Directory>

Restrict Other Critical Directories xccdf_org.ssgproject.content_rule_httpd_restrict_critical_directories CCE-27565-1

Restrict Other Critical Directories

Rule IDxccdf_org.ssgproject.content_rule_httpd_restrict_critical_directories
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27565-1

All accessible web directories should be configured with similarly restrictive settings. The Options directive should be limited to necessary functionality and the AllowOverride directive should be used only if needed. The Order and Deny access control tags should be used to deny access by default, allowing access only where necessary.

Limit Available Methods xccdf_org.ssgproject.content_rule_httpd_limit_available_methods CCE-27581-8

Limit Available Methods

Rule IDxccdf_org.ssgproject.content_rule_httpd_limit_available_methods
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27581-8

Web server methods are defined in section 9 of RFC 2616 (http://www.ietf.org/rfc/rfc2616.txt). If a web server does not require the implementation of all available methods, they should be disabled.



Note: GET and POST are the most common methods. A majority of the others are limited to the WebDAV protocol.

<Directory /var/www/html>
# ...
   # Only allow specific methods (this command is case-sensitive!)
   <LimitExcept GET POST>
      Order allow,deny
   </LimitExcept>
# ...
</Directory>

Install mod_ssl xccdf_org.ssgproject.content_rule_httpd_install_mod_ssl CCE-27403-5

Install mod_ssl

Rule IDxccdf_org.ssgproject.content_rule_httpd_install_mod_ssl
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27403-5

Install the mod_ssl module:

# yum install mod_ssl

Install mod_security xccdf_org.ssgproject.content_rule_httpd_install_mod_security CCE-27525-5

Install mod_security

Rule IDxccdf_org.ssgproject.content_rule_httpd_install_mod_security
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27525-5

Install the security module:

# yum install mod_security

Set Permissions on the /var/log/httpd/ Directory xccdf_org.ssgproject.content_rule_httpd_logs_permissions CCE-27150-2

Set Permissions on the /var/log/httpd/ Directory

Rule IDxccdf_org.ssgproject.content_rule_httpd_logs_permissions
Result
fail
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27150-2

Ensure that the permissions on the web server log directory is set to 700:

# chmod 700 /var/log/httpd/
This is its default setting.

Set Permissions on the /etc/httpd/conf/ Directory xccdf_org.ssgproject.content_rule_httpd_conf_dir_permissions CCE-27487-8

Set Permissions on the /etc/httpd/conf/ Directory

Rule IDxccdf_org.ssgproject.content_rule_httpd_conf_dir_permissions
Result
fail
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27487-8

Set permissions on the web server configuration directory to 750:

# chmod 750 /etc/httpd/conf/

Set Permissions on All Configuration Files Inside /etc/httpd/conf/ xccdf_org.ssgproject.content_rule_httpd_conf_files_permissions CCE-27316-9

Set Permissions on All Configuration Files Inside /etc/httpd/conf/

Rule IDxccdf_org.ssgproject.content_rule_httpd_conf_files_permissions
Result
fail
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27316-9

Set permissions on the web server configuration files to 640:

# chmod 640 /etc/httpd/conf/*

Disable Dovecot Service xccdf_org.ssgproject.content_rule_disable_dovecot CCE-26922-5

Disable Dovecot Service

Rule IDxccdf_org.ssgproject.content_rule_disable_dovecot
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26922-5

The dovecot service can be disabled with the following command: # chkconfig dovecot off

Uninstall dovecot Package xccdf_org.ssgproject.content_rule_uninstall_dovecot CCE-27039-7

Uninstall dovecot Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_dovecot
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27039-7

The dovecot package can be uninstalled with the following command:

# yum erase dovecot

Enable the SSL flag in /etc/dovecot.conf xccdf_org.ssgproject.content_rule_dovecot_enable_ssl CCE-27571-9

Enable the SSL flag in /etc/dovecot.conf

Rule IDxccdf_org.ssgproject.content_rule_dovecot_enable_ssl
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27571-9

To allow clients to make encrypted connections the ssl flag in Dovecot's configuration file needs to be set to yes.



Edit /etc/dovecot/conf.d/10-ssl.conf and add or correct the following line:

ssl = yes

Configure Dovecot to Use the SSL Certificate file xccdf_org.ssgproject.content_rule_dovecot_configure_ssl_cert CCE-27459-7

Configure Dovecot to Use the SSL Certificate file

Rule IDxccdf_org.ssgproject.content_rule_dovecot_configure_ssl_cert
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27459-7

This option tells Dovecot where to find the the mail server's SSL Certificate.



Edit /etc/dovecot/conf.d/10-ssl.conf and add or correct the following line (note: the path below is the default path set by the Dovecot installation. If you are using a different path, ensure you reference the appropriate file):

ssl_cert = </etc/pki/dovecot/certs/dovecot.pem

Configure Dovecot to Use the SSL Key file xccdf_org.ssgproject.content_rule_dovecot_configure_ssl_key CCE-27633-7

Configure Dovecot to Use the SSL Key file

Rule IDxccdf_org.ssgproject.content_rule_dovecot_configure_ssl_key
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27633-7

This option tells Dovecot where to find the the mail server's SSL Key.



Edit /etc/dovecot/conf.d/10-ssl.conf and add or correct the following line (note: the path below is the default path set by the Dovecot installation. If you are using a different path, ensure you reference the appropriate file):

ssl_key = </etc/pki/dovecot/private/dovecot.pem

Disable Plaintext Authentication xccdf_org.ssgproject.content_rule_dovecot_disable_plaintext_auth CCE-27144-5

Disable Plaintext Authentication

Rule IDxccdf_org.ssgproject.content_rule_dovecot_disable_plaintext_auth
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27144-5

To prevent Dovecot from attempting plaintext authentication of clients, edit /etc/dovecot/conf.d/10-auth.conf and add or correct the following line:

disable_plaintext_auth = yes

Disable Samba xccdf_org.ssgproject.content_rule_disable_smb_server CCE-27143-7

Disable Samba

Rule IDxccdf_org.ssgproject.content_rule_disable_smb_server
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27143-7

The smb service can be disabled with the following command: # chkconfig smb off

Disable Root Access to SMB Shares xccdf_org.ssgproject.content_rule_smb_server_disable_root CCE-27533-9

Disable Root Access to SMB Shares

Rule IDxccdf_org.ssgproject.content_rule_smb_server_disable_root
Result
notchecked
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27533-9

Administrators should not use administrator accounts to access Samba file and printer shares. Disable the root user and the wheel administrator group:

[share]
  invalid users = root @wheel
If administrator accounts cannot be disabled, ensure that local machine passwords and Samba service passwords do not match.

Require Client SMB Packet Signing, if using smbclient xccdf_org.ssgproject.content_rule_require_smb_client_signing CCE-26328-5

Require Client SMB Packet Signing, if using smbclient

Rule IDxccdf_org.ssgproject.content_rule_require_smb_client_signing
Result
fail
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26328-5

To require samba clients running smbclient to use packet signing, add the following to the [global] section of the Samba configuration file, /etc/samba/smb.conf:

client signing = mandatory
Requiring samba clients such as smbclient to use packet signing ensures they can only communicate with servers that support packet signing.

Require Client SMB Packet Signing, if using mount.cifs xccdf_org.ssgproject.content_rule_require_smb_client_signing_mount.cifs CCE-26792-2

Require Client SMB Packet Signing, if using mount.cifs

Rule IDxccdf_org.ssgproject.content_rule_require_smb_client_signing_mount.cifs
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26792-2

Require packet signing of clients who mount Samba shares using the mount.cifs program (e.g., those who specify shares in /etc/fstab). To do so, ensure signing options (either sec=krb5i or sec=ntlmv2i) are used.



See the mount.cifs(8) man page for more information. A Samba client should only communicate with servers who can support SMB packet signing.

Disable Squid xccdf_org.ssgproject.content_rule_disable_squid CCE-27146-0

Disable Squid

Rule IDxccdf_org.ssgproject.content_rule_disable_squid
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-27146-0

The squid service can be disabled with the following command: # chkconfig squid off

Uninstall squid Package xccdf_org.ssgproject.content_rule_uninstall_squid CCE-26977-9

Uninstall squid Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_squid
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26977-9

The squid package can be removed with the following command: # yum erase squid

Disable snmpd Service xccdf_org.ssgproject.content_rule_disable_snmpd CCE-26906-8

Disable snmpd Service

Rule IDxccdf_org.ssgproject.content_rule_disable_snmpd
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26906-8

The snmpd service can be disabled with the following command: # chkconfig snmpd off

Uninstall net-snmp Package xccdf_org.ssgproject.content_rule_uninstall_net-snmp CCE-26332-7

Uninstall net-snmp Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_net-snmp
Result
pass
Time2014-07-17T13:53:55
Severitylow
Identifiers
  • CCE-26332-7

The net-snmp package provides the snmpd service. The net-snmpd package can be removed with the following command: # yum erase net-snmpd

Configure SNMP Service to Use Only SNMPv3 or Newer xccdf_org.ssgproject.content_rule_snmpd_use_newer_protocol CCE-27365-6

Configure SNMP Service to Use Only SNMPv3 or Newer

Rule IDxccdf_org.ssgproject.content_rule_snmpd_use_newer_protocol
Result
notchecked
Time2014-07-17T13:53:55
Severitymedium
Identifiers
  • CCE-27365-6

Edit /etc/snmp/snmpd.conf, removing any references to v1, v2c, or com2sec. Upon doing that, restart the SNMP service:

# service snmpd restart

Ensure Default Password Is Not Used xccdf_org.ssgproject.content_rule_snmpd_not_default_password CCE-27593-3

Ensure Default Password Is Not Used

Rule IDxccdf_org.ssgproject.content_rule_snmpd_not_default_password
Result
notchecked
Time2014-07-17T13:53:55
Severitymedium
Identifiers
  • CCE-27593-3

Edit /etc/snmp/snmpd.conf, remove default community string public. Upon doing that, restart the SNMP service:

# service snmpd restart

Product Meets this Requirement xccdf_org.ssgproject.content_rule_met_inherently_generic

Product Meets this Requirement

Rule IDxccdf_org.ssgproject.content_rule_met_inherently_generic
Result
notselected
Time2014-07-17T13:53:55
Severitylow
Identifiers

    This requirement is a permanent not a finding. No fix is required.

    Product Meets this Requirement xccdf_org.ssgproject.content_rule_met_inherently_auditing

    Product Meets this Requirement

    Rule IDxccdf_org.ssgproject.content_rule_met_inherently_auditing
    Result
    notselected
    Time2014-07-17T13:53:55
    Severitylow
    Identifiers

      This requirement is a permanent not a finding. No fix is required.

      Product Meets this Requirement xccdf_org.ssgproject.content_rule_met_inherently_nonselected

      Product Meets this Requirement

      Rule IDxccdf_org.ssgproject.content_rule_met_inherently_nonselected
      Result
      notselected
      Time2014-07-17T13:53:55
      Severitylow
      Identifiers

        This requirement is a permanent not a finding. No fix is required.

        Guidance Does Not Meet this Requirement Due to Impracticality or Scope xccdf_org.ssgproject.content_rule_unmet_nonfinding_nonselected_scope

        Guidance Does Not Meet this Requirement Due to Impracticality or Scope

        Rule IDxccdf_org.ssgproject.content_rule_unmet_nonfinding_nonselected_scope
        Result
        notselected
        Time2014-07-17T13:53:55
        Severitylow
        Identifiers

          This requirement is NA. No fix is required.

          Implementation of the Requirement is Not Supported xccdf_org.ssgproject.content_rule_unmet_finding_nonselected

          Implementation of the Requirement is Not Supported

          Rule IDxccdf_org.ssgproject.content_rule_unmet_finding_nonselected
          Result
          notselected
          Time2014-07-17T13:53:55
          Severitylow
          Identifiers

            This requirement is a permanent finding and cannot be fixed. An appropriate mitigation for the system must be implemented but this finding cannot be considered fixed.

            Guidance Does Not Meet this Requirement Due to Impracticality or Scope xccdf_org.ssgproject.content_rule_unmet_nonfinding_scope

            Guidance Does Not Meet this Requirement Due to Impracticality or Scope

            Rule IDxccdf_org.ssgproject.content_rule_unmet_nonfinding_scope
            Result
            notselected
            Time2014-07-17T13:53:55
            Severitylow
            Identifiers

              This requirement is NA. No fix is required.

              A process for prompt installation of OS updates must exist. xccdf_org.ssgproject.content_rule_update_process

              A process for prompt installation of OS updates must exist.

              Rule IDxccdf_org.ssgproject.content_rule_update_process
              Result
              notselected
              Time2014-07-17T13:53:55
              Severitylow
              Identifiers

                Procedures to promptly apply software updates must be established and executed. The Red Hat operating system provides support for automating such a process, by running the yum program through a cron job or by managing the system and its packages through the Red Hat Network or a Satellite Server.