Guide to the Secure Configuration of Red Hat Enterprise Linux 6

with profile United States Government Configuration Baseline (USGCB)

This guide presents a catalog of security-relevant configuration settings for Red Hat Enterprise Linux 6. It is a rendering of content structured in the eXtensible Configuration Checklist Description Format (XCCDF) in order to support security automation. The SCAP content is is available in the scap-security-guide package which is developed at http://fedorahosted.org/scap-security-guide.

Providing system administrators with such guidance informs them how to securely configure systems under their control in a variety of network roles. Policy makers and baseline creators can use this catalog of settings, with its associated references to higher-level security control catalogs, in order to assist them in security baseline creation. This guide is a catalog, not a checklist, and satisfaction of every item is not likely to be possible or sensible in any operational scenario. However, the XCCDF format enables granular selection and adjustment of settings, and their association with OVAL and OCIL content provides an automated checking capability. Transformations of this document, and its associated automated checking content, are capable of providing baselines that meet a diverse set of policy objectives. Some example XCCDF Profiles, which are selections of items that form checklists and can be used as baselines, are available with this guide. They can be processed, in an automated fashion, with tools that support the Security Content Automation Protocol (SCAP). The DISA STIG for RHEL 6, which provides required settings for US Department of Defense systems, is one example of a baseline created from this guidance.
Do not attempt to implement any of the settings in this guide without first testing them in a non-operational environment. The creators of this guidance assume no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.

Evaluation Characteristics

Target machinelocalhost.localdomain
Benchmark URL/tmp/tmp.rMIVmr94bL
Benchmark IDxccdf_org.ssgproject.content_benchmark_RHEL-6
Profile IDxccdf_org.ssgproject.content_profile_usgcb-rhel6-server
Started at2015-08-22T01:29:00
Finished at2015-08-22T01:36:05
Performed bymsrubar

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.31
  • IPv6  0:0:0:0:0:0:0:1
  • IPv6  fe80:0:0:0:5054:ff:febf:46ad
  • MAC  00:00:00:00:00:00
  • MAC  52:54:00:BF:46:AD

Compliance and Scoring

The target system did not satisfy the conditions of 58 rules! Furthermore, the results of 78 rules were inconclusive. Please review rule results and consider applying remediation.

Rule results

83 passed
58 failed
82 other

Severity of failed rules

0 other
51 low
5 medium
2 high

Score

Scoring systemScoreMaximumPercent
urn:xccdf:scoring:default57.476181100.000000
57.48%

Rule Overview

TitleSeverityResult
Guide to the Secure Configuration of Red Hat Enterprise Linux 6 58x fail 75x error 3x unknown 4x notchecked
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 57x fail 56x error 3x unknown 4x notchecked
Installing and Maintaining Software 8x fail 1x error 1x notchecked
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 2x fail 1x notchecked
Ensure Red Hat GPG Key Installedhigh
fail
Ensure gpgcheck Enabled In Main Yum Configurationhigh
pass
Ensure gpgcheck Enabled For All Yum Package Repositorieshigh
fail
Ensure Software Patches Installedhigh
notchecked
Software Integrity Checking 1x fail 1x error
Verify Integrity with AIDE 1x error
Install AIDEmedium
error
Build and Test AIDE Databasemedium
notselected
Configure Periodic Execution of AIDEmedium
notselected
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 12x fail 13x error 1x unknown 1x notchecked
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 8x error
Disable Modprobe Loading of USB Storage Driverlow
notselected
Disable Kernel Support for USB via Bootloader Configurationlow
notselected
Disable Booting from USB Devices in Boot Firmwarelow
notselected
Assign Password to Prevent Changes to Boot Firmware Configurationlow
notselected
Disable the Automounterlow
error
Disable GNOME Automountinglow
notselected
Disable Mounting of cramfslow
error
Disable Mounting of freevxfslow
error
Disable Mounting of jffs2low
error
Disable Mounting of hfslow
error
Disable Mounting of hfspluslow
error
Disable Mounting of squashfslow
error
Disable Mounting of udflow
error
Disable All GNOME Thumbnailerslow
notselected
Verify Permissions on Important Files and Directories 1x fail 1x unknown
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
notselected
Verify that Shared Library Files Have Root Ownershipmedium
notselected
Verify that System Executables Have Restrictive Permissionsmedium
notselected
Verify that System Executables Have Root Ownershipmedium
notselected
Verify that All World-Writable Directories Have Sticky Bits Setlow
pass
Ensure No World-Writable Files Existmedium
pass
Ensure All SGID Executables Are Authorizedlow
fail
Ensure All SUID Executables Are Authorizedlow
pass
Ensure All Files Are Owned by a Userlow
pass
Ensure All Files Are Owned by a Grouplow
unknown
Ensure All World-Writable Directories Are Owned by a System Accountlow
pass
Restrict Programs from Dangerous Execution Patterns 5x error 1x notchecked
Daemon Umask 1x error
Set Daemon Umasklow
error
Disable Core Dumps 2x error
Disable Core Dumps for All Userslow
error
Disable Core Dumps for SUID programslow
error
Enable ExecShield 2x error
Enable ExecShieldmedium
error
Enable Randomized Layout of Virtual Address Spacemedium
error
Enable Execute Disable (XD) or No Execute (NX) Support on x86 Systems 1x notchecked
Install PAE Kernel on Supported 32-bit x86 Systemslow
notchecked
Enable NX or XD Support in the BIOSlow
notselected
Restrict Access to Kernel Message Bufferlow
notselected
SELinux 1x error 1x notchecked
Ensure SELinux Not Disabled in /etc/grub.confmedium
error
Ensure SELinux State is Enforcingmedium
pass
Configure SELinux Policylow
pass
Enable the SELinux Context Restoration Service (restorecond)low
notselected
Uninstall setroubleshoot Packagelow
notselected
Uninstall mcstrans Packagelow
notselected
Ensure No Daemons are Unconfined by SELinuxmedium
notchecked
Ensure No Device Files are Unlabeled by SELinuxlow
pass
Account and Access Control 6x fail 20x error
Protect Accounts by Restricting Password-Based Login 7x error
Restrict Root Logins 2x error
Direct root Logins Not Allowedmedium
notselected
Restrict Virtual Console Root Loginsmedium
error
Restrict Serial Port Root Loginslow
error
Restrict Web Browser Use for Administrative Accountslow
notselected
Ensure that System Accounts Do Not Run a Shell Upon Loginmedium
notselected
Verify Only Root Has UID 0medium
pass
Root Path Must Be Vendor Defaultlow
notselected
Verify Proper Storage and Existence of Password Hashes 1x error
Prevent Log In to Accounts With Empty Passwordhigh
error
Verify All Account Password Hashes are Shadowedmedium
pass
All GIDs referenced in /etc/passwd must be defined in /etc/grouplow
notselected
Verify No netrc Files Existmedium
notselected
Set Password Expiration Parameters 3x error
Set Password Minimum Length in login.defsmedium
error
Set Password Maximum Agemedium
error
Set Password Warning Agelow
error
Set Account Expiration Following Inactivitylow
error
Protect Accounts by Configuring PAM 7x error
Set Password Quality Requirements 5x error
Set Password Quality Requirements, if using pam_cracklib 5x error
Set Password Retry Prompts Permitted Per-Sessionlow
pass
Set Password to Maximum of Three Consecutive Repeating Characterslow
notselected
Set Password Strength Minimum Digit Characterslow
error
Set Password Strength Minimum Uppercase Characterslow
error
Set Password Strength Minimum Special Characterslow
error
Set Password Strength Minimum Lowercase Characterslow
error
Set Password Strength Minimum Different Characterslow
error
Set Password Strength Minimum Different Categorieslow
notselected
Set Lockouts for Failed Password Attempts 2x error
Set Deny For Failed Password Attemptsmedium
error
Set Lockout Time For Failed Password Attemptsmedium
notselected
Set Interval For Counting Failed Password Attemptsmedium
notselected
Limit Password Reusemedium
error
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
notselected
Secure Session Configuration Files for Login Accounts 2x fail 3x error
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 3x error
Ensure the Default Bash Umask is Set Correctlylow
error
Ensure the Default C Shell Umask is Set Correctlylow
error
Ensure the Default Umask is Set Correctly in /etc/profilelow
error
Ensure that User Home Directories are not Group-Writable or World-Readablelow
fail
Protect Physical Console Access 4x fail 2x error
Set Boot Loader Password 1x error
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
error
Configure Screen Locking 4x 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
Install the screen Packagelow
notselected
Enable Smart Card Loginmedium
notselected
Require Authentication for Single User Modemedium
notselected
Disable Ctrl-Alt-Del Reboot Activationhigh
notselected
Disable Interactive Bootmedium
error
Warning Banners for System Accesses 1x error
Modify the System Login Bannermedium
error
Disable the User Listlow
notselected
Network Configuration and Firewalls 3x fail 19x error 1x notchecked
Disable Unused Interfaces
Kernel Parameters Which Affect Networking 10x error
Network Parameters for Hosts Only 2x error
Disable Kernel Parameter for Sending ICMP Redirects by Defaultmedium
error
Disable Kernel Parameter for Sending ICMP Redirects for All Interfacesmedium
error
Disable Kernel Parameter for IP Forwardingmedium
pass
Network Related Kernel Runtime Parameters for Hosts and Routers 8x error
Disable Kernel Parameter for Accepting Source-Routed Packets for All Interfacesmedium
notselected
Disable Kernel Parameter for Accepting ICMP Redirects for All Interfacesmedium
error
Disable Kernel Parameter for Accepting Secure Redirects for All Interfacesmedium
error
Enable Kernel Parameter to Log Martian Packetslow
error
Disable Kernel Parameter for Accepting Source-Routed Packets By Defaultmedium
pass
Disable Kernel Parameter for Accepting ICMP Redirects By Defaultlow
error
Disable Kernel Parameter for Accepting Secure Redirects By Defaultmedium
error
Enable Kernel Parameter to Ignore ICMP Broadcast Echo Requestslow
error
Enable Kernel Parameter to Ignore Bogus ICMP Error Responseslow
error
Enable Kernel Parameter to Use TCP Syncookiesmedium
pass
Enable Kernel Parameter to Use Reverse Path Filtering for All Interfacesmedium
error
Enable Kernel Parameter to Use Reverse Path Filtering by Defaultmedium
pass
Wireless Networking 1x fail 1x notchecked
Disable Wireless Through Software Configuration 1x fail 1x notchecked
Disable WiFi or Bluetooth in BIOSlow
notchecked
Deactivate Wireless Network Interfaceslow
pass
Disable Bluetooth Servicemedium
pass
Disable Bluetooth Kernel Modulesmedium
fail
IPv6 2x fail 2x error
Disable Support for IPv6 Unless Needed 2x fail
Disable IPv6 Networking Support Automatic Loadingmedium
fail
Disable Interface Usage of IPv6low
notselected
Disable Support for RPC IPv6low
fail
Configure IPv6 Settings if Necessary 2x error
Disable Automatic Configuration 2x error
Disable Accepting IPv6 Router Advertisementslow
error
Disable Accepting IPv6 Redirectsmedium
error
Limit Network-Transmitted Configuration if Using Static IPv6 Addresses
Manually Assign Global IPv6 Addresslow
notselected
Use Privacy Extensions for Addresslow
notselected
Manually Assign IPv6 Router Addresslow
notselected
iptables and ip6tables 2x error
Inspect and Activate Default Rules
Verify ip6tables Enabled if Using IPv6medium
pass
Set Default ip6tables Policy for Incoming Packetsmedium
notselected
Verify iptables Enabledmedium
pass
Strengthen the Default Ruleset 2x error
Restrict ICMP Message Types
Log and Drop Packets with Suspicious Source Addresses
Set Default iptables Policy for Incoming Packetsmedium
error
Set Default iptables Policy for Forwarded Packetsmedium
error
Transport Layer Security Support
Uncommon Network Protocols 4x error
Disable DCCP Supportmedium
error
Disable SCTP Supportmedium
error
Disable RDS Supportlow
error
Disable TIPC Supportmedium
error
IPSec Support
Install openswan Packagelow
notselected
Disable Zeroconf Networkinglow
error
Ensure System is Not Acting as a Network Snifferlow
notselected
Configure Syslog 1x fail 1x error 2x unknown
Ensure Proper Configuration of Log Files 2x unknown
Ensure Log Files Are Owned By Appropriate Usermedium
pass
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
notselected
Enable rsyslog to Accept Messages via UDP, if Acting As Log Serverlow
notselected
Ensure All Logs are Rotated by logrotate 1x error
Ensure Logrotate Runs Periodicallylow
error
Configure Logwatch on the Central Log Server
Configure Logwatch HostLimit Linelow
notselected
Configure Logwatch SplitHosts Linelow
notselected
Ensure rsyslog is Installedmedium
pass
Enable rsyslog Servicemedium
pass
Disable Logwatch on Clients if a Logserver Existslow
notselected
System Accounting with auditd 27x fail 1x error
Configure auditd Data Retention
Configure auditd Number of Logs Retainedmedium
notselected
Configure auditd Max Log File Sizemedium
notselected
Configure auditd max_log_file_action Upon Reaching Maximum Log Sizemedium
notselected
Configure auditd space_left Action on Low Disk Spacemedium
notselected
Configure auditd admin_space_left Action on Low Disk Spacemedium
notselected
Configure auditd mail_acct Action on Low Disk Spacemedium
notselected
Configure auditd to use audispd pluginmedium
notselected
Configure auditd Rules for Comprehensive Auditing 27x fail
Records Events that Modify Date and Time Information 4x fail
Record attempts to alter time through adjtimexlow
fail
Record attempts to alter time through settimeofdaylow
fail
Record Attempts to Alter Time Through stimelow
pass
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
notselected
System Audit Logs Must Be Owned By Rootlow
notselected
Record Events that Modify the System's Mandatory Access Controlslow
fail
Record Attempts to Alter Logon and Logout Eventslow
notselected
Record Attempts to Alter Process and Session Initiation Informationlow
notselected
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
error
Services 1x fail 19x error
Obsolete Services
Xinetd
Disable xinetd Servicemedium
pass
Uninstall xinetd Packagelow
pass
Telnet
Disable telnet Servicehigh
pass
Uninstall telnet-server Packagehigh
pass
Remove telnet Clientslow
notselected
Rlogin, Rsh, and Rexec
Uninstall rsh-server Packagehigh
pass
Disable rexec Servicehigh
notselected
Disable rsh Servicehigh
notselected
Uninstal rsh Packagelow
notselected
Disable rlogin Servicehigh
notselected
Remove Rsh Trust Fileshigh
notselected
NIS
Uninstall ypserv Packagemedium
pass
Disable ypbind Servicemedium
pass
Remove NIS Clientlow
notselected
TFTP Server
Disable tftp Servicemedium
pass
Uninstall tftp-server Packagemedium
pass
Remove tftplow
notselected
Ensure tftp Daemon Uses Secure Modehigh
notselected
Chat/Messaging Services
Uninstall talk-server Packagemedium
notselected
Uninstall talk Packagelow
notselected
Base Services 3x error
Disable Automatic Bug Reporting Tool (abrtd)low
notselected
Disable Advanced Configuration and Power Interface (acpid)low
notselected
Disable Certmonger Service (certmonger)low
notselected
Disable Control Group Config (cgconfig)low
notselected
Disable Control Group Rules Engine (cgred)low
notselected
Disable CPU Speed (cpuspeed)low
notselected
Disable Hardware Abstraction Layer Service (haldaemon)low
notselected
Enable IRQ Balance (irqbalance)low
notselected
Disable KDump Kernel Crash Analyzer (kdump)low
error
Disable Software RAID Monitor (mdmonitor)low
notselected
Disable D-Bus IPC Service (messagebus)low
notselected
Disable Network Console (netconsole)low
notselected
Disable ntpdate Service (ntpdate)low
notselected
Disable Odd Job Daemon (oddjobd)low
notselected
Disable Portreserve (portreserve)low
error
Enable Process Accounting (psacct)low
notselected
Disable Apache Qpid (qpidd)low
notselected
Disable Quota Netlink (quota_nld)low
notselected
Disable Network Router Discovery Daemon (rdisc)low
notselected
Disable Red Hat Network Service (rhnsd)low
error
Disable Red Hat Subscription Manager Daemon (rhsmcertd)low
notselected
Disable Cyrus SASL Authentication Daemon (saslauthd)low
notselected
Disable SMART Disk Monitoring Service (smartd)low
notselected
Disable System Statistics Reset Service (sysstat)low
notselected
Cron and At Daemons 1x error
Restrict at and cron to Authorized Users if Necessary
Enable cron Servicemedium
pass
Disable anacron Servicelow
notselected
Disable At Service (atd)low
error
SSH Server 10x error
Configure OpenSSH Server if Necessary 10x error
Strengthen Firewall Configuration if Possible
Allow Only SSH Protocol 2high
error
Limit Users' SSH Accesslow
notselected
Set SSH Idle Timeout Intervallow
error
Set SSH Client Alive Countlow
error
Disable SSH Support for .rhosts Filesmedium
error
Disable Host-Based Authenticationmedium
error
Disable SSH Root Loginmedium
error
Disable SSH Access via Empty Passwordshigh
error
Enable SSH Warning Bannermedium
error
Do Not Allow SSH Environment Optionslow
error
Use Only Approved Ciphersmedium
error
Disable SSH Server If Possible (Unusual)low
notselected
Remove SSH Server iptables Firewall exception (Unusual)low
notselected
X Window System
Disable X Windows
Disable X Windows Startup By Setting Runlevellow
notselected
Remove the X Windows Package Grouplow
notselected
Avahi Server
Disable Avahi Server if Possible
Disable Avahi Server Softwarelow
pass
Configure Avahi if Necessary
Serve Avahi Only via Required Protocollow
notselected
Check Avahi Responses' TTL Fieldlow
notselected
Prevent Other Programs from Using Avahi's Portlow
notselected
Disable Avahi Publishinglow
notselected
Restrict Information Published by Avahilow
notselected
Print Support
Configure the CUPS Service if Necessary
Disable Printer Browsing Entirely if Possiblelow
notselected
Disable Print Server Capabilitieslow
notselected
Disable the CUPS Servicelow
notselected
DHCP
Disable DHCP Server
Disable DHCP Servicemedium
pass
Uninstall DHCP Server Packagemedium
pass
Disable DHCP Server
Minimize Served Information
Do Not Use Dynamic DNSlow
notselected
Deny Decline Messageslow
notselected
Deny BOOTP Querieslow
notselected
Configure Logginglow
notselected
Disable DHCP Client
Disable DHCP Clientlow
notselected
Configure DHCP Client if Necessary
Minimize the DHCP-Configured Options
Network Time Protocol 1x error
Enable the NTP Daemonmedium
error
Specify a Remote NTP Servermedium
pass
Specify Additional Remote NTP Serverslow
notselected
Mail Server Software
Configure SMTP For Mail Clients
Disable Postfix Network Listeningmedium
pass
Configure Operating System to Protect Mail Server
Configure SSL Certificates for Use with SMTP AUTH
Ensure Security of Postfix SSL Certificate
Configure Postfix if Necessary
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
notselected
Enable Postfix Servicelow
notselected
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 4x error
Disable All NFS Services if Possible 4x error
Disable Services Used Only by NFS 3x error
Disable Network File System Lock Service (nfslock)low
error
Disable Secure RPC Client Service (rpcgssd)low
error
Disable RPC ID Mapping Service (rpcidmapd)low
error
Disable netfs if Possible 1x error
Disable Network File Systems (netfs)low
error
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
notselected
Configure lockd to use static UDP portlow
notselected
Configure statd to use static portlow
notselected
Configure mountd to use static portlow
notselected
Configure NFS Clients
Disable NFS Server Daemons
Specify UID and GID for Anonymous NFS Connectionslow
notselected
Disable Network File System (nfs)low
notselected
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
notselected
Restrict NFS Clients to Privileged Portslow
notselected
Ensure Insecure File Locking is Not Allowedmedium
notselected
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
notselected
Authenticate Zone Transferslow
notselected
Disable Dynamic Updateslow
notselected
FTP Server
Disable vsftpd if Possible
Disable vsftpd Servicelow
pass
Uninstall vsftpd Packagelow
pass
Use vsftpd to Provide FTP Service if Necessary
Install vsftpd Packagelow
notselected
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
notselected
Configure Firewalls to Protect the FTP Server
Enable Logging of All FTP Transactionslow
notselected
Create Warning Banners for All FTP Usersmedium
notselected
Disable FTP Uploads if Possiblelow
notselected
Place the FTP Home Directory on its Own Partitionlow
notselected
Web Server
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
Restrict Web Server Information Leakage
Set httpd ServerTokens Directive to Prodlow
notselected
Set httpd ServerSignature Directive to Offlow
notselected
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
notselected
Disable HTTP mod_rewritelow
notselected
Disable LDAP Supportlow
notselected
Disable Server Side Includeslow
notselected
Disable MIME Magiclow
notselected
Disable WebDAV (Distributed Authoring and Versioning)low
notselected
Disable Server Activity Statuslow
notselected
Disable Web Server Configuration Displaylow
notselected
Disable URL Correction on Misspelled Entrieslow
notselected
Disable Proxy Supportlow
notselected
Disable Cache Supportlow
notselected
Disable CGI Supportlow
notselected
Directory Restrictions
Restrict Root Directorylow
notselected
Restrict Web Directorylow
notselected
Restrict Other Critical Directorieslow
notselected
Limit Available Methodslow
notselected
Use Appropriate Modules to Improve httpd's Security
Deploy mod_ssl
Install mod_ssllow
notselected
Deploy mod_security
Install mod_securitylow
notselected
Use Denial-of-Service Protection Modules
Configure PHP Securely
Configure Operating System to Protect Web Server
Restrict File and Directory Access
Set Permissions on the /var/log/httpd/ Directorylow
notselected
Set Permissions on the /etc/httpd/conf/ Directorylow
notselected
Set Permissions on All Configuration Files Inside /etc/httpd/conf/low
notselected
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
notselected
Configure Dovecot to Use the SSL Certificate filelow
notselected
Configure Dovecot to Use the SSL Key filelow
notselected
Disable Plaintext Authenticationlow
notselected
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
notselected
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
notselected
Ensure Default Password Is Not Usedmedium
notselected
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 Partitionxccdf_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
Time2015-08-22T01:29:01
Severitylow
Identifiers and References

identifiers:  CCE-26435-8

references:  http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf, 1208, test_attestation

Description

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.

Rationale

The /tmp partition is used as temporary storage by many programs. Placing /tmp in its own partition enables the setting of more restrictive mount options, which can help protect programs which use it.

OVAL details

Items not found violating /tmp on own partition:

Object oval:ssg:obj:1501 of type partition_object
Mount point
/tmp
Ensure /var Located On Separate Partitionxccdf_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
Time2015-08-22T01:29:01
Severitylow
Identifiers and References

identifiers:  CCE-26639-5

references:  http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf, 1208, test_attestation

Description

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.

Rationale

Ensuring that /var is mounted on its own partition enables the setting of more restrictive mount options. This helps protect system services such as daemons or other programs which use it. It is not uncommon for the /var directory to contain world-writable directories installed by other software packages.

OVAL details

Items not found violating /var on own partition:

Object oval:ssg:obj:2047 of type partition_object
Mount point
/var
Ensure /var/log Located On Separate Partitionxccdf_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
Time2015-08-22T01:29:01
Severitylow
Identifiers and References

identifiers:  CCE-26215-4

references:  AU-9, 1208, test_attestation

Description

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.

Rationale

Placing /var/log in its own partition enables better separation between log files and other files in /var/.

OVAL details

Items not found violating /var/log on own partition:

Object oval:ssg:obj:2088 of type partition_object
Mount point
/var/log
Ensure /var/log/audit Located On Separate Partitionxccdf_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
Time2015-08-22T01:29:01
Severitylow
Identifiers and References

identifiers:  CCE-26436-6

references:  AU-4, AU-9, 137, 138, 1208, test_attestation

Description

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.

Rationale

Placing /var/log/audit in its own partition enables better separation between audit files and other files, and helps ensure that auditing cannot be halted due to the partition running out of space.

OVAL details

Items not found violating check for /var/log/audit partition:

Object oval:ssg:obj:1451 of type partition_object
Mount point
/var/log/audit
Ensure /home Located On Separate Partitionxccdf_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
Time2015-08-22T01:29:01
Severitylow
Identifiers and References

identifiers:  CCE-26557-9

references:  http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf, 1208, test_attestation

Description

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.

Rationale

Ensuring that /home is mounted on its own partition enables the setting of more restrictive mount options, and also helps ensure that users cannot trivially fill partitions used for log or audit data storage.

OVAL details

Items not found violating /home on own partition:

Object oval:ssg:obj:2207 of type partition_object
Mount point
/home
Encrypt Partitionsxccdf_org.ssgproject.content_rule_encrypt_partitions CCE-27596-6

Encrypt Partitions

Rule IDxccdf_org.ssgproject.content_rule_encrypt_partitions
Result
notselected
Time2015-08-22T01:29:01
Severitylow
Identifiers and References

identifiers:  CCE-27596-6

references:  SC-13, SC-28, 1019, 1199, 1200

Description

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

Rationale

The risk of a system's physical compromise, particularly mobile systems such as laptops, places its data at risk of compromise. Encrypting this data mitigates the risk of its loss if the system is lost.

Ensure Red Hat GPG Key Installedxccdf_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
fail
Time2015-08-22T01:29:01
Severityhigh
Identifiers and References

identifiers:  CCE-26506-6

references:  SI-7, MA-1(b), 351, test_attestation

Description

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:

$ sudo 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:
$ sudo rpm --import /media/cdrom/RPM-GPG-KEY

Rationale

The Red Hat GPG key is necessary to cryptographically verify packages are from Red Hat.

OVAL details

Items found violating Red Hat release key package is installed:

NameArchEpochReleaseVersionEvrSignature keyidExtended name
gpg-pubkey(none)(none)54c3e0e6da07a16a0:da07a16a-54c3e0e60gpg-pubkey-0:da07a16a-54c3e0e6.(none)

Items found violating Red Hat auxiliary key package is installed:

NameArchEpochReleaseVersionEvrSignature keyidExtended name
gpg-pubkey(none)(none)54c3e0e6da07a16a0:da07a16a-54c3e0e60gpg-pubkey-0:da07a16a-54c3e0e6.(none)
Ensure gpgcheck Enabled In Main Yum Configurationxccdf_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
Time2015-08-22T01:29:01
Severityhigh
Identifiers and References

identifiers:  CCE-26709-6

references:  SI-7, MA-1(b), 352, 663, test_attestation

Description

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

Rationale

Ensuring the validity of packages' cryptographic signatures prior to installation ensures the authenticity of the software and protects against malicious tampering.

OVAL details

Items found satisfying check value of gpgcheck in /etc/yum.conf:

PathContent
/etc/yum.confgpgcheck=1
Ensure gpgcheck Enabled For All Yum Package Repositoriesxccdf_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
fail
Time2015-08-22T01:29:01
Severityhigh
Identifiers and References

identifiers:  CCE-26647-8

references:  SI-7, MA-1(b), 352, 663, test_attestation

Description

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

Rationale

Ensuring all packages' cryptographic signatures are valid prior to installation ensures the authenticity of the software and protects against malicious tampering.

OVAL details

Items found violating check for existence of gpgcheck=0 in /etc/yum.repos.d/ files:

PathContent
/etc/yum.repos.d/media.repogpgcheck=0
Ensure Software Patches Installedxccdf_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
notchecked
Time2015-08-22T01:29:01
Severityhigh
Identifiers and References

identifiers:  CCE-27635-2

references:  SI-2, MA-1(b), 1227, 1233, test_attestation

Description

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:

$ sudo 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.

Rationale

Installing software updates is a fundamental mitigation against the exploitation of publicly-known vulnerabilities.

Evaluation messages
info 
No candidate or applicable check found.
Install AIDExccdf_org.ssgproject.content_rule_package_aide_installed CCE-27024-9

Install AIDE

Rule IDxccdf_org.ssgproject.content_rule_package_aide_installed
Result
error
Time2015-08-22T01:36:04
Severitymedium
Identifiers and References

identifiers:  CCE-27024-9

references:  CM-3(d), CM-3(e), CM-6(d), SC-28, SI-7, 1069, test_attestation

Description

Install the AIDE package with the command:

$ sudo yum install aide

Rationale

The AIDE package must be installed if it is to be available for integrity checking.

OVAL details

Items not found violating package aide is installed:

Object oval:ssg:obj:2066 of type rpminfo_object
Name
aide
Evaluation messages
info 
Fix execution completed and returned: 1
info 
Loaded plugins: product-id, security, subscription-manager
You need to be root to perform this command.
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
yum -y install aide
Build and Test AIDE Databasexccdf_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
notselected
Time2015-08-22T01:29:01
Severitymedium
Identifiers and References

identifiers:  CCE-27135-3

references:  CM-3(d), CM-3(e), CM-6(d), SC-28, SI-7, 374, 416, 1069, 1263, 1297, 1589

Description

Run the following command to generate a new database:

$ sudo /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:
$ sudo cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
To initiate a manual check, run the following command:
$ sudo /usr/sbin/aide --check
If this check produces any unexpected output, investigate.

Rationale

For AIDE to be effective, an initial database of "known-good" information about files must be captured and it should be able to be verified against the installed files.

Configure Periodic Execution of AIDExccdf_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
notselected
Time2015-08-22T01:29:01
Severitymedium
Identifiers and References

identifiers:  CCE-27222-9

references:  CM-3(d), CM-3(e), CM-6(d), SC-28, SI-7, 374, 416, 1069, 1263, 1297, 1589

Description

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.

Rationale

By default, AIDE does not install itself for periodic execution. Periodically running AIDE is necessary to reveal unexpected changes in installed files.

OVAL details

Items not found violating run aide daily with cron:

Object oval:ssg:obj:1852 of type textfilecontent54_object
FilepathPatternInstance
/etc/crontab^[0-9]*[\s]*[0-9]*[\s]*\*[\s]*\*[\s]*\*[\s]*root[\s]*/usr/sbin/aide[\s]*\-\-check+$1

Items not found violating run aide daily with cron:

Object oval:ssg:obj:1853 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/cron.d^.*$^[0-9]*[\s]*[0-9]*[\s]*\*[\s]*\*[\s]*\*[\s]*root[\s]*/usr/sbin/aide[\s]*\-\-check+$1
Verify and Correct File Permissions with RPMxccdf_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
Time2015-08-22T01:29:17
Severitylow
Identifiers and References

identifiers:  CCE-26731-0

references:  AC-6, CM-6(d), SI-7, 1493, 1494, 1495

Description

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:
$ sudo rpm --setperms PACKAGENAME

Rationale

Permissions on system binaries and configuration files that are too generous could allow an unauthorized user to gain privileges that they should not have. The permissions set by the vendor should be maintained. Any deviations from this baseline should be investigated.

OVAL details

Items not found violating user ownership of all files matches local rpm database:

Object oval:ssg:obj:1539 of type rpmverifyfile_object
BehaviorsNameFilepathFilter
no value.*.*oval:ssg:ste:2304

Items not found violating group ownership of all files matches local rpm database:

Object oval:ssg:obj:1540 of type rpmverifyfile_object
BehaviorsNameFilepathFilter
no value.*.*oval:ssg:ste:2305

Items found violating mode of all files matches local rpm database:

NameEpochVersionReleaseArchFilepathExtended nameSize differsMode differsMd5 differsDevice differsLink mismatchOwnership differsGroup differsMtime differsCapabilities differConfiguration fileDocumentation fileGhost fileLicense fileReadme file
system-config-firewall-base(none)1.2.277.2.el6_6noarch/etc/sysconfig/system-config-firewallsystem-config-firewall-base-0:1.2.27-7.2.el6_6.noarchpassfailnot performedpasspasspasspasspasspasstruefalsetruefalsefalse
ca-certificates(none)2015.2.465.0.1.el6_6noarch/etc/pki/ca-trust/extracted/java/cacertsca-certificates-0:2015.2.4-65.0.1.el6_6.noarchpassfailnot performedpasspasspasspasspasspassfalsefalsetruefalsefalse
psacct(none)6.3.263.el6_3.3x86_64/var/account/pacctpsacct-0:6.3.2-63.el6_3.3.x86_64passfailnot performedpasspasspasspasspasspasstruefalsetruefalsefalse
ca-certificates(none)2015.2.465.0.1.el6_6noarch/etc/pki/ca-trust/extracted/pem/email-ca-bundle.pemca-certificates-0:2015.2.4-65.0.1.el6_6.noarchpassfailnot performedpasspasspasspasspasspassfalsefalsetruefalsefalse
ca-certificates(none)2015.2.465.0.1.el6_6noarch/etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pemca-certificates-0:2015.2.4-65.0.1.el6_6.noarchpassfailnot performedpasspasspasspasspasspassfalsefalsetruefalsefalse
ca-certificates(none)2015.2.465.0.1.el6_6noarch/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pemca-certificates-0:2015.2.4-65.0.1.el6_6.noarchpassfailnot performedpasspasspasspasspasspassfalsefalsetruefalsefalse
java-1.7.0-openjdk11.7.0.792.5.5.4.el6x86_64/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79.x86_64/jre/lib/amd64/server/classes.jsajava-1.7.0-openjdk-1:1.7.0.79-2.5.5.4.el6.x86_64passfailnot performedpasspasspasspasspasspassfalsefalsetruefalsefalse
ca-certificates(none)2015.2.465.0.1.el6_6noarch/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crtca-certificates-0:2015.2.4-65.0.1.el6_6.noarchpassfailnot performedpasspasspasspasspasspassfalsefalsetruefalsefalse
kernel(none)2.6.32573.el6x86_64/boot/initramfs-2.6.32-573.el6.x86_64.imgkernel-0:2.6.32-573.el6.x86_64passfailnot performedpasspasspasspasspasspassfalsefalsetruefalsefalse
Verify File Hashes with RPMxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-27223-7

references:  CM-6(d), SI-7, 1496

Description

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:
$ sudo yum reinstall PACKAGENAME
Alternatively, the package can be reinstalled from trusted media using the command:
$ sudo rpm -Uvh PACKAGENAME

Rationale

The hashes of important files like system executables should match the information given by the RPM database. Executables with erroneous hashes could be a sign of nefarious activity on the system.

OVAL details

Items not found satisfying verify file md5 hashes:

Object oval:ssg:obj:2071 of type rpmverifyfile_object
BehaviorsNameFilepathFilter
no value.*^.*bin/.*$oval:ssg:ste:2328
Install Intrusion Detection Softwarexccdf_org.ssgproject.content_rule_install_hids CCE-27409-2

Install Intrusion Detection Software

Rule IDxccdf_org.ssgproject.content_rule_install_hids
Result
notselected
Time2015-08-22T01:29:31
Severityhigh
Identifiers and References

identifiers:  CCE-27409-2

references:  SC-7, 1263

Description

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.
In DoD environments, supplemental intrusion detection tools, such as, the McAfee Host-based Security System, are available to integrate with existing infrastructure. When these supplemental tools interfere with the proper functioning of SELinux, SELinux takes precedence.

Rationale

Host-based intrusion detection tools provide a system-level defense when an intruder gains access to a system or network.

Install Virus Scanning Softwarexccdf_org.ssgproject.content_rule_install_antivirus CCE-27529-7

Install Virus Scanning Software

Rule IDxccdf_org.ssgproject.content_rule_install_antivirus
Result
notselected
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-27529-7

references:  SC-28, SI-3, 1239, 1668

Description

Install virus scanning software, which uses signatures to search for the presence of viruses on the filesystem. The McAfee VirusScan Enterprise for Linux 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.

Rationale

Virus scanning software can be used to detect if a system has been compromised by computer viruses, as well as to limit their spread to other systems.

OVAL details

Items not found violating AntiVirus package is installed:

Object oval:ssg:obj:1318 of type rpminfo_object
Name
McAfeeVSEForLinux
Add nodev Option to Non-Root Local Partitionsxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-27045-4

references:  CM-7

Description

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.

Rationale

The nodev mount option prevents files from being interpreted as character or block devices. The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails, for which it is not advised to set nodev on these filesystems.

OVAL details

Items found violating nodev on local filesystems:

Mount pointDeviceUuidFs typeMount optionsMount optionsMount optionsMount optionsMount optionsMount optionsTotal spaceSpace usedSpace left
/boot/dev/vda1ext4rwseclabelrelatimebarrier=1data=orderedbind48765241811445841
Add nodev Option to Removable Media Partitionsxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-26860-7

references:  AC-19(a), AC-19(d), AC-19(e), CM-7, MP-2

Description

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.

Rationale

The only legitimate location for device files is the /dev directory located on the root partition. An exception to this is chroot jails, and it is not advised to set nodev on partitions which contain their root filesystems.

OVAL details

Items not found violating nodev on removable partition:

Object oval:ssg:obj:1743 of type partition_object
Mount point
There was a problem processing referenced variable (oval:ssg:var:2308).
State oval:ssg:ste:1744 of type partition_state
Mount options
nodev

Items not found violating removable partition /etc/fstab:

Object oval:ssg:obj:1745 of type textfilecontent54_object
FilepathPatternInstance
/etc/fstab^\s*([/\w]*)\s+.*,?nodev,?.*$0
State oval:ssg:ste:1746 of type textfilecontent54_state
Subexpression
Add noexec Option to Removable Media Partitionsxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-27196-5

references:  AC-19(a), AC-19(d), AC-19(e), CM-7, MP-2, 87

Description

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.

Rationale

Allowing users to execute binaries from removable media such as USB keys exposes the system to potential compromise.

OVAL details

Items not found violating noexec on removable partition:

Object oval:ssg:obj:2191 of type partition_object
Mount point
/dev/cdrom
State oval:ssg:ste:2192 of type partition_state
Mount options
noexec

Items not found violating removable partition /etc/fstab:

Object oval:ssg:obj:2193 of type textfilecontent54_object
FilepathPatternInstance
/etc/fstab^\s*([/\w]*)\s+.*,?noexec,?.*$0
State oval:ssg:ste:2194 of type textfilecontent54_state
Subexpression
/dev/cdrom
Add nosuid Option to Removable Media Partitionsxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-27056-1

references:  AC-19(a), AC-19(d), AC-19(e), CM-7, MP-2

Description

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.

Rationale

The presence of SUID and SGID executables should be tightly controlled. Allowing users to introduce SUID or SGID binaries from partitions mounted off of removable media would allow them to introduce their own highly-privileged programs.

OVAL details

Items not found violating nosuid on removable partition:

Object oval:ssg:obj:1624 of type partition_object
Mount point
There was a problem processing referenced variable (oval:ssg:var:2307).
State oval:ssg:ste:1625 of type partition_state
Mount options
nosuid

Items not found violating removable partition /etc/fstab:

Object oval:ssg:obj:1626 of type textfilecontent54_object
FilepathPatternInstance
/etc/fstab^\s*([/\w]*)\s+.*,?nosuid,?.*$0
State oval:ssg:ste:1627 of type textfilecontent54_state
Subexpression
Add nodev Option to /tmpxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-26499-4

references:  CM-7, MP-2

Description

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.

Rationale

The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails.

OVAL details

Items not found violating nodev on /tmp:

Object oval:ssg:obj:2277 of type partition_object
Mount point
/tmp
State oval:ssg:ste:2278 of type partition_state
Mount options
nodev
Add noexec Option to /tmpxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-26720-3

references:  CM-7, MP-2

Description

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.

Rationale

Allowing users to execute binaries from world-writable directories such as /tmp should never be necessary in normal operation and can expose the system to potential compromise.

OVAL details

Items not found violating noexec on /tmp:

Object oval:ssg:obj:1319 of type partition_object
Mount point
/tmp
State oval:ssg:ste:1320 of type partition_state
Mount options
noexec
Add nosuid Option to /tmpxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-26762-5

references:  CM-7, MP-2

Description

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.

Rationale

The presence of SUID and SGID executables should be tightly controlled. Users should not be able to execute SUID or SGID binaries from temporary storage partitions.

OVAL details

Items not found violating nosuid on /tmp:

Object oval:ssg:obj:1594 of type partition_object
Mount point
/tmp
State oval:ssg:ste:1595 of type partition_state
Mount options
nosuid
Add nodev Option to /dev/shmxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-26778-1

references:  CM-7, MP-2

Description

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.

Rationale

The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails.

OVAL details

Items found violating nodev on /dev/shm:

Mount pointDeviceUuidFs typeMount optionsMount optionsMount optionsMount optionsTotal spaceSpace usedSpace left
/dev/shmtmpfstmpfsrwseclabelrelatimebind100768201007682
Add noexec Option to /dev/shmxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-26622-1

references:  CM-7, MP-2

Description

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.

Rationale

Allowing users to execute binaries from world-writable directories such as /dev/shm can expose the system to potential compromise.

OVAL details

Items found violating noexec on /dev/shm:

Mount pointDeviceUuidFs typeMount optionsMount optionsMount optionsMount optionsTotal spaceSpace usedSpace left
/dev/shmtmpfstmpfsrwseclabelrelatimebind100768201007682
Add nosuid Option to /dev/shmxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-26486-1

references:  CM-7, MP-2

Description

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.

Rationale

The presence of SUID and SGID executables should be tightly controlled. Users should not be able to execute SUID or SGID binaries from temporary storage partitions.

OVAL details

Items found violating nosuid on /dev/shm:

Mount pointDeviceUuidFs typeMount optionsMount optionsMount optionsMount optionsTotal spaceSpace usedSpace left
/dev/shmtmpfstmpfsrwseclabelrelatimebind100768201007682
Bind Mount /var/tmp To /tmpxccdf_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
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-26582-7

references:  CM-7

Description

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.

Rationale

Having multiple locations for temporary storage is not required. Unless absolutely necessary to meet requirements, the storage location /var/tmp should be bind mounted to /tmp and thus share the same protections.

OVAL details

Items not found violating Ensure /var/tmp is mounted:

Object oval:ssg:obj:2272 of type partition_object
Mount point
/var/tmp

Items not found violating Ensure bind mount option is on /var/tmp:

Object oval:ssg:obj:2273 of type textfilecontent54_object
FilepathPatternInstance
/etc/mtab^[\s]*/tmp[\s]+/var/tmp[\s]+.*bind.*$ 1
Disable Modprobe Loading of USB Storage Driverxccdf_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
notselected
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-27016-5

references:  AC-19(a), AC-19(d), AC-19(e), 1250, 85

Description

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.

Rationale

USB storage devices such as thumb drives can be used to introduce malicious software.

OVAL details

Items not found violating kernel module usb-storage disabled:

Object oval:ssg:obj:1325 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*install\s+usb-storage\s+(/bin/false|/bin/true)$1

Items not found violating kernel module usb-storage disabled in /etc/modprobe.conf:

Object oval:ssg:obj:1326 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+usb-storage\s+(/bin/false|/bin/true)$1
Disable Kernel Support for USB via Bootloader Configurationxccdf_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
notselected
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-27011-6

references:  AC-19(a), AC-19(d), AC-19(e), 1250

Description

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.

Rationale

Disabling the USB subsystem within the Linux kernel at system boot will protect against potentially malicious USB devices, although it is only practical in specialized systems.

OVAL details

Items not found violating look for argument 'nousb' in the kernel line in /etc/grub.conf:

Object oval:ssg:obj:1918 of type textfilecontent54_object
PathFilenamePatternInstance
/etcgrub.conf^\s*kernel\s/vmlinuz.*nousb.*$1
Disable Booting from USB Devices in Boot Firmwarexccdf_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
notselected
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-26923-3

references:  AC-19(a), AC-19(d), AC-19(e), 1250

Description

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

Rationale

Booting a system from a USB device would allow an attacker to circumvent any security measures provided by the operating system. Attackers could mount partitions and modify the configuration of the OS.

Assign Password to Prevent Changes to Boot Firmware Configurationxccdf_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
notselected
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-27131-2

Description

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

Rationale

Assigning a password to the system boot firmware prevents anyone with physical access from configuring the system to boot from local media and circumvent the operating system's access controls. For systems in physically secure locations, such as a data center or Sensitive Compartmented Information Facility (SCIF), this risk must be weighed against the risk of administrative personnel being unable to conduct recovery operations in a timely fashion.

Disable the Automounterxccdf_org.ssgproject.content_rule_service_autofs_disabled CCE-26976-1

Disable the Automounter

Rule IDxccdf_org.ssgproject.content_rule_service_autofs_disabled
Result
error
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26976-1

references:  AC-19(a), AC-19(d), AC-19(e), 1250, 85

Description

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

Rationale

Disabling the automounter permits the administrator to statically control filesystem mounting through /etc/fstab.

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
autofs0falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
autofs1falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
autofs2falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
autofs3truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
autofs4truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
autofs5truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
autofs6falsetrue
Evaluation messages
info 
Fix execution completed and returned: 127
info 
/tmp/oscap.5TJuas/fix-XXzGebrK: line 4: chkconfig: command not found
/tmp/oscap.5TJuas/fix-XXzGebrK: line 9: service: command not found
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Disable autofs for all run levels
#
chkconfig --level 0123456 autofs off

#
# Stop autofs if currently running
#
service autofs stop
Disable GNOME Automountingxccdf_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
notselected
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-27035-5

references:  AC-19(a), AC-19(d), AC-19(e)

Description

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:

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

Rationale

Disabling automatic mounting in GNOME can prevent the introduction of malware via removable media. It will, however, also prevent desktop users from legitimate use of removable media.

OVAL details

Items not found violating Disable automount in GNOME:

Object oval:ssg:obj:1960 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/apps/nautilus/preferences/%gconf.xml/gconf/entry[@name='media_automount']/@value
State oval:ssg:ste:1961 of type xmlfilecontent_state
Value of
false

Items not found violating Disable automount in GNOME:

Object oval:ssg:obj:1962 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml/gconf/dir/dir/dir/entry[@name='media_automount']/@value
State oval:ssg:ste:1961 of type xmlfilecontent_state
Value of
false

Items not found violating Disable autorun in GNOME:

Object oval:ssg:obj:1963 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/apps/nautilus/preferences/%gconf.xml/gconf/entry[@name='media_autorun_never']/@value
State oval:ssg:ste:1964 of type xmlfilecontent_state
Value of
true

Items not found violating Disable autorun in GNOME:

Object oval:ssg:obj:1965 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml/gconf/dir/dir/dir/entry[@name='media_autorun_never']/@value
State oval:ssg:ste:1964 of type xmlfilecontent_state
Value of
true
Disable Mounting of cramfsxccdf_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
error
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26340-0

references:  CM-7

Description

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.

Rationale

Linux kernel modules which implement filesystems that are not needed by the local system should be disabled.

OVAL details

Items not found violating kernel module cramfs disabled:

Object oval:ssg:obj:2115 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*install\s+cramfs\s+(/bin/false|/bin/true)$1

Items not found violating kernel module cramfs disabled in /etc/modprobe.conf:

Object oval:ssg:obj:2116 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+cramfs\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.g12CM2/fix-XXjSX57k: line 1: /etc/modprobe.d/cramfs.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install cramfs /bin/false" > /etc/modprobe.d/cramfs.conf
Disable Mounting of freevxfsxccdf_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
error
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26544-7

references:  CM-7

Description

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.

Rationale

Linux kernel modules which implement filesystems that are not needed by the local system should be disabled.

OVAL details

Items not found violating kernel module freevxfs disabled:

Object oval:ssg:obj:2089 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*install\s+freevxfs\s+(/bin/false|/bin/true)$1

Items not found violating kernel module freevxfs disabled in /etc/modprobe.conf:

Object oval:ssg:obj:2090 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+freevxfs\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.ESsvxD/fix-XXITNWWV: line 1: /etc/modprobe.d/freevxfs.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install freevxfs /bin/false" > /etc/modprobe.d/freevxfs.conf
Disable Mounting of jffs2xccdf_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
error
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26670-0

references:  CM-7

Description

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.

Rationale

Linux kernel modules which implement filesystems that are not needed by the local system should be disabled.

OVAL details

Items not found violating kernel module jffs2 disabled:

Object oval:ssg:obj:1773 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*install\s+jffs2\s+(/bin/false|/bin/true)$1

Items not found violating kernel module jffs2 disabled in /etc/modprobe.conf:

Object oval:ssg:obj:1774 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+jffs2\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.831Sne/fix-XX8j9POw: line 1: /etc/modprobe.d/jffs2.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install jffs2 /bin/false" > /etc/modprobe.d/jffs2.conf
Disable Mounting of hfsxccdf_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
error
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26800-3

references:  CM-7

Description

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.

Rationale

Linux kernel modules which implement filesystems that are not needed by the local system should be disabled.

OVAL details

Items not found violating kernel module hfs disabled:

Object oval:ssg:obj:1849 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*install\s+hfs\s+(/bin/false|/bin/true)$1

Items not found violating kernel module hfs disabled in /etc/modprobe.conf:

Object oval:ssg:obj:1850 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+hfs\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.u8JqhP/fix-XXU5N2J7: line 1: /etc/modprobe.d/hfs.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install hfs /bin/false" > /etc/modprobe.d/hfs.conf
Disable Mounting of hfsplusxccdf_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
error
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26361-6

references:  CM-7

Description

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.

Rationale

Linux kernel modules which implement filesystems that are not needed by the local system should be disabled.

OVAL details

Items not found violating kernel module hfsplus disabled:

Object oval:ssg:obj:2069 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*install\s+hfsplus\s+(/bin/false|/bin/true)$1

Items not found violating kernel module hfsplus disabled in /etc/modprobe.conf:

Object oval:ssg:obj:2070 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+hfsplus\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.FYoceq/fix-XX0PZmII: line 1: /etc/modprobe.d/hfsplus.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install hfsplus /bin/false" > /etc/modprobe.d/hfsplus.conf
Disable Mounting of squashfsxccdf_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
error
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26404-4

references:  CM-7

Description

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.

Rationale

Linux kernel modules which implement filesystems that are not needed by the local system should be disabled.

OVAL details

Items not found violating kernel module squashfs disabled:

Object oval:ssg:obj:1648 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*install\s+squashfs\s+(/bin/false|/bin/true)$1

Items not found violating kernel module squashfs disabled in /etc/modprobe.conf:

Object oval:ssg:obj:1649 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+squashfs\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.dVA4d1/fix-XXTVdNJj: line 1: /etc/modprobe.d/squashfs.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install squashfs /bin/false" > /etc/modprobe.d/squashfs.conf
Disable Mounting of udfxccdf_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
error
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26677-5

references:  CM-7

Description

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.

Rationale

Linux kernel modules which implement filesystems that are not needed by the local system should be disabled.

OVAL details

Items not found violating kernel module udf disabled:

Object oval:ssg:obj:1554 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*install\s+udf\s+(/bin/false|/bin/true)$1

Items not found violating kernel module udf disabled in /etc/modprobe.conf:

Object oval:ssg:obj:1555 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+udf\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.pfM4gC/fix-XXNEtnOU: line 1: /etc/modprobe.d/udf.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install udf /bin/false" > /etc/modprobe.d/udf.conf
Disable All GNOME Thumbnailersxccdf_org.ssgproject.content_rule_disable_gnome_thumbnailers CCE-27224-5

Disable All GNOME Thumbnailers

Rule IDxccdf_org.ssgproject.content_rule_disable_gnome_thumbnailers
Result
notselected
Time2015-08-22T01:29:31
Severitylow
Identifiers and References

identifiers:  CCE-27224-5

references:  CM-7

Description

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:

$ sudo 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.

Rationale

An attacker with knowledge of a flaw in a GNOME thumbnailer application could craft a malicious file to exploit this flaw. Assuming the attacker could place the malicious file on the local filesystem (via a web upload for example) and assuming a user browses the same location using Nautilus, the malicious file would exploit the thumbnailer with the potential for malicious code execution. It is best to disable these thumbnailer applications unless they are explicitly required.

OVAL details

Items not found violating Disable thumbnailers in GNOME:

Object oval:ssg:obj:1939 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/desktop/gnome/thumbnailers/%gconf.xml/gconf/entry[@name='disable_all']/@value
State oval:ssg:ste:1940 of type xmlfilecontent_state
Value of
true

Items not found violating Disable thumbnailers in GNOME:

Object oval:ssg:obj:1941 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml/gconf/dir/dir/dir/entry[@name='disable_all']/@value
State oval:ssg:ste:1940 of type xmlfilecontent_state
Value of
true
Verify User Who Owns shadow Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26947-2

references:  AC-6, 225, test_attestation

Description

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

# chown root/etc/shadow

Rationale

The /etc/shadow file contains the list of local system accounts and stores password hashes. Protection of this file is critical for system security. Failure to give ownership of this file to root provides the designated owner with access to sensitive information which could weaken the system security posture.

OVAL details

Items found satisfying Testing user ownership of /etc/shadow:

PathTypeUIDGIDSize (B)Permissions
/etc/shadowregular00923--------- 
Verify Group Who Owns shadow Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26967-0

references:  AC-6, 225, test_attestation

Description

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

# chgrp root/etc/shadow

Rationale

The /etc/shadow file stores password hashes. Protection of this file is critical for system security.

OVAL details

Items found satisfying Testing group ownership /etc/shadow:

PathTypeUIDGIDSize (B)Permissions
/etc/shadowregular00923--------- 
Verify Permissions on shadow Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26992-8

references:  AC-6, 225, test_attestation

Description

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

# chmod 0000/etc/shadow

Rationale

The /etc/shadow file contains the list of local system accounts and stores password hashes. Protection of this file is critical for system security. Failure to give ownership of this file to root provides the designated owner with access to sensitive information which could weaken the system security posture.

OVAL details

Items found satisfying /etc/shadow mode and ownership:

PathTypeUIDGIDSize (B)Permissions
/etc/shadowregular00923--------- 
Verify User Who Owns group Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26822-7

references:  AC-6, test_attestation

Description

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

# chown root/etc/group

Rationale

The /etc/group file contains information regarding groups that are configured on the system. Protection of this file is important for system security.

OVAL details

Items found satisfying Testing user ownership:

PathTypeUIDGIDSize (B)Permissions
/etc/groupregular00672rw-r--r-- 
Verify Group Who Owns group Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26930-8

references:  AC-6, 225, test_attestation

Description

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

# chgrp root/etc/group

Rationale

The /etc/group file contains information regarding groups that are configured on the system. Protection of this file is important for system security.

OVAL details

Items found satisfying Testing group ownership:

PathTypeUIDGIDSize (B)Permissions
/etc/groupregular00672rw-r--r-- 
Verify Permissions on group Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26954-8

references:  AC-6, 225, test_attestation

Description

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

# chmod 644/etc/group

Rationale

The /etc/group file contains information regarding groups that are configured on the system. Protection of this file is important for system security.

OVAL details

Items found satisfying Testing /etc/group permissions:

PathTypeUIDGIDSize (B)Permissions
/etc/groupregular00672rw-r--r-- 
Verify User Who Owns gshadow Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-27026-4

references:  AC-6, 225, test_attestation

Description

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

# chown root/etc/gshadow

Rationale

The /etc/gshadow file contains group password hashes. Protection of this file is critical for system security.

OVAL details

Items found satisfying Testing gshadow ownership:

PathTypeUIDGIDSize (B)Permissions
/etc/gshadowregular00549--------- 
Verify Group Who Owns gshadow Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26975-3

references:  AC-6, 225, test_attestation

Description

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

# chgrp root/etc/gshadow

Rationale

The /etc/gshadow file contains group password hashes. Protection of this file is critical for system security.

OVAL details

Items found satisfying Testing gshadow ownership:

PathTypeUIDGIDSize (B)Permissions
/etc/gshadowregular00549--------- 
Verify Permissions on gshadow Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26951-4

references:  AC-6, 225, test_attestation

Description

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

# chmod 0000/etc/gshadow

Rationale

The /etc/gshadow file contains group password hashes. Protection of this file is critical for system security.

OVAL details

Items found satisfying /etc/gshadow mode and ownership:

PathTypeUIDGIDSize (B)Permissions
/etc/gshadowregular00549--------- 
Verify User Who Owns passwd Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26953-0

references:  AC-6, 225, test_attestation

Description

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

# chown root/etc/passwd

Rationale

The /etc/passwd file contains information about the users that are configured on the system. Protection of this file is critical for system security.

OVAL details

Items found satisfying Testing user ownership:

PathTypeUIDGIDSize (B)Permissions
/etc/passwdregular001379rw-r--r-- 
Verify Group Who Owns passwd Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26856-5

references:  AC-6, 225, test_attestation

Description

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

# chgrp root/etc/passwd

Rationale

The /etc/passwd file contains information about the users that are configured on the system. Protection of this file is critical for system security.

OVAL details

Items found satisfying Testing group ownership of /etc/passwd:

PathTypeUIDGIDSize (B)Permissions
/etc/passwdregular001379rw-r--r-- 
Verify Permissions on passwd Filexccdf_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
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-26868-0

references:  AC-6, 225, test_attestation

Description

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

# chmod 0644/etc/passwd

Rationale

If the /etc/passwd file is writable by a group-owner or the world the risk of its compromise is increased. The file contains the list of accounts on the system and associated information, and protection of this file is critical for system security.

OVAL details

Items found satisfying /etc/passwd mode and ownership:

PathTypeUIDGIDSize (B)Permissions
/etc/passwdregular001379rw-r--r-- 
Verify that Shared Library Files Have Restrictive Permissionsxccdf_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
notselected
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-27381-3

references:  AC-6, 1499, test_attestation

Description

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:
$ sudo chmod go-w FILE

Rationale

Files from shared library directories are loaded into the address space of processes (including privileged ones) or of the kernel itself at runtime. Restrictive permissions are necessary to protect the integrity of the system.

OVAL details

Items not found violating library directories go-w:

Object oval:ssg:obj:1890 of type file_object
PathFilenameFilterFilter
^\/lib(|64)|^\/usr\/lib(|64)no valueoval:ssg:ste:2320oval:ssg:ste:2321

Items not found violating library files go-w:

Object oval:ssg:obj:1891 of type file_object
PathFilenameFilterFilter
^\/lib(|64)|^\/usr\/lib(|64)^.*$oval:ssg:ste:2320oval:ssg:ste:2321
Verify that Shared Library Files Have Root Ownershipxccdf_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
notselected
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-27424-1

references:  AC-6, 1499, test_attestation

Description

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:
$ sudo chown root FILE

Rationale

Files from shared library directories are loaded into the address space of processes (including privileged ones) or of the kernel itself at runtime. Proper ownership is necessary to protect the integrity of the system.

OVAL details

Items not found violating library directories uid root:

Object oval:ssg:obj:2179 of type file_object
PathFilenameFilter
^\/lib(|64)\/|^\/usr\/lib(|64)\/no valueoval:ssg:ste:2332

Items not found violating library files uid root:

Object oval:ssg:obj:2180 of type file_object
PathFilenameFilter
^\/lib(|64)\/|^\/usr\/lib(|64)\/^.*$oval:ssg:ste:2332
Verify that System Executables Have Restrictive Permissionsxccdf_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
notselected
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-27289-8

references:  AC-6, 1499

Description

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:
$ sudo chmod go-w FILE

Rationale

System binaries are executed by privileged users, as well as system services, and restrictive permissions are necessary to ensure execution of these programs cannot be co-opted.

OVAL details

Items not found violating binary files go-w:

Object oval:ssg:obj:1453 of type file_object
PathFilenameFilterFilter
^\/(|s)bin|^\/usr\/(|local\/)(|s)bin^.*$oval:ssg:ste:2300oval:ssg:ste:2301
Verify that System Executables Have Root Ownershipxccdf_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
notselected
Time2015-08-22T01:29:31
Severitymedium
Identifiers and References

identifiers:  CCE-27623-8

references:  AC-6, 1499

Description

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:
$ sudo chown root FILE

Rationale

System binaries are executed by privileged users as well as system services, and restrictive permissions are necessary to ensure that their execution of these programs cannot be co-opted.

OVAL details

Items not found violating binary directories uid root:

Object oval:ssg:obj:1435 of type file_object
PathFilenameFilter
^\/(|s)bin|^\/usr\/(|local\/)(|s)binno valueoval:ssg:ste:2297

Items not found violating binary files uid root:

Object oval:ssg:obj:1436 of type file_object
PathFilenameFilter
^\/(|s)bin|^\/usr\/(|local\/)(|s)bin^.*$oval:ssg:ste:2297
Verify that All World-Writable Directories Have Sticky Bits Setxccdf_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
pass
Time2015-08-22T01:29:32
Severitylow
Identifiers and References

identifiers:  CCE-26840-9

references:  AC-6, test_attestation

Description

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:

$ sudo chmod +t DIR

Rationale

Failing to set the sticky bit on public directories allows unauthorized users to delete files in the directory structure.

The only authorized public directories are those temporary directories supplied with the system, or those designed to be temporary file repositories. The setting is normally reserved for directories used by the system, by users for temporary file storage (such as /tmp), and for directories requiring global read/write access.

OVAL details

Items not found satisfying all local world-writable directories have sticky bit set:

Object oval:ssg:obj:1520 of type file_object
BehaviorsPathFilenameFilter
no value/no valueoval:ssg:ste:1521
State oval:ssg:ste:1521 of type file_state
StickyOwrite
falsetrue
Ensure No World-Writable Files Existxccdf_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
Time2015-08-22T01:29:37
Severitymedium
Identifiers and References

identifiers:  CCE-26910-0

references:  AC-6

Description

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.

Rationale

Data in world-writable files can be modified by any user on the system. In almost all circumstances, files can be configured using a combination of user and group permissions to support whatever legitimate access is needed without the risk caused by world-writable files.

OVAL details

Items not found satisfying world writable files:

Object oval:ssg:obj:1762 of type file_object
BehaviorsPathFilenameFilterFilterFilterFilter
no value/^.*$oval:ssg:ste:2309oval:ssg:ste:2310oval:ssg:ste:2311oval:ssg:ste:2312
Ensure All SGID Executables Are Authorizedxccdf_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
fail
Time2015-08-22T01:29:41
Severitylow
Identifiers and References

identifiers:  CCE-26769-0

references:  http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf

Description

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.

Rationale

Executable files with the SGID permission run with the privileges of the owner of the file. SGID files of uncertain provenance could allow for unprivileged users to elevate privileges. The presence of these files should be strictly controlled on the system.

OVAL details

Items found violating setgid files outside system RPMs:

PathTypeUIDGIDSize (B)Permissions
/bin/cgclassifyregular049916352rwxr-sr-x 
Ensure All SUID Executables Are Authorizedxccdf_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
Time2015-08-22T01:29:45
Severitylow
Identifiers and References

identifiers:  CCE-26497-8

references:  http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf

Description

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.

Rationale

Executable files with the SUID permission run with the privileges of the owner of the file. SUID files of uncertain provenance could allow for unprivileged users to elevate privileges. The presence of these files should be strictly controlled on the system.

OVAL details

Items not found satisfying setuid files outside system RPMs:

Object oval:ssg:obj:1442 of type file_object
BehaviorsPathFilenameFilterFilter
no value/^.*$oval:ssg:ste:2298oval:ssg:ste:2299
Ensure All Files Are Owned by a Userxccdf_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
Time2015-08-22T01:29:49
Severitylow
Identifiers and References

identifiers:  CCE-27032-2

references:  AC-6, 224

Description

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.

Rationale

Unowned files do not directly imply a security problem, but they are generally a sign that something is amiss. They may be caused by an intruder, by incorrect software installation or draft software removal, or by failure to remove all files belonging to a deleted account. The files should be repaired so they will not cause problems when accounts are created in the future, and the cause should be discovered and addressed.

OVAL details

Items not found satisfying Check user ids on all files on the system:

Object oval:ssg:obj:2087 of type file_object
BehaviorsPathFilenameFilter
no value/.*oval:ssg:ste:2330
Ensure All Files Are Owned by a Groupxccdf_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
unknown
Time2015-08-22T01:35:55
Severitylow
Identifiers and References

identifiers:  CCE-26872-2

references:  AC-6, 224

Description

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.

Rationale

Unowned files do not directly imply a security problem, but they are generally a sign that something is amiss. They may be caused by an intruder, by incorrect software installation or draft software removal, or by failure to remove all files belonging to a deleted account. The files should be repaired so they will not cause problems when accounts are created in the future, and the cause should be discovered and addressed.

OVAL details

Items not found violating files with no group owner:

Object oval:ssg:obj:1766 of type file_object
BehaviorsPathFilename
no value/.*
State oval:ssg:ste:1767 of type file_state
Group id
0
Ensure All World-Writable Directories Are Owned by a System Accountxccdf_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
Time2015-08-22T01:35:57
Severitylow
Identifiers and References

identifiers:  CCE-26642-9

references:  AC-6, test_attestation

Description

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.

Rationale

Allowing a user account to own a world-writable directory is undesirable because it allows the owner of that directory to remove or replace any files that may be placed in the directory by other users.

OVAL details

Items not found satisfying check for local directories that are world writable and have uid greater than or equal to 500:

Object oval:ssg:obj:2189 of type file_object
BehaviorsPathFilenameFilter
no value/no valueoval:ssg:ste:2190
State oval:ssg:ste:2190 of type file_state
User idOwrite
500true
Set Daemon Umaskxccdf_org.ssgproject.content_rule_umask_for_daemons CCE-27031-4

Set Daemon Umask

Rule IDxccdf_org.ssgproject.content_rule_umask_for_daemons
Result
error
Time2015-08-22T01:36:05
Severitylow
Identifiers and References

identifiers:  CCE-27031-4

references:  AC-6, test_attestation

Description

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 027
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.

Rationale

The umask influences the permissions assigned to files created by a process at run time. An unnecessarily permissive umask could result in files being created with insecure permissions.

OVAL details

Items found violating Test the retrieved /etc/init.d/functions umask value(s) match the var_umask_for_daemons requirement:

Var refValue
oval:ssg:var:232518
Evaluation messages
info 
Fix execution completed and returned: 1
info 
sed: couldn't open temporary file /etc/init.d/sedwQI7Wt: Permission denied
/tmp/oscap.N4wwnd/fix-XXAGdHWv: line 5: /etc/init.d/functions: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
var_umask_for_daemons="027"
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 Usersxccdf_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
error
Time2015-08-22T01:36:05
Severitylow
Identifiers and References

identifiers:  CCE-27033-0

references:  SC-5

Description

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

*     hard   core    0

Rationale

A core dump includes a memory image taken at the time the operating system terminates an application. The memory image could contain sensitive data and is generally useful only for developers trying to debug problems.

OVAL details

Items not found violating Tests the value of the ^[\s]*\*[\s]+(hard|-)[\s]+core[\s]+([\d]+) setting in the /etc/security/limits.conf file:

Object oval:ssg:obj:1619 of type textfilecontent54_object
FilepathPatternInstance
/etc/security/limits.conf^[\s]*\*[\s]+hard[\s]+core[\s]+([\d]+)1
State oval:ssg:ste:1620 of type textfilecontent54_state
Subexpression
0
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.CBY6AO/fix-XX7STxf7: line 1: /etc/security/limits.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "*     hard   core    0" >> /etc/security/limits.conf
Disable Core Dumps for SUID programsxccdf_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
error
Time2015-08-22T01:36:05
Severitylow
Identifiers and References

identifiers:  CCE-27044-7

references:  SI-11

Description

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

Rationale

The core dump of a setuid program is more likely to contain sensitive data, as the program itself runs with greater privileges than the user who initiated execution of the program. Disabling the ability for any setuid program to write a core file decreases the risk of unauthorized access of such data.

OVAL details

Items found violating kernel runtime parameter fs.suid_dumpable set to 0:

NameValue
fs.suid_dumpable0

Items not found violating fs.suid_dumpable static configuration:

Object oval:ssg:obj:1934 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*fs.suid_dumpable[\s]*=[\s]*0[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.G5ktVp/fix-XX66KpBI: line 4: sysctl: command not found
/tmp/oscap.G5ktVp/fix-XX66KpBI: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.G5ktVp/fix-XX66KpBI: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.G5ktVp/fix-XX66KpBI: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
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 ExecShieldxccdf_org.ssgproject.content_rule_sysctl_kernel_exec_shield CCE-27007-4

Enable ExecShield

Rule IDxccdf_org.ssgproject.content_rule_sysctl_kernel_exec_shield
Result
error
Time2015-08-22T01:36:05
Severitymedium
Identifiers and References

identifiers:  CCE-27007-4

references:  http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf, test_attestation

Description

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

Rationale

ExecShield uses the segmentation feature on all x86 systems to prevent execution in memory higher than a certain address. It writes an address as a limit in the code segment descriptor, to control where code can be executed, on a per-process basis. When the kernel places a process's memory regions such as the stack and heap higher than this address, the hardware prevents execution in that address range.

OVAL details

Items found violating kernel runtime parameter kernel.exec-shield set to 1:

NameValue
kernel.exec-shield1

Items not found violating kernel.exec-shield static configuration:

Object oval:ssg:obj:2013 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*kernel.exec-shield[\s]*=[\s]*1[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.YZGxm1/fix-XXbMvH7j: line 4: sysctl: command not found
/tmp/oscap.YZGxm1/fix-XXbMvH7j: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.YZGxm1/fix-XXbMvH7j: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.YZGxm1/fix-XXbMvH7j: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
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 Spacexccdf_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
error
Time2015-08-22T01:36:05
Severitymedium
Identifiers and References

identifiers:  CCE-26999-3

references:  http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf, test_attestation

Description

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

Rationale

Address space layout randomization (ASLR) makes it more difficult for an attacker to predict the location of attack code they have introduced into a process's address space during an attempt at exploitation. Additionally, ASLR makes it more difficult for an attacker to know the location of existing code in order to re-purpose it using return oriented programming (ROP) techniques.

OVAL details

Items found violating kernel runtime parameter kernel.randomize_va_space set to 2:

NameValue
kernel.randomize_va_space2

Items not found violating kernel.randomize_va_space static configuration:

Object oval:ssg:obj:1533 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*kernel.randomize_va_space[\s]*=[\s]*2[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.Ya9RVC/fix-XX2rj4JV: line 4: sysctl: command not found
/tmp/oscap.Ya9RVC/fix-XX2rj4JV: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.Ya9RVC/fix-XX2rj4JV: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.Ya9RVC/fix-XX2rj4JV: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
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 Systemsxccdf_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
Time2015-08-22T01:35:57
Severitylow
Identifiers and References

identifiers:  CCE-27010-8

references:  http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf

Description

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:

$ sudo 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.

Rationale

On 32-bit systems that support the XD or NX bit, the vendor-supplied PAE kernel is required to enable either Execute Disable (XD) or No Execute (NX) support.

Warnings
warning  The kernel-PAE package should not be installed on older systems that do not support the XD or NX bit, as this may prevent them from booting.
Evaluation messages
info 
No candidate or applicable check found.
Enable NX or XD Support in the BIOSxccdf_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
notselected
Time2015-08-22T01:35:57
Severitylow
Identifiers and References

identifiers:  CCE-27163-5

references:  http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf

Description

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.

Rationale

Computers with the ability to prevent this type of code execution frequently put an option in the BIOS that will allow users to turn the feature on or off at will.

Restrict Access to Kernel Message Bufferxccdf_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
notselected
Time2015-08-22T01:35:57
Severitylow
Identifiers and References

identifiers:  CCE-27366-4

Description

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

Rationale

Unprivileged access to the kernel syslog can expose sensitive kernel address information.

OVAL details

Items not found violating kernel runtime parameter kernel.dmesg_restrict set to 1:

Object oval:ssg:obj:2017 of type sysctl_object
Name
kernel.dmesg_restrict
State oval:ssg:ste:2018 of type sysctl_state
Value
1

Items not found violating kernel.dmesg_restrict static configuration:

Object oval:ssg:obj:2019 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*kernel.dmesg_restrict[\s]*=[\s]*1[\s]*$1
Ensure SELinux Not Disabled in /etc/grub.confxccdf_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
error
Time2015-08-22T01:35:57
Severitymedium
Identifiers and References

identifiers:  CCE-26956-3

references:  AC-3, AC-3(3), AC-6, AU-9, 22, 32, test_attestation

Description

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.

Rationale

Disabling a major host protection feature, such as SELinux, at boot time prevents it from confining system services at boot time. Further, it increases the chances that it will remain off during system operation.

OVAL details

Items not found violating check value selinux|enforcing=0 in /etc/grub.conf, fail if found:

Object oval:ssg:obj:1492 of type textfilecontent54_object
FilepathPatternInstance
/etc/grub.conf^[\s]*kernel[\s]+.*(selinux|enforcing)=0.*$1
Remediation script:
sed -i "s/selinux=0//gI" /etc/grub.conf
sed -i "s/enforcing=0//gI" /etc/grub.conf
Ensure SELinux State is Enforcingxccdf_org.ssgproject.content_rule_selinux_state CCE-26969-6

Ensure SELinux State is Enforcing

Rule IDxccdf_org.ssgproject.content_rule_selinux_state
Result
pass
Time2015-08-22T01:35:57
Severitymedium
Identifiers and References

identifiers:  CCE-26969-6

references:  AC-3, AC-3(3), AC-4, AC-6, AU-9, 22, 32, 26, test_attestation

Description

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

Rationale

Setting the SELinux state to enforcing ensures SELinux is able to confine potentially compromised processes to the security policy, which is designed to prevent them from causing damage to the system or further elevating their privileges.

OVAL details

Items found satisfying /selinux/enforce is 1:

PathContent
/etc/selinux/configSELINUX=enforcing
Configure SELinux Policyxccdf_org.ssgproject.content_rule_selinux_policytype CCE-26875-5

Configure SELinux Policy

Rule IDxccdf_org.ssgproject.content_rule_selinux_policytype
Result
pass
Time2015-08-22T01:35:57
Severitylow
Identifiers and References

identifiers:  CCE-26875-5

references:  AC-3, AC-3(3), AC-4, AC-6, AU-9, 22, 32, test_attestation

Description

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.

Rationale

Setting the SELinux policy to targeted or a more specialized policy ensures the system will confine processes that are likely to be targeted for exploitation, such as network or system services.

OVAL details

Items found satisfying Tests the value of the ^[\s]*SELINUXTYPE[\s]*=[\s]*([^#]*) expression in the /etc/selinux/config file:

PathContent
/etc/selinux/configSELINUXTYPE=targeted
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
notselected
Time2015-08-22T01:35:57
Severitylow
Identifiers and References

identifiers:  CCE-26991-0

references:  AC-3, AC-3(3), AC-4, AC-6, AU-9

Description

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

Rationale

The restorecond service helps ensure that the default SELinux file context is applied to files. This allows automatic correction of file contexts created by some programs.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1876 of type runlevel_object
Service nameRunlevel
restorecond0
State oval:ssg:ste:1877 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1878 of type runlevel_object
Service nameRunlevel
restorecond1
State oval:ssg:ste:1877 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1879 of type runlevel_object
Service nameRunlevel
restorecond2
State oval:ssg:ste:1877 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1880 of type runlevel_object
Service nameRunlevel
restorecond3
State oval:ssg:ste:1877 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1881 of type runlevel_object
Service nameRunlevel
restorecond4
State oval:ssg:ste:1877 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1882 of type runlevel_object
Service nameRunlevel
restorecond5
State oval:ssg:ste:1877 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1883 of type runlevel_object
Service nameRunlevel
restorecond6
State oval:ssg:ste:1877 of type runlevel_state
StartKill
truefalse
Uninstall setroubleshoot Packagexccdf_org.ssgproject.content_rule_package_setroubleshoot_removed CCE-

Uninstall setroubleshoot Package

Rule IDxccdf_org.ssgproject.content_rule_package_setroubleshoot_removed
Result
notselected
Time2015-08-22T01:35:57
Severitylow
Identifiers and References

identifiers:  CCE-

Description

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

Rationale

The SETroubleshoot service is an unnecessary daemon to have running on a server

OVAL details

Items not found violating package setroubleshoot is removed:

Object oval:ssg:obj:1585 of type rpminfo_object
Name
setroubleshoot
Uninstall mcstrans Packagexccdf_org.ssgproject.content_rule_package_mcstrans_removed CCE-

Uninstall mcstrans Package

Rule IDxccdf_org.ssgproject.content_rule_package_mcstrans_removed
Result
notselected
Time2015-08-22T01:35:57
Severitylow
Identifiers and References

identifiers:  CCE-

Description

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

Rationale

Since this service is not used very often, disable it to reduce the amount of potentially vulnerable code running on the system. NOTE: This rule was added in support of the CIS RHEL6 v1.2.0 benchmark. Please note that Red Hat does not feel this rule is security relevant.

OVAL details

Items not found violating package mcstrans is removed:

Object oval:ssg:obj:1889 of type rpminfo_object
Name
mcstrans
Ensure No Daemons are Unconfined by SELinuxxccdf_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
Time2015-08-22T01:35:57
Severitymedium
Identifiers and References

identifiers:  CCE-27111-4

references:  AC-6, AU-9, CM-7

Description

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:

$ sudo 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.

Rationale

Daemons which run with the initrc_t context may cause AVC denials, or allow privileges that the daemon does not require.

Evaluation messages
info 
No candidate or applicable check found.
Ensure No Device Files are Unlabeled by SELinuxxccdf_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
pass
Time2015-08-22T01:35:57
Severitylow
Identifiers and References

identifiers:  CCE-26774-0

references:  AC-6, AU-9, CM-7, 22, 32, test_attestation

Description

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.

Rationale

If a device file carries the SELinux type unlabeled_t, then SELinux cannot properly restrict access to the device file.

OVAL details

Items not found satisfying unlabeled_t in /dev:

Object oval:ssg:obj:1419 of type selinuxsecuritycontext_object
BehaviorsPathFilenameFilter
no value/dev^.*$oval:ssg:ste:1420
State oval:ssg:ste:1420 of type selinuxsecuritycontext_state
Type
unlabeled_t
Direct root Logins Not Allowedxccdf_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
notselected
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26891-2

references:  IA-2(1), test_attestation

Description

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:

$ sudo echo > /etc/securetty

Rationale

Disabling direct root logins ensures proper accountability and multifactor authentication to privileged accounts. Users will first login, then escalate to privileged (root) access via su / sudo. This is required for FISMA Low and FISMA Moderate systems.

Restrict Serial Port Root Loginsxccdf_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
error
Time2015-08-22T01:35:58
Severitylow
Identifiers and References

identifiers:  CCE-27047-0

references:  AC-6(2), 770, test_attestation

Description

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

ttyS0
ttyS1

Rationale

Preventing direct root login to serial port interfaces helps ensure accountability for actions taken on the systems using the root account.

OVAL details

Items not found violating serial ports /etc/securetty:

Object oval:ssg:obj:1699 of type textfilecontent54_object
PathFilenamePatternInstance
/etcsecuretty^ttyS[0-9]+$1
Restrict Web Browser Use for Administrative Accountsxccdf_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
notselected
Time2015-08-22T01:35:58
Severitylow
Identifiers and References

identifiers:  CCE-26795-5

Description

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

Rationale

If a browser vulnerability is exploited while running with administrative privileges, the entire system could be compromised. Specific exceptions for local service administration should be documented in site-defined policy.

Ensure that System Accounts Do Not Run a Shell Upon Loginxccdf_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
notselected
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26966-2

references:  http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf, 178, test_attestation

Description

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:

$ sudo usermod -s /sbin/nologin SYSACCT

Rationale

Ensuring shells are not given to system accounts upon login makes it more difficult for attackers to make use of system accounts.

Warnings
warning  Do not perform the steps in this section on the root account. Doing so might cause the system to become inaccessible.
OVAL details

Items not found violating tests for the presence of login shells (not /sbin/nologin) for system accounts in /etc/passwd file:

Object oval:ssg:obj:1378 of type textfilecontent54_object
FilepathPatternInstance
/etc/passwd^(?!root).*:x:[\d]*:0*([0-9]{1,2}|[1-4][0-9]{2}):[^:]*:[^:]*:(?!\/sbin\/nologin|\/bin\/sync|\/sbin\/shutdown|\/sbin\/halt).*$1
Verify Only Root Has UID 0xccdf_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
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26971-2

references:  AC-6, IA-2(1), 366, test_attestation

Description

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.

Rationale

An account has root authority if it has a UID of 0. Multiple accounts with a UID of 0 afford more opportunity for potential intruders to guess a password for a privileged account. Proper configuration of sudo is recommended to afford multiple system administrators access to root privileges in an accountable manner.

OVAL details

Items not found satisfying test that there are no accounts with UID 0 except root in the /etc/passwd file:

Object oval:ssg:obj:1475 of type textfilecontent54_object
FilepathPatternInstance
/etc/passwd^(?!root:)[^:]*:[^:]*:01
Root Path Must Be Vendor Defaultxccdf_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
notselected
Time2015-08-22T01:35:58
Severitylow
Identifiers and References

identifiers:  CCE-27125-4

references:  test_attestation

Description

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.

Rationale

The root account's executable search path must be the vendor default, and must contain only absolute paths.

Prevent Log In to Accounts With Empty Passwordxccdf_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
error
Time2015-08-22T01:36:05
Severityhigh
Identifiers and References

identifiers:  CCE-27038-9

references:  IA-5(b), IA-5(c), IA-5(1)(a), test_attestation

Description

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.

Rationale

If an account has an empty password, anyone could log in and run commands with the privileges of that account. Accounts with empty passwords should never be used in operational environments.

OVAL details

Items found violating make sure nullok is not used in /etc/pam.d/system-auth:

PathContent
/etc/pam.d/system-auth nullok
Evaluation messages
info 
Fix execution completed and returned: 4
info 
sed: couldn't open temporary file /etc/pam.d/sedmTXCPB: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
sed --follow-symlinks -i 's/\<nullok\>//g' /etc/pam.d/system-auth
Verify All Account Password Hashes are Shadowedxccdf_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
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26476-2

references:  IA-5(h), 201, test_attestation

Description

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.

Rationale

The hashes for all user account passwords should be stored in the file /etc/shadow and never in /etc/passwd, which is readable by all users.

OVAL details

Items found satisfying password hashes are shadowed:

UsernamePasswordUser idGroup idGcosHome dirLogin shellLast login
daemonx22daemon/sbin/sbin/nologin0
rootx00root/root/bin/bash1440220617
binx11bin/bin/sbin/nologin0
lpx47lp/var/spool/lpd/sbin/nologin0
admx34adm/var/adm/sbin/nologin0
shutdownx60shutdown/sbin/sbin/shutdown0
syncx50sync/sbin/bin/sync0
haltx70halt/sbin/sbin/halt0
mailx812mail/var/spool/mail/sbin/nologin0
uucpx1014uucp/var/spool/uucp/sbin/nologin0
operatorx110operator/root/sbin/nologin0
gamesx12100games/usr/games/sbin/nologin0
gopherx1330gopher/var/gopher/sbin/nologin0
ftpx1450FTP User/var/ftp/sbin/nologin0
nobodyx9999Nobody//sbin/nologin0
dbusx8181System message bus//sbin/nologin0
vcsax6969virtual console memory owner/dev/sbin/nologin0
rpcx3232Rpcbind Daemon/var/cache/rpcbind/sbin/nologin0
abrtx173173/etc/abrt/sbin/nologin0
rpcuserx2929RPC Service User/var/lib/nfs/sbin/nologin0
nfsnobodyx6553465534Anonymous NFS User/var/lib/nfs/sbin/nologin-1
haldaemonx6868HAL daemon//sbin/nologin0
ntpx3838/etc/ntp/sbin/nologin0
saslauthx49976Saslauthd user/var/empty/saslauth/sbin/nologin0
postfixx8989/var/spool/postfix/sbin/nologin0
sshdx7474Privilege-separated SSH/var/empty/sshd/sbin/nologin0
oprofilex1616Special user account to be used by OProfile/home/oprofile/sbin/nologin0
tcpdumpx7272//sbin/nologin0
msrubarx500500/home/msrubar/bin/bash1440184664
All GIDs referenced in /etc/passwd must be defined in /etc/groupxccdf_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
notselected
Time2015-08-22T01:35:58
Severitylow
Identifiers and References

identifiers:  CCE-27379-7

references:  366, test_attestation

Description

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

Rationale

Inconsistency in GIDs between /etc/passwd and /etc/group could lead to a user having unintended rights.

Verify No netrc Files Existxccdf_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
notselected
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-27225-2

references:  IA-5(h), 196

Description

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.

Rationale

Unencrypted passwords for remote FTP servers may be stored in .netrc files. DoD policy requires passwords be encrypted in storage and not used in access scripts.

OVAL details

Items not found violating look for .netrc in /home:

Object oval:ssg:obj:1390 of type file_object
BehaviorsPathFilename
no value/home^\.netrc$
Set Password Retry Prompts Permitted Per-Sessionxccdf_org.ssgproject.content_rule_accounts_password_pam_retry CCE-27123-9

Set Password Retry Prompts Permitted Per-Session

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_retry
Result
pass
Time2015-08-22T01:35:58
Severitylow
Identifiers and References

identifiers:  CCE-27123-9

references:  IA-5(c), 1092, test_attestation

Description

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.

Rationale

Setting the password retry prompts that are permitted on a per-session basis to a low value requires some software, such as SSH, to re-connect. This can slow down and draw additional attention to some types of password-guessing attacks. Note that this is different from account lockout, which is provided by the pam_faillock module.

OVAL details

Items found satisfying check the configuration of /etc/pam.d/system-auth:

PathContent
/etc/pam.d/system-auth password requisite pam_cracklib.so try_first_pass retry=3 type=

Items not found satisfying check the configuration of /etc/pam.d/system-auth:

Object oval:ssg:obj:1667 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_pwquality\.so.*retry=([0-9]*).*$1
State oval:ssg:ste:1666 of type textfilecontent54_state
Subexpression
3
Set Password to Maximum of Three Consecutive Repeating Charactersxccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_maxrepeat CCE-27227-8

Set Password to Maximum of Three Consecutive Repeating Characters

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_cracklib_maxrepeat
Result
notselected
Time2015-08-22T01:35:58
Severitylow
Identifiers and References

identifiers:  CCE-27227-8

references:  IA-5(c), 366

Description

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 (3 + 1) or more identical characters.

Rationale

Passwords with excessive repeating characters may be more vulnerable to password-guessing attacks.

OVAL details

Items not found violating check the configuration of /etc/pam.d/system-auth:

Object oval:ssg:obj:1835 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_cracklib\.so.*maxrepeat=([0-9]*).*$1
State oval:ssg:ste:1836 of type textfilecontent54_state
Subexpression
Set Password Strength Minimum Digit Charactersxccdf_org.ssgproject.content_rule_accounts_password_pam_dcredit CCE-26374-9

Set Password Strength Minimum Digit Characters

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_dcredit
Result
error
Time2015-08-22T01:36:05
Severitylow
Identifiers and References

identifiers:  CCE-26374-9

references:  IA-5(b), IA-5(c), 194, 194, test_attestation

Description

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.

Rationale

Requiring digits makes password guessing attacks more difficult by ensuring a larger search space.

OVAL details

Items not found violating check the configuration of /etc/pam.d/system-auth:

Object oval:ssg:obj:1365 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_cracklib\.so.*dcredit=(-?\d+)(?:[\s]|$)1
State oval:ssg:ste:1366 of type textfilecontent54_state
InstanceSubexpression
-11

Items not found violating check the configuration of /etc/pam.d/system-auth pwquality:

Object oval:ssg:obj:1367 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_pwquality\.so.*dcredit=(-?\d+)(?:[\s]|$)1
State oval:ssg:ste:1366 of type textfilecontent54_state
InstanceSubexpression
-11
Evaluation messages
info 
Fix execution completed and returned: 4
info 
sed: couldn't open temporary file /etc/pam.d/sedNTAKHE: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
var_password_pam_dcredit="-1"
if grep -q "dcredit=" /etc/pam.d/system-auth; then
	sed -i --follow-symlink "s/\(dcredit *= *\).*/\1$var_password_pam_dcredit/" /etc/pam.d/system-auth
else
	sed -i --follow-symlink "/pam_cracklib.so/ s/$/ dcredit=$var_password_pam_dcredit/" /etc/pam.d/system-auth
fi
Set Password Strength Minimum Uppercase Charactersxccdf_org.ssgproject.content_rule_accounts_password_pam_ucredit CCE-26601-5

Set Password Strength Minimum Uppercase Characters

Rule IDxccdf_org.ssgproject.content_rule_accounts_password_pam_ucredit
Result
error
Time2015-08-22T01:36:05
Severitylow
Identifiers and References

identifiers:  CCE-26601-5

references:  IA-5(b), IA-5(c), IA-5(1)(a), 192, test_attestation

Description

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.

Rationale

Requiring a minimum number of uppercase characters makes password guessing attacks more difficult by ensuring a larger search space.

OVAL details

Items not found violating check the configuration of /etc/pam.d/system-auth:

Object oval:ssg:obj:1312 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_cracklib\.so.*ucredit=(-?\d+)(?:[\s]|$)1
State oval:ssg:ste:1313 of type textfilecontent54_state
InstanceSubexpression
-11

Items not found violating check the configuration of /etc/pam.d/system-auth pwquality:

Object oval:ssg:obj:1314 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_pwquality\.so.*ucredit=(-?\d+)(?:[\s]|$)1
State oval:ssg:ste:1313 of type textfilecontent54_state
InstanceSubexpression
-11