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
Evaluation messages
info 
Fix execution completed and returned: 4
info 
sed: couldn't open temporary file /etc/pam.d/sedsSkyfD: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
var_password_pam_ucredit="-1"
if grep -q "ucredit=" /etc/pam.d/system-auth; then   
	sed -i --follow-symlink "s/\(ucredit *= *\).*/\1$var_password_pam_ucredit/" /etc/pam.d/system-auth
else
	sed -i --follow-symlink "/pam_cracklib.so/ s/$/ ucredit=$var_password_pam_ucredit/" /etc/pam.d/system-auth
fi
Set Password Strength Minimum Special Charactersxccdf_org.ssgproject.content_rule_accounts_password_pam_ocredit CCE-26409-3

Set Password Strength Minimum Special Characters

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

identifiers:  CCE-26409-3

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

Description

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

Rationale

Requiring a minimum number of special 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:1472 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_cracklib\.so.*ocredit=(-?\d+)(?:[\s]|$)1
State oval:ssg:ste:1473 of type textfilecontent54_state
InstanceSubexpression
-11

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

Object oval:ssg:obj:1474 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_pwquality\.so.*ocredit=(-?\d+)(?:[\s]|$)1
State oval:ssg:ste:1473 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/sedn70wqG: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
var_password_pam_ocredit="-1"
if grep -q "ocredit=" /etc/pam.d/system-auth; then   
	sed -i --follow-symlink "s/\(ocredit *= *\).*/\1$var_password_pam_ocredit/" /etc/pam.d/system-auth
else
	sed -i --follow-symlink "/pam_cracklib.so/ s/$/ ocredit=$var_password_pam_ocredit/" /etc/pam.d/system-auth
fi
Set Password Strength Minimum Lowercase Charactersxccdf_org.ssgproject.content_rule_accounts_password_pam_lcredit CCE-26631-2

Set Password Strength Minimum Lowercase Characters

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

identifiers:  CCE-26631-2

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

Description

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

Rationale

Requiring a minimum number of lowercase 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:2231 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_cracklib\.so.*lcredit=(-?\d+)(?:[\s]|$)1
State oval:ssg:ste:2232 of type textfilecontent54_state
InstanceSubexpression
-11

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

Object oval:ssg:obj:2233 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:required)|(?:requisite))\s+pam_pwquality\.so.*lcredit=(-?\d+)(?:[\s]|$)1
State oval:ssg:ste:2232 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/seddc9AXG: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
var_password_pam_lcredit="-1"
if grep -q "lcredit=" /etc/pam.d/system-auth; then   
	sed -i --follow-symlink "s/\(lcredit *= *\).*/\1$var_password_pam_lcredit/" /etc/pam.d/system-auth
else
	sed -i --follow-symlink "/pam_cracklib.so/ s/$/ lcredit=$var_password_pam_lcredit/" /etc/pam.d/system-auth
fi
Set Password Strength Minimum Different Charactersxccdf_org.ssgproject.content_rule_accounts_password_pam_difok CCE-26615-5

Set Password Strength Minimum Different Characters

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

identifiers:  CCE-26615-5

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

Description

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

Rationale

Requiring a minimum number of different characters during password changes ensures that newly changed passwords should not resemble previously compromised ones. Note that passwords which are changed on compromised systems will still be compromised, however.

OVAL details

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

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

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

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

Set Password Strength Minimum Different Categories

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

identifiers:  CCE-27115-5

references:  test_attestation

Description

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

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

Rationale

Requiring a minimum number of character categories 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:2161 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^[\s]*password[\s]+(?:(?:required)|(?:requisite))[\s]+[\w_\.\-=\s]+[\s]minclass=(\d+)(?:[\s]|$)1
State oval:ssg:ste:2162 of type textfilecontent54_state
InstanceSubexpression
1
Set Deny For Failed Password Attemptsxccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_deny CCE-26844-1

Set Deny For Failed Password Attempts

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

identifiers:  CCE-26844-1

references:  AC-7(a), 44

Description

To configure the system to lock out accounts after a number of incorrect login attempts using pam_faillock.so, modify the content of both /etc/pam.d/system-auth and /etc/pam.d/password-auth as follows:

  • add the following line immediately before the pam_unix.so statement in the AUTH section:

    auth required pam_faillock.so preauth silent deny=5 unlock_time=604800 fail_interval=900

  • add the following line immediately after the pam_unix.so statement in the AUTH section:

    auth [default=die] pam_faillock.so authfail deny=5 unlock_time=604800 fail_interval=900

  • add the following line immediately before the pam_unix.so statement in the ACCOUNT section:

    account required pam_faillock.so

Rationale

Locking out user accounts after a number of incorrect attempts prevents direct password guessing attacks.

OVAL details

Items not found violating check maximum failed login attempts allowed in /etc/pam.d/system-auth:

Object oval:ssg:obj:1299 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*auth\s+(?:(?:required))\s+pam_faillock\.so.*deny=([0-9]*).*$1
State oval:ssg:ste:1300 of type textfilecontent54_state
Subexpression
5

Items not found violating check maximum failed login attempts allowed in /etc/pam.d/password-auth:

Object oval:ssg:obj:1301 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/password-auth^\s*auth\s+(?:(?:sufficient)|(?:\[default=die\]))\s+pam_faillock\.so.*deny=([0-9]*).*$1
State oval:ssg:ste:1302 of type textfilecontent54_state
Subexpression
5
Evaluation messages
info 
Fix execution completed and returned: 4
info 
sed: couldn't open temporary file /etc/pam.d/sedeUjiPI: Permission denied
sed: couldn't open temporary file /etc/pam.d/sedZdMfQI: Permission denied
sed: couldn't open temporary file /etc/pam.d/sedWSGjNI: Permission denied
sed: couldn't open temporary file /etc/pam.d/sedv1LwAJ: Permission denied
sed: couldn't open temporary file /etc/pam.d/sed8USztJ: Permission denied
sed: couldn't open temporary file /etc/pam.d/sedCfervJ: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
var_accounts_passwords_pam_faillock_deny="5"
AUTH_FILES[0]="/etc/pam.d/system-auth"
AUTH_FILES[1]="/etc/pam.d/password-auth"

for pamFile in "${AUTH_FILES[@]}"
do
	
	# pam_faillock.so already present?
	if grep -q "^auth.*pam_faillock.so.*" $pamFile; then

		# pam_faillock.so present, deny directive present?
		if grep -q "^auth.*[default=die].*pam_faillock.so.*authfail.*deny=" $pamFile; then

			# both pam_faillock.so & deny present, just correct deny directive value
			sed -i --follow-symlink "s/\(^auth.*required.*pam_faillock.so.*preauth.*silent.*\)\(deny *= *\).*/\1\2$var_accounts_passwords_pam_faillock_deny/" $pamFile
			sed -i --follow-symlink "s/\(^auth.*[default=die].*pam_faillock.so.*authfail.*\)\(deny *= *\).*/\1\2$var_accounts_passwords_pam_faillock_deny/" $pamFile

		# pam_faillock.so present, but deny directive not yet
		else

			# append correct deny value to appropriate places
			sed -i --follow-symlink "/^auth.*required.*pam_faillock.so.*preauth.*silent.*/ s/$/ deny=$var_accounts_passwords_pam_faillock_deny/" $pamFile
			sed -i --follow-symlink "/^auth.*[default=die].*pam_faillock.so.*authfail.*/ s/$/ deny=$var_accounts_passwords_pam_faillock_deny/" $pamFile
		fi

	# pam_faillock.so not present yet
	else

		# insert pam_faillock.so preauth & authfail rows with proper value of the 'deny' option
		sed -i --follow-symlink "/^auth.*sufficient.*pam_unix.so.*/i auth        required      pam_faillock.so preauth silent deny=$var_accounts_passwords_pam_faillock_deny" $pamFile
		sed -i --follow-symlink "/^auth.*sufficient.*pam_unix.so.*/a auth        [default=die] pam_faillock.so authfail deny=$var_accounts_passwords_pam_faillock_deny" $pamFile
		sed -i --follow-symlink "/^account.*required.*pam_unix.so/i account     required      pam_faillock.so" $pamFile
	fi
done
Set Lockout Time For Failed Password Attemptsxccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_unlock_time CCE-27110-6

Set Lockout Time For Failed Password Attempts

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

identifiers:  CCE-27110-6

references:  AC-7(b), 47

Description

To configure the system to lock out accounts after a number of incorrect login attempts and require an administrator to unlock the account using pam_faillock.so, modify the content of both /etc/pam.d/system-auth and /etc/pam.d/password-auth as follows:

  • add the following line immediately before the pam_unix.so statement in the AUTH section:

    auth required pam_faillock.so preauth silent deny=5 unlock_time=604800 fail_interval=900

  • add the following line immediately after the pam_unix.so statement in the AUTH section:

    auth [default=die] pam_faillock.so authfail deny=5 unlock_time=604800 fail_interval=900

  • add the following line immediately before the pam_unix.so statement in the ACCOUNT section:

    account required pam_faillock.so

Rationale

Locking out user accounts after a number of incorrect attempts prevents direct password guessing attacks. Ensuring that an administrator is involved in unlocking locked accounts draws appropriate attention to such situations.

OVAL details

Items not found violating check maximum failed login attempts allowed in /etc/pam.d/system-auth:

Object oval:ssg:obj:1467 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/pam.dsystem-auth^\s*auth\s+(?:(?:required))\s+pam_faillock\.so.*unlock_time=([0-9]*).*$1
State oval:ssg:ste:1468 of type textfilecontent54_state
Subexpression

Items not found violating check maximum failed login attempts allowed in /etc/pam.d/password-auth:

Object oval:ssg:obj:1469 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/pam.dpassword-auth^\s*auth\s+(?:(?:sufficient)|(?:\[default=die\]))\s+pam_faillock\.so.*unlock_time=([0-9]*).*$1
State oval:ssg:ste:1470 of type textfilecontent54_state
Subexpression
Set Interval For Counting Failed Password Attemptsxccdf_org.ssgproject.content_rule_accounts_passwords_pam_fail_interval CCE-27215-3

Set Interval For Counting Failed Password Attempts

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

identifiers:  CCE-27215-3

references:  AC-7(a), 1452

Description

Utilizing pam_faillock.so, the fail_interval directive configures the system to lock out accounts after a number of incorrect login attempts. Modify the content of both /etc/pam.d/system-auth and /etc/pam.d/password-auth as follows:

  • add the following line immediately before the pam_unix.so statement in the AUTH section:

    auth required pam_faillock.so preauth silent deny=5 unlock_time=604800 fail_interval=900

  • add the following line immediately after the pam_unix.so statement in the AUTH section:

    auth [default=die] pam_faillock.so authfail deny=5 unlock_time=604800 fail_interval=900

  • add the following line immediately before the pam_unix.so statement in the ACCOUNT section:

    account required pam_faillock.so

Rationale

Locking out user accounts after a number of incorrect attempts within a specific period of time prevents direct password guessing attacks.

OVAL details

Items not found violating check maximum failed login attempts allowed in /etc/pam.d/system-auth:

Object oval:ssg:obj:1935 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/pam.dsystem-auth^\s*auth\s+(?:(?:required))\s+pam_faillock\.so.*fail_interval=([0-9]*).*$1
State oval:ssg:ste:1936 of type textfilecontent54_state
Subexpression

Items not found violating check maximum failed login attempts allowed in /etc/pam.d/password-auth:

Object oval:ssg:obj:1937 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/pam.dpassword-auth^\s*auth\s+(?:(?:sufficient)|(?:\[default=die\]))\s+pam_faillock\.so.*fail_interval=([0-9]*).*$1
State oval:ssg:ste:1938 of type textfilecontent54_state
Subexpression
Limit Password Reusexccdf_org.ssgproject.content_rule_accounts_password_pam_unix_remember CCE-26741-9

Limit Password Reuse

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

identifiers:  CCE-26741-9

references:  IA-5(f), IA-5(1)(e), 200, test_attestation

Description

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

password sufficient pam_unix.so existing_options remember=24
The DoD STIG requirement is 5 passwords.

Rationale

Preventing re-use of previous passwords helps ensure that a compromised password is not re-used by a user.

OVAL details

Items not found violating remember is set in /etc/pam.d/system-auth:

Object oval:ssg:obj:2159 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam.d/system-auth^\s*password\s+(?:(?:sufficient)|(?:required))\s+pam_unix\.so.*remember=([0-9]*).*$1
State oval:ssg:ste:2160 of type textfilecontent54_state
Subexpression
24
Evaluation messages
info 
Fix execution completed and returned: 4
info 
sed: couldn't open temporary file /etc/pam.d/sedhMoRVH: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
var_password_pam_unix_remember="24"
if grep -q "remember=" /etc/pam.d/system-auth; then   
	sed -i --follow-symlink "s/\(remember *= *\).*/\1$var_password_pam_unix_remember/" /etc/pam.d/system-auth
else
	sed -i --follow-symlink "/^password[[:space:]]\+sufficient[[:space:]]\+pam_unix.so/ s/$/ remember=$var_password_pam_unix_remember/" /etc/pam.d/system-auth
fi
Set Password Hashing Algorithm in /etc/pam.d/system-authxccdf_org.ssgproject.content_rule_set_password_hashing_algorithm_systemauth CCE-26303-8

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

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

identifiers:  CCE-26303-8

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

Description

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

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

Rationale

Using a stronger hashing algorithm makes password cracking attacks more difficult.

OVAL details

Items found satisfying check /etc/pam.d/system-auth for correct settings:

PathContent
/etc/pam.d/system-authpassword sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok
Set Password Hashing Algorithm in /etc/login.defsxccdf_org.ssgproject.content_rule_set_password_hashing_algorithm_logindefs CCE-27228-6

Set Password Hashing Algorithm in /etc/login.defs

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

identifiers:  CCE-27228-6

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

Description

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

ENCRYPT_METHOD SHA512

Rationale

Using a stronger hashing algorithm makes password cracking attacks more difficult.

OVAL details

Items found satisfying check ENCRYPT_METHOD in /etc/login.defs:

PathContent
/etc/login.defsENCRYPT_METHOD SHA512
Set Password Hashing Algorithm in /etc/libuser.confxccdf_org.ssgproject.content_rule_set_password_hashing_algorithm_libuserconf CCE-27229-4

Set Password Hashing Algorithm in /etc/libuser.conf

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

identifiers:  CCE-27229-4

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

Description

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

crypt_style = sha512

Rationale

Using a stronger hashing algorithm makes password cracking attacks more difficult.

OVAL details

Items not found violating The password hashing algorithm should be set correctly in /etc/libuser.conf:

Object oval:ssg:obj:1340 of type textfilecontent54_object
FilepathPatternInstance
/etc/libuser.conf^[\s]*crypt_style[\s]+=[\s]+(?i)sha512[\s]*$1
Ensure that Root's Path Does Not Include Relative Paths or Null Directoriesxccdf_org.ssgproject.content_rule_root_path_no_dot CCE-26826-8

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

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

identifiers:  CCE-26826-8

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

Description

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

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

Rationale

Including these entries increases the risk that root could execute code from an untrusted location.

OVAL details

Items found satisfying environment variable PATH starts with : or .:

PidNameValue
1148PATH/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin

Items found satisfying environment variable PATH doesn't contain : twice in a row:

PidNameValue
1148PATH/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin

Items found satisfying environment variable PATH doesn't contain . twice in a row:

PidNameValue
1148PATH/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin

Items found satisfying environment variable PATH ends with : or .:

PidNameValue
1148PATH/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin

Items found satisfying environment variable PATH starts with an absolute path /:

PidNameValue
1148PATH/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin

Items found satisfying environment variable PATH contains relative paths:

PidNameValue
1148PATH/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin
Ensure that Root's Path Does Not Include World or Group-Writable Directoriesxccdf_org.ssgproject.content_rule_root_path_no_groupother_writable CCE-26768-2

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

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

identifiers:  CCE-26768-2

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

Description

For each element in root's path, run:

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

Rationale

Such entries increase the risk that root could execute code provided by unprivileged users, and potentially malicious code.

OVAL details

Items not found violating Check that write permission to group in root's path is denied:

Object oval:ssg:obj:1795 of type file_object
PathFilenameFilter
/usr/lib64/qt-3.3/bin
/usr/local/bin
/bin
/usr/bin
no valueoval:ssg:ste:2316

Items not found violating Check that write permission to other in root's path is denied:

Object oval:ssg:obj:1796 of type file_object
PathFilenameFilter
/usr/lib64/qt-3.3/bin
/usr/local/bin
/bin
/usr/bin
no valueoval:ssg:ste:2317
Ensure the Default Bash Umask is Set Correctlyxccdf_org.ssgproject.content_rule_accounts_umask_bashrc CCE-26917-5

Ensure the Default Bash Umask is Set Correctly

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

identifiers:  CCE-26917-5

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

Description

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

umask 077

Rationale

The umask value influences the permissions assigned to files when they are created. A misconfigured umask value could result in files with excessive permissions that can be read or written to by unauthorized users.

OVAL details

Items found violating Test the retrieved /etc/bashrc umask value(s) match the var_accounts_user_umask requirement:

Var refValueValueValueValueValueValueValueValue
oval:ssg:var:2303221818221818
Evaluation messages
info 
Fix execution completed and returned: 1
info 
sed: couldn't open temporary file /etc/sedinB27H: Permission denied
/tmp/oscap.cxcspZ/fix-XXGli1Ci: line 5: /etc/bashrc: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
var_accounts_user_umask="077"
grep -q umask /etc/bashrc && \
  sed -i "s/umask.*/umask $var_accounts_user_umask/g" /etc/bashrc
if ! [ $? -eq 0 ]; then
    echo "umask $var_accounts_user_umask" >> /etc/bashrc
fi
Ensure the Default C Shell Umask is Set Correctlyxccdf_org.ssgproject.content_rule_accounts_umask_cshrc CCE-27034-8

Ensure the Default C Shell Umask is Set Correctly

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

identifiers:  CCE-27034-8

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

Description

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

umask 077

Rationale

The umask value influences the permissions assigned to files when they are created. A misconfigured umask value could result in files with excessive permissions that can be read or written to by unauthorized users.

OVAL details

Items found violating Test the retrieved /etc/csh.cshrc umask value(s) match the var_accounts_user_umask requirement:

Var refValueValueValueValueValueValueValueValue
oval:ssg:var:2319221818221818
Evaluation messages
info 
Fix execution completed and returned: 1
info 
sed: couldn't open temporary file /etc/seds0uBdL: Permission denied
/tmp/oscap.Ym2nSB/fix-XXI5EL7U: line 5: /etc/csh.cshrc: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
var_accounts_user_umask="077"
grep -q umask /etc/csh.cshrc && \
  sed -i "s/umask.*/umask $var_accounts_user_umask/g" /etc/csh.cshrc
if ! [ $? -eq 0 ]; then
    echo "umask $var_accounts_user_umask" >> /etc/csh.cshrc
fi
Ensure the Default Umask is Set Correctly in /etc/profilexccdf_org.ssgproject.content_rule_accounts_umask_etc_profile CCE-26669-2

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

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

identifiers:  CCE-26669-2

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

Description

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

umask 077

Rationale

The umask value influences the permissions assigned to files when they are created. A misconfigured umask value could result in files with excessive permissions that can be read or written to by unauthorized users.

OVAL details

Items found violating Test the retrieved /etc/profile umask value(s) match the var_accounts_user_umask requirement:

Var refValueValueValueValueValueValueValueValue
oval:ssg:var:2323221818221818
Evaluation messages
info 
Fix execution completed and returned: 1
info 
sed: couldn't open temporary file /etc/sedWkcGeK: Permission denied
/tmp/oscap.KgkYoe/fix-XXcuAbGx: line 5: /etc/profile: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
var_accounts_user_umask="077"
grep -q umask /etc/profile && \
  sed -i "s/umask.*/umask $var_accounts_user_umask/g" /etc/profile
if ! [ $? -eq 0 ]; then
    echo "umask $var_accounts_user_umask" >> /etc/profile
fi
Ensure that User Home Directories are not Group-Writable or World-Readablexccdf_org.ssgproject.content_rule_homedir_perms_no_groupwrite_worldread CCE-26981-1

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

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

identifiers:  CCE-26981-1

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

Description

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

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

Rationale

User home directories contain many configuration files which affect the behavior of a user's account. No user should ever have write permission to another user's home directory. Group shared directories can be configured in sub-directories or elsewhere in the filesystem if they are needed. Typically, user home directories should not be world-readable, as it would disclose file names to other users. If a subset of users need read access to one another's home directories, this can be provided using groups or ACLs.

Warnings
warning  This action may involve modifying user home directories. Notify your user community, and solicit input if appropriate, before making this type of change.
OVAL details

Items found violating home directories:

PathTypeUIDGIDSize (B)Permissions
/home/directory004096rwxr-xr-x 
Verify /etc/grub.conf User Ownershipxccdf_org.ssgproject.content_rule_user_owner_grub_conf CCE-26995-1

Verify /etc/grub.conf User Ownership

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

identifiers:  CCE-26995-1

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

Description

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

# chown root/etc/grub.conf

Rationale

Only root should be able to modify important boot parameters.

OVAL details

Items found satisfying /boot/grub/grub.conf owned by root:

PathTypeUIDGIDSize (B)Permissions
/boot/grub/grub.confregular00839rw------- 

Items not found satisfying /boot/efi/EFI/redhat/grub.conf owned by root:

Object oval:ssg:obj:1777 of type file_object
Filepath
/boot/efi/EFI/redhat/grub.conf
State oval:ssg:ste:1776 of type file_state
User id
0
Verify /etc/grub.conf Group Ownershipxccdf_org.ssgproject.content_rule_group_owner_grub_conf CCE-27022-3

Verify /etc/grub.conf Group Ownership

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

identifiers:  CCE-27022-3

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

Description

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

# chgrp root/etc/grub.conf

Rationale

The root group is a highly-privileged group. Furthermore, the group-owner of this file should not have any access privileges anyway.

OVAL details

Items found satisfying /boot/grub/grub.conf owned by root:

PathTypeUIDGIDSize (B)Permissions
/boot/grub/grub.confregular00839rw------- 

Items not found satisfying /boot/efi/EFI/redhat/grub.conf owned by root:

Object oval:ssg:obj:1972 of type file_object
Filepath
/boot/efi/EFI/redhat/grub.conf
State oval:ssg:ste:1971 of type file_state
Group id
0
Verify /boot/grub/grub.conf Permissionsxccdf_org.ssgproject.content_rule_permissions_grub_conf CCE-26949-8

Verify /boot/grub/grub.conf Permissions

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

identifiers:  CCE-26949-8

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

Description

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

# chmod 600/boot/grub/grub.conf

Rationale

Proper permissions ensure that only the root user can modify important boot parameters.

OVAL details

Items found satisfying Testing file permissions:

PathTypeUIDGIDSize (B)Permissions
/boot/grub/grub.confregular00839rw------- 
Set Boot Loader Passwordxccdf_org.ssgproject.content_rule_bootloader_password CCE-26911-8

Set Boot Loader Password

Rule IDxccdf_org.ssgproject.content_rule_bootloader_password
Result
error
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26911-8

references:  IA-2(1), IA-5(e), 213, test_attestation

Description

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

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

Rationale

Password protection on the boot loader configuration ensures users with physical access cannot trivially alter important bootloader settings. These include which kernel to use, and whether to enter single-user mode.

OVAL details

Items not found violating make sure a password is defined in /etc/grub.conf:

Object oval:ssg:obj:1781 of type textfilecontent54_object
PathFilenamePatternInstance
/etcgrub.conf^[\s]*password[\s]+--encrypted[\s]+.*1
Set GNOME Login Inactivity Timeoutxccdf_org.ssgproject.content_rule_set_screensaver_inactivity_timeout CCE-26828-4

Set GNOME Login Inactivity Timeout

Rule IDxccdf_org.ssgproject.content_rule_set_screensaver_inactivity_timeout
Result
fail
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26828-4

references:  AC-11(a), 57

Description

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

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

Rationale

Setting the idle delay controls when the screensaver will start, and can be combined with screen locking to prevent access from passersby.

OVAL details

Items not found violating test screensaver timeout period:

Object oval:ssg:obj:1375 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/desktop/gnome/session/%gconf.xml/gconf/entry[@name='idle_delay']/@value
State oval:ssg:ste:1376 of type xmlfilecontent_state
Value of
15

Items not found violating test screensaver timeout period:

Object oval:ssg:obj:1377 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml/gconf/dir/dir/dir/entry[@name='idle_delay']/@value
State oval:ssg:ste:1376 of type xmlfilecontent_state
Value of
15
GNOME Desktop Screensaver Mandatory Usexccdf_org.ssgproject.content_rule_enable_screensaver_after_idle CCE-26600-7

GNOME Desktop Screensaver Mandatory Use

Rule IDxccdf_org.ssgproject.content_rule_enable_screensaver_after_idle
Result
fail
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26600-7

references:  AC-11(a), 57

Description

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

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

Rationale

Enabling idle activation of the screensaver ensures the screensaver will be activated after the idle delay. Applications requiring continuous, real-time screen display (such as network management products) require the login session does not have administrator rights and the display station is located in a controlled-access area.

OVAL details

Items not found violating gnome screensaver is activated on idle:

Object oval:ssg:obj:1432 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/apps/gnome-screensaver/%gconf.xml/gconf/entry[@name='idle_activation_enabled']/@value
State oval:ssg:ste:1433 of type xmlfilecontent_state
Value of
true

Items not found violating gnome screensaver is activated on idle:

Object oval:ssg:obj:1434 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml/gconf/dir/dir/entry[@name='idle_activation_enabled']/@value
State oval:ssg:ste:1433 of type xmlfilecontent_state
Value of
true
Enable Screen Lock Activation After Idle Periodxccdf_org.ssgproject.content_rule_enable_screensaver_password_lock CCE-26235-2

Enable Screen Lock Activation After Idle Period

Rule IDxccdf_org.ssgproject.content_rule_enable_screensaver_password_lock
Result
fail
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26235-2

references:  AC-11(a), 57

Description

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

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

Rationale

Enabling the activation of the screen lock after an idle period ensures password entry will be required in order to access the system, preventing access by passersby.

OVAL details

Items not found violating screensaver lock is enabled:

Object oval:ssg:obj:2139 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/apps/gnome-screensaver/%gconf.xml/gconf/entry[@name='lock_enabled']/@value
State oval:ssg:ste:2140 of type xmlfilecontent_state
Value of
true

Items not found violating screensaver lock is enabled:

Object oval:ssg:obj:2141 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml/gconf/dir/dir/entry[@name='lock_enabled']/@value
State oval:ssg:ste:2140 of type xmlfilecontent_state
Value of
true
Implement Blank Screensaverxccdf_org.ssgproject.content_rule_set_blank_screensaver CCE-26638-7

Implement Blank Screensaver

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

identifiers:  CCE-26638-7

references:  AC-11(b), 60

Description

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

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

Rationale

Setting the screensaver mode to blank-only conceals the contents of the display from passersby.

OVAL details

Items not found violating gnome screensaver set to blank screen:

Object oval:ssg:obj:1476 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/apps/gnome-screensaver/%gconf.xml/gconf/entry[@name='mode']/stringvalue[1]/text()
State oval:ssg:ste:1477 of type xmlfilecontent_state
Value of
blank-only

Items not found violating gnome screensaver set to blank screen:

Object oval:ssg:obj:1478 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml/gconf/dir/dir/entry[@name='mode']/stringvalue[1]/text()
State oval:ssg:ste:1477 of type xmlfilecontent_state
Value of
blank-only
Install the screen Packagexccdf_org.ssgproject.content_rule_package_screen_installed CCE-26940-7

Install the screen Package

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

identifiers:  CCE-26940-7

references:  58, test_attestation

Description

To enable console screen locking, install the screen package:

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

Rationale

Installing screen ensures a console locking capability is available for users who may need to suspend console logins.

OVAL details

Items not found violating package screen is installed:

Object oval:ssg:obj:1652 of type rpminfo_object
Name
screen
Enable Smart Card Loginxccdf_org.ssgproject.content_rule_smartcard_auth CCE-27440-7

Enable Smart Card Login

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

identifiers:  CCE-27440-7

references:  765, 766, 767, 768, 771, 772, 884

Description

To enable smart card authentication, consult the documentation at:

  • https://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Smart_Cards/enabling-smart-card-login.html
For guidance on enabling SSH to authenticate against a Common Access Card (CAC), consult documentation at:
  • https://access.redhat.com/solutions/82273

Rationale

Smart card login provides two-factor authentication stronger than that provided by a username and password combination. Smart cards leverage PKI (public key infrastructure) in order to provide and verify credentials.

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

Require Authentication for Single User Mode

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

identifiers:  CCE-27040-5

references:  IA-2(1), 213, test_attestation

Description

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

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

SINGLE=/sbin/sulogin

Rationale

This prevents attackers with physical access from trivially bypassing security on the machine and gaining root access. Such accesses are further prevented by configuring the bootloader password.

OVAL details

Items not found violating Tests that the SINGLE variable in the /etc/sysconfig/init file is set to /sbin/sulogin, to ensure that a password must be entered to access single user mode:

Object oval:ssg:obj:1658 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/init^SINGLE=/sbin/sulogin[\s]*1
Disable Ctrl-Alt-Del Reboot Activationxccdf_org.ssgproject.content_rule_disable_ctrlaltdel_reboot CCE-27567-7

Disable Ctrl-Alt-Del Reboot Activation

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

identifiers:  CCE-27567-7

Description

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

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

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

Rationale

A locally logged-in user who presses Ctrl-Alt-Del, when at the console, can reboot the system. If accidentally pressed, as could happen in the case of mixed OS environment, this can create the risk of short-term loss of availability of systems due to unintentional reboot. In the GNOME graphical environment, risk of unintentional reboot from the Ctrl-Alt-Del sequence is reduced because the user will be prompted before any action is taken. NOTE: When updating the initscripts package on a Red Hat Enterprise Linux 6 system, custom changes to /etc/init/control-alt-delete.conf may be overwritten. Refer to https://access.redhat.com/site/solutions/70464 for additional information.

OVAL details

Items not found violating Disable Ctrl-Alt-Del key sequence:

Object oval:ssg:obj:2152 of type textfilecontent54_object
FilepathPatternInstance
/etc/init/control-alt-delete.override^[\s]*exec[\s]*/sbin/shutdown[\s]*\-r[\s]*now.*$1
Disable Interactive Bootxccdf_org.ssgproject.content_rule_disable_interactive_boot CCE-27043-9

Disable Interactive Boot

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

identifiers:  CCE-27043-9

references:  SC-2, 213, test_attestation

Description

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

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

Rationale

Using interactive boot, the console user could disable auditing, firewalls, or other services, weakening system security.

OVAL details

Items not found violating Tests that PROMPT=no in /etc/sysconfig/init:

Object oval:ssg:obj:1922 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/init^[\s]*PROMPT=no[\s]+1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
sed: couldn't open temporary file /etc/sysconfig/sed2JD1ZK: Permission denied
/tmp/oscap.mBW8YQ/fix-XXkhg7ha: line 4: /etc/sysconfig/init: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
grep -q ^PROMPT /etc/sysconfig/init && \
  sed -i "s/PROMPT.*/PROMPT=no/g" /etc/sysconfig/init
if ! [ $? -eq 0 ]; then
    echo "PROMPT=no" >> /etc/sysconfig/init
fi
Disable the User Listxccdf_org.ssgproject.content_rule_disable_user_list CCE-27230-2

Disable the User List

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

identifiers:  CCE-27230-2

references:  AC-23

Description

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

Run the following command to disable the user list:

$ sudo gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type bool \
  --set /apps/gdm/simple-greeter/disable_user_list true

Rationale

Leaving the user list enabled is a security risk since it allows anyone with physical access to the system to quickly enumerate known user accounts without logging in.

OVAL details

Items not found violating checks for gconf-tree file:

Object oval:ssg:obj:2176 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml/gconf/dir/dir/dir/entry[@name='disable_user_list']/@value
State oval:ssg:ste:2177 of type xmlfilecontent_state
Value of
true

Items not found violating checks for absent gconf-tree file:

Object oval:ssg:obj:2178 of type xmlfilecontent_object
FilepathXpath
/etc/gconf/gconf.xml.mandatory/apps/gdm/simple-greeter/%gconf.xml/gconf/entry[@name='disable_user_list']/@value
State oval:ssg:ste:2177 of type xmlfilecontent_state
Value of
true
Disable Kernel Parameter for Sending ICMP Redirects by Defaultxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_send_redirects CCE-27001-7

Disable Kernel Parameter for Sending ICMP Redirects by Default

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

identifiers:  CCE-27001-7

references:  AC-4, CM-7, SC-5, SC-7, 1551, test_attestation

Description

To set the runtime status of the net.ipv4.conf.default.send_redirects kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.default.send_redirects=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.default.send_redirects = 0

Rationale

Sending ICMP redirects permits the system to instruct other systems to update their routing information. The ability to send ICMP redirects is only appropriate for systems acting as routers.

OVAL details

Items found violating kernel runtime parameter net.ipv4.conf.default.send_redirects set to 0:

NameValue
net.ipv4.conf.default.send_redirects1

Items not found violating net.ipv4.conf.default.send_redirects static configuration:

Object oval:ssg:obj:1389 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.conf.default.send_redirects[\s]*=[\s]*0[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.WoPJ4I/fix-XX8FzLs2: line 4: sysctl: command not found
/tmp/oscap.WoPJ4I/fix-XX8FzLs2: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.WoPJ4I/fix-XX8FzLs2: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.WoPJ4I/fix-XX8FzLs2: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv4.conf.default.send_redirects
#
sysctl -q -n -w net.ipv4.conf.default.send_redirects=0

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

Disable Kernel Parameter for Sending ICMP Redirects for All Interfaces

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

identifiers:  CCE-27004-1

references:  CM-7, 1551, test_attestation

Description

To set the runtime status of the net.ipv4.conf.all.send_redirects kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.all.send_redirects=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.all.send_redirects = 0

Rationale

Sending ICMP redirects permits the system to instruct other systems to update their routing information. The ability to send ICMP redirects is only appropriate for systems acting as routers.

OVAL details

Items found violating kernel runtime parameter net.ipv4.conf.all.send_redirects set to 0:

NameValue
net.ipv4.conf.all.send_redirects1

Items not found violating net.ipv4.conf.all.send_redirects static configuration:

Object oval:ssg:obj:1401 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.conf.all.send_redirects[\s]*=[\s]*0[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.szAdUl/fix-XX9tHHlF: line 4: sysctl: command not found
/tmp/oscap.szAdUl/fix-XX9tHHlF: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.szAdUl/fix-XX9tHHlF: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.szAdUl/fix-XX9tHHlF: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv4.conf.all.send_redirects
#
sysctl -q -n -w net.ipv4.conf.all.send_redirects=0

#
# If net.ipv4.conf.all.send_redirects present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv4.conf.all.send_redirects = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.send_redirects /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.all.send_redirects.*/net.ipv4.conf.all.send_redirects = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.send_redirects to 0 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv4.conf.all.send_redirects = 0" >> /etc/sysctl.conf
fi
Disable Kernel Parameter for IP Forwardingxccdf_org.ssgproject.content_rule_sysctl_ipv4_ip_forward CCE-26866-4

Disable Kernel Parameter for IP Forwarding

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

identifiers:  CCE-26866-4

references:  CM-7, SC-5, 366, test_attestation

Description

To set the runtime status of the net.ipv4.ip_forward kernel parameter, run the following command:

# sysctl -w net.ipv4.ip_forward=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.ip_forward = 0

Rationale

IP forwarding permits the kernel to forward packets from one network interface to another. The ability to forward packets between two networks is only appropriate for systems acting as routers.

OVAL details

Items found satisfying kernel runtime parameter net.ipv4.ip_forward set to 0:

NameValue
net.ipv4.ip_forward0

Items found satisfying net.ipv4.ip_forward static configuration:

PathContent
/etc/sysctl.confnet.ipv4.ip_forward = 0
Disable Kernel Parameter for Accepting Source-Routed Packets for All Interfacesxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_accept_source_route CCE-27037-1

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

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

identifiers:  CCE-27037-1

references:  CM-7, 1551, test_attestation

Description

To set the runtime status of the net.ipv4.conf.all.accept_source_route kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.all.accept_source_route=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.all.accept_source_route = 0

Rationale

Accepting source-routed packets in the IPv4 protocol has few legitimate uses. It should be disabled unless it is absolutely required.

OVAL details

Items not found violating kernel runtime parameter net.ipv4.conf.all.accept_source_route set to 0:

Object oval:ssg:obj:1604 of type sysctl_object
Name
net.ipv4.conf.all.accept_source_route
State oval:ssg:ste:1605 of type sysctl_state
Value
0

Items not found violating net.ipv4.conf.all.accept_source_route static configuration:

Object oval:ssg:obj:1606 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.conf.all.accept_source_route[\s]*=[\s]*0[\s]*$1
Disable Kernel Parameter for Accepting ICMP Redirects for All Interfacesxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_accept_redirects CCE-27027-2

Disable Kernel Parameter for Accepting ICMP Redirects for All Interfaces

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

identifiers:  CCE-27027-2

references:  CM-7, 1503, 1551, test_attestation

Description

To set the runtime status of the net.ipv4.conf.all.accept_redirects kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.all.accept_redirects=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.all.accept_redirects = 0

Rationale

Accepting ICMP redirects has few legitimate uses. It should be disabled unless it is absolutely required.

OVAL details

Items found violating kernel runtime parameter net.ipv4.conf.all.accept_redirects set to 0:

NameValue
net.ipv4.conf.all.accept_redirects1

Items not found violating net.ipv4.conf.all.accept_redirects static configuration:

Object oval:ssg:obj:1412 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.conf.all.accept_redirects[\s]*=[\s]*0[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.RUzQQY/fix-XXJm20li: line 4: sysctl: command not found
/tmp/oscap.RUzQQY/fix-XXJm20li: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.RUzQQY/fix-XXJm20li: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.RUzQQY/fix-XXJm20li: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv4.conf.all.accept_redirects
#
sysctl -q -n -w net.ipv4.conf.all.accept_redirects=0

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

Disable Kernel Parameter for Accepting Secure Redirects for All Interfaces

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

identifiers:  CCE-26854-0

references:  AC-4, CM-7, 1503, 1551, test_attestation

Description

To set the runtime status of the net.ipv4.conf.all.secure_redirects kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.all.secure_redirects=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.all.secure_redirects = 0

Rationale

Accepting "secure" ICMP redirects (from those gateways listed as default gateways) has few legitimate uses. It should be disabled unless it is absolutely required.

OVAL details

Items found violating kernel runtime parameter net.ipv4.conf.all.secure_redirects set to 0:

NameValue
net.ipv4.conf.all.secure_redirects1

Items not found violating net.ipv4.conf.all.secure_redirects static configuration:

Object oval:ssg:obj:1785 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.conf.all.secure_redirects[\s]*=[\s]*0[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.doPHUB/fix-XXcEzqtV: line 4: sysctl: command not found
/tmp/oscap.doPHUB/fix-XXcEzqtV: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.doPHUB/fix-XXcEzqtV: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.doPHUB/fix-XXcEzqtV: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv4.conf.all.secure_redirects
#
sysctl -q -n -w net.ipv4.conf.all.secure_redirects=0

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

Enable Kernel Parameter to Log Martian Packets

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

identifiers:  CCE-27066-0

references:  AC-3(10), CM-7, 126, test_attestation

Description

To set the runtime status of the net.ipv4.conf.all.log_martians kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.all.log_martians=1
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.all.log_martians = 1

Rationale

The presence of "martian" packets (which have impossible addresses) as well as spoofed packets, source-routed packets, and redirects could be a sign of nefarious network activity. Logging these packets enables this activity to be detected.

OVAL details

Items found violating kernel runtime parameter net.ipv4.conf.all.log_martians set to 1:

NameValue
net.ipv4.conf.all.log_martians0

Items not found violating net.ipv4.conf.all.log_martians static configuration:

Object oval:ssg:obj:1840 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.conf.all.log_martians[\s]*=[\s]*1[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.A2mi5e/fix-XXWgdcHy: line 4: sysctl: command not found
/tmp/oscap.A2mi5e/fix-XXWgdcHy: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.A2mi5e/fix-XXWgdcHy: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.A2mi5e/fix-XXWgdcHy: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv4.conf.all.log_martians
#
sysctl -q -n -w net.ipv4.conf.all.log_martians=1

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

Disable Kernel Parameter for Accepting Source-Routed Packets By Default

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

identifiers:  CCE-26983-7

references:  AC-4, CM-7, SC-5, SC-7, 1551, test_attestation

Description

To set the runtime status of the net.ipv4.conf.default.accept_source_route kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.default.accept_source_route=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.default.accept_source_route = 0

Rationale

Accepting source-routed packets in the IPv4 protocol has few legitimate uses. It should be disabled unless it is absolutely required.

OVAL details

Items found satisfying kernel runtime parameter net.ipv4.conf.default.accept_source_route set to 0:

NameValue
net.ipv4.conf.default.accept_source_route0

Items found satisfying net.ipv4.conf.default.accept_source_route static configuration:

PathContent
/etc/sysctl.confnet.ipv4.conf.default.accept_source_route = 0
Disable Kernel Parameter for Accepting ICMP Redirects By Defaultxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_default_accept_redirects CCE-27015-7

Disable Kernel Parameter for Accepting ICMP Redirects By Default

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

identifiers:  CCE-27015-7

references:  AC-4, CM-7, SC-5, SC-7, 1551, test_attestation

Description

To set the runtime status of the net.ipv4.conf.default.accept_redirects kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.default.accept_redirects=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.default.accept_redirects = 0

Rationale

This feature of the IPv4 protocol has few legitimate uses. It should be disabled unless it is absolutely required.

OVAL details

Items found violating kernel runtime parameter net.ipv4.conf.default.accept_redirects set to 0:

NameValue
net.ipv4.conf.default.accept_redirects1

Items not found violating net.ipv4.conf.default.accept_redirects static configuration:

Object oval:ssg:obj:1664 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.conf.default.accept_redirects[\s]*=[\s]*0[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.Jz1dmS/fix-XX1nqh1b: line 4: sysctl: command not found
/tmp/oscap.Jz1dmS/fix-XX1nqh1b: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.Jz1dmS/fix-XX1nqh1b: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.Jz1dmS/fix-XX1nqh1b: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv4.conf.default.accept_redirects
#
sysctl -q -n -w net.ipv4.conf.default.accept_redirects=0

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

Disable Kernel Parameter for Accepting Secure Redirects By Default

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

identifiers:  CCE-26831-8

references:  AC-4, CM-7, SC-5, SC-7, 1551, test_attestation

Description

To set the runtime status of the net.ipv4.conf.default.secure_redirects kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.default.secure_redirects=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.default.secure_redirects = 0

Rationale

Accepting "secure" ICMP redirects (from those gateways listed as default gateways) has few legitimate uses. It should be disabled unless it is absolutely required.

OVAL details

Items found violating kernel runtime parameter net.ipv4.conf.default.secure_redirects set to 0:

NameValue
net.ipv4.conf.default.secure_redirects1

Items not found violating net.ipv4.conf.default.secure_redirects static configuration:

Object oval:ssg:obj:1758 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.conf.default.secure_redirects[\s]*=[\s]*0[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.x5kFJv/fix-XXxp86rP: line 4: sysctl: command not found
/tmp/oscap.x5kFJv/fix-XXxp86rP: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.x5kFJv/fix-XXxp86rP: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.x5kFJv/fix-XXxp86rP: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv4.conf.default.secure_redirects
#
sysctl -q -n -w net.ipv4.conf.default.secure_redirects=0

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

Enable Kernel Parameter to Ignore ICMP Broadcast Echo Requests

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

identifiers:  CCE-26883-9

references:  CM-7, SC-5, 1551, test_attestation

Description

To set the runtime status of the net.ipv4.icmp_echo_ignore_broadcasts kernel parameter, run the following command:

# sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=1
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.icmp_echo_ignore_broadcasts = 1

Rationale

Ignoring ICMP echo requests (pings) sent to broadcast or multicast addresses makes the system slightly more difficult to enumerate on the network.

OVAL details

Items found violating kernel runtime parameter net.ipv4.icmp_echo_ignore_broadcasts set to 1:

NameValue
net.ipv4.icmp_echo_ignore_broadcasts1

Items not found violating net.ipv4.icmp_echo_ignore_broadcasts static configuration:

Object oval:ssg:obj:1894 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.icmp_echo_ignore_broadcasts[\s]*=[\s]*1[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.Jajje9/fix-XXAWcx0s: line 4: sysctl: command not found
/tmp/oscap.Jajje9/fix-XXAWcx0s: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.Jajje9/fix-XXAWcx0s: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.Jajje9/fix-XXAWcx0s: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv4.icmp_echo_ignore_broadcasts
#
sysctl -q -n -w net.ipv4.icmp_echo_ignore_broadcasts=1

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

Enable Kernel Parameter to Ignore Bogus ICMP Error Responses

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

identifiers:  CCE-26993-6

references:  CM-7, SC-5, test_attestation

Description

To set the runtime status of the net.ipv4.icmp_ignore_bogus_error_responses kernel parameter, run the following command:

# sysctl -w net.ipv4.icmp_ignore_bogus_error_responses=1
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.icmp_ignore_bogus_error_responses = 1

Rationale

Ignoring bogus ICMP error responses reduces log size, although some activity would not be logged.

OVAL details

Items found violating kernel runtime parameter net.ipv4.icmp_ignore_bogus_error_responses set to 1:

NameValue
net.ipv4.icmp_ignore_bogus_error_responses1

Items not found violating net.ipv4.icmp_ignore_bogus_error_responses static configuration:

Object oval:ssg:obj:2101 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.icmp_ignore_bogus_error_responses[\s]*=[\s]*1[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.ONunQM/fix-XXbLYeG6: line 4: sysctl: command not found
/tmp/oscap.ONunQM/fix-XXbLYeG6: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.ONunQM/fix-XXbLYeG6: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.ONunQM/fix-XXbLYeG6: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv4.icmp_ignore_bogus_error_responses
#
sysctl -q -n -w net.ipv4.icmp_ignore_bogus_error_responses=1

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

Enable Kernel Parameter to Use TCP Syncookies

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

identifiers:  CCE-27053-8

references:  AC-4, 1092, 1095, test_attestation

Description

To set the runtime status of the net.ipv4.tcp_syncookies kernel parameter, run the following command:

# sysctl -w net.ipv4.tcp_syncookies=1
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.tcp_syncookies = 1

Rationale

A TCP SYN flood attack can cause a denial of service by filling a system's TCP connection table with connections in the SYN_RCVD state. Syncookies can be used to track a connection when a subsequent ACK is received, verifying the initiator is attempting a valid connection and is not a flood source. This feature is activated when a flood condition is detected, and enables the system to continue servicing valid connection requests.

OVAL details

Items found satisfying kernel runtime parameter net.ipv4.tcp_syncookies set to 1:

NameValue
net.ipv4.tcp_syncookies1

Items found satisfying net.ipv4.tcp_syncookies static configuration:

PathContent
/etc/sysctl.confnet.ipv4.tcp_syncookies = 1
Enable Kernel Parameter to Use Reverse Path Filtering for All Interfacesxccdf_org.ssgproject.content_rule_sysctl_net_ipv4_conf_all_rp_filter CCE-26979-5

Enable Kernel Parameter to Use Reverse Path Filtering for All Interfaces

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

identifiers:  CCE-26979-5

references:  AC-4, SC-5, SC-7, 1551, test_attestation

Description

To set the runtime status of the net.ipv4.conf.all.rp_filter kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.all.rp_filter=1
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.all.rp_filter = 1

Rationale

Enabling reverse path filtering drops packets with source addresses that should not have been able to be received on the interface they were received on. It should not be used on systems which are routers for complicated networks, but is helpful for end hosts and routers serving small networks.

OVAL details

Items found violating kernel runtime parameter net.ipv4.conf.all.rp_filter set to 1:

NameValue
net.ipv4.conf.all.rp_filter0

Items not found violating net.ipv4.conf.all.rp_filter static configuration:

Object oval:ssg:obj:2046 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv4.conf.all.rp_filter[\s]*=[\s]*1[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.H1Ugzq/fix-XXh2GksK: line 4: sysctl: command not found
/tmp/oscap.H1Ugzq/fix-XXh2GksK: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.H1Ugzq/fix-XXh2GksK: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.H1Ugzq/fix-XXh2GksK: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv4.conf.all.rp_filter
#
sysctl -q -n -w net.ipv4.conf.all.rp_filter=1

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

Enable Kernel Parameter to Use Reverse Path Filtering by Default

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

identifiers:  CCE-26915-9

references:  AC-4, SC-5, SC-7, test_attestation

Description

To set the runtime status of the net.ipv4.conf.default.rp_filter kernel parameter, run the following command:

# sysctl -w net.ipv4.conf.default.rp_filter=1
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv4.conf.default.rp_filter = 1

Rationale

Enabling reverse path filtering drops packets with source addresses that should not have been able to be received on the interface they were received on. It should not be used on systems which are routers for complicated networks, but is helpful for end hosts and routers serving small networks.

OVAL details

Items found satisfying kernel runtime parameter net.ipv4.conf.default.rp_filter set to 1:

NameValue
net.ipv4.conf.default.rp_filter1

Items found satisfying net.ipv4.conf.default.rp_filter static configuration:

PathContent
/etc/sysctl.confnet.ipv4.conf.default.rp_filter = 1
Disable WiFi or Bluetooth in BIOSxccdf_org.ssgproject.content_rule_wireless_disable_in_bios CCE-26878-9

Disable WiFi or Bluetooth in BIOS

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

identifiers:  CCE-26878-9

references:  AC-18(a), AC-18(d), AC-18(3), CM-7, 85

Description

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

Rationale

Disabling wireless support in the BIOS prevents easy activation of the wireless interface, generally requiring administrators to reboot the system first.

Evaluation messages
info 
No candidate or applicable check found.
Deactivate Wireless Network Interfacesxccdf_org.ssgproject.content_rule_deactivate_wireless_interfaces CCE-27057-9

Deactivate Wireless Network Interfaces

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

identifiers:  CCE-27057-9

references:  AC-18(a), AC-18(d), AC-18(3), CM-7, 85, test_attestation

Description

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

First, identify the interfaces available with the command:

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

Rationale

Wireless networking allows attackers within physical proximity to launch network-based attacks against systems, including those against local LAN protocols which were not designed with security in mind.

OVAL details

Items not found satisfying query /proc/net/wireless:

Object oval:ssg:obj:2203 of type textfilecontent54_object
FilepathPatternInstance
/proc/net/wireless^\s*[-\w]+:1
Disable Bluetooth Servicexccdf_org.ssgproject.content_rule_service_bluetooth_disabled CCE-27081-9

Disable Bluetooth Service

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

identifiers:  CCE-27081-9

references:  AC-18(a), AC-18(d), AC-18(3), CM-7, 85, 1551, test_attestation

Description

The bluetooth service can be disabled with the following command:

# chkconfig bluetooth off
$ sudo service bluetooth stop

Rationale

Disabling the bluetooth service prevents the system from attempting connections to Bluetooth devices, which entails some security risk. Nevertheless, variation in this risk decision may be expected due to the utility of Bluetooth connectivity and its limited range.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2252 of type runlevel_object
Service nameRunlevel
bluetooth0
State oval:ssg:ste:2253 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2254 of type runlevel_object
Service nameRunlevel
bluetooth1
State oval:ssg:ste:2253 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2255 of type runlevel_object
Service nameRunlevel
bluetooth2
State oval:ssg:ste:2253 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2256 of type runlevel_object
Service nameRunlevel
bluetooth3
State oval:ssg:ste:2253 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2257 of type runlevel_object
Service nameRunlevel
bluetooth4
State oval:ssg:ste:2253 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2258 of type runlevel_object
Service nameRunlevel
bluetooth5
State oval:ssg:ste:2253 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2259 of type runlevel_object
Service nameRunlevel
bluetooth6
State oval:ssg:ste:2253 of type runlevel_state
StartKill
falsetrue
Disable Bluetooth Kernel Modulesxccdf_org.ssgproject.content_rule_kernel_module_bluetooth_disabled CCE-26763-3

Disable Bluetooth Kernel Modules

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_bluetooth_disabled
Result
fail
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26763-3

references:  AC-18(a), AC-18(d), AC-18(3), CM-7, 85, 1551, test_attestation

Description

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

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

Rationale

If Bluetooth functionality must be disabled, preventing the kernel from loading the kernel module provides an additional safeguard against its activation.

OVAL details

Items not found violating kernel module bluetooth disabled:

Object oval:ssg:obj:1534 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*install\s+bluetooth\s+/bin/false$1

Items not found violating kernel module net-pf-31 disabled:

Object oval:ssg:obj:1535 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*install\s+net-pf-31\s+/bin/false$1
Disable IPv6 Networking Support Automatic Loadingxccdf_org.ssgproject.content_rule_kernel_module_ipv6_option_disabled CCE-27153-6

Disable IPv6 Networking Support Automatic Loading

Rule IDxccdf_org.ssgproject.content_rule_kernel_module_ipv6_option_disabled
Result
fail
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-27153-6

references:  CM-7, 1551, test_attestation

Description

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

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

Rationale

Any unnecessary network stacks - including IPv6 - should be disabled, to reduce the vulnerability to exploitation.

OVAL details

Items not found violating ipv6 disabled any modprobe conf file:

Object oval:ssg:obj:1333 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/modprobe.d^.*\.conf$^\s*options\s+ipv6\s+.*disable=1.*$1
Disable Interface Usage of IPv6xccdf_org.ssgproject.content_rule_network_ipv6_disable_interfaces CCE-27161-9

Disable Interface Usage of IPv6

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

identifiers:  CCE-27161-9

Description

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

NETWORKING_IPV6=no
IPV6INIT=no

Disable Support for RPC IPv6xccdf_org.ssgproject.content_rule_network_ipv6_disable_rpc CCE-27232-8

Disable Support for RPC IPv6

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

identifiers:  CCE-27232-8

references:  CM-7

Description

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

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

OVAL details

Items found violating Test for udp6 based rpc services:

PathContent
/etc/netconfigudp6 tpi_clts v inet6 udp - -

Items found violating Test for tcp6 based rpc services:

PathContent
/etc/netconfigtcp6 tpi_cots_ord v inet6 tcp - -
Disable Accepting IPv6 Router Advertisementsxccdf_org.ssgproject.content_rule_sysctl_net_ipv6_conf_default_accept_ra CCE-27164-3

Disable Accepting IPv6 Router Advertisements

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

identifiers:  CCE-27164-3

references:  CM-7

Description

To set the runtime status of the net.ipv6.conf.default.accept_ra kernel parameter, run the following command:

# sysctl -w net.ipv6.conf.default.accept_ra=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv6.conf.default.accept_ra = 0

Rationale

An illicit router advertisement message could result in a man-in-the-middle attack.

OVAL details

Items found violating kernel runtime parameter net.ipv6.conf.default.accept_ra set to 0:

NameValue
net.ipv6.conf.default.accept_ra1

Items not found violating net.ipv6.conf.default.accept_ra static configuration:

Object oval:ssg:obj:1815 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv6.conf.default.accept_ra[\s]*=[\s]*0[\s]*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.PwOto4/fix-XXUaPDko: line 4: sysctl: command not found
/tmp/oscap.PwOto4/fix-XXUaPDko: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.PwOto4/fix-XXUaPDko: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.PwOto4/fix-XXUaPDko: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv6.conf.default.accept_ra
#
sysctl -q -n -w net.ipv6.conf.default.accept_ra=0

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

Disable Accepting IPv6 Redirects

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

identifiers:  CCE-27166-8

references:  CM-7, 1551

Description

To set the runtime status of the net.ipv6.conf.default.accept_redirects kernel parameter, run the following command:

# sysctl -w net.ipv6.conf.default.accept_redirects=0
If this is not the system's default value, add the following line to /etc/sysctl.conf:
net.ipv6.conf.default.accept_redirects = 0

Rationale

An illicit ICMP redirect message could result in a man-in-the-middle attack.

OVAL details

Items found violating kernel runtime parameter net.ipv6.conf.default.accept_redirects set to 0:

NameValue
net.ipv6.conf.default.accept_redirects1

Items not found violating net.ipv6.conf.default.accept_redirects static configuration:

Object oval:ssg:obj:1593 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysctl.conf^[\s]*net.ipv6.conf.default.accept_redirects[\s]*=[\s]*0*$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.HCkAkI/fix-XX6R5xk2: line 4: sysctl: command not found
/tmp/oscap.HCkAkI/fix-XX6R5xk2: line 13: /etc/sysctl.conf: Permission denied
/tmp/oscap.HCkAkI/fix-XX6R5xk2: line 14: /etc/sysctl.conf: Permission denied
/tmp/oscap.HCkAkI/fix-XX6R5xk2: line 15: /etc/sysctl.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Set runtime for net.ipv6.conf.default.accept_redirects
#
sysctl -q -n -w net.ipv6.conf.default.accept_redirects=0

#
# If net.ipv6.conf.default.accept_redirects present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv6.conf.default.accept_redirects = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv6.conf.default.accept_redirects /etc/sysctl.conf ; then
	sed -i 's/^net.ipv6.conf.default.accept_redirects.*/net.ipv6.conf.default.accept_redirects = 0/g' /etc/sysctl.conf
else
	echo "" >> /etc/sysctl.conf
	echo "# Set net.ipv6.conf.default.accept_redirects to 0 per security requirements" >> /etc/sysctl.conf
	echo "net.ipv6.conf.default.accept_redirects = 0" >> /etc/sysctl.conf
fi
Manually Assign Global IPv6 Addressxccdf_org.ssgproject.content_rule_network_ipv6_static_address CCE-27233-6

Manually Assign Global IPv6 Address

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

identifiers:  CCE-27233-6

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

Description

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

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

OVAL details

Items not found violating Set static IPv6 address on each interface:

Object oval:ssg:obj:1931 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/sysconfig/network-scriptsifcfg-.*^IPV6ADDR=.+$1
Use Privacy Extensions for Addressxccdf_org.ssgproject.content_rule_network_ipv6_privacy_extensions CCE-27154-4

Use Privacy Extensions for Address

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

identifiers:  CCE-27154-4

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

Description

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

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

OVAL details

Items not found violating Enable privacy extensions on each interface:

Object oval:ssg:obj:1542 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/sysconfig/network-scriptsifcfg-.*^IPV6_PRIVACY=rfc3041$1
Manually Assign IPv6 Router Addressxccdf_org.ssgproject.content_rule_network_ipv6_default_gateway CCE-27234-4

Manually Assign IPv6 Router Address

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

identifiers:  CCE-27234-4

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

Description

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

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

OVAL details

Items not found violating Define default gateways:

Object oval:ssg:obj:1303 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/sysconfig/network-scriptsifcfg-.*^IPV6_DEFAULTGW=.+$1
Verify ip6tables Enabled if Using IPv6xccdf_org.ssgproject.content_rule_service_ip6tables_enabled CCE-27006-6

Verify ip6tables Enabled if Using IPv6

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

identifiers:  CCE-27006-6

references:  AC-4, CA-3(c), CM-7, 32, 66, 1115, 1118, 1092, 1117, 1098, 1100, 1097, 1414, test_attestation

Description

The ip6tables service can be enabled with the following command:

# chkconfig --level 2345 ip6tables on

Rationale

The ip6tables service provides the system's host-based firewalling capability for IPv6 and ICMPv6.

OVAL details

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ip6tables0falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ip6tables1falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ip6tables2truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ip6tables3truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ip6tables4truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ip6tables5truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ip6tables6falsetrue
Set Default ip6tables Policy for Incoming Packetsxccdf_org.ssgproject.content_rule_set_ip6tables_default_rule CCE-27317-7

Set Default ip6tables Policy for Incoming Packets

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

identifiers:  CCE-27317-7

references:  CM-7, 66, 1109, 1154, 1414

Description

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

:INPUT DROP [0:0]
If changes were required, reload the ip6tables rules:
$ sudo service ip6tables reload

Rationale

In ip6tables, the default policy is applied only after all the applicable rules in the table are examined for a match. Setting the default policy to DROP implements proper design for a firewall, i.e. any packets which are not explicitly permitted should not be accepted.

OVAL details

Items not found violating Check /etc/sysconfig/ip6tables for line :INPUT DROP [0:0]:

Object oval:ssg:obj:2183 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/ip6tables^[\s]*:INPUT\sDROP\s\[0:0\]1

Items not found violating Check /etc/sysconfig/ip6tables for line :INPUT ACCEPT [0:0]:

Object oval:ssg:obj:2184 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/ip6tables^[\s]*:INPUT\sACCEPT\s\[0:0\]1
Verify iptables Enabledxccdf_org.ssgproject.content_rule_service_iptables_enabled CCE-27018-1

Verify iptables Enabled

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

identifiers:  CCE-27018-1

references:  AC-4, CA-3(c), CM-7, 32, 66, 1115, 1118, 1092, 1117, 1098, 1100, 1097, 1414, test_attestation

Description

The iptables service can be enabled with the following command:

# chkconfig --level 2345 iptables on

Rationale

The iptables service provides the system's host-based firewalling capability for IPv4 and ICMP.

OVAL details

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
iptables0falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
iptables1falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
iptables2truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
iptables3truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
iptables4truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
iptables5truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
iptables6falsetrue
Set Default iptables Policy for Incoming Packetsxccdf_org.ssgproject.content_rule_set_iptables_default_rule CCE-26444-0

Set Default iptables Policy for Incoming Packets

Rule IDxccdf_org.ssgproject.content_rule_set_iptables_default_rule
Result
error
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26444-0

references:  CM-7, 66, 1109, 1154, 1414

Description

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

:INPUT DROP [0:0]

Rationale

In iptables the default policy is applied only after all the applicable rules in the table are examined for a match. Setting the default policy to DROP implements proper design for a firewall, i.e. any packets which are not explicitly permitted should not be accepted.

OVAL details

Items not found violating Check /etc/sysconfig/iptables for line :INPUT DROP [0:0]:

Object oval:ssg:obj:1692 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/iptables^[\s]*:INPUT\sDROP\s\[0:0\]1

Items not found violating Check /etc/sysconfig/iptables for line :INPUT ACCEPT [0:0]:

Object oval:ssg:obj:1693 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/iptables^[\s]*:INPUT\sACCEPT\s\[0:0\]1
Remediation script:
sed -i 's/^:INPUT ACCEPT.*/:INPUT DROP [0:0]/g' /etc/sysconfig/iptables
Set Default iptables Policy for Forwarded Packetsxccdf_org.ssgproject.content_rule_set_iptables_default_rule_forward CCE-27186-6

Set Default iptables Policy for Forwarded Packets

Rule IDxccdf_org.ssgproject.content_rule_set_iptables_default_rule_forward
Result
error
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-27186-6

references:  CM-7, 1109

Description

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

:FORWARD DROP [0:0]

Rationale

In iptables, the default policy is applied only after all the applicable rules in the table are examined for a match. Setting the default policy to DROP implements proper design for a firewall, i.e. any packets which are not explicitly permitted should not be accepted.

OVAL details

Items not found violating Check /etc/sysconfig/iptables for line :FORWARD DROP [0:0]:

Object oval:ssg:obj:1306 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/iptables^[\s]*:FORWARD\sDROP\s\[0:0\]1

Items not found violating Check /etc/sysconfig/iptables for line :FORWARD ACCEPT [0:0]:

Object oval:ssg:obj:1307 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/iptables^[\s]*:FORWARD\sACCEPT\s\[0:0\]1
Remediation script:
sed -i 's/^:FORWARD ACCEPT.*/:FORWARD DROP [0:0]/g' /etc/sysconfig/iptables
Disable DCCP Supportxccdf_org.ssgproject.content_rule_kernel_module_dccp_disabled CCE-26448-1

Disable DCCP Support

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

identifiers:  CCE-26448-1

references:  CM-7, 382, test_attestation

Description

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

install dccp /bin/false

Rationale

Disabling DCCP protects the system against exploitation of any flaws in its implementation.

OVAL details

Items not found violating kernel module dccp disabled:

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

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

Object oval:ssg:obj:2250 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+dccp\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.U32Wnm/fix-XXluYmrG: line 1: /etc/modprobe.d/dccp.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install dccp /bin/false" > /etc/modprobe.d/dccp.conf
Disable SCTP Supportxccdf_org.ssgproject.content_rule_kernel_module_sctp_disabled CCE-26410-1

Disable SCTP Support

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

identifiers:  CCE-26410-1

references:  CM-7, 382, test_attestation

Description

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

install sctp /bin/false

Rationale

Disabling SCTP protects the system against exploitation of any flaws in its implementation.

OVAL details

Items not found violating kernel module sctp disabled:

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

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

Object oval:ssg:obj:1374 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+sctp\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.lDOjw0/fix-XXihHhBk: line 1: /etc/modprobe.d/sctp.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install sctp /bin/false" > /etc/modprobe.d/sctp.conf
Disable RDS Supportxccdf_org.ssgproject.content_rule_kernel_module_rds_disabled CCE-26239-4

Disable RDS Support

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

identifiers:  CCE-26239-4

references:  CM-7, 382, test_attestation

Description

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

install rds /bin/false

Rationale

Disabling RDS protects the system against exploitation of any flaws in its implementation.

OVAL details

Items not found violating kernel module rds disabled:

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

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

Object oval:ssg:obj:1787 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+rds\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.nw5WHE/fix-XXbGmDOY: line 1: /etc/modprobe.d/rds.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install rds /bin/false" > /etc/modprobe.d/rds.conf
Disable TIPC Supportxccdf_org.ssgproject.content_rule_kernel_module_tipc_disabled CCE-26696-5

Disable TIPC Support

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

identifiers:  CCE-26696-5

references:  CM-7, 382, test_attestation

Description

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

install tipc /bin/false

Rationale

Disabling TIPC protects the system against exploitation of any flaws in its implementation.

OVAL details

Items not found violating kernel module tipc disabled:

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

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

Object oval:ssg:obj:1901 of type textfilecontent54_object
FilepathPatternInstance
/etc/modprobe.conf^\s*install\s+tipc\s+(/bin/false|/bin/true)$1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.HHPQWi/fix-XXqzt54C: line 1: /etc/modprobe.d/tipc.conf: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "install tipc /bin/false" > /etc/modprobe.d/tipc.conf
Install openswan Packagexccdf_org.ssgproject.content_rule_package_openswan_installed CCE-27626-1

Install openswan Package

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

identifiers:  CCE-27626-1

references:  AC-17, MA-4, SC-8, 1130, 1131

Description

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

# yum install openswan

Rationale

Providing the ability for remote users or systems to initiate a secure VPN connection protects information when it is transmitted over a wide area network.

OVAL details

Items not found violating package openswan is installed:

Object oval:ssg:obj:2156 of type rpminfo_object
Name
openswan
Disable Zeroconf Networkingxccdf_org.ssgproject.content_rule_network_disable_zeroconf CCE-27151-0

Disable Zeroconf Networking

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

identifiers:  CCE-27151-0

references:  CM-7

Description

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

NOZEROCONF=yes

Rationale

Zeroconf addresses are in the network 169.254.0.0. The networking scripts add entries to the system's routing table for these addresses. Zeroconf address assignment commonly occurs when the system is configured to use DHCP but fails to receive an address assignment from the DHCP server.

OVAL details

Items not found violating check NOZEROCONF=yes in /etc/sysconfig/network:

Object oval:ssg:obj:1816 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/network^[\s]*NOZEROCONF[\s]*=[\s]*yes1
Evaluation messages
info 
Fix execution completed and returned: 1
info 
/tmp/oscap.fop9j6/fix-XXRWWIGp: line 1: /etc/sysconfig/network: Permission denied
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
echo "NOZEROCONF=yes" >> /etc/sysconfig/network
Ensure System is Not Acting as a Network Snifferxccdf_org.ssgproject.content_rule_network_sniffer_disabled CCE-27152-8

Ensure System is Not Acting as a Network Sniffer

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

identifiers:  CCE-27152-8

references:  CM-7, MA-3

Description

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

$ ip link | grep PROMISC

Rationale

If any results are returned, then a sniffing process (such as tcpdump or Wireshark) is likely to be using the interface and this should be investigated.

OVAL details

Items not found violating random:

Object oval:ssg:obj:1316 of type interface_object
NameFilter
^.*$oval:ssg:ste:1317
State oval:ssg:ste:1317 of type interface_state
Flag
PROMISC
Ensure Log Files Are Owned By Appropriate Userxccdf_org.ssgproject.content_rule_userowner_rsyslog_files CCE-26812-8

Ensure Log Files Are Owned By Appropriate User

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

identifiers:  CCE-26812-8

references:  AC-6, 1314, test_attestation

Description

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

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

Rationale

The log files generated by rsyslog contain valuable information regarding system configuration, user authentication, and other such information. Log files should be protected from unauthorized access.

OVAL details

Items found satisfying Files that end in .log in /var/log owned by root:

PathTypeUIDGIDSize (B)Permissions
/var/log/maillogregular002297rw------- 
/var/log/anaconda.syslogregular0060409rw------- 
/var/log/anaconda.xlogregular0037197rw------- 
/var/log/dracut.logregular00191230rw-r--r-- 
/var/log/anaconda.program.logregular0029594rw------- 
/var/log/anaconda.logregular0022930rw------- 
/var/log/anaconda.storage.logregular0098061rw------- 
/var/log/lastlogregular00146292rw-r--r-- 
/var/log/mcelogregular000rw-r--r-- 
/var/log/tallylogregular000rw------- 
/var/log/anaconda.yum.logregular0071572rw------- 
/var/log/yum.logregular00234rw------- 
/var/log/anaconda.ifcfg.logregular002553rw------- 
/var/log/boot.logregular002458rw-r--r-- 
Ensure Log Files Are Owned By Appropriate Groupxccdf_org.ssgproject.content_rule_groupowner_rsyslog_files CCE-26821-9

Ensure Log Files Are Owned By Appropriate Group

Rule IDxccdf_org.ssgproject.content_rule_groupowner_rsyslog_files
Result
unknown
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26821-9

references:  AC-6, 1314, test_attestation

Description

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

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

Rationale

The log files generated by rsyslog contain valuable information regarding system configuration, user authentication, and other such information. Log files should be protected from unauthorized access.

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

Ensure System Log Files Have Correct Permissions

Rule IDxccdf_org.ssgproject.content_rule_rsyslog_file_permissions
Result
unknown
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-27190-8

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

Description

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

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

Rationale

Log files can contain valuable information regarding system configuration. If the system log files are not protected unauthorized users could change the logged data, eliminating their forensic value.

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

Ensure Logs Sent To Remote Host

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

identifiers:  CCE-26801-1

references:  AU-3(2), AU-9, 1348, 136

Description

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

*.* @loghost.example.com

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

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

Rationale

A log server (loghost) receives syslog messages from one or more systems. This data can be used as an additional log source in the event a system is compromised and its local logs are suspect. Forwarding log messages to a remote loghost also provides system administrators with a centralized place to view the status of multiple hosts within the enterprise.

OVAL details

Items not found violating Ensures system configured to export logs to remote host:

Object oval:ssg:obj:1583 of type textfilecontent54_object
FilepathPatternInstance
/etc/rsyslog.conf^\*\.\*[\s]+(?:@|\:omrelp\:)1

Items not found violating Ensures system configured to export logs to remote host:

Object oval:ssg:obj:1584 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/rsyslog.d.*^\*\.\*[\s]+(?:@|\:omrelp\:)1
Ensure rsyslog Does Not Accept Remote Messages Unless Acting As Log Serverxccdf_org.ssgproject.content_rule_rsyslog_accept_remote_messages_none CCE-26803-7

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

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

identifiers:  CCE-26803-7

references:  AU-9(2)

Description

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

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

Rationale

Any process which receives messages from the network incurs some risk of receiving malicious messages. This risk can be eliminated for rsyslog by configuring it not to listen on the network.

OVAL details

Items not found satisfying Ensure that the /etc/rsyslog.conf does not contain $InputTCPServerRun | $UDPServerRun | $InputRELPServerRun:

Object oval:ssg:obj:1854 of type textfilecontent54_object
PathFilenamePatternInstance
/etcrsyslog.conf^[\s]*\$(?:Input(?:TCP|RELP)|UDP)ServerRun1
Enable rsyslog to Accept Messages via TCP, if Acting As Log Serverxccdf_org.ssgproject.content_rule_rsyslog_accept_remote_messages_tcp CCE-27235-1

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

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

identifiers:  CCE-27235-1

references:  AU-9

Description

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

$ModLoad imtcp
$InputTCPServerRun 514

Rationale

If the system needs to act as a log server, this ensures that it can receive messages over a reliable TCP connection.

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

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

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

identifiers:  CCE-27236-9

references:  AU-9

Description

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

$ModLoad imudp
$UDPServerRun 514

Rationale

Many devices, such as switches, routers, and other Unix-like systems, may only support the traditional syslog transmission over UDP. If the system must act as a log server, this enables it to receive their messages as well.

Ensure Logrotate Runs Periodicallyxccdf_org.ssgproject.content_rule_ensure_logrotate_activated CCE-27014-0

Ensure Logrotate Runs Periodically

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

identifiers:  CCE-27014-0

references:  AU-9, 366

Description

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

# rotate log files frequency
daily

Rationale

Log files that are not properly rotated run the risk of growing so large that they fill up the /var/log partition. Valuable logging information could be lost if the /var/log partition becomes full.

OVAL details

Items not found violating Tests the presence of daily setting in /etc/logrotate.conf file:

Object oval:ssg:obj:2163 of type textfilecontent54_object
BehaviorsFilepathPatternInstanceFilter
no value/etc/logrotate.conf(?:daily)*.*(?=[\n][\s]*daily)(.*)$1oval:ssg:ste:2331

Items not found violating Tests the existence of /etc/cron.daily/logrotate file (and verify it actually calls logrotate utility):

Object oval:ssg:obj:2164 of type textfilecontent54_object
FilepathPatternInstance
/etc/cron.daily/logrotate^[\s]*/usr/sbin/logrotate[\s]*/etc/logrotate.conf(?:.*)$1
Configure Logwatch HostLimit Linexccdf_org.ssgproject.content_rule_configure_logwatch_hostlimit CCE-27197-3

Configure Logwatch HostLimit Line

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

identifiers:  CCE-27197-3

Description

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

 HostLimit = no 

OVAL details

Items not found violating Test HostLimit:

Object oval:ssg:obj:2077 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/logwatch/conflogwatch.conf^[\s]HostLimit[\s]*=[\s]*no[\s]*$1
Configure Logwatch SplitHosts Linexccdf_org.ssgproject.content_rule_configure_logwatch_splithosts CCE-27069-4

Configure Logwatch SplitHosts Line

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

identifiers:  CCE-27069-4

Description

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

 SplitHosts = yes 

OVAL details

Items not found violating Test SplitHosts:

Object oval:ssg:obj:1837 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/logwatch/conflogwatch.conf^[\s]SplitHosts[\s]*=[\s]*yes[\s]*$1
Ensure rsyslog is Installedxccdf_org.ssgproject.content_rule_package_rsyslog_installed CCE-26809-4

Ensure rsyslog is Installed

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

identifiers:  CCE-26809-4

references:  AU-9(2), 1311, 1312, test_attestation

Description

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

# yum install rsyslog

Rationale

The rsyslog package provides the rsyslog daemon, which provides system logging services.

OVAL details

Items found satisfying package rsyslog is installed:

NameArchEpochReleaseVersionEvrSignature keyidExtended name
rsyslogx86_64(none)10.el6_65.8.100:5.8.10-10.el6_6199e2f91fd431d51rsyslog-0:5.8.10-10.el6_6.x86_64
Enable rsyslog Servicexccdf_org.ssgproject.content_rule_service_rsyslog_enabled CCE-26807-8

Enable rsyslog Service

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

identifiers:  CCE-26807-8

references:  AU-12, 1557, 1312, 1311, test_attestation

Description

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

# chkconfig --level 2345 rsyslog on

Rationale

The rsyslog service must be running in order to provide logging services, which are essential to system administration.

OVAL details

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rsyslog0falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rsyslog1falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rsyslog2truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rsyslog3truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rsyslog4truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rsyslog5truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rsyslog6falsetrue
Disable Logwatch on Clients if a Logserver Existsxccdf_org.ssgproject.content_rule_disable_logwatch_for_logserver CCE-27162-7

Disable Logwatch on Clients if a Logserver Exists

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

identifiers:  CCE-27162-7

Description

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

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

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

Configure auditd Number of Logs Retained

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

identifiers:  CCE-27522-2

references:  AU-1(b), AU-11, IR-5, test_attestation

Description

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

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

Rationale

The total storage for audit log files must be large enough to retain log information over the period required. This is a function of the maximum log file size and the number of logs retained.

OVAL details

Items not found violating admin space left action :

Object oval:ssg:obj:2064 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/auditd.conf^[ ]*num_logs[ ]+=[ ]+(\d+)[ ]*$1
State oval:ssg:ste:2065 of type textfilecontent54_state
Subexpression
Configure auditd Max Log File Sizexccdf_org.ssgproject.content_rule_configure_auditd_max_log_file CCE-27550-3

Configure auditd Max Log File Size

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

identifiers:  CCE-27550-3

references:  AU-1(b), AU-11, IR-5, test_attestation

Description

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

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

Rationale

The total storage for audit log files must be large enough to retain log information over the period required. This is a function of the maximum log file size and the number of logs retained.

OVAL details

Items not found violating max log file size:

Object oval:ssg:obj:1914 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/auditd.conf^[ ]*max_log_file[ ]+=[ ]+(\d+)[ ]*$1
State oval:ssg:ste:1915 of type textfilecontent54_state
Subexpression
Configure auditd max_log_file_action Upon Reaching Maximum Log Sizexccdf_org.ssgproject.content_rule_configure_auditd_max_log_file_action CCE-27237-7

Configure auditd max_log_file_action Upon Reaching Maximum Log Size

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

identifiers:  CCE-27237-7

references:  AU-1(b), AU-4, AU-11, IR-5, test_attestation

Description

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

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

Rationale

Automatically rotating logs (by setting this to rotate) minimizes the chances of the system unexpectedly running out of disk space by being overwhelmed with log data. However, for systems that must never discard log data, or which use external processes to transfer it and reclaim space, keep_logs can be employed.

OVAL details

Items not found violating admin space left action :

Object oval:ssg:obj:1487 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/auditd.conf^[ ]*max_log_file_action[ ]+=[ ]+(\S+)[ ]*$1
State oval:ssg:ste:1488 of type textfilecontent54_state
Subexpression
Configure auditd space_left Action on Low Disk Spacexccdf_org.ssgproject.content_rule_auditd_data_retention_space_left_action CCE-27238-5

Configure auditd space_left Action on Low Disk Space

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

identifiers:  CCE-27238-5

references:  AU-1(b), AU-4, AU-5(b), IR-5, 140, 143, test_attestation

Description

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

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

Rationale

Notifying administrators of an impending disk space problem may allow them to take corrective action prior to any disruption.

OVAL details

Items not found violating space left action:

Object oval:ssg:obj:1437 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/auditd.conf^[ ]*space_left_action[ ]+=[ ]+(\S+)[ ]*$1
State oval:ssg:ste:1438 of type textfilecontent54_state
Subexpression
Configure auditd admin_space_left Action on Low Disk Spacexccdf_org.ssgproject.content_rule_auditd_data_retention_admin_space_left_action CCE-27239-3

Configure auditd admin_space_left Action on Low Disk Space

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

identifiers:  CCE-27239-3

references:  AU-1(b), AU-4, AU-5(b), IR-5, 140, 1343, test_attestation

Description

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

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

Rationale

Administrators should be made aware of an inability to record audit records. If a separate partition or logical volume of adequate size is used, running low on space for audit records should never occur.

OVAL details

Items not found violating space left action:

Object oval:ssg:obj:2217 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/auditd.conf^[ ]*admin_space_left_action[ ]+=[ ]+(\S+)[ ]*$1
State oval:ssg:ste:2218 of type textfilecontent54_state
Subexpression
Configure auditd mail_acct Action on Low Disk Spacexccdf_org.ssgproject.content_rule_auditd_data_retention_action_mail_acct CCE-27241-9

Configure auditd mail_acct Action on Low Disk Space

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

identifiers:  CCE-27241-9

references:  AU-1(b), AU-4, AU-5(a), IR-5, 139, 144

Description

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

action_mail_acct = root

Rationale

Email sent to the root account is typically aliased to the administrators of the system, who can take appropriate action.

OVAL details

Items not found violating email account for actions:

Object oval:ssg:obj:1690 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/auditd.conf^[ ]*action_mail_acct[ ]+=[ ]+(\S+)[ ]*$1
State oval:ssg:ste:1691 of type textfilecontent54_state
Subexpression
Configure auditd to use audispd pluginxccdf_org.ssgproject.content_rule_configure_auditd_audispd CCE-26933-2

Configure auditd to use audispd plugin

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

identifiers:  CCE-26933-2

references:  AU-1(b), AU-3(2), IR-5, 136

Description

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

$ sudo service auditd restart

Rationale

The auditd service does not include the ability to send audit records to a centralized server for management directly. It does, however, include an audit event multiplexor plugin (audispd) to pass audit records to the local syslog server

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

Record attempts to alter time through adjtimex

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

identifiers:  CCE-26242-8

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 1487, 169

Description

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

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

Rationale

Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited.

OVAL details

Items not found violating Tests the for presence of 32bit -S adjtime and key:

Object oval:ssg:obj:1696 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/auditaudit.rules^[\s]*-a[\s]+always,exit[\s]+-F[\s]+arch=b32.*-S[\s]+adjtimex[\s]+.*-k[\s]+[\S]+[\s]*$1

Items not found violating Tests the for presence of 64bit -S adjtime and key:

Object oval:ssg:obj:1697 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/auditaudit.rules^[\s]*-a[\s]+always,exit[\s]+-F[\s]+arch=b64.*-S[\s]+adjtimex[\s]+.*-k[\s]+[\S]+[\s]*$1
Record attempts to alter time through settimeofdayxccdf_org.ssgproject.content_rule_audit_rules_time_settimeofday CCE-27203-9

Record attempts to alter time through settimeofday

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

identifiers:  CCE-27203-9

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 1487, 169

Description

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

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

Rationale

Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited.

OVAL details

Items not found violating Tests the for presence of 32bit -S settimeofday and key:

Object oval:ssg:obj:1770 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/auditaudit.rules^[\s]*-a[\s]+always,exit[\s]+-F[\s]+arch=b32.*-S[\s]+settimeofday[\s]+.*-k[\s]+[\S]+[\s]*$1

Items not found violating Tests the for presence of 64bit -S settimeofday and key:

Object oval:ssg:obj:1771 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/auditaudit.rules^[\s]*-a[\s]+always,exit[\s]+-F[\s]+arch=b64.*-S[\s]+settimeofday[\s]+.*-k[\s]+[\S]+[\s]*$1
Record Attempts to Alter Time Through stimexccdf_org.ssgproject.content_rule_audit_rules_time_stime CCE-27169-2

Record Attempts to Alter Time Through stime

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

identifiers:  CCE-27169-2

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 1487, 169

Description

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

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

Rationale

Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited.

OVAL details

Items not found satisfying Tests the for presence of 32bit -S stime and key:

Object oval:ssg:obj:2114 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/auditaudit.rules^[\s]*-a[\s]+always,exit[\s]+-F[\s]+arch=b32.*-S[\s]+stime[\s]+.*-k[\s]+[\S]+[\s]*$1
Record Attempts to Alter Time Through clock_settimexccdf_org.ssgproject.content_rule_audit_rules_time_clock_settime CCE-27170-0

Record Attempts to Alter Time Through clock_settime

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

identifiers:  CCE-27170-0

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 1487, 169

Description

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

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

Rationale

Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited.

OVAL details

Items not found violating Tests the for presence of 32bit -S clock_settime and key:

Object oval:ssg:obj:1984 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/auditaudit.rules^[\s]*-a[\s]+always,exit[\s]+-F[\s]+arch=b32.*-S[\s]+clock_settime[\s]+.*-k[\s]+[\S]+[\s]*$1

Items not found violating Tests the for presence of 64bit -S clock_settime and key:

Object oval:ssg:obj:1985 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/auditaudit.rules^[\s]*-a[\s]+always,exit[\s]+-F[\s]+arch=b64.*-S[\s]+clock_settime[\s]+.*-k[\s]+[\S]+[\s]*$1
Record Attempts to Alter the localtime Filexccdf_org.ssgproject.content_rule_audit_rules_time_watch_localtime CCE-27172-6

Record Attempts to Alter the localtime File

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

identifiers:  CCE-27172-6

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 1487, 169

Description

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

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

Rationale

Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited.

OVAL details

Items not found violating Tests the for presence etc localtime file in the rules file:

Object oval:ssg:obj:2185 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/auditaudit.rules^[\s]*-w[\s]+\/etc\/localtime[\s]+-p[\s]+\b([rx]*w[rx]*a[rx]*|[rx]*a[rx]*w[rx]*)\b.*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - chmodxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_chmod CCE-26280-8

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

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

identifiers:  CCE-26280-8

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification chmod x32:

Object oval:ssg:obj:2107 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+chmod[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification chmod x64:

Object oval:ssg:obj:2108 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+chmod[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - chownxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_chown CCE-27173-4

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

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

identifiers:  CCE-27173-4

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification chown x32:

Object oval:ssg:obj:1805 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+chown[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification chown x64:

Object oval:ssg:obj:1806 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+chown[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - fchmodxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchmod CCE-27174-2

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

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

identifiers:  CCE-27174-2

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification fchmod x32:

Object oval:ssg:obj:1518 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+fchmod[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification fchmod x64:

Object oval:ssg:obj:1519 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+fchmod[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - fchmodatxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchmodat CCE-27175-9

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

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

identifiers:  CCE-27175-9

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification fchmodat x32:

Object oval:ssg:obj:2157 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+fchmodat[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification fchmodat x64:

Object oval:ssg:obj:2158 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+fchmodat[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - fchownxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchown CCE-27177-5

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

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

identifiers:  CCE-27177-5

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification fchown x32:

Object oval:ssg:obj:1512 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+fchown[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification fchown x64:

Object oval:ssg:obj:1513 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+fchown[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - fchownatxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fchownat CCE-27178-3

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

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

identifiers:  CCE-27178-3

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification fchownat x32:

Object oval:ssg:obj:1362 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+fchownat[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification fchownat x64:

Object oval:ssg:obj:1363 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+fchownat[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - fremovexattrxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fremovexattr CCE-27179-1

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

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

identifiers:  CCE-27179-1

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification fremovexattr x32:

Object oval:ssg:obj:1371 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+fremovexattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification fremovexattr x64:

Object oval:ssg:obj:1372 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+fremovexattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - fsetxattrxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_fsetxattr CCE-27180-9

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

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

identifiers:  CCE-27180-9

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification fsetxattr x32:

Object oval:ssg:obj:1349 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+fsetxattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification fsetxattr x64:

Object oval:ssg:obj:1350 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+fsetxattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - lchownxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_lchown CCE-27181-7

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

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

identifiers:  CCE-27181-7

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification lchown x32:

Object oval:ssg:obj:1310 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+lchown[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification lchown x64:

Object oval:ssg:obj:1311 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+lchown[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - lremovexattrxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_lremovexattr CCE-27182-5

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

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

identifiers:  CCE-27182-5

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification lremovexattr x32:

Object oval:ssg:obj:1537 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+lremovexattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification lremovexattr x64:

Object oval:ssg:obj:1538 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+lremovexattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - lsetxattrxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_lsetxattr CCE-27183-3

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

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

identifiers:  CCE-27183-3

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification lsetxattr x32:

Object oval:ssg:obj:1417 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+lsetxattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification lsetxattr x64:

Object oval:ssg:obj:1418 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+lsetxattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - removexattrxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_removexattr CCE-27184-1

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

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

identifiers:  CCE-27184-1

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification removexattr x32:

Object oval:ssg:obj:1494 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+removexattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification removexattr x64:

Object oval:ssg:obj:1495 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+removexattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Discretionary Access Controls - setxattrxccdf_org.ssgproject.content_rule_audit_rules_dac_modification_setxattr CCE-27185-8

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

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

identifiers:  CCE-27185-8

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

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

Rationale

The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users.

Warnings
warning  Note that these rules can be configured in a number of ways while still achieving the desired effect. Here the system calls have been placed independent of other system calls. Grouping these system calls with others as identifying earlier in this guide is more efficient.
OVAL details

Items not found violating dac modification setxattr x32:

Object oval:ssg:obj:1650 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b32[\s]+)(?:.*-S[\s]+setxattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1

Items not found violating dac modification setxattr x64:

Object oval:ssg:obj:1651 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^[\s]*-a[\s]+always,exit[\s]+(?:.*-F[\s]+arch=b64[\s]+)(?:.*-S[\s]+setxattr[\s]+)(?:.*-F\s+auid>=500[\s]+)(?:.*-F\s+auid!=4294967295[\s]+).*-k[\s]+[\S]+[\s]*$1
Record Events that Modify the System's Network Environmentxccdf_org.ssgproject.content_rule_audit_network_modifications CCE-26648-6

Record Events that Modify the System's Network Environment

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

identifiers:  CCE-26648-6

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5

Description

Add the following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:

# audit_network_modifications
-a always,exit -F arch=ARCH -S sethostname -S setdomainname -k audit_network_modifications
-w /etc/issue -p wa -k audit_network_modifications
-w /etc/issue.net -p wa -k audit_network_modifications
-w /etc/hosts -p wa -k audit_network_modifications
-w /etc/sysconfig/network -p wa -k audit_network_modifications

Rationale

The network environment should not be modified by anything other than administrator action. Any change to network parameters should be audited.

OVAL details

Items not found violating network modification syscall:

Object oval:ssg:obj:1496 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-a\s+always,exit\s+(\-F\s+arch=(b64|b32)\s+)?\-S\s+sethostname\s+\-S\s+setdomainname\s+\-k\s+[-\w]+\s*$1

Items not found violating /etc/issue modification:

Object oval:ssg:obj:1497 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/etc/issue\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1

Items not found violating /etc/issue.net modification:

Object oval:ssg:obj:1498 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/etc/issue\.net\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1

Items not found violating /etc/hosts modification:

Object oval:ssg:obj:1499 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/etc/hosts\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1

Items not found violating /etc/sysconfig/network modification:

Object oval:ssg:obj:1500 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/etc/sysconfig/network\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1
System Audit Logs Must Have Mode 0640 or Less Permissivexccdf_org.ssgproject.content_rule_file_permissions_var_log_audit CCE-27243-5

System Audit Logs Must Have Mode 0640 or Less Permissive

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

identifiers:  CCE-27243-5

references:  AC-6, AU-1(b), AU-9, IR-5, 166, test_attestation

Description

Change the mode of the audit log files with the following command:

$ sudo chmod 0640 audit_file

Rationale

If users can write to audit logs, audit trails can be modified or destroyed.

OVAL details

Items not found violating /var/log/audit files mode 0640:

Object oval:ssg:obj:1659 of type file_object
BehaviorsPathFilenameFilter
no value/var/log/audit^.*$oval:ssg:ste:1660
State oval:ssg:ste:1660 of type file_state
SuidSgidStickyUexecGwriteGexecOreadOwriteOexec
truetruetruetruetruetruetruetruetrue
System Audit Logs Must Be Owned By Rootxccdf_org.ssgproject.content_rule_audit_logs_rootowner CCE-27244-3

System Audit Logs Must Be Owned By Root

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

identifiers:  CCE-27244-3

references:  AC-6, AU-1(b), AU-9, IR-5, 166, test_attestation

Description

To properly set the owner of /var/log, run the command:

# chown root/var/log

Rationale

Failure to give ownership of the audit log files to root allows the designated owner, and unauthorized users, potential access to sensitive information.

OVAL details

Items not found violating /var/log/audit files uid root gid root:

Object oval:ssg:obj:2294 of type file_object
BehaviorsPathFilenameFilter
no value/var/log/audit^.*$oval:ssg:ste:2339

Items not found violating /var/log/audit directories uid root gid root:

Object oval:ssg:obj:2293 of type file_object
BehaviorsPathFilenameFilter
no value/var/log/auditno valueoval:ssg:ste:2339
Record Events that Modify the System's Mandatory Access Controlsxccdf_org.ssgproject.content_rule_audit_mac_changes CCE-26657-7

Record Events that Modify the System's Mandatory Access Controls

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

identifiers:  CCE-26657-7

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5

Description

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

-w /etc/selinux/ -p wa -k MAC-policy

Rationale

The system's mandatory access policy (SELinux) should not be arbitrarily changed by anything other than administrator action. All changes to MAC policy should be audited.

OVAL details

Items not found violating audit changes selinux:

Object oval:ssg:obj:1759 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/etc/selinux/\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1
Record Attempts to Alter Logon and Logout Eventsxccdf_org.ssgproject.content_rule_audit_manual_logon_edits CCE-26691-6

Record Attempts to Alter Logon and Logout Events

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

identifiers:  CCE-26691-6

references:  AC-3(10), AU-1(b), IR-5

Description

The audit system already collects login info for all users and root. To watch for attempted manual edits of files involved in storing logon events, add the following to /etc/audit/audit.rules:

-w /var/log/faillog -p wa -k logins 
-w /var/log/lastlog -p wa -k logins

Rationale

Manual editing of these files may indicate nefarious activity, such as an attacker attempting to remove evidence of an intrusion.

OVAL details

Items not found violating faillog:

Object oval:ssg:obj:1764 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/var/log/faillog\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1

Items not found violating lastlog:

Object oval:ssg:obj:1765 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/var/log/lastlog\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1
Record Attempts to Alter Process and Session Initiation Informationxccdf_org.ssgproject.content_rule_audit_manual_session_edits CCE-26610-6

Record Attempts to Alter Process and Session Initiation Information

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

identifiers:  CCE-26610-6

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5

Description

The audit system already collects process information for all users and root. To watch for attempted manual edits of files involved in storing such process information, add the following to /etc/audit/audit.rules:

-w /var/run/utmp -p wa -k session
-w /var/log/btmp -p wa -k session
-w /var/log/wtmp -p wa -k session

Rationale

Manual editing of these files may indicate nefarious activity, such as an attacker attempting to remove evidence of an intrusion.

OVAL details

Items not found violating utmp:

Object oval:ssg:obj:2109 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/var/run/utmp\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1

Items not found violating btmp:

Object oval:ssg:obj:2110 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/var/log/btmp\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1

Items not found violating wtmp:

Object oval:ssg:obj:2111 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/var/log/wtmp\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1
Ensure auditd Collects Unauthorized Access Attempts to Files (unsuccessful)xccdf_org.ssgproject.content_rule_audit_rules_unsuccessful_file_modification CCE-26712-0

Ensure auditd Collects Unauthorized Access Attempts to Files (unsuccessful)

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

identifiers:  CCE-26712-0

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

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

-a always,exit -F arch=b32 -S creat -S open -S openat -S open_by_handle_at -S truncate -S ftruncate -F exit=-EACCES -F auid>=500 -F auid!=4294967295 -k access
-a always,exit -F arch=b32 -S creat -S open -S openat -S open_by_handle_at -S truncate -S ftruncate -F exit=-EPERM -F auid>=500 -F auid!=4294967295 -k access
-a always,exit -F arch=b64 -S creat -S open -S openat -S open_by_handle_at -S truncate -S ftruncate -F exit=-EACCES -F auid>=500 -F auid!=4294967295 -k access
-a always,exit -F arch=b64 -S creat -S open -S openat -S open_by_handle_at -S truncate -S ftruncate -F exit=-EPERM -F auid>=500 -F auid!=4294967295 -k access

Rationale

Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise.

OVAL details

Items not found violating 32-bit audit file eacces:

Object oval:ssg:obj:1321 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-a\s+always,exit\s+\-F\s+arch=b32\s+?\-S\s+creat\s+\-S\s+open\s+\-S\s+openat\s+\-S\s+open_by_handle_at\s+\-S\s+truncate\s+\-S\s+ftruncate\s+\-F\s+exit=\-EACCES\s+\-F\s+auid>=500\s+\-F\s+auid!=4294967295\s+\-k\s+[-\w]+\s*$1

Items not found violating 32-bit audit file eperm:

Object oval:ssg:obj:1322 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-a\s+always,exit\s+\-F\s+arch=b32\s+?\-S\s+creat\s+\-S\s+open\s+\-S\s+openat\s+\-S\s+open_by_handle_at\s+\-S\s+truncate\s+\-S\s+ftruncate\s+\-F\s+exit=\-EPERM\s+\-F\s+auid>=500\s+\-F\s+auid!=4294967295\s+\-k\s+[-\w]+\s*$1

Items not found violating 64-bit audit file eacces:

Object oval:ssg:obj:1323 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-a\s+always,exit\s+\-F\s+arch=b64\s+?\-S\s+creat\s+\-S\s+open\s+\-S\s+openat\s+\-S\s+open_by_handle_at\s+\-S\s+truncate\s+\-S\s+ftruncate\s+\-F\s+exit=\-EACCES\s+\-F\s+auid>=500\s+\-F\s+auid!=4294967295\s+\-k\s+[-\w]+\s*$1

Items not found violating 64-bit audit file eperm:

Object oval:ssg:obj:1324 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-a\s+always,exit\s+\-F\s+arch=b64\s+?\-S\s+creat\s+\-S\s+open\s+\-S\s+openat\s+\-S\s+open_by_handle_at\s+\-S\s+truncate\s+\-S\s+ftruncate\s+\-F\s+exit=\-EPERM\s+\-F\s+auid>=500\s+\-F\s+auid!=4294967295\s+\-k\s+[-\w]+\s*$1
Ensure auditd Collects Information on the Use of Privileged Commandsxccdf_org.ssgproject.content_rule_audit_rules_privileged_commands CCE-26457-2

Ensure auditd Collects Information on the Use of Privileged Commands

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_privileged_commands
Result
fail
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26457-2

references:  AC-3(10)), AU-1(b), AU-2(a), AU-2(c), AU-2(d), AC-6(9), IR-5, 40, test_attestation

Description

At a minimum the audit system should collect the execution of privileged commands for all users and root. To find the relevant setuid / setgid programs:

$ sudo find / -xdev -type f -perm -4000 -o -perm -2000 2>/dev/null
Then, for each setuid / setgid program on the system, add a line of the following form to /etc/audit/audit.rules, where SETUID_PROG_PATH is the full path to each setuid / setgid program in the list:
-a always,exit -F path=SETUID_PROG_PATH -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged

Rationale

Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity.

OVAL details

Items not found violating /etc/audit/audit.rules contains -a always,exit -F path=path_to_binary -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged for each setuid or setgid binary on the system:

Object oval:ssg:obj:2260 of type textfilecontent54_object
FilepathPatternInstanceFilter
/etc/audit/audit.rules^[\s]*(-a always,exit -F path=[^\n]+ -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged)[\s]*$1oval:ssg:ste:2337
State oval:ssg:ste:2261 of type textfilecontent54_state
Subexpression
-a always,exit -F path=/lib64/dbus-1/dbus-daemon-launch-helper -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/sbin/netreport -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/sbin/pam_timestamp_check -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/ksu -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/sbin/unix_chkpwd -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/sbin/mount.nfs -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/sbin/usernetctl -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/sbin/postqueue -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/bin/mount -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/bin/ping6 -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/libexec/polkit-1/polkit-agent-helper-1 -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/bin/ping -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/locate -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/libexec/pt_chown -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/passwd -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/at -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/bin/umount -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/staprun -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/gpasswd -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/bin/su -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/ssh-agent -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/newgrp -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/bin/cgexec -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/write -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/libexec/utempter/utempter -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/libexec/abrt-action-install-debuginfo-to-abrt-cache -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/sbin/postdrop -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/sudo -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/sbin/userhelper -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/chsh -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/crontab -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/wall -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/bin/cgclassify -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/pkexec -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/chage -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/bin/chfn -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged-a always,exit -F path=/usr/libexec/openssh/ssh-keysign -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged

Items found violating check if count of found privileged commands on the system is equal to count of audit.rules privileged commands definitions:

Var refValue
oval:ssg:var:233837
Ensure auditd Collects Information on Exporting to Media (successful)xccdf_org.ssgproject.content_rule_audit_media_exports CCE-26573-6

Ensure auditd Collects Information on Exporting to Media (successful)

Rule IDxccdf_org.ssgproject.content_rule_audit_media_exports
Result
fail
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26573-6

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126, test_attestation

Description

At a minimum the audit system should collect media exportation events for all users and root. Add the following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:

-a always,exit -F arch=ARCH -S mount -F auid>=500 -F auid!=4294967295 -k export

Rationale

The unauthorized exportation of data to external media could result in an information leak where classified information, Privacy Act information, and intellectual property could be lost. An audit trail should be created each time a filesystem is mounted to help identify and guard against information loss.

OVAL details

Items not found violating audit mount:

Object oval:ssg:obj:2282 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-a\s+always,exit\s+(\-F\s+arch=(b64|b32)\s+)?\-S\s+mount\s+\-F\s+auid>=500\s+\-F\s+auid!=4294967295\s+\-k\s+[-\w]+\s*$1
Ensure auditd Collects File Deletion Events by Userxccdf_org.ssgproject.content_rule_audit_rules_file_deletion_events CCE-26651-0

Ensure auditd Collects File Deletion Events by User

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_file_deletion_events
Result
fail
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26651-0

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

At a minimum the audit system should collect file deletion events for all users and root. Add the following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:

-a always,exit -F arch=ARCH -S rmdir -S unlink -S unlinkat -S rename -S renameat -F auid>=500 -F auid!=4294967295 -k delete

Rationale

Auditing file deletions will create an audit trail for files that are removed from the system. The audit trail could aid in system troubleshooting, as well as, detecting malicious processes that attempt to delete log files to conceal their presence.

OVAL details

Items not found violating audit file delete:

Object oval:ssg:obj:1986 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-a\s+always,exit\s+(\-F\s+arch=(b64|b32)\s+)?\-S\s+rmdir\s+\-S\s+unlink\s+\-S\s+unlinkat\s+\-S\s+rename\s+\-S\s+renameat\s+\-F\s+auid>=500\s+\-F\s+auid!=4294967295\s+\-k\s+[-\w]+\s*$1
Ensure auditd Collects System Administrator Actionsxccdf_org.ssgproject.content_rule_audit_sysadmin_actions CCE-26662-7

Ensure auditd Collects System Administrator Actions

Rule IDxccdf_org.ssgproject.content_rule_audit_sysadmin_actions
Result
fail
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26662-7

references:  AC-2(7)(b), AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126, test_attestation

Description

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

-w /etc/sudoers -p wa -k actions

Rationale

The actions taken by system administrators should be audited to keep a record of what was executed on the system, as well as, for accountability purposes.

OVAL details

Items not found violating audit sudoers:

Object oval:ssg:obj:2102 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/etc/sudoers\s+\-p\s+wa\s+\-k\s+[-\w]+\s*$1
Ensure auditd Collects Information on Kernel Module Loading and Unloadingxccdf_org.ssgproject.content_rule_audit_rules_kernel_module_loading CCE-26611-4

Ensure auditd Collects Information on Kernel Module Loading and Unloading

Rule IDxccdf_org.ssgproject.content_rule_audit_rules_kernel_module_loading
Result
fail
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26611-4

references:  AC-3(10), AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5, 126

Description

Add the following to /etc/audit/audit.rules in order to capture kernel module loading and unloading events, setting ARCH to either b32 or b64 as appropriate for your system:

-w /sbin/insmod -p x -k modules
-w /sbin/rmmod -p x -k modules
-w /sbin/modprobe -p x -k modules
-a always,exit -F arch=ARCH -S init_module -S delete_module -k modules

Rationale

The addition/removal of kernel modules can be used to alter the behavior of the kernel and potentially introduce malicious code into kernel space. It is important to have an audit trail of modules that have been introduced into the kernel.

OVAL details

Items not found violating audit insmod:

Object oval:ssg:obj:1677 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/sbin/insmod\s+\-p\s+x\s+\-k\s+[-\w]+\s*$1

Items not found violating audit rmmod:

Object oval:ssg:obj:1678 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/sbin/rmmod\s+\-p\s+x\s+\-k\s+[-\w]+\s*$1

Items not found violating audit modprobe:

Object oval:ssg:obj:1679 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-w\s+/sbin/modprobe\s+\-p\s+x\s+\-k\s+[-\w]+\s*$1

Items not found violating audit module syscalls:

Object oval:ssg:obj:1680 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-a\s+always,exit\s+(\-F\s+arch=(b64|b32)\s+)?\-S\s+init_module\s+\-S\s+delete_module\s+\-k\s+[-\w]+\s*$1
Make the auditd Configuration Immutablexccdf_org.ssgproject.content_rule_audit_config_immutable CCE-26612-2

Make the auditd Configuration Immutable

Rule IDxccdf_org.ssgproject.content_rule_audit_config_immutable
Result
fail
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26612-2

references:  AC-6, AU-1(b), AU-2(a), AU-2(c), AU-2(d), IR-5

Description

Add the following to /etc/audit/audit.rules in order to make the configuration immutable:

-e 2
With this setting, a reboot will be required to change any audit rules.

Rationale

Making the audit configuration immutable prevents accidental as well as malicious modification of the audit rules, although it may be problematic if legitimate changes are needed during system operation

OVAL details

Items not found violating immutable:

Object oval:ssg:obj:1623 of type textfilecontent54_object
FilepathPatternInstance
/etc/audit/audit.rules^\-e\s+2\s*$1
Enable auditd Servicexccdf_org.ssgproject.content_rule_service_auditd_enabled CCE-27058-7

Enable auditd Service

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

identifiers:  CCE-27058-7

references:  AC-17(1), AU-1(b), AU-10, AU-12(a), AU-12(c), IR-5, 347, 157, 172, 880, 1353, 1462, 1487, 1115, 1454, 067, 158, 831, 1190, 1312, 1263, 130, 120, 1589, test_attestation

Description

The auditd service is an essential userspace component of the Linux Auditing System, as it is responsible for writing audit records to disk. The auditd service can be enabled with the following command:

# chkconfig --level 2345 auditd on

Rationale

Ensuring the auditd service is active ensures audit records generated by the kernel can be written to disk, or that appropriate actions will be taken if other obstacles exist.

OVAL details

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
auditd0falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
auditd1falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
auditd2truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
auditd3truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
auditd4truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
auditd5truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
auditd6falsetrue
Enable Auditing for Processes Which Start Prior to the Audit Daemonxccdf_org.ssgproject.content_rule_bootloader_audit_argument CCE-26785-6

Enable Auditing for Processes Which Start Prior to the Audit Daemon

Rule IDxccdf_org.ssgproject.content_rule_bootloader_audit_argument
Result
error
Time2015-08-22T01:35:58
Severitymedium
Identifiers and References

identifiers:  CCE-26785-6

references:  AC-17(1), AU-1(b), AU-2(a), AU-2(c), AU-2(d), AU-10, IR-5, 1464, 130

Description

To ensure all processes can be audited, even those which start prior to the audit daemon, add the argument audit=1 to the kernel line in /etc/grub.conf, in the manner below:

kernel /vmlinuz-version ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet audit=1

Rationale

Each process on the system carries an "auditable" flag which indicates whether its activities can be audited. Although auditd takes care of enabling this for all processes which launch after it does, adding the kernel argument ensures it is set for every process during boot.

OVAL details

Items not found violating check for audit=1 in /etc/grub.conf:

Object oval:ssg:obj:1416 of type textfilecontent54_object
FilepathPatternInstance
/etc/grub.conf^\s*kernel\s/vmlinuz.*audit=1.*$1
Remediation script:
/sbin/grubby --update-kernel=ALL --args="audit=1"
Disable xinetd Servicexccdf_org.ssgproject.content_rule_disable_xinetd CCE-27046-2

Disable xinetd Service

Rule IDxccdf_org.ssgproject.content_rule_disable_xinetd
Result
pass
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-27046-2

references:  CM-7, 305, test_attestation

Description

The xinetd service can be disabled with the following command:

# chkconfig xinetd off

Rationale

The xinetd service provides a dedicated listener service for some programs, which is no longer necessary for commonly-used network services. Disabling it ensures that these uncommon services are not running, and also prevents attacks against xinetd itself.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1502 of type runlevel_object
Service nameRunlevel
xinetd0
State oval:ssg:ste:1503 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1504 of type runlevel_object
Service nameRunlevel
xinetd1
State oval:ssg:ste:1503 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1505 of type runlevel_object
Service nameRunlevel
xinetd2
State oval:ssg:ste:1503 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1506 of type runlevel_object
Service nameRunlevel
xinetd3
State oval:ssg:ste:1503 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1507 of type runlevel_object
Service nameRunlevel
xinetd4
State oval:ssg:ste:1503 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1508 of type runlevel_object
Service nameRunlevel
xinetd5
State oval:ssg:ste:1503 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1509 of type runlevel_object
Service nameRunlevel
xinetd6
State oval:ssg:ste:1503 of type runlevel_state
StartKill
falsetrue
Uninstall xinetd Packagexccdf_org.ssgproject.content_rule_uninstall_xinetd CCE-27005-8

Uninstall xinetd Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_xinetd
Result
pass
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27005-8

references:  CM-7, 305, test_attestation

Description

The xinetd package can be uninstalled with the following command:

$ sudo yum erase xinetd

Rationale

Removing the xinetd package decreases the risk of the xinetd service's accidental (or intentional) activation.

OVAL details

Items not found satisfying package xinetd is removed:

Object oval:ssg:obj:1565 of type rpminfo_object
Name
xinetd
Disable telnet Servicexccdf_org.ssgproject.content_rule_disable_telnet_service CCE-26836-7

Disable telnet Service

Rule IDxccdf_org.ssgproject.content_rule_disable_telnet_service
Result
pass
Time2015-08-22T01:36:03
Severityhigh
Identifiers and References

identifiers:  CCE-26836-7

references:  CM-7, IA-5(1)(c), 68, 1436, 197, 877, 888, test_attestation

Description

The telnet service can be disabled with the following command:

# chkconfig telnet off

Rationale

The telnet protocol uses unencrypted network communication, which means that data from the login session, including passwords and all other information transmitted during the session, can be stolen by eavesdroppers on the network. The telnet protocol is also subject to man-in-the-middle attacks.

OVAL details

Items not found satisfying Disable Telnet Service:

Object oval:ssg:obj:1493 of type textfilecontent54_object
FilepathPatternInstance
/etc/xinetd.d/telnet^\s*disable\s+=\s+no\s*$1
Uninstall telnet-server Packagexccdf_org.ssgproject.content_rule_uninstall_telnet_server CCE-27073-6

Uninstall telnet-server Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_telnet_server
Result
pass
Time2015-08-22T01:36:03
Severityhigh
Identifiers and References

identifiers:  CCE-27073-6

references:  CM-7, 305, 381, test_attestation

Description

The telnet-server package can be uninstalled with the following command:

$ sudo yum erase telnet-server

Rationale

Removing the telnet-server package decreases the risk of the telnet service's accidental (or intentional) activation.

OVAL details

Items not found satisfying package telnet-server is removed:

Object oval:ssg:obj:1511 of type rpminfo_object
Name
telnet-server
Remove telnet Clientsxccdf_org.ssgproject.content_rule_package_telnet_removed CCE-

Remove telnet Clients

Rule IDxccdf_org.ssgproject.content_rule_package_telnet_removed
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-

Description

The telnet client allows users to start connections to other systems via the telnet protocol.

Rationale

The telnet protocol is insecure and unencrypted. The use of an unencrypted transmission medium could allow an unauthorized user to steal credentials. The ssh package provides an encrypted session and stronger security and is included in Red Hat Enterprise Linux.

OVAL details

Items not found violating package telnet is removed:

Object oval:ssg:obj:2182 of type rpminfo_object
Name
telnet
Uninstall rsh-server Packagexccdf_org.ssgproject.content_rule_uninstall_rsh-server CCE-27062-9

Uninstall rsh-server Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_rsh-server
Result
pass
Time2015-08-22T01:36:03
Severityhigh
Identifiers and References

identifiers:  CCE-27062-9

references:  CM-7, 305, 381, test_attestation

Description

The rsh-server package can be uninstalled with the following command:

$ sudo yum erase rsh-server

Rationale

The rsh-server package provides several obsolete and insecure network services. Removing it decreases the risk of those services' accidental (or intentional) activation.

OVAL details

Items not found satisfying package rsh-server is removed:

Object oval:ssg:obj:1510 of type rpminfo_object
Name
rsh-server
Disable rexec Servicexccdf_org.ssgproject.content_rule_disable_rexec CCE-27208-8

Disable rexec Service

Rule IDxccdf_org.ssgproject.content_rule_disable_rexec
Result
notselected
Time2015-08-22T01:36:03
Severityhigh
Identifiers and References

identifiers:  CCE-27208-8

references:  CM-7, 68, 1436, test_attestation

Description

The rexec service, which is available with the rsh-server package and runs as a service through xinetd, should be disabled. The rexec service can be disabled with the following command:

# chkconfig rexec off

Rationale

The rexec service uses unencrypted network communications, which means that data from the login session, including passwords and all other information transmitted during the session, can be stolen by eavesdroppers on the network.

OVAL details

Items not found violating rexec disabled:

Object oval:ssg:obj:1332 of type textfilecontent54_object
FilepathPatternInstance
/etc/xinetd.d/rexec^\s*disable\s+=\s+yes\s*$1
Disable rsh Servicexccdf_org.ssgproject.content_rule_disable_rsh CCE-26994-4

Disable rsh Service

Rule IDxccdf_org.ssgproject.content_rule_disable_rsh
Result
notselected
Time2015-08-22T01:36:03
Severityhigh
Identifiers and References

identifiers:  CCE-26994-4

references:  CM-7, IA-5(1)(c), 68, 1436, test_attestation

Description

The rsh service, which is available with the rsh-server package and runs as a service through xinetd, should be disabled. The rsh service can be disabled with the following command:

# chkconfig rsh off

Rationale

The rsh service uses unencrypted network communications, which means that data from the login session, including passwords and all other information transmitted during the session, can be stolen by eavesdroppers on the network.

OVAL details

Items not found violating rsh disabled:

Object oval:ssg:obj:1582 of type textfilecontent54_object
FilepathPatternInstance
/etc/xinetd.d/rsh^\s*disable\s+=\s+yes\s*$1
Uninstal rsh Packagexccdf_org.ssgproject.content_rule_package_rsh_removed CCE-

Uninstal rsh Package

Rule IDxccdf_org.ssgproject.content_rule_package_rsh_removed
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-

references:  test_attestation

Description

The rsh package contains the client commands for the rsh services

Rationale

These legacy clients contain numerous security exposures and have been replaced with the more secure SSH package. Even if the server is removed, it is best to ensure the clients are also removed to prevent users from inadvertently attempting to use these commands and therefore exposing their credentials. Note that removing the rsh package removes the clients for rsh,rcp, and rlogin.

OVAL details

Items not found violating package rsh is removed:

Object oval:ssg:obj:1339 of type rpminfo_object
Name
rsh
Disable rlogin Servicexccdf_org.ssgproject.content_rule_disable_rlogin CCE-26865-6

Disable rlogin Service

Rule IDxccdf_org.ssgproject.content_rule_disable_rlogin
Result
notselected
Time2015-08-22T01:36:03
Severityhigh
Identifiers and References

identifiers:  CCE-26865-6

references:  CM-7, IA-5(1)(c), 1436, test_attestation

Description

The rlogin service, which is available with the rsh-server package and runs as a service through xinetd, should be disabled. The rlogin service can be disabled with the following command:

# chkconfig rlogin off

Rationale

The rlogin service uses unencrypted network communications, which means that data from the login session, including passwords and all other information transmitted during the session, can be stolen by eavesdroppers on the network.

OVAL details

Items not found violating rlogin disabled:

Object oval:ssg:obj:1331 of type textfilecontent54_object
FilepathPatternInstance
/etc/xinetd.d/rlogin^\s*disable\s+=\s+yes\s*$1
Remove Rsh Trust Filesxccdf_org.ssgproject.content_rule_no_rsh_trust_files CCE-27270-8

Remove Rsh Trust Files

Rule IDxccdf_org.ssgproject.content_rule_no_rsh_trust_files
Result
notselected
Time2015-08-22T01:36:03
Severityhigh
Identifiers and References

identifiers:  CCE-27270-8

references:  CM-7, 1436, test_attestation

Description

The files /etc/hosts.equiv and ~/.rhosts (in each user's home directory) list remote hosts and users that are trusted by the local system when using the rshd daemon. To remove these files, run the following command to delete them from any location:

$ sudo rm /etc/hosts.equiv
$ rm ~/.rhosts

Rationale

Trust files are convenient, but when used in conjunction with the R-services, they can allow unauthenticated access to a system.

OVAL details

Items not found violating look for .rhosts or .shosts in /root:

Object oval:ssg:obj:1489 of type file_object
PathFilename
/root^\.(r|s)hosts$

Items not found violating look for .rhosts or .shosts in /home:

Object oval:ssg:obj:1490 of type file_object
BehaviorsPathFilename
no value/home^\.(r|s)hosts$

Items not found violating look for /etc/hosts.equiv or /etc/shosts.equiv:

Object oval:ssg:obj:1491 of type file_object
PathFilename
/etc^s?hosts\.equiv$
Uninstall ypserv Packagexccdf_org.ssgproject.content_rule_uninstall_ypserv CCE-27079-3

Uninstall ypserv Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_ypserv
Result
pass
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-27079-3

references:  CM-7, 305, 381, test_attestation

Description

The ypserv package can be uninstalled with the following command:

$ sudo yum erase ypserv

Rationale

Removing the ypserv package decreases the risk of the accidental (or intentional) activation of NIS or NIS+ services.

OVAL details

Items not found satisfying package ypserv is removed:

Object oval:ssg:obj:1763 of type rpminfo_object
Name
ypserv
Disable ypbind Servicexccdf_org.ssgproject.content_rule_disable_ypbind CCE-26894-6

Disable ypbind Service

Rule IDxccdf_org.ssgproject.content_rule_disable_ypbind
Result
pass
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-26894-6

references:  CM-7, 305, test_attestation

Description

The ypbind service, which allows the system to act as a client in a NIS or NIS+ domain, should be disabled. The ypbind service can be disabled with the following command:

# chkconfig ypbind off

Rationale

Disabling the ypbind service ensures the system is not acting as a client in a NIS or NIS+ domain.

OVAL details

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ypbind0falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ypbind1falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ypbind2falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ypbind3falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ypbind4falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ypbind5falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
ypbind6falsetrue
Remove NIS Clientxccdf_org.ssgproject.content_rule_package_ypbind_removed CCE-

Remove NIS Client

Rule IDxccdf_org.ssgproject.content_rule_package_ypbind_removed
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-

Description

The Network Information Service (NIS), formerly known as Yellow Pages, is a client-server directory service protocol used to distribute system configuration files. The NIS client (ypbind) was used to bind a machine to an NIS server and receive the distributed configuration files.

Rationale

The NIS service is inherently an insecure system that has been vulnerable to DOS attacks, buffer overflows and has poor authentication for querying NIS maps. NIS generally has been replaced by such protocols as Lightweight Directory Access Protocol (LDAP). It is recommended that the service be removed.

OVAL details

Items found violating package ypbind is removed:

NameArchEpochReleaseVersionEvrSignature keyidExtended name
ypbindx86_64331.el61.20.43:1.20.4-31.el6199e2f91fd431d51ypbind-3:1.20.4-31.el6.x86_64
Disable tftp Servicexccdf_org.ssgproject.content_rule_disable_tftp CCE-27055-3

Disable tftp Service

Rule IDxccdf_org.ssgproject.content_rule_disable_tftp
Result
pass
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-27055-3

references:  CM-7, 1436, test_attestation

Description

The tftp service should be disabled. The tftp service can be disabled with the following command:

# chkconfig tftp off

Rationale

Disabling the tftp service ensures the system is not acting as a TFTP server, which does not provide encryption or authentication.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2264 of type runlevel_object
Service nameRunlevel
tftp0
State oval:ssg:ste:2265 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2266 of type runlevel_object
Service nameRunlevel
tftp1
State oval:ssg:ste:2265 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2267 of type runlevel_object
Service nameRunlevel
tftp2
State oval:ssg:ste:2265 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2268 of type runlevel_object
Service nameRunlevel
tftp3
State oval:ssg:ste:2265 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2269 of type runlevel_object
Service nameRunlevel
tftp4
State oval:ssg:ste:2265 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2270 of type runlevel_object
Service nameRunlevel
tftp5
State oval:ssg:ste:2265 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2271 of type runlevel_object
Service nameRunlevel
tftp6
State oval:ssg:ste:2265 of type runlevel_state
StartKill
falsetrue
Uninstall tftp-server Packagexccdf_org.ssgproject.content_rule_uninstall_tftp-server CCE-26946-4

Uninstall tftp-server Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_tftp-server
Result
pass
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-26946-4

references:  CM-7, 305, test_attestation

Description

The tftp-server package can be removed with the following command:

# yum erase tftp-server

Rationale

Removing the tftp-server package decreases the risk of the accidental (or intentional) activation of tftp services.

OVAL details

Items not found satisfying package tftp-server is removed:

Object oval:ssg:obj:1956 of type rpminfo_object
Name
tftp-server
Remove tftpxccdf_org.ssgproject.content_rule_package_tftp_removed CCE-

Remove tftp

Rule IDxccdf_org.ssgproject.content_rule_package_tftp_removed
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-

Description

Trivial File Transfer Protocol (TFTP) is a simple file transfer protocol, typically used to automatically transfer configuration or boot files between machines. TFTP does not support authentication and can be easily hacked. The package tftp is a client program that allows for connections to a tftp server.

Rationale

It is recommended that TFTP be remvoed, unless there is a specific need for TFTP (such as a boot server). In that case, use extreme caution when configuring the services.

OVAL details

Items not found violating package tftp is removed:

Object oval:ssg:obj:1330 of type rpminfo_object
Name
tftp
Ensure tftp Daemon Uses Secure Modexccdf_org.ssgproject.content_rule_tftpd_uses_secure_mode CCE-27272-4

Ensure tftp Daemon Uses Secure Mode

Rule IDxccdf_org.ssgproject.content_rule_tftpd_uses_secure_mode
Result
notselected
Time2015-08-22T01:36:03
Severityhigh
Identifiers and References

identifiers:  CCE-27272-4

references:  CM-7, 366

Description

If running the tftp service is necessary, it should be configured to change its root directory at startup. To do so, ensure /etc/xinetd.d/tftp includes -s as a command line argument, as shown in the following example (which is also the default):

server_args = -s /var/lib/tftpboot

Rationale

Using the -s option causes the TFTP service to only serve files from the given directory. Serving files from an intentionally-specified directory reduces the risk of sharing files which should remain private.

OVAL details

Items not found violating tftpd secure mode:

Object oval:ssg:obj:1581 of type textfilecontent54_object
FilepathPatternInstance
/etc/xinetd.d/tftp^[\s]*server_args[\s]+=[\s]+\-s[\s]+.+$1
Uninstall talk-server Packagexccdf_org.ssgproject.content_rule_uninstall_talk-server CCE-

Uninstall talk-server Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_talk-server
Result
notselected
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-

references:  test_attestation

Description

The talk-server package can be removed with the following command:

# yum erase talk-server

Rationale

The talk software presents a security risk as it uses unencrypted protocols for communications. Removing the talk-server package decreases the risk of the accidental (or intentional) activation of talk services.

OVAL details

Items not found violating package talk-server is removed:

Object oval:ssg:obj:2181 of type rpminfo_object
Name
talk-server
Uninstall talk Packagexccdf_org.ssgproject.content_rule_package_talk_removed CCE-

Uninstall talk Package

Rule IDxccdf_org.ssgproject.content_rule_package_talk_removed
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-

references:  test_attestation

Description

The talk package contains the client program for the Internet talk protocol, which allows the user to chat with other users on different systems. Talk is a communication program which copies lines from one terminal to the terminal of another user.

Rationale

The talk software presents a security risk as it uses unencrypted protocols for communications. Removing the talk package decreases the risk of the accidental (or intentional) activation of talk client program.

OVAL details

Items not found violating package talk is removed:

Object oval:ssg:obj:1536 of type rpminfo_object
Name
talk
Disable Automatic Bug Reporting Tool (abrtd)xccdf_org.ssgproject.content_rule_service_abrtd_disabled CCE-27247-6

Disable Automatic Bug Reporting Tool (abrtd)

Rule IDxccdf_org.ssgproject.content_rule_service_abrtd_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27247-6

references:  CM-7, 381

Description

The Automatic Bug Reporting Tool (abrtd) daemon collects and reports crash data when an application crash is detected. Using a variety of plugins, abrtd can email crash reports to system administrators, log crash reports to files, or forward crash reports to a centralized issue tracking system such as RHTSupport. The abrtd service can be disabled with the following command:

# chkconfig abrtd off

Rationale

Mishandling crash data could expose sensitive information about vulnerabilities in software executing on the local machine, as well as sensitive information from within a process's address space or registers.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1702 of type runlevel_object
Service nameRunlevel
abrtd0
State oval:ssg:ste:1703 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1704 of type runlevel_object
Service nameRunlevel
abrtd1
State oval:ssg:ste:1703 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1705 of type runlevel_object
Service nameRunlevel
abrtd2
State oval:ssg:ste:1703 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1706 of type runlevel_object
Service nameRunlevel
abrtd3
State oval:ssg:ste:1703 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1707 of type runlevel_object
Service nameRunlevel
abrtd4
State oval:ssg:ste:1703 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1708 of type runlevel_object
Service nameRunlevel
abrtd5
State oval:ssg:ste:1703 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1709 of type runlevel_object
Service nameRunlevel
abrtd6
State oval:ssg:ste:1703 of type runlevel_state
StartKill
falsetrue
Disable Advanced Configuration and Power Interface (acpid)xccdf_org.ssgproject.content_rule_service_acpid_disabled CCE-27061-1

Disable Advanced Configuration and Power Interface (acpid)

Rule IDxccdf_org.ssgproject.content_rule_service_acpid_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27061-1

references:  CM-7

Description

The Advanced Configuration and Power Interface Daemon (acpid) dispatches ACPI events (such as power/reset button depressed) to userspace programs. The acpid service can be disabled with the following command:

# chkconfig acpid off

Rationale

ACPI support is highly desirable for systems in some network roles, such as laptops or desktops. For other systems, such as servers, it may permit accidental or trivially achievable denial of service situations and disabling it is appropriate.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1456 of type runlevel_object
Service nameRunlevel
acpid0
State oval:ssg:ste:1457 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1458 of type runlevel_object
Service nameRunlevel
acpid1
State oval:ssg:ste:1457 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1459 of type runlevel_object
Service nameRunlevel
acpid2
State oval:ssg:ste:1457 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1460 of type runlevel_object
Service nameRunlevel
acpid3
State oval:ssg:ste:1457 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1461 of type runlevel_object
Service nameRunlevel
acpid4
State oval:ssg:ste:1457 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1462 of type runlevel_object
Service nameRunlevel
acpid5
State oval:ssg:ste:1457 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1463 of type runlevel_object
Service nameRunlevel
acpid6
State oval:ssg:ste:1457 of type runlevel_state
StartKill
falsetrue
Disable Certmonger Service (certmonger)xccdf_org.ssgproject.content_rule_service_certmonger_disabled CCE-27267-4

Disable Certmonger Service (certmonger)

Rule IDxccdf_org.ssgproject.content_rule_service_certmonger_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27267-4

references:  CM-7

Description

Certmonger is a D-Bus based service that attempts to simplify interaction with certifying authorities on networks which use public-key infrastructure. It is often combined with Red Hat's IPA (Identity Policy Audit) security information management solution to aid in the management of certificates. The certmonger service can be disabled with the following command:

# chkconfig certmonger off

Rationale

The services provided by certmonger may be essential for systems fulfilling some roles a PKI infrastructure, but its functionality is not necessary for many other use cases.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1669 of type runlevel_object
Service nameRunlevel
certmonger0
State oval:ssg:ste:1670 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1671 of type runlevel_object
Service nameRunlevel
certmonger1
State oval:ssg:ste:1670 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1672 of type runlevel_object
Service nameRunlevel
certmonger2
State oval:ssg:ste:1670 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1673 of type runlevel_object
Service nameRunlevel
certmonger3
State oval:ssg:ste:1670 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1674 of type runlevel_object
Service nameRunlevel
certmonger4
State oval:ssg:ste:1670 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1675 of type runlevel_object
Service nameRunlevel
certmonger5
State oval:ssg:ste:1670 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1676 of type runlevel_object
Service nameRunlevel
certmonger6
State oval:ssg:ste:1670 of type runlevel_state
StartKill
falsetrue
Disable Control Group Config (cgconfig)xccdf_org.ssgproject.content_rule_service_cgconfig_disabled CCE-27250-0

Disable Control Group Config (cgconfig)

Rule IDxccdf_org.ssgproject.content_rule_service_cgconfig_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27250-0

references:  CM-7

Description

Control groups allow an administrator to allocate system resources (such as CPU, memory, network bandwidth, etc) among a defined group (or groups) of processes executing on a system. The cgconfig daemon starts at boot and establishes the predefined control groups. The cgconfig service can be disabled with the following command:

# chkconfig cgconfig off

Rationale

Unless control groups are used to manage system resources, running the cgconfig service is not necessary.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:2091 of type runlevel_object
Service nameRunlevel
cgconfig0
State oval:ssg:ste:2092 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2093 of type runlevel_object
Service nameRunlevel
cgconfig1
State oval:ssg:ste:2092 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2094 of type runlevel_object
Service nameRunlevel
cgconfig2
State oval:ssg:ste:2092 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2095 of type runlevel_object
Service nameRunlevel
cgconfig3
State oval:ssg:ste:2092 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2096 of type runlevel_object
Service nameRunlevel
cgconfig4
State oval:ssg:ste:2092 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2097 of type runlevel_object
Service nameRunlevel
cgconfig5
State oval:ssg:ste:2092 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2098 of type runlevel_object
Service nameRunlevel
cgconfig6
State oval:ssg:ste:2092 of type runlevel_state
StartKill
falsetrue
Disable Control Group Rules Engine (cgred)xccdf_org.ssgproject.content_rule_service_cgred_disabled CCE-27252-6

Disable Control Group Rules Engine (cgred)

Rule IDxccdf_org.ssgproject.content_rule_service_cgred_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27252-6

references:  CM-7

Description

The cgred service moves tasks into control groups according to parameters set in the /etc/cgrules.conf configuration file. The cgred service can be disabled with the following command:

# chkconfig cgred off

Rationale

Unless control groups are used to manage system resources, running the cgred service service is not necessary.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:2208 of type runlevel_object
Service nameRunlevel
cgred0
State oval:ssg:ste:2209 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2210 of type runlevel_object
Service nameRunlevel
cgred1
State oval:ssg:ste:2209 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2211 of type runlevel_object
Service nameRunlevel
cgred2
State oval:ssg:ste:2209 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2212 of type runlevel_object
Service nameRunlevel
cgred3
State oval:ssg:ste:2209 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2213 of type runlevel_object
Service nameRunlevel
cgred4
State oval:ssg:ste:2209 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2214 of type runlevel_object
Service nameRunlevel
cgred5
State oval:ssg:ste:2209 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2215 of type runlevel_object
Service nameRunlevel
cgred6
State oval:ssg:ste:2209 of type runlevel_state
StartKill
falsetrue
Disable CPU Speed (cpuspeed)xccdf_org.ssgproject.content_rule_service_cpuspeed_disabled CCE-26973-8

Disable CPU Speed (cpuspeed)

Rule IDxccdf_org.ssgproject.content_rule_service_cpuspeed_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26973-8

references:  CM-7

Description

The cpuspeed service can adjust the clock speed of supported CPUs based upon the current processing load thereby conserving power and reducing heat. The cpuspeed service can be disabled with the following command:

# chkconfig cpuspeed off

Rationale

The cpuspeed service is only necessary if adjusting the CPU clock speed provides benefit. Traditionally this has included laptops (to enhance battery life), but may also apply to server or desktop environments where conserving power is highly desirable or necessary.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:2283 of type runlevel_object
Service nameRunlevel
cpuspeed0
State oval:ssg:ste:2284 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2285 of type runlevel_object
Service nameRunlevel
cpuspeed1
State oval:ssg:ste:2284 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2286 of type runlevel_object
Service nameRunlevel
cpuspeed2
State oval:ssg:ste:2284 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2287 of type runlevel_object
Service nameRunlevel
cpuspeed3
State oval:ssg:ste:2284 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2288 of type runlevel_object
Service nameRunlevel
cpuspeed4
State oval:ssg:ste:2284 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2289 of type runlevel_object
Service nameRunlevel
cpuspeed5
State oval:ssg:ste:2284 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2290 of type runlevel_object
Service nameRunlevel
cpuspeed6
State oval:ssg:ste:2284 of type runlevel_state
StartKill
falsetrue
Disable Hardware Abstraction Layer Service (haldaemon)xccdf_org.ssgproject.content_rule_service_haldaemon_disabled CCE-27086-8

Disable Hardware Abstraction Layer Service (haldaemon)

Rule IDxccdf_org.ssgproject.content_rule_service_haldaemon_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27086-8

references:  CM-7

Description

The Hardware Abstraction Layer Daemon (haldaemon) collects and maintains information about the system's hardware configuration. This service is required on a workstation running a desktop environment, and may be necessary on any system which deals with removable media or devices. The haldaemon service can be disabled with the following command:

# chkconfig haldaemon off

Rationale

The haldaemon provides essential functionality on systems that use removable media or devices, but can be disabled for systems that do not require these.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1948 of type runlevel_object
Service nameRunlevel
haldaemon0
State oval:ssg:ste:1949 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1950 of type runlevel_object
Service nameRunlevel
haldaemon1
State oval:ssg:ste:1949 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1951 of type runlevel_object
Service nameRunlevel
haldaemon2
State oval:ssg:ste:1949 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1952 of type runlevel_object
Service nameRunlevel
haldaemon3
State oval:ssg:ste:1949 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1953 of type runlevel_object
Service nameRunlevel
haldaemon4
State oval:ssg:ste:1949 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1954 of type runlevel_object
Service nameRunlevel
haldaemon5
State oval:ssg:ste:1949 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1955 of type runlevel_object
Service nameRunlevel
haldaemon6
State oval:ssg:ste:1949 of type runlevel_state
StartKill
falsetrue
Enable IRQ Balance (irqbalance)xccdf_org.ssgproject.content_rule_service_irqbalance_enabled CCE-26990-2

Enable IRQ Balance (irqbalance)

Rule IDxccdf_org.ssgproject.content_rule_service_irqbalance_enabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26990-2

references:  CM-7

Description

The irqbalance service optimizes the balance between power savings and performance through distribution of hardware interrupts across multiple processors. The irqbalance service can be enabled with the following command:

# chkconfig --level 2345 irqbalance on

Rationale

In an environment with multiple processors (now common), the irqbalance service provides potential speedups for handling interrupt requests.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1735 of type runlevel_object
Service nameRunlevel
irqbalance0
State oval:ssg:ste:1736 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1737 of type runlevel_object
Service nameRunlevel
irqbalance1
State oval:ssg:ste:1736 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1738 of type runlevel_object
Service nameRunlevel
irqbalance2
State oval:ssg:ste:1736 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1739 of type runlevel_object
Service nameRunlevel
irqbalance3
State oval:ssg:ste:1736 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1740 of type runlevel_object
Service nameRunlevel
irqbalance4
State oval:ssg:ste:1736 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1741 of type runlevel_object
Service nameRunlevel
irqbalance5
State oval:ssg:ste:1736 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1742 of type runlevel_object
Service nameRunlevel
irqbalance6
State oval:ssg:ste:1736 of type runlevel_state
StartKill
truefalse
Disable KDump Kernel Crash Analyzer (kdump)xccdf_org.ssgproject.content_rule_service_kdump_disabled CCE-26850-8

Disable KDump Kernel Crash Analyzer (kdump)

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

identifiers:  CCE-26850-8

references:  CM-7

Description

The kdump service provides a kernel crash dump analyzer. It uses the kexec system call to boot a secondary kernel ("capture" kernel) following a system crash, which can load information from the crashed kernel for analysis. The kdump service can be disabled with the following command:

# chkconfig kdump off

Rationale

Unless the system is used for kernel development or testing, there is little need to run the kdump service.

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
kdump0falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
kdump1falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
kdump2falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
kdump3truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
kdump4truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
kdump5truefalse

Items found violating Runlevel test:

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

#
# Stop kdump if currently running
#
service kdump stop
Disable Software RAID Monitor (mdmonitor)xccdf_org.ssgproject.content_rule_service_mdmonitor_disabled CCE-27193-2

Disable Software RAID Monitor (mdmonitor)

Rule IDxccdf_org.ssgproject.content_rule_service_mdmonitor_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27193-2

references:  CM-7

Description

The mdmonitor service is used for monitoring a software RAID array; hardware RAID setups do not use this service. The mdmonitor service can be disabled with the following command:

# chkconfig mdmonitor off

Rationale

If software RAID monitoring is not required, there is no need to run this service.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1866 of type runlevel_object
Service nameRunlevel
mdmonitor0
State oval:ssg:ste:1867 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1868 of type runlevel_object
Service nameRunlevel
mdmonitor1
State oval:ssg:ste:1867 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1869 of type runlevel_object
Service nameRunlevel
mdmonitor2
State oval:ssg:ste:1867 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1870 of type runlevel_object
Service nameRunlevel
mdmonitor3
State oval:ssg:ste:1867 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1871 of type runlevel_object
Service nameRunlevel
mdmonitor4
State oval:ssg:ste:1867 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1872 of type runlevel_object
Service nameRunlevel
mdmonitor5
State oval:ssg:ste:1867 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1873 of type runlevel_object
Service nameRunlevel
mdmonitor6
State oval:ssg:ste:1867 of type runlevel_state
StartKill
falsetrue
Disable D-Bus IPC Service (messagebus)xccdf_org.ssgproject.content_rule_service_messagebus_disabled CCE-26913-4

Disable D-Bus IPC Service (messagebus)

Rule IDxccdf_org.ssgproject.content_rule_service_messagebus_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26913-4

references:  CM-7

Description

D-Bus provides an IPC mechanism used by a growing list of programs, such as those used for Gnome, Bluetooth, and Avahi. Due to these dependencies, disabling D-Bus may not be practical for many systems. The messagebus service can be disabled with the following command:

# chkconfig messagebus off

Rationale

If no services which require D-Bus are needed, then it can be disabled. As a broker for IPC between processes of different privilege levels, it could be a target for attack. However, disabling D-Bus is likely to be impractical for any system which needs to provide a graphical login session.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1826 of type runlevel_object
Service nameRunlevel
messagebus0
State oval:ssg:ste:1827 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1828 of type runlevel_object
Service nameRunlevel
messagebus1
State oval:ssg:ste:1827 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1829 of type runlevel_object
Service nameRunlevel
messagebus2
State oval:ssg:ste:1827 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1830 of type runlevel_object
Service nameRunlevel
messagebus3
State oval:ssg:ste:1827 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1831 of type runlevel_object
Service nameRunlevel
messagebus4
State oval:ssg:ste:1827 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1832 of type runlevel_object
Service nameRunlevel
messagebus5
State oval:ssg:ste:1827 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1833 of type runlevel_object
Service nameRunlevel
messagebus6
State oval:ssg:ste:1827 of type runlevel_state
StartKill
falsetrue
Disable Network Console (netconsole)xccdf_org.ssgproject.content_rule_service_netconsole_disabled CCE-27254-2

Disable Network Console (netconsole)

Rule IDxccdf_org.ssgproject.content_rule_service_netconsole_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27254-2

references:  CM-7, 381

Description

The netconsole service is responsible for loading the netconsole kernel module, which logs kernel printk messages over UDP to a syslog server. This allows debugging of problems where disk logging fails and serial consoles are impractical. The netconsole service can be disabled with the following command:

# chkconfig netconsole off

Rationale

The netconsole service is not necessary unless there is a need to debug kernel panics, which is not common.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1522 of type runlevel_object
Service nameRunlevel
netconsole0
State oval:ssg:ste:1523 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1524 of type runlevel_object
Service nameRunlevel
netconsole1
State oval:ssg:ste:1523 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1525 of type runlevel_object
Service nameRunlevel
netconsole2
State oval:ssg:ste:1523 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1526 of type runlevel_object
Service nameRunlevel
netconsole3
State oval:ssg:ste:1523 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1527 of type runlevel_object
Service nameRunlevel
netconsole4
State oval:ssg:ste:1523 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1528 of type runlevel_object
Service nameRunlevel
netconsole5
State oval:ssg:ste:1523 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1529 of type runlevel_object
Service nameRunlevel
netconsole6
State oval:ssg:ste:1523 of type runlevel_state
StartKill
falsetrue
Disable ntpdate Service (ntpdate)xccdf_org.ssgproject.content_rule_service_ntpdate_disabled CCE-27256-7

Disable ntpdate Service (ntpdate)

Rule IDxccdf_org.ssgproject.content_rule_service_ntpdate_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27256-7

references:  CM-7, 382, test_attestation

Description

The ntpdate service sets the local hardware clock by polling NTP servers when the system boots. It synchronizes to the NTP servers listed in /etc/ntp/step-tickers or /etc/ntp.conf and then sets the local hardware clock to the newly synchronized system time. The ntpdate service can be disabled with the following command:

# chkconfig ntpdate off

Rationale

The ntpdate service may only be suitable for systems which are rebooted frequently enough that clock drift does not cause problems between reboots. In any event, the functionality of the ntpdate service is now available in the ntpd program and should be considered deprecated.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1391 of type runlevel_object
Service nameRunlevel
ntpdate0
State oval:ssg:ste:1392 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1393 of type runlevel_object
Service nameRunlevel
ntpdate1
State oval:ssg:ste:1392 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1394 of type runlevel_object
Service nameRunlevel
ntpdate2
State oval:ssg:ste:1392 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1395 of type runlevel_object
Service nameRunlevel
ntpdate3
State oval:ssg:ste:1392 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1396 of type runlevel_object
Service nameRunlevel
ntpdate4
State oval:ssg:ste:1392 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1397 of type runlevel_object
Service nameRunlevel
ntpdate5
State oval:ssg:ste:1392 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1398 of type runlevel_object
Service nameRunlevel
ntpdate6
State oval:ssg:ste:1392 of type runlevel_state
StartKill
falsetrue
Disable Odd Job Daemon (oddjobd)xccdf_org.ssgproject.content_rule_service_oddjobd_disabled CCE-27257-5

Disable Odd Job Daemon (oddjobd)

Rule IDxccdf_org.ssgproject.content_rule_service_oddjobd_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27257-5

references:  CM-7, 381, test_attestation

Description

The oddjobd service exists to provide an interface and access control mechanism through which specified privileged tasks can run tasks for unprivileged client applications. Communication with oddjobd through the system message bus. The oddjobd service can be disabled with the following command:

# chkconfig oddjobd off

Rationale

The oddjobd service may provide necessary functionality in some environments, and can be disabled if it is not needed. Execution of tasks by privileged programs, on behalf of unprivileged ones, has traditionally been a source of privilege escalation security issues.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:2195 of type runlevel_object
Service nameRunlevel
oddjobd0
State oval:ssg:ste:2196 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2197 of type runlevel_object
Service nameRunlevel
oddjobd1
State oval:ssg:ste:2196 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2198 of type runlevel_object
Service nameRunlevel
oddjobd2
State oval:ssg:ste:2196 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2199 of type runlevel_object
Service nameRunlevel
oddjobd3
State oval:ssg:ste:2196 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2200 of type runlevel_object
Service nameRunlevel
oddjobd4
State oval:ssg:ste:2196 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2201 of type runlevel_object
Service nameRunlevel
oddjobd5
State oval:ssg:ste:2196 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2202 of type runlevel_object
Service nameRunlevel
oddjobd6
State oval:ssg:ste:2196 of type runlevel_state
StartKill
falsetrue
Disable Portreserve (portreserve)xccdf_org.ssgproject.content_rule_service_portreserve_disabled CCE-27258-3

Disable Portreserve (portreserve)

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

identifiers:  CCE-27258-3

references:  CM-7, test_attestation

Description

The portreserve service is a TCP port reservation utility that can be used to prevent portmap from binding to well known TCP ports that are required for other services. The portreserve service can be disabled with the following command:

# chkconfig portreserve off

Rationale

The portreserve service provides helpful functionality by preventing conflicting usage of ports in the reserved port range, but it can be disabled if not needed.

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
portreserve0falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
portreserve1falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
portreserve2truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
portreserve3truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
portreserve4truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
portreserve5truefalse

Items found violating Runlevel test:

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

#
# Stop portreserve if currently running
#
service portreserve stop
Enable Process Accounting (psacct)xccdf_org.ssgproject.content_rule_service_psacct_enabled CCE-27259-1

Enable Process Accounting (psacct)

Rule IDxccdf_org.ssgproject.content_rule_service_psacct_enabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27259-1

references:  AU-12, CM-7, test_attestation

Description

The process accounting service, psacct, works with programs including acct and ac to allow system administrators to view user activity, such as commands issued by users of the system. The psacct service can be enabled with the following command:

# chkconfig --level 2345 psacct on

Rationale

The psacct service can provide administrators a convenient view into some user activities. However, it should be noted that the auditing system and its audit records provide more authoritative and comprehensive records.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1902 of type runlevel_object
Service nameRunlevel
psacct0
State oval:ssg:ste:1903 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1904 of type runlevel_object
Service nameRunlevel
psacct1
State oval:ssg:ste:1903 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1905 of type runlevel_object
Service nameRunlevel
psacct2
State oval:ssg:ste:1903 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1906 of type runlevel_object
Service nameRunlevel
psacct3
State oval:ssg:ste:1903 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1907 of type runlevel_object
Service nameRunlevel
psacct4
State oval:ssg:ste:1903 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1908 of type runlevel_object
Service nameRunlevel
psacct5
State oval:ssg:ste:1903 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:1909 of type runlevel_object
Service nameRunlevel
psacct6
State oval:ssg:ste:1903 of type runlevel_state
StartKill
truefalse
Disable Apache Qpid (qpidd)xccdf_org.ssgproject.content_rule_service_qpidd_disabled CCE-26928-2

Disable Apache Qpid (qpidd)

Rule IDxccdf_org.ssgproject.content_rule_service_qpidd_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26928-2

references:  CM-7, 382

Description

The qpidd service provides high speed, secure, guaranteed delivery services. It is an implementation of the Advanced Message Queuing Protocol. By default the qpidd service will bind to port 5672 and listen for connection attempts. The qpidd service can be disabled with the following command:

# chkconfig qpidd off

Rationale

The qpidd service is automatically installed when the "base" package selection is selected during installation. The qpidd service listens for network connections, which increases the attack surface of the system. If the system is not intended to receive AMQP traffic, then the qpidd service is not needed and should be disabled or removed.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:2028 of type runlevel_object
Service nameRunlevel
qpidd0
State oval:ssg:ste:2029 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2030 of type runlevel_object
Service nameRunlevel
qpidd1
State oval:ssg:ste:2029 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2031 of type runlevel_object
Service nameRunlevel
qpidd2
State oval:ssg:ste:2029 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2032 of type runlevel_object
Service nameRunlevel
qpidd3
State oval:ssg:ste:2029 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2033 of type runlevel_object
Service nameRunlevel
qpidd4
State oval:ssg:ste:2029 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2034 of type runlevel_object
Service nameRunlevel
qpidd5
State oval:ssg:ste:2029 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2035 of type runlevel_object
Service nameRunlevel
qpidd6
State oval:ssg:ste:2029 of type runlevel_state
StartKill
falsetrue
Disable Quota Netlink (quota_nld)xccdf_org.ssgproject.content_rule_service_quota_nld_disabled CCE-27260-9

Disable Quota Netlink (quota_nld)

Rule IDxccdf_org.ssgproject.content_rule_service_quota_nld_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27260-9

references:  CM-7, test_attestation

Description

The quota_nld service provides notifications to users of disk space quota violations. It listens to the kernel via a netlink socket for disk quota violations and notifies the appropriate user of the violation using D-Bus or by sending a message to the terminal that the user has last accessed. The quota_nld service can be disabled with the following command:

# chkconfig quota_nld off

Rationale

If disk quotas are enforced on the local system, then the quota_nld service likely provides useful functionality and should remain enabled. However, if disk quotas are not used or user notification of disk quota violation is not desired then there is no need to run this service.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1923 of type runlevel_object
Service nameRunlevel
quota_nld0
State oval:ssg:ste:1924 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1925 of type runlevel_object
Service nameRunlevel
quota_nld1
State oval:ssg:ste:1924 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1926 of type runlevel_object
Service nameRunlevel
quota_nld2
State oval:ssg:ste:1924 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1927 of type runlevel_object
Service nameRunlevel
quota_nld3
State oval:ssg:ste:1924 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1928 of type runlevel_object
Service nameRunlevel
quota_nld4
State oval:ssg:ste:1924 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1929 of type runlevel_object
Service nameRunlevel
quota_nld5
State oval:ssg:ste:1924 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1930 of type runlevel_object
Service nameRunlevel
quota_nld6
State oval:ssg:ste:1924 of type runlevel_state
StartKill
falsetrue
Disable Network Router Discovery Daemon (rdisc)xccdf_org.ssgproject.content_rule_service_rdisc_disabled CCE-27261-7

Disable Network Router Discovery Daemon (rdisc)

Rule IDxccdf_org.ssgproject.content_rule_service_rdisc_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27261-7

references:  AC-4, CM-7, 382, test_attestation

Description

The rdisc service implements the client side of the ICMP Internet Router Discovery Protocol (IRDP), which allows discovery of routers on the local subnet. If a router is discovered then the local routing table is updated with a corresponding default route. By default this daemon is disabled. The rdisc service can be disabled with the following command:

# chkconfig rdisc off

Rationale

General-purpose systems typically have their network and routing information configured statically by a system administrator. Workstations or some special-purpose systems often use DHCP (instead of IRDP) to retrieve dynamic network configuration information.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1609 of type runlevel_object
Service nameRunlevel
rdisc0
State oval:ssg:ste:1610 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1611 of type runlevel_object
Service nameRunlevel
rdisc1
State oval:ssg:ste:1610 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1612 of type runlevel_object
Service nameRunlevel
rdisc2
State oval:ssg:ste:1610 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1613 of type runlevel_object
Service nameRunlevel
rdisc3
State oval:ssg:ste:1610 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1614 of type runlevel_object
Service nameRunlevel
rdisc4
State oval:ssg:ste:1610 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1615 of type runlevel_object
Service nameRunlevel
rdisc5
State oval:ssg:ste:1610 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1616 of type runlevel_object
Service nameRunlevel
rdisc6
State oval:ssg:ste:1610 of type runlevel_state
StartKill
falsetrue
Disable Red Hat Network Service (rhnsd)xccdf_org.ssgproject.content_rule_service_rhnsd_disabled CCE-26846-6

Disable Red Hat Network Service (rhnsd)

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

identifiers:  CCE-26846-6

references:  CM-7, 382, test_attestation

Description

The Red Hat Network service automatically queries Red Hat Network servers to determine whether there are any actions that should be executed, such as package updates. This only occurs if the system was registered to an RHN server or satellite and managed as such. The rhnsd service can be disabled with the following command:

# chkconfig rhnsd off

Rationale

Although systems management and patching is extremely important to system security, management by a system outside the enterprise enclave is not desirable for some environments. However, if the system is being managed by RHN or RHN Satellite Server the rhnsd daemon can remain on.

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
rhnsd0falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
rhnsd1falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
rhnsd2truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
rhnsd3truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
rhnsd4truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
rhnsd5truefalse

Items found violating Runlevel test:

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

#
# Stop rhnsd if currently running
#
service rhnsd stop
Disable Red Hat Subscription Manager Daemon (rhsmcertd)xccdf_org.ssgproject.content_rule_service_rhsmcertd_disabled CCE-27262-5

Disable Red Hat Subscription Manager Daemon (rhsmcertd)

Rule IDxccdf_org.ssgproject.content_rule_service_rhsmcertd_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27262-5

references:  CM-7, test_attestation

Description

The Red Hat Subscription Manager (rhsmcertd) periodically checks for changes in the entitlement certificates for a registered system and updates it accordingly. The rhsmcertd service can be disabled with the following command:

# chkconfig rhsmcertd off

Rationale

The rhsmcertd service can provide administrators with some additional control over which of their systems are entitled to particular subscriptions. However, for systems that are managed locally or which are not expected to require remote changes to their subscription status, it is unnecessary and can be disabled.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1422 of type runlevel_object
Service nameRunlevel
rhsmcertd0
State oval:ssg:ste:1423 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1424 of type runlevel_object
Service nameRunlevel
rhsmcertd1
State oval:ssg:ste:1423 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1425 of type runlevel_object
Service nameRunlevel
rhsmcertd2
State oval:ssg:ste:1423 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1426 of type runlevel_object
Service nameRunlevel
rhsmcertd3
State oval:ssg:ste:1423 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1427 of type runlevel_object
Service nameRunlevel
rhsmcertd4
State oval:ssg:ste:1423 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1428 of type runlevel_object
Service nameRunlevel
rhsmcertd5
State oval:ssg:ste:1423 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1429 of type runlevel_object
Service nameRunlevel
rhsmcertd6
State oval:ssg:ste:1423 of type runlevel_state
StartKill
falsetrue
Disable Cyrus SASL Authentication Daemon (saslauthd)xccdf_org.ssgproject.content_rule_service_saslauthd_disabled CCE-27263-3

Disable Cyrus SASL Authentication Daemon (saslauthd)

Rule IDxccdf_org.ssgproject.content_rule_service_saslauthd_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27263-3

references:  CM-7, test_attestation

Description

The saslauthd service handles plaintext authentication requests on behalf of the SASL library. The service isolates all code requiring superuser privileges for SASL authentication into a single process, and can also be used to provide proxy authentication services to clients that do not understand SASL based authentication. The saslauthd service can be disabled with the following command:

# chkconfig saslauthd off

Rationale

The saslauthd service provides essential functionality for performing authentication in some directory environments, such as those which use Kerberos and LDAP. For others, however, in which only local files may be consulted, it is not necessary and should be disabled.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1557 of type runlevel_object
Service nameRunlevel
saslauthd0
State oval:ssg:ste:1558 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1559 of type runlevel_object
Service nameRunlevel
saslauthd1
State oval:ssg:ste:1558 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1560 of type runlevel_object
Service nameRunlevel
saslauthd2
State oval:ssg:ste:1558 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1561 of type runlevel_object
Service nameRunlevel
saslauthd3
State oval:ssg:ste:1558 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1562 of type runlevel_object
Service nameRunlevel
saslauthd4
State oval:ssg:ste:1558 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1563 of type runlevel_object
Service nameRunlevel
saslauthd5
State oval:ssg:ste:1558 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1564 of type runlevel_object
Service nameRunlevel
saslauthd6
State oval:ssg:ste:1558 of type runlevel_state
StartKill
falsetrue
Disable SMART Disk Monitoring Service (smartd)xccdf_org.ssgproject.content_rule_service_smartd_disabled CCE-26853-2

Disable SMART Disk Monitoring Service (smartd)

Rule IDxccdf_org.ssgproject.content_rule_service_smartd_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26853-2

references:  CM-7, test_attestation

Description

SMART (Self-Monitoring, Analysis, and Reporting Technology) is a feature of hard drives that allows them to detect symptoms of disk failure and relay an appropriate warning. The smartd service can be disabled with the following command:

# chkconfig smartd off

Rationale

SMART can help protect against denial of service due to failing hardware. Nevertheless, if it is not needed or the system's drives are not SMART-capable (such as solid state drives), it can be disabled.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1341 of type runlevel_object
Service nameRunlevel
smartd0
State oval:ssg:ste:1342 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1343 of type runlevel_object
Service nameRunlevel
smartd1
State oval:ssg:ste:1342 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1344 of type runlevel_object
Service nameRunlevel
smartd2
State oval:ssg:ste:1342 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1345 of type runlevel_object
Service nameRunlevel
smartd3
State oval:ssg:ste:1342 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1346 of type runlevel_object
Service nameRunlevel
smartd4
State oval:ssg:ste:1342 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1347 of type runlevel_object
Service nameRunlevel
smartd5
State oval:ssg:ste:1342 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1348 of type runlevel_object
Service nameRunlevel
smartd6
State oval:ssg:ste:1342 of type runlevel_state
StartKill
falsetrue
Disable System Statistics Reset Service (sysstat)xccdf_org.ssgproject.content_rule_service_sysstat_disabled CCE-27265-8

Disable System Statistics Reset Service (sysstat)

Rule IDxccdf_org.ssgproject.content_rule_service_sysstat_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27265-8

references:  CM-7, test_attestation

Description

The sysstat service resets various I/O and CPU performance statistics to zero in order to begin counting from a fresh state at boot time. The sysstat service can be disabled with the following command:

# chkconfig sysstat off

Rationale

By default the sysstat service merely runs a program at boot to reset the statistics, which can be retrieved using programs such as sar and sadc. These may provide useful insight into system operation, but unless used this service can be disabled.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1998 of type runlevel_object
Service nameRunlevel
sysstat0
State oval:ssg:ste:1999 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2000 of type runlevel_object
Service nameRunlevel
sysstat1
State oval:ssg:ste:1999 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2001 of type runlevel_object
Service nameRunlevel
sysstat2
State oval:ssg:ste:1999 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2002 of type runlevel_object
Service nameRunlevel
sysstat3
State oval:ssg:ste:1999 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2003 of type runlevel_object
Service nameRunlevel
sysstat4
State oval:ssg:ste:1999 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2004 of type runlevel_object
Service nameRunlevel
sysstat5
State oval:ssg:ste:1999 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2005 of type runlevel_object
Service nameRunlevel
sysstat6
State oval:ssg:ste:1999 of type runlevel_state
StartKill
falsetrue
Enable cron Servicexccdf_org.ssgproject.content_rule_service_crond_enabled CCE-27070-2

Enable cron Service

Rule IDxccdf_org.ssgproject.content_rule_service_crond_enabled
Result
pass
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-27070-2

references:  CM-7, test_attestation

Description

The crond service is used to execute commands at preconfigured times. It is required by almost all systems to perform necessary maintenance tasks, such as notifying root of system activity. The crond service can be enabled with the following command:

# chkconfig --level 2345 crond on

Rationale

Due to its usage for maintenance and security-supporting tasks, enabling the cron daemon is essential.

OVAL details

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
crond0falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
crond1falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
crond2truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
crond3truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
crond4truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
crond5truefalse

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
crond6falsetrue
Disable anacron Servicexccdf_org.ssgproject.content_rule_disable_anacron CCE-27158-5

Disable anacron Service

Rule IDxccdf_org.ssgproject.content_rule_disable_anacron
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27158-5

references:  CM-7

Description

The cronie-anacron package, which provides anacron functionality, is installed by default. The cronie-anacron package can be removed with the following command:

# yum erase cronie-anacron

Rationale

The anacron service provides cron functionality for systems such as laptops and workstations that may be shut down during the normal times that cron jobs are scheduled to run. On systems which do not require this additional functionality, anacron could needlessly increase the possible attack surface for an intruder.

Disable At Service (atd)xccdf_org.ssgproject.content_rule_service_atd_disabled CCE-27249-2

Disable At Service (atd)

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

identifiers:  CCE-27249-2

references:  CM-7, 381

Description

The at and batch commands can be used to schedule tasks that are meant to be executed only once. This allows delayed execution in a manner similar to cron, except that it is not recurring. The daemon atd keeps track of tasks scheduled via at and batch, and executes them at the specified time. The atd service can be disabled with the following command:

# chkconfig atd off

Rationale

The atd service could be used by an unsophisticated insider to carry out activities outside of a normal login session, which could complicate accountability. Furthermore, the need to schedule tasks with at or batch is not common.

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
atd0falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
atd1falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
atd2falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
atd3truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
atd4truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
atd5truefalse

Items found violating Runlevel test:

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

#
# Stop atd if currently running
#
service atd stop
Allow Only SSH Protocol 2xccdf_org.ssgproject.content_rule_sshd_allow_only_protocol2 CCE-27072-8

Allow Only SSH Protocol 2

Rule IDxccdf_org.ssgproject.content_rule_sshd_allow_only_protocol2
Result
error
Time2015-08-22T01:36:03
Severityhigh
Identifiers and References

identifiers:  CCE-27072-8

references:  AC-3(10), IA-5(1)(c), 776, 774, 1436, test_attestation

Description

Only SSH protocol version 2 connections should be permitted. The default setting in /etc/ssh/sshd_config is correct, and can be verified by ensuring that the following line appears:

Protocol 2

Rationale

SSH protocol version 1 suffers from design flaws that result in security vulnerabilities and should not be used.

OVAL details

Items not found violating sshd uses protocol 2:

Object oval:ssg:obj:1779 of type textfilecontent54_object
FilepathPatternInstance
/etc/ssh/sshd_config^[\s]*(?i)Protocol[\s]+2[\s]*(?:|(?:#.*))?$1
Remediation script:
grep -qi ^Protocol /etc/ssh/sshd_config && \
  sed -i "s/Protocol.*/Protocol 2/gI" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "Protocol 2" >> /etc/ssh/sshd_config
fi
Limit Users' SSH Accessxccdf_org.ssgproject.content_rule_sshd_limit_user_access CCE-27556-0

Limit Users' SSH Access

Rule IDxccdf_org.ssgproject.content_rule_sshd_limit_user_access
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27556-0

Description

By default, the SSH configuration allows any user with an account to access the system. In order to specify the users that are allowed to login via SSH and deny all other users, add or correct the following line in the /etc/ssh/sshd_config file:

DenyUsers USER1 USER2
Where USER1 and USER2 are valid user names.

Rationale

Specifying which accounts are allowed SSH access into the system reduces the possibility of unauthorized access to the system.

Set SSH Idle Timeout Intervalxccdf_org.ssgproject.content_rule_sshd_set_idle_timeout CCE-26919-1

Set SSH Idle Timeout Interval

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

identifiers:  CCE-26919-1

references:  879, 1133, test_attestation

Description

SSH allows administrators to set an idle timeout interval. After this interval has passed, the idle user will be automatically logged out.

To set an idle timeout interval, edit the following line in /etc/ssh/sshd_config as follows:

ClientAliveInterval 300
The timeout interval is given in seconds. To have a timeout of 15 minutes, set interval to 900.

If a shorter timeout has already been set for the login shell, that value will preempt any SSH setting made here. Keep in mind that some processes may stop SSH from correctly detecting that the user is idle.

Rationale

Causing idle users to be automatically logged out guards against compromises one system leading trivially to compromises on another.

OVAL details

Items not found violating timeout is configured:

Object oval:ssg:obj:1655 of type textfilecontent54_object
FilepathPatternInstance
/etc/ssh/sshd_config^[\s]*(?i)ClientAliveInterval[\s]+(\d+)[\s]*(?:|(?:#.*))?$1
State oval:ssg:ste:1656 of type textfilecontent54_state
Subexpression
300open(): '/etc/ssh/sshd_config' Permission denied.0
Remediation script:
sshd_idle_timeout_value="300"
grep -q ^ClientAliveInterval /etc/ssh/sshd_config && \
  sed -i "s/ClientAliveInterval.*/ClientAliveInterval $sshd_idle_timeout_value/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "ClientAliveInterval $sshd_idle_timeout_value" >> /etc/ssh/sshd_config
fi
Set SSH Client Alive Countxccdf_org.ssgproject.content_rule_sshd_set_keepalive CCE-26282-4

Set SSH Client Alive Count

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

identifiers:  CCE-26282-4

references:  879, 1133, test_attestation

Description

To ensure the SSH idle timeout occurs precisely when the ClientAliveCountMax is set, edit /etc/ssh/sshd_config as follows:

ClientAliveCountMax 0

Rationale

This ensures a user login will be terminated as soon as the ClientAliveCountMax is reached.

OVAL details

Items not found violating Tests the value of the ClientAliveCountMax setting in the /etc/ssh/sshd_config file:

Object oval:ssg:obj:2009 of type textfilecontent54_object
FilepathPatternInstance
/etc/ssh/sshd_config^[\s]*(?i)ClientAliveCountMax[\s]+([\d]+)[\s]*(?:|(?:#.*))?$1
State oval:ssg:ste:2010 of type textfilecontent54_state
Subexpression
0
Remediation script:
grep -q ^ClientAliveCountMax /etc/ssh/sshd_config && \
  sed -i "s/ClientAliveCountMax.*/ClientAliveCountMax 0/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "ClientAliveCountMax 0" >> /etc/ssh/sshd_config
fi
Disable SSH Support for .rhosts Filesxccdf_org.ssgproject.content_rule_sshd_disable_rhosts CCE-27124-7

Disable SSH Support for .rhosts Files

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

identifiers:  CCE-27124-7

references:  765, 766

Description

SSH can emulate the behavior of the obsolete rsh command in allowing users to enable insecure access to their accounts via .rhosts files.

To ensure this behavior is disabled, add or correct the following line in /etc/ssh/sshd_config:

IgnoreRhosts yes

Rationale

SSH trust relationships mean a compromise on one host can allow an attacker to move trivially to other hosts.

OVAL details

Items not found violating Tests the value of the IgnoreRhosts[\s]*(<:nocomment:>*) setting in the /etc/ssh/sshd_config file:

Object oval:ssg:obj:2014 of type textfilecontent54_object
FilepathPatternInstance
/etc/ssh/sshd_config^[\s]*(?i)IgnoreRhosts(?-i)[\s]+no[\s]*(?:|(?:#.*))?$1
Remediation script:
grep -q ^IgnoreRhosts /etc/ssh/sshd_config && \
  sed -i "s/IgnoreRhosts.*/IgnoreRhosts yes/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "IgnoreRhosts yes" >> /etc/ssh/sshd_config
fi
Disable Host-Based Authenticationxccdf_org.ssgproject.content_rule_disable_host_auth CCE-27091-8

Disable Host-Based Authentication

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

identifiers:  CCE-27091-8

references:  765, 766, test_attestation

Description

SSH's cryptographic host-based authentication is more secure than .rhosts authentication. However, it is not recommended that hosts unilaterally trust one another, even within an organization.

To disable host-based authentication, add or correct the following line in /etc/ssh/sshd_config:

HostbasedAuthentication no

Rationale

SSH trust relationships mean a compromise on one host can allow an attacker to move trivially to other hosts.

OVAL details

Items not found violating sshd HostbasedAuthentication:

Object oval:ssg:obj:2165 of type textfilecontent54_object
FilepathPatternInstance
/etc/ssh/sshd_config^[\s]*(?i)HostbasedAuthentication(?-i)[\s]+yes[\s]*(?:|(?:#.*))?$1
Remediation script:
grep -q ^HostbasedAuthentication /etc/ssh/sshd_config && \
  sed -i "s/HostbasedAuthentication.*/HostbasedAuthentication no/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "HostbasedAuthentication no" >> /etc/ssh/sshd_config
fi
Disable SSH Access via Empty Passwordsxccdf_org.ssgproject.content_rule_sshd_disable_empty_passwords CCE-26887-0

Disable SSH Access via Empty Passwords

Rule IDxccdf_org.ssgproject.content_rule_sshd_disable_empty_passwords
Result
error
Time2015-08-22T01:36:03
Severityhigh
Identifiers and References

identifiers:  CCE-26887-0

references:  765, 766, test_attestation

Description

To explicitly disallow remote login from accounts with empty passwords, add or correct the following line in /etc/ssh/sshd_config:

PermitEmptyPasswords no
Any accounts with empty passwords should be disabled immediately, and PAM configuration should prevent users from being able to assign themselves empty passwords.

Rationale

Configuring this setting for the SSH daemon provides additional assurance that remote login via SSH will require a password, even in the event of misconfiguration elsewhere.

OVAL details

Items not found violating Tests the value of the PermitEmptyPasswords[\s]*(<:nocomment:>*) setting in the /etc/ssh/sshd_config file:

Object oval:ssg:obj:1681 of type textfilecontent54_object
FilepathPatternInstance
/etc/ssh/sshd_config^[\s]*(?i)PermitEmptyPasswords(?-i)[\s]+no[\s]*(?:|(?:#.*))?$1
Remediation script:
grep -q ^PermitEmptyPasswords /etc/ssh/sshd_config && \
  sed -i "s/PermitEmptyPasswords.*/PermitEmptyPasswords no/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "PermitEmptyPasswords no" >> /etc/ssh/sshd_config
fi
Enable SSH Warning Bannerxccdf_org.ssgproject.content_rule_sshd_enable_warning_banner CCE-27112-2

Enable SSH Warning Banner

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

identifiers:  CCE-27112-2

references:  48, test_attestation

Description

To enable the warning banner and ensure it is consistent across the system, add or correct the following line in /etc/ssh/sshd_config:

Banner /etc/issue
Another section contains information on how to create an appropriate system-wide warning banner.

Rationale

The warning message reinforces policy awareness during the logon process and facilitates possible legal action against attackers. Alternatively, systems whose ownership should not be obvious should ensure usage of a banner that does not provide easy attribution.

OVAL details

Items not found violating Tests the value of the Banner[\s]+/etc/issue setting in the /etc/ssh/sshd_config file:

Object oval:ssg:obj:2027 of type textfilecontent54_object
FilepathPatternInstance
/etc/ssh/sshd_config^[\s]*(?i)Banner(?-i)[\s]+/etc/issue[\s]*(?:|(?:#.*))?$1
Remediation script:
grep -q ^Banner /etc/ssh/sshd_config && \
  sed -i "s/Banner.*/Banner \/etc\/issue/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "Banner /etc/issue" >> /etc/ssh/sshd_config
fi
Do Not Allow SSH Environment Optionsxccdf_org.ssgproject.content_rule_sshd_do_not_permit_user_env CCE-27201-3

Do Not Allow SSH Environment Options

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

identifiers:  CCE-27201-3

references:  1414, test_attestation

Description

To ensure users are not able to present environment options to the SSH daemon, add or correct the following line in /etc/ssh/sshd_config:

PermitUserEnvironment no

Rationale

SSH environment options potentially allow users to bypass access restriction in some configurations.

OVAL details

Items not found violating Check value of PermitUserEnvironment in /etc/ssh/sshd_config:

Object oval:ssg:obj:1454 of type textfilecontent54_object
FilepathPatternInstance
/etc/ssh/sshd_config^[\s]*(?i)PermitUserEnvironment(?-i)[\s]+no[\s]*(?:|(?:#.*))?$1
Remediation script:
grep -q ^PermitUserEnvironment /etc/ssh/sshd_config && \
  sed -i "s/PermitUserEnvironment.*/PermitUserEnvironment no/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "PermitUserEnvironment no" >> /etc/ssh/sshd_config
fi
Use Only Approved Ciphersxccdf_org.ssgproject.content_rule_sshd_use_approved_ciphers CCE-26555-3

Use Only Approved Ciphers

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

identifiers:  CCE-26555-3

references:  AC-3, AC-17(2), SI-7, IA-5(1)(c), IA-7, 803, 1144, 1145, 1146, test_attestation

Description

Limit the ciphers to those algorithms which are FIPS-approved. Counter (CTR) mode is also preferred over cipher-block chaining (CBC) mode. The following line in /etc/ssh/sshd_config demonstrates use of FIPS-approved ciphers:

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
The man page sshd_config(5) contains a list of supported ciphers.

Rationale

Approved algorithms should impart some level of confidence in their implementation. These are also required for compliance.

OVAL details

Items not found violating tests the value of Ciphers setting in the /etc/ssh/sshd_config file:

Object oval:ssg:obj:1782 of type textfilecontent54_object
FilepathPatternInstance
/etc/ssh/sshd_config^[\s]*(?i)Ciphers(?-i)[\s]+aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc[\s]*(?:|(?:#.*))?$1
Remediation script:
grep -q ^Ciphers /etc/ssh/sshd_config && \
  sed -i "s/Ciphers.*/Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
    echo "Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc" >> /etc/ssh/sshd_config
fi
Disable SSH Server If Possible (Unusual)xccdf_org.ssgproject.content_rule_ssh_server_disabled CCE-27054-6

Disable SSH Server If Possible (Unusual)

Rule IDxccdf_org.ssgproject.content_rule_ssh_server_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27054-6

references:  test_attestation

Description

The SSH server service, sshd, is commonly needed. However, if it can be disabled, do so. The sshd service can be disabled with the following command:

# chkconfig sshd off
This is unusual, as SSH is a common method for encrypted and authenticated remote access.

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
sshd0falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
sshd1falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
sshd2truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
sshd3truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
sshd4truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
sshd5truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
sshd6falsetrue
Remove SSH Server iptables Firewall exception (Unusual)xccdf_org.ssgproject.content_rule_ssh_server_iptables_exception CCE-27060-3

Remove SSH Server iptables Firewall exception (Unusual)

Rule IDxccdf_org.ssgproject.content_rule_ssh_server_iptables_exception
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27060-3

Description

By default, inbound connections to SSH's port are allowed. If the SSH server is not being used, this exception should be removed from the firewall configuration.

Edit the files /etc/sysconfig/iptables and /etc/sysconfig/ip6tables (if IPv6 is in use). In each file, locate and delete the line:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
This is unusual, as SSH is a common method for encrypted and authenticated remote access.

Rationale

If inbound SSH connections are not expected, disallowing access to the SSH port will avoid possible exploitation of the port by an attacker.

OVAL details

Items not found violating Test for port 22 access over ipv4:

Object oval:ssg:obj:1413 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/iptables^-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT$1

Items not found violating Test for port 22 access over ipv6:

Object oval:ssg:obj:1414 of type textfilecontent54_object
FilepathPatternInstance
/etc/sysconfig/ip6tables^-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT$1
Disable X Windows Startup By Setting Runlevelxccdf_org.ssgproject.content_rule_disable_xwindows_with_runlevel CCE-27119-7

Disable X Windows Startup By Setting Runlevel

Rule IDxccdf_org.ssgproject.content_rule_disable_xwindows_with_runlevel
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27119-7

references:  366, test_attestation

Description

Setting the system's runlevel to 3 will prevent automatic startup of the X server. To do so, ensure the following line in /etc/inittab features a 3 as shown:

id:3:initdefault:

Rationale

Unnecessary services should be disabled to decrease the attack surface of the system.

OVAL details

Items not found violating default runlevel is 3:

Object oval:ssg:obj:2251 of type textfilecontent54_object
FilepathPatternInstance
/etc/inittab^[\s]*id:3:initdefault:[\s]*$1
Remove the X Windows Package Groupxccdf_org.ssgproject.content_rule_packagegroup_xwindows_remove CCE-27198-1

Remove the X Windows Package Group

Rule IDxccdf_org.ssgproject.content_rule_packagegroup_xwindows_remove
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27198-1

references:  366, test_attestation

Description

Removing all packages which constitute the X Window System ensures users or malicious software cannot start X. To do so, run the following command:

$ sudo yum groupremove "X Window System"

Rationale

Unnecessary packages should not be installed to decrease the attack surface of the system.

OVAL details

Items not found violating package xorg-x11-server-common is removed:

Object oval:ssg:obj:2216 of type rpminfo_object
Name
xorg-x11-server-common
Disable Avahi Server Softwarexccdf_org.ssgproject.content_rule_disable_avahi CCE-27087-6

Disable Avahi Server Software

Rule IDxccdf_org.ssgproject.content_rule_disable_avahi
Result
pass
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27087-6

references:  CM-7, 366

Description

The avahi-daemon service can be disabled with the following command:

# chkconfig avahi-daemon off

Rationale

Because the Avahi daemon service keeps an open network port, it is subject to network attacks. Its functionality is convenient but is only appropriate if the local network can be trusted.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2048 of type runlevel_object
Service nameRunlevel
avahi-daemon0
State oval:ssg:ste:2049 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2050 of type runlevel_object
Service nameRunlevel
avahi-daemon1
State oval:ssg:ste:2049 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2051 of type runlevel_object
Service nameRunlevel
avahi-daemon2
State oval:ssg:ste:2049 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2052 of type runlevel_object
Service nameRunlevel
avahi-daemon3
State oval:ssg:ste:2049 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2053 of type runlevel_object
Service nameRunlevel
avahi-daemon4
State oval:ssg:ste:2049 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2054 of type runlevel_object
Service nameRunlevel
avahi-daemon5
State oval:ssg:ste:2049 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2055 of type runlevel_object
Service nameRunlevel
avahi-daemon6
State oval:ssg:ste:2049 of type runlevel_state
StartKill
falsetrue
Serve Avahi Only via Required Protocolxccdf_org.ssgproject.content_rule_avahi_ip_only CCE-27590-9

Serve Avahi Only via Required Protocol

Rule IDxccdf_org.ssgproject.content_rule_avahi_ip_only
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27590-9

references:  CM-7

Description

If you are using only IPv4, edit /etc/avahi/avahi-daemon.conf and ensure the following line exists in the [server] section:

use-ipv6=no
Similarly, if you are using only IPv6, disable IPv4 sockets with the line:
use-ipv4=no

Check Avahi Responses' TTL Fieldxccdf_org.ssgproject.content_rule_avahi_check_ttl CCE-27340-9

Check Avahi Responses' TTL Field

Rule IDxccdf_org.ssgproject.content_rule_avahi_check_ttl
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27340-9

references:  CM-7

Description

To make Avahi ignore packets unless the TTL field is 255, edit /etc/avahi/avahi-daemon.conf and ensure the following line appears in the [server] section:

check-response-ttl=yes

Rationale

This helps to ensure that only mDNS responses from the local network are processed, because the TTL field in a packet is decremented from its initial value of 255 whenever it is routed from one network to another. Although a properly-configured router or firewall should not allow mDNS packets into the local network at all, this option provides another check to ensure they are not permitted.

Prevent Other Programs from Using Avahi's Portxccdf_org.ssgproject.content_rule_avahi_prevent_port_sharing CCE-27308-6

Prevent Other Programs from Using Avahi's Port

Rule IDxccdf_org.ssgproject.content_rule_avahi_prevent_port_sharing
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27308-6

references:  CM-7

Description

To prevent other mDNS stacks from running, edit /etc/avahi/avahi-daemon.conf and ensure the following line appears in the [server] section:

disallow-other-stacks=yes

Rationale

This helps ensure that only Avahi is responsible for mDNS traffic coming from that port on the system.

Disable Avahi Publishingxccdf_org.ssgproject.content_rule_avahi_disable_publishing CCE-27526-3

Disable Avahi Publishing

Rule IDxccdf_org.ssgproject.content_rule_avahi_disable_publishing
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27526-3

references:  CM-7

Description

To prevent other mDNS stacks from running, edit /etc/avahi/avahi-daemon.conf and ensure the following line appears in the [server] section:

disallow-other-stacks=yes

Rationale

This helps ensure that only Avahi is responsible for mDNS traffic coming from that port on the system.

Restrict Information Published by Avahixccdf_org.ssgproject.content_rule_avahi_restrict_published_information CCE-27300-3

Restrict Information Published by Avahi

Rule IDxccdf_org.ssgproject.content_rule_avahi_restrict_published_information
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27300-3

references:  CM-7

Description

If it is necessary to publish some information to the network, it should not be joined by any extraneous information, or by information supplied by a non-trusted source on the system. Prevent user applications from using Avahi to publish services by adding or correcting the following line in the [publish] section:

disable-user-service-publishing=yes
Implement as many of the following lines as possible, to restrict the information published by Avahi.
publish-addresses=no
publish-hinfo=no
publish-workstation=no
publish-domain=no
Inspect the files in the directory /etc/avahi/services/. Unless there is an operational need to publish information about each of these services, delete the corresponding file.

Rationale

These options prevent publishing attempts from succeeding, and can be applied even if publishing is disabled entirely via disable-publishing. Alternatively, these can be used to restrict the types of published information in the event that some information must be published.

Disable Printer Browsing Entirely if Possiblexccdf_org.ssgproject.content_rule_cups_disable_browsing CCE-27108-0

Disable Printer Browsing Entirely if Possible

Rule IDxccdf_org.ssgproject.content_rule_cups_disable_browsing
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27108-0

references:  CM-7

Description

By default, CUPS listens on the network for printer list broadcasts on UDP port 631. This functionality is called printer browsing. To disable printer browsing entirely, edit the CUPS configuration file, located at /etc/cups/cupsd.conf, to include the following:

Browsing Off

Rationale

The CUPS print service can be configured to broadcast a list of available printers to the network. Other machines on the network, also running the CUPS print service, can be configured to listen to these broadcasts and add and configure these printers for immediate use. By disabling this browsing capability, the machine will no longer generate or receive such broadcasts.

OVAL details

Items not found violating Disable Browsing:

Object oval:ssg:obj:2291 of type textfilecontent54_object
FilepathPatternInstance
/etc/cups/cupsd.conf^[\s]*Browsing[\s]+(?:Off|No)1

Items not found violating Do not allow incoming printer information packets:

Object oval:ssg:obj:2292 of type textfilecontent54_object
FilepathPatternInstance
/etc/cups/cupsd.conf^[\s]*BrowseAllow[\s]+(?:none)1
Disable Print Server Capabilitiesxccdf_org.ssgproject.content_rule_cups_disable_printserver CCE-27107-2

Disable Print Server Capabilities

Rule IDxccdf_org.ssgproject.content_rule_cups_disable_printserver
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27107-2

references:  CM-7

Description

To prevent remote users from potentially connecting to and using locally configured printers, disable the CUPS print server sharing capabilities. To do so, limit how the server will listen for print jobs by removing the more generic port directive from /etc/cups/cupsd.conf:

Port 631
and replacing it with the Listen directive:
Listen localhost:631
This will prevent remote users from printing to locally configured printers while still allowing local users on the machine to print normally.

Rationale

By default, locally configured printers will not be shared over the network, but if this functionality has somehow been enabled, these recommendations will disable it again. Be sure to disable outgoing printer list broadcasts, or remote users will still be able to see the locally configured printers, even if they cannot actually print to them. To limit print serving to a particular set of users, use the Policy directive.

OVAL details

Items not found violating Disable the more general port directive:

Object oval:ssg:obj:1792 of type textfilecontent54_object
FilepathPatternInstance
/etc/cups/cupsd.conf^[\s]*Port[\s]+(\d)+1

Items not found violating Listen only at the localhost level:

Object oval:ssg:obj:1793 of type textfilecontent54_object
FilepathPatternInstance
/etc/cups/cupsd.conf^[\s]*Listen[\s]+(?:localhost|127\.0\.0\.1|::1):(\d)+1
Disable the CUPS Servicexccdf_org.ssgproject.content_rule_service_cups_disabled CCE-26899-5

Disable the CUPS Service

Rule IDxccdf_org.ssgproject.content_rule_service_cups_disabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26899-5

references:  CM-7

Description

The cups service can be disabled with the following command:

# chkconfig cups off

Rationale

Turn off unneeded services to reduce attack surface.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:2036 of type runlevel_object
Service nameRunlevel
cups0
State oval:ssg:ste:2037 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2038 of type runlevel_object
Service nameRunlevel
cups1
State oval:ssg:ste:2037 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2039 of type runlevel_object
Service nameRunlevel
cups2
State oval:ssg:ste:2037 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2040 of type runlevel_object
Service nameRunlevel
cups3
State oval:ssg:ste:2037 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2041 of type runlevel_object
Service nameRunlevel
cups4
State oval:ssg:ste:2037 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2042 of type runlevel_object
Service nameRunlevel
cups5
State oval:ssg:ste:2037 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:2043 of type runlevel_object
Service nameRunlevel
cups6
State oval:ssg:ste:2037 of type runlevel_state
StartKill
falsetrue
Disable DHCP Servicexccdf_org.ssgproject.content_rule_disable_dhcp_server CCE-27074-4

Disable DHCP Service

Rule IDxccdf_org.ssgproject.content_rule_disable_dhcp_server
Result
pass
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-27074-4

references:  CM-7, 366, test_attestation

Description

The dhcpd service should be disabled on any system that does not need to act as a DHCP server. The dhcpd service can be disabled with the following command:

# chkconfig dhcpd off

Rationale

Unmanaged or unintentionally activated DHCP servers may provide faulty information to clients, interfering with the operation of a legitimate site DHCP server if there is one.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1402 of type runlevel_object
Service nameRunlevel
dhcpd0
State oval:ssg:ste:1403 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1404 of type runlevel_object
Service nameRunlevel
dhcpd1
State oval:ssg:ste:1403 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1405 of type runlevel_object
Service nameRunlevel
dhcpd2
State oval:ssg:ste:1403 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1406 of type runlevel_object
Service nameRunlevel
dhcpd3
State oval:ssg:ste:1403 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1407 of type runlevel_object
Service nameRunlevel
dhcpd4
State oval:ssg:ste:1403 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1408 of type runlevel_object
Service nameRunlevel
dhcpd5
State oval:ssg:ste:1403 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1409 of type runlevel_object
Service nameRunlevel
dhcpd6
State oval:ssg:ste:1403 of type runlevel_state
StartKill
falsetrue
Uninstall DHCP Server Packagexccdf_org.ssgproject.content_rule_uninstall_dhcp_server CCE-27120-5

Uninstall DHCP Server Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_dhcp_server
Result
pass
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-27120-5

references:  CM-7, 366, test_attestation

Description

If the system does not need to act as a DHCP server, the dhcp package can be uninstalled. The dhcp package can be removed with the following command:

# yum erase dhcp

Rationale

Removing the DHCP server ensures that it cannot be easily or accidentally reactivated and disrupt network operation.

OVAL details

Items not found satisfying package dhcpd is removed:

Object oval:ssg:obj:1761 of type rpminfo_object
Name
dhcpd
Do Not Use Dynamic DNSxccdf_org.ssgproject.content_rule_dhcp_server_disable_ddns CCE-27049-6

Do Not Use Dynamic DNS

Rule IDxccdf_org.ssgproject.content_rule_dhcp_server_disable_ddns
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27049-6

references:  CM-7

Description

To prevent the DHCP server from receiving DNS information from clients, edit /etc/dhcp/dhcpd.conf, and add or correct the following global option:

ddns-update-style none;

Rationale

The Dynamic DNS protocol is used to remotely update the data served by a DNS server. DHCP servers can use Dynamic DNS to publish information about their clients. This setup carries security risks, and its use is not recommended. If Dynamic DNS must be used despite the risks it poses, it is critical that Dynamic DNS transactions be protected using TSIG or some other cryptographic authentication mechanism. See dhcpd.conf(5) for more information about protecting the DHCP server from passing along malicious DNS data from its clients.

Warnings
warning  The ddns-update-style option controls only whether the DHCP server will attempt to act as a Dynamic DNS client. As long as the DNS server itself is correctly configured to reject DDNS attempts, an incorrect ddns-update-style setting on the client is harmless (but should be fixed as a best practice).
Deny Decline Messagesxccdf_org.ssgproject.content_rule_dhcp_server_deny_decline CCE-27106-4

Deny Decline Messages

Rule IDxccdf_org.ssgproject.content_rule_dhcp_server_deny_decline
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27106-4

references:  CM-7

Description

Edit /etc/dhcp/dhcpd.conf and add or correct the following global option to prevent the DHCP server from responding the DHCPDECLINE messages, if possible:

deny declines;

Rationale

The DHCPDECLINE message can be sent by a DHCP client to indicate that it does not consider the lease offered by the server to be valid. By issuing many DHCPDECLINE messages, a malicious client can exhaust the DHCP server's pool of IP addresses, causing the DHCP server to forget old address allocations.

Deny BOOTP Queriesxccdf_org.ssgproject.content_rule_dhcp_server_deny_bootp CCE-27077-7

Deny BOOTP Queries

Rule IDxccdf_org.ssgproject.content_rule_dhcp_server_deny_bootp
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27077-7

references:  CM-7

Description

Unless your network needs to support older BOOTP clients, disable support for the bootp protocol by adding or correcting the global option:

deny bootp;

Rationale

The bootp option tells dhcpd to respond to BOOTP queries. If support for this simpler protocol is not needed, it should be disabled to remove attack vectors against the DHCP server.

Configure Loggingxccdf_org.ssgproject.content_rule_dhcp_server_configure_logging CCE-26898-7

Configure Logging

Rule IDxccdf_org.ssgproject.content_rule_dhcp_server_configure_logging
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26898-7

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

Description

Ensure that the following line exists in /etc/rsyslog.conf:

daemon.*           /var/log/daemon.log
Configure logwatch or other log monitoring tools to summarize error conditions reported by the dhcpd process.

Rationale

By default, dhcpd logs notices to the daemon facility. Sending all daemon messages to a dedicated log file is part of the syslog configuration outlined in the Logging and Auditing section

Disable DHCP Clientxccdf_org.ssgproject.content_rule_disable_dhcp_client CCE-27021-5

Disable DHCP Client

Rule IDxccdf_org.ssgproject.content_rule_disable_dhcp_client
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-27021-5

references:  CM-7, 366, test_attestation

Description

For each interface on the system (e.g. eth0), edit /etc/sysconfig/network-scripts/ifcfg-interface and make the following changes:

  • Correct the BOOTPROTO line to read:
    BOOTPROTO=none
  • Add or correct the following lines, substituting the appropriate values based on your site's addressing scheme:
    NETMASK=255.255.255.0
    IPADDR=192.168.1.2
    GATEWAY=192.168.1.1

Rationale

DHCP relies on trusting the local network. If the local network is not trusted, then it should not be used. However, the automatic configuration provided by DHCP is commonly used and the alternative, manual configuration, presents an unacceptable burden in many circumstances.

OVAL details

Items not found violating Tests the value of the ^[\s]*BOOTPROTO[\s]*=[\s]*([^#]*) expression in the /etc/sysconfig/network-scripts/ifcfg-.* file:

Object oval:ssg:obj:1653 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/sysconfig/network-scriptsifcfg-.*^[\s]*BOOTPROTO[\s]*=[\s"]*([^#"\s]*)1
State oval:ssg:ste:1654 of type textfilecontent54_state
Subexpression
^(static|none)$
Enable the NTP Daemonxccdf_org.ssgproject.content_rule_service_ntpd_enabled CCE-27093-4

Enable the NTP Daemon

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

identifiers:  CCE-27093-4

references:  AU-8(1), 160, test_attestation

Description

The ntpd service can be enabled with the following command:

# chkconfig --level 2345 ntpd on

Rationale

Enabling the ntpd service ensures that the ntpd service will be running and that the system will synchronize its time to any servers specified. This is important whether the system is configured to be a client (and synchronize only its own clock) or it is also acting as an NTP server to other systems. Synchronizing time is essential for authentication services such as Kerberos, but it is also important for maintaining accurate logs and auditing possible security breaches.

The NTP daemon offers all of the functionality of ntpdate, which is now deprecated. Additional information on this is available at http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
ntpd0falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
ntpd1falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
ntpd2falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
ntpd3falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
ntpd4falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
ntpd5falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
ntpd6falsetrue
Evaluation messages
info 
Fix execution completed and returned: 127
info 
/tmp/oscap.pP5scz/fix-XX0BCDxT: line 4: chkconfig: command not found
/tmp/oscap.pP5scz/fix-XX0BCDxT: line 9: service: command not found
info 
Failed to verify applied fix: Checking engine returns: fail
Remediation script:
#
# Enable ntpd for all run levels
#
chkconfig --level 0123456 ntpd on

#
# Start ntpd if not currently running
#
service ntpd start
Specify a Remote NTP Serverxccdf_org.ssgproject.content_rule_ntpd_specify_remote_server CCE-27098-3

Specify a Remote NTP Server

Rule IDxccdf_org.ssgproject.content_rule_ntpd_specify_remote_server
Result
pass
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-27098-3

references:  AU-8(1), 160, test_attestation

Description

To specify a remote NTP server for time synchronization, edit the file /etc/ntp.conf. Add or correct the following lines, substituting the IP or hostname of a remote NTP server for ntpserver:

server ntpserver
This instructs the NTP software to contact that remote server to obtain time data.

Rationale

Synchronizing with an NTP server makes it possible to collate system logs from multiple sources or correlate computer events with real time events.

OVAL details

Items found satisfying Ensure at least one NTP server is set:

PathContent
/etc/ntp.confserver 0.rhel.pool.ntp.org iburst
Specify Additional Remote NTP Serversxccdf_org.ssgproject.content_rule_ntpd_specify_multiple_servers CCE-26958-9

Specify Additional Remote NTP Servers

Rule IDxccdf_org.ssgproject.content_rule_ntpd_specify_multiple_servers
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26958-9

references:  AU-8(1)

Description

Additional NTP servers can be specified for time synchronization in the file /etc/ntp.conf. To do so, add additional lines of the following form, substituting the IP address or hostname of a remote NTP server for ntpserver:

server ntpserver

Rationale

Specifying additional NTP servers increases the availability of accurate time data, in the event that one of the specified servers becomes unavailable. This is typical for a system acting as an NTP server for other systems.

Disable Postfix Network Listeningxccdf_org.ssgproject.content_rule_postfix_network_listening CCE-26780-7

Disable Postfix Network Listening

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

identifiers:  CCE-26780-7

references:  CM-7, 382, test_attestation

Description

Edit the file /etc/postfix/main.cf to ensure that only the following inet_interfaces line appears:

inet_interfaces = localhost

Rationale

This ensures postfix accepts mail messages (such as cron job reports) from the local system only, and not from the network, which protects it from network attack.

OVAL details

Items found satisfying inet_interfaces in /etc/postfix/main.cf should be set correctly:

PathContent
/etc/postfix/main.cfinet_interfaces = localhost
Configure SMTP Greeting Bannerxccdf_org.ssgproject.content_rule_postfix_server_banner CCE-27508-1

Configure SMTP Greeting Banner

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

identifiers:  CCE-27508-1

references:  AC-22, AU-13

Description

Edit /etc/postfix/main.cf, and add or correct the following line, substituting some other wording for the banner information if you prefer:

smtpd_banner = $myhostname ESMTP

Rationale

The default greeting banner discloses that the listening mail process is Postfix. When remote mail senders connect to the MTA on port 25, they are greeted by an initial banner as part of the SMTP dialogue. This banner is necessary, but it frequently gives away too much information, including the MTA software which is in use, and sometimes also its version number. Remote mail senders do not need this information in order to send mail, so the banner should be changed to reveal only the hostname (which is already known and may be useful) and the word ESMTP, to indicate that the modern SMTP protocol variant is supported.

OVAL details

Items not found violating Set banner:

Object oval:ssg:obj:1579 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/postfixmain.cf^[\s]*smtpd_banner[\s]*=[\s]*\$myhostname[\s]+ESMTP[\s]*$1
Enable Postfix Servicexccdf_org.ssgproject.content_rule_service_postfix_enabled CCE-26325-1

Enable Postfix Service

Rule IDxccdf_org.ssgproject.content_rule_service_postfix_enabled
Result
notselected
Time2015-08-22T01:36:03
Severitylow
Identifiers and References

identifiers:  CCE-26325-1

references:  test_attestation

Description

The Postfix mail transfer agent is used for local mail delivery within the system. The default configuration only listens for connections to the default SMTP port (port 25) on the loopback interface (127.0.0.1). It is recommended to leave this service enabled for local mail delivery. The postfix service can be enabled with the following command:

# chkconfig --level 2345 postfix on

Rationale

Local mail delivery is essential to some system maintenance and notification tasks.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:2222 of type runlevel_object
Service nameRunlevel
postfix0
State oval:ssg:ste:2223 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:2224 of type runlevel_object
Service nameRunlevel
postfix1
State oval:ssg:ste:2223 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:2225 of type runlevel_object
Service nameRunlevel
postfix2
State oval:ssg:ste:2223 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:2226 of type runlevel_object
Service nameRunlevel
postfix3
State oval:ssg:ste:2223 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:2227 of type runlevel_object
Service nameRunlevel
postfix4
State oval:ssg:ste:2223 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:2228 of type runlevel_object
Service nameRunlevel
postfix5
State oval:ssg:ste:2223 of type runlevel_state
StartKill
truefalse

Items not found violating Runlevel test:

Object oval:ssg:obj:2229 of type runlevel_object
Service nameRunlevel
postfix6
State oval:ssg:ste:2223 of type runlevel_state
StartKill
truefalse
Uninstall Sendmail Packagexccdf_org.ssgproject.content_rule_package_sendmail_removed CCE-27515-6

Uninstall Sendmail Package

Rule IDxccdf_org.ssgproject.content_rule_package_sendmail_removed
Result
pass
Time2015-08-22T01:36:03
Severitymedium
Identifiers and References

identifiers:  CCE-27515-6

references:  CM-7, test_attestation

Description

Sendmail is not the default mail transfer agent and is not installed by default. The sendmail package can be removed with the following command:

# yum erase sendmail

Rationale

The sendmail software was not developed with security in mind and its design prevents it from being effectively contained by SELinux. Postfix should be used instead.

OVAL details

Items not found satisfying package sendmail is removed:

Object oval:ssg:obj:1441 of type rpminfo_object
Name
sendmail
Configure LDAP Client to Use TLS For All Transactionsxccdf_org.ssgproject.content_rule_ldap_client_start_tls CCE-26690-8

Configure LDAP Client to Use TLS For All Transactions

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

identifiers:  CCE-26690-8

references:  CM-7, 776, 778, 1453, test_attestation

Description

Configure LDAP to enforce TLS use. First, edit the file /etc/pam_ldap.conf, and add or correct the following lines:

ssl start_tls
Then review the LDAP server and ensure TLS has been configured.

Rationale

The ssl directive specifies whether to use ssl or not. If not specified it will default to no. It should be set to start_tls rather than doing LDAP over SSL.

OVAL details

Items not found satisfying Tests the value of the ssl start_tls setting in the /etc/pam_ldap.conf file:

Object oval:ssg:obj:2113 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam_ldap.conf^[\s]*ssl[\s]+start_tls[\s]*$1
Configure Certificate Directives for LDAP Use of TLSxccdf_org.ssgproject.content_rule_ldap_client_tls_cacertpath CCE-27189-0

Configure Certificate Directives for LDAP Use of TLS

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

identifiers:  CCE-27189-0

references:  CM-7, 776, 778, 1453, test_attestation

Description

Ensure a copy of a trusted CA certificate has been placed in the file /etc/pki/tls/CA/cacert.pem. Configure LDAP to enforce TLS use and to trust certificates signed by that CA. First, edit the file /etc/pam_ldap.conf, and add or correct either of the following lines:

tls_cacertdir /etc/pki/tls/CA
or
tls_cacertfile /etc/pki/tls/CA/cacert.pem
Then review the LDAP server and ensure TLS has been configured.

Rationale

The tls_cacertdir or tls_cacertfile directives are required when tls_checkpeer is configured (which is the default for openldap versions 2.1 and up). These directives define the path to the trust certificates signed by the site CA.

OVAL details

Items not found satisfying Tests the value of the tls_cacertdir setting in the /etc/pam_ldap.conf file:

Object oval:ssg:obj:2219 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam_ldap.conf^[\s]*tls_cacertdir[\s]+(.*)$1

Items not found satisfying Tests the value of the tls_cacertfile setting in the /etc/pam_ldap.conf file:

Object oval:ssg:obj:2220 of type textfilecontent54_object
FilepathPatternInstance
/etc/pam_ldap.conf^[\s]*tls_cacertfile[\s]+(.*)$1
Uninstall openldap-servers Packagexccdf_org.ssgproject.content_rule_package_openldap-servers_removed CCE-26858-1

Uninstall openldap-servers Package

Rule IDxccdf_org.ssgproject.content_rule_package_openldap-servers_removed
Result
pass
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26858-1

references:  CM-7, 366, test_attestation

Description

The openldap-servers package should be removed if not in use. Is this machine the OpenLDAP server? If not, remove the package.

$ sudo yum erase openldap-servers
The openldap-servers RPM is not installed by default on RHEL 6 machines. It is needed only by the OpenLDAP server, not by the clients which use LDAP for authentication. If the system is not intended for use as an LDAP Server it should be removed.

Rationale

Unnecessary packages should not be installed to decrease the attack surface of the system. While this software is clearly essential on an LDAP server, it is not necessary on typical desktop or workstation systems.

OVAL details

Items not found satisfying package openldap-servers is removed:

Object oval:ssg:obj:1812 of type rpminfo_object
Name
openldap-servers
Disable Network File System Lock Service (nfslock)xccdf_org.ssgproject.content_rule_service_nfslock_disabled CCE-27104-9

Disable Network File System Lock Service (nfslock)

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

identifiers:  CCE-27104-9

Description

The Network File System Lock (nfslock) service starts the required remote procedure call (RPC) processes which allow clients to lock files on the server. If the local machine is not configured to mount NFS filesystems then this service should be disabled. The nfslock service can be disabled with the following command:

# chkconfig nfslock off

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
nfslock0falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
nfslock1falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
nfslock2falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
nfslock3truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
nfslock4truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
nfslock5truefalse

Items found violating Runlevel test:

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

#
# Stop nfslock if currently running
#
service nfslock stop
Disable Secure RPC Client Service (rpcgssd)xccdf_org.ssgproject.content_rule_service_rpcgssd_disabled CCE-26864-9

Disable Secure RPC Client Service (rpcgssd)

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

identifiers:  CCE-26864-9

Description

The rpcgssd service manages RPCSEC GSS contexts required to secure protocols that use RPC (most often Kerberos and NFS). The rpcgssd service is the client-side of RPCSEC GSS. If the system does not require secure RPC then this service should be disabled. The rpcgssd service can be disabled with the following command:

# chkconfig rpcgssd off

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcgssd0falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcgssd1falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcgssd2falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcgssd3truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcgssd4truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcgssd5truefalse

Items found violating Runlevel test:

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

#
# Stop rpcgssd if currently running
#
service rpcgssd stop
Disable RPC ID Mapping Service (rpcidmapd)xccdf_org.ssgproject.content_rule_service_rpcidmapd_disabled CCE-26870-6

Disable RPC ID Mapping Service (rpcidmapd)

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

identifiers:  CCE-26870-6

Description

The rpcidmapd service is used to map user names and groups to UID and GID numbers on NFSv4 mounts. If NFS is not in use on the local system then this service should be disabled. The rpcidmapd service can be disabled with the following command:

# chkconfig rpcidmapd off

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcidmapd0falsefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcidmapd1falsefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcidmapd2falsefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcidmapd3falsefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcidmapd4falsefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
rpcidmapd5falsefalse

Items found violating Runlevel test:

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

#
# Stop rpcidmapd if currently running
#
service rpcidmapd stop
Disable Network File Systems (netfs)xccdf_org.ssgproject.content_rule_service_netfs_disabled CCE-27137-9

Disable Network File Systems (netfs)

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

identifiers:  CCE-27137-9

Description

The netfs script manages the boot-time mounting of several types of networked filesystems, of which NFS and Samba are the most common. If these filesystem types are not in use, the script can be disabled, protecting the system somewhat against accidental or malicious changes to /etc/fstab and against flaws in the netfs script itself. The netfs service can be disabled with the following command:

# chkconfig netfs off

OVAL details

Items found violating Runlevel test:

Service nameRunlevelStartKill
netfs0falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
netfs1falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
netfs2falsetrue

Items found violating Runlevel test:

Service nameRunlevelStartKill
netfs3truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
netfs4truefalse

Items found violating Runlevel test:

Service nameRunlevelStartKill
netfs5truefalse

Items found violating Runlevel test:

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

#
# Stop netfs if currently running
#
service netfs stop
Configure lockd to use static TCP portxccdf_org.ssgproject.content_rule_nfs_fixed_lockd_tcp_port CCE-27149-4

Configure lockd to use static TCP port

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

identifiers:  CCE-27149-4

Description

Configure the lockd daemon to use a static TCP port as opposed to letting the RPC Bind service dynamically assign a port. Edit the file /etc/sysconfig/nfs. Add or correct the following line:

LOCKD_TCPPORT=lockd-port
Where lockd-port is a port which is not used by any other service on your network.

Rationale

Restrict service to always use a given port, so that firewalling can be done effectively.

Configure lockd to use static UDP portxccdf_org.ssgproject.content_rule_nfs_fixed_lockd_udp_port CCE-27063-7

Configure lockd to use static UDP port

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

identifiers:  CCE-27063-7

Description

Configure the lockd daemon to use a static UDP port as opposed to letting the RPC Bind service dynamically assign a port. Edit the file /etc/sysconfig/nfs. Add or correct the following line:

LOCKD_UDPPORT=lockd-port
Where lockd-port is a port which is not used by any other service on your network.

Rationale

Restricting services to always use a given port enables firewalling to be done more effectively.

Configure statd to use static portxccdf_org.ssgproject.content_rule_nfs_fixed_statd_port CCE-26889-6

Configure statd to use static port

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

identifiers:  CCE-26889-6

Description

Configure the statd daemon to use a static port as opposed to letting the RPC Bind service dynamically assign a port. Edit the file /etc/sysconfig/nfs. Add or correct the following line:

STATD_PORT=statd-port
Where statd-port is a port which is not used by any other service on your network.

Rationale

Restricting services to always use a given port enables firewalling to be done more effectively.

Configure mountd to use static portxccdf_org.ssgproject.content_rule_nfs_fixed_mountd_port CCE-27114-8

Configure mountd to use static port

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

identifiers:  CCE-27114-8

Description

Configure the mountd daemon to use a static port as opposed to letting the RPC Bind service dynamically assign a port. Edit the file /etc/sysconfig/nfs. Add or correct the following line:

MOUNTD_PORT=statd-port
Where mountd-port is a port which is not used by any other service on your network.

Rationale

Restricting services to always use a given port enables firewalling to be done more effectively.

Specify UID and GID for Anonymous NFS Connectionsxccdf_org.ssgproject.content_rule_nfs_no_anonymous CCE-27414-2

Specify UID and GID for Anonymous NFS Connections

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

identifiers:  CCE-27414-2

Description

To specify the UID and GID for remote root users, edit the /etc/exports file and add the following for each export:

anonuid=value greater than UID_MAX from /etc/login.defs
anongid=value greater than GID_MAX from /etc/login.defs
Note that a value of "-1" is technically acceptable as this will randomize the anonuid and anongid values on a RHEL 6 based NFS server. While acceptable from a security perspective, a value of -1 may cause interoperability issues, particularly with RHEL 7 client systems.

Rationale

Specifying the anonymous UID and GID ensures that the remote root user is mapped to a local account which has no permissions on the system.

Disable Network File System (nfs)xccdf_org.ssgproject.content_rule_service_nfs_disabled CCE-27199-9

Disable Network File System (nfs)

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

identifiers:  CCE-27199-9

references:  test_attestation

Description

The Network File System (NFS) service allows remote hosts to mount and interact with shared filesystems on the local machine. If the local machine is not designated as a NFS server then this service should be disabled. The nfs service can be disabled with the following command:

# chkconfig nfs off

Rationale

Unnecessary services should be disabled to decrease the attack surface of the system.

OVAL details

Items not found violating Runlevel test:

Object oval:ssg:obj:1379 of type runlevel_object
Service nameRunlevel
nfs0
State oval:ssg:ste:1380 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1381 of type runlevel_object
Service nameRunlevel
nfs1
State oval:ssg:ste:1380 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1382 of type runlevel_object
Service nameRunlevel
nfs2
State oval:ssg:ste:1380 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1383 of type runlevel_object
Service nameRunlevel
nfs3
State oval:ssg:ste:1380 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1384 of type runlevel_object
Service nameRunlevel
nfs4
State oval:ssg:ste:1380 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1385 of type runlevel_object
Service nameRunlevel
nfs5
State oval:ssg:ste:1380 of type runlevel_state
StartKill
falsetrue

Items not found violating Runlevel test:

Object oval:ssg:obj:1386 of type runlevel_object
Service nameRunlevel
nfs6
State oval:ssg:ste:1380 of type runlevel_state
StartKill
falsetrue
Disable Secure RPC Server Service (rpcsvcgssd)xccdf_org.ssgproject.content_rule_service_rpcsvcgssd_disabled CCE-27122-1

Disable Secure RPC Server Service (rpcsvcgssd)

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

identifiers:  CCE-27122-1

references:  test_attestation

Description

The rpcsvcgssd service manages RPCSEC GSS contexts required to secure protocols that use RPC (most often Kerberos and NFS). The rpcsvcgssd service is the server-side of RPCSEC GSS. If the system does not require secure RPC then this service should be disabled. The rpcsvcgssd service can be disabled with the following command:

# chkconfig rpcsvcgssd off

Rationale

Unnecessary services should be disabled to decrease the attack surface of the system.

OVAL details

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rpcsvcgssd0falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rpcsvcgssd1falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rpcsvcgssd2falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rpcsvcgssd3falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rpcsvcgssd4falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rpcsvcgssd5falsetrue

Items found satisfying Runlevel test:

Service nameRunlevelStartKill
rpcsvcgssd6falsetrue
Mount Remote Filesystems with nodevxccdf_org.ssgproject.content_rule_use_nodev_option_on_nfs_mounts CCE-27090-0

Mount Remote Filesystems with nodev

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

identifiers:  CCE-27090-0

references:  test_attestation

Description

Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of any NFS mounts.

Rationale

Legitimate device files should only exist in the /dev directory. NFS mounts should not present device files to users.

OVAL details

Items not found satisfying no nfs:

Object oval:ssg:obj:1588 of type textfilecontent54_object
FilepathPatternInstance
/etc/fstab^\s*[\.\w]+:[/\w]+\s+[/\w]+\s+nfs[4]?\s+.*$0

Items not found satisfying all nfs has nodev:

Object oval:ssg:obj:1586 of type textfilecontent54_object
FilepathPatternInstance
/etc/fstab^\s*[\.\w]+:[/\w]+\s+[/\w]+\s+nfs[4]?\s+(.*)$0
State oval:ssg:ste:1587 of type textfilecontent54_state
Subexpression
^.*nodev.*$
Mount Remote Filesystems with nosuidxccdf_org.ssgproject.content_rule_use_nosuid_option_on_nfs_mounts CCE-26972-0

Mount Remote Filesystems with nosuid

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

identifiers:  CCE-26972-0

references:  test_attestation

Description

Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of any NFS mounts.

Rationale

NFS mounts should not present suid binaries to users. Only vendor-supplied suid executables should be installed to their default location on the local filesystem.

OVAL details

Items not found satisfying no nfs:

Object oval:ssg:obj:2276 of type textfilecontent54_object
FilepathPatternInstance
/etc/fstab^\s*[\.\w]+:[/\w]+\s+[/\w]+\s+nfs[4]?\s+.*$0

Items not found satisfying all nfs has nosuid:

Object oval:ssg:obj:2274 of type textfilecontent54_object
FilepathPatternInstance
/etc/fstab^\s*[\.\w]+:[/\w]+\s+[/\w]+\s+nfs[4]?\s+(.*)$0
State oval:ssg:ste:2275 of type textfilecontent54_state
Subexpression
^.*nosuid.*$
Use Root-Squashing on All Exportsxccdf_org.ssgproject.content_rule_use_root_squashing_all_exports CCE-27138-7

Use Root-Squashing on All Exports

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

identifiers:  CCE-27138-7

Description

If a filesystem is exported using root squashing, requests from root on the client are considered to be unprivileged (mapped to a user such as nobody). This provides some mild protection against remote abuse of an NFS server. Root squashing is enabled by default, and should not be disabled.

Ensure that no line in /etc/exports contains the option no_root_squash.

Rationale

If the NFS server allows root access to local file systems from remote hosts, this access could be used to compromise the system.

Restrict NFS Clients to Privileged Portsxccdf_org.ssgproject.content_rule_restrict_nfs_clients_to_privileged_ports CCE-27121-3

Restrict NFS Clients to Privileged Ports

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

identifiers:  CCE-27121-3

Description

By default, the server NFS implementation requires that all client requests be made from ports less than 1024. If your organization has control over machines connected to its network, and if NFS requests are prohibited at the border firewall, this offers some protection against malicious requests from unprivileged users. Therefore, the default should not be changed.

To ensure that the default has not been changed, ensure no line in /etc/exports contains the option insecure.

Rationale

Allowing client requests to be made from ports higher than 1024 could allow a unprivileged user to initiate an NFS connection. If the unprivileged user account has been compromised, an attacker could gain access to data on the NFS server.

Ensure Insecure File Locking is Not Allowedxccdf_org.ssgproject.content_rule_no_insecure_locks_exports CCE-27167-6

Ensure Insecure File Locking is Not Allowed

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

identifiers:  CCE-27167-6

references:  764

Description

By default the NFS server requires secure file-lock requests, which require credentials from the client in order to lock a file. Most NFS clients send credentials with file lock requests, however, there are a few clients that do not send credentials when requesting a file-lock, allowing the client to only be able to lock world-readable files. To get around this, the insecure_locks option can be used so these clients can access the desired export. This poses a security risk by potentially allowing the client access to data for which it does not have authorization. Remove any instances of the insecure_locks option from the file /etc/exports.

Rationale

Allowing insecure file locking could allow for sensitive data to be viewed or edited by an unauthorized user.

OVAL details

Items not found violating Tests the value of the insecure locks in /etc/exports:

Object oval:ssg:obj:1694 of type textfilecontent54_object
FilepathPatternInstance
/etc/exports^(.*?(\binsecure_locks\b)[^$]*)$1
Disable DNS Serverxccdf_org.ssgproject.content_rule_disable_dns_server CCE-26873-0

Disable DNS Server

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

identifiers:  CCE-26873-0

references:  CM-7, 366

Description

The named service can be disabled with the following command:

# chkconfig named off

Rationale

All network services involve some risk of compromise due to implementation flaws and should be disabled if possible.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1545 of type runlevel_object
Service nameRunlevel
named0
State oval:ssg:ste:1546 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1547 of type runlevel_object
Service nameRunlevel
named1
State oval:ssg:ste:1546 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1548 of type runlevel_object
Service nameRunlevel
named2
State oval:ssg:ste:1546 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1549 of type runlevel_object
Service nameRunlevel
named3
State oval:ssg:ste:1546 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1550 of type runlevel_object
Service nameRunlevel
named4
State oval:ssg:ste:1546 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1551 of type runlevel_object
Service nameRunlevel
named5
State oval:ssg:ste:1546 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1552 of type runlevel_object
Service nameRunlevel
named6
State oval:ssg:ste:1546 of type runlevel_state
StartKill
falsetrue
Uninstall bind Packagexccdf_org.ssgproject.content_rule_uninstall_bind CCE-27030-6

Uninstall bind Package

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

identifiers:  CCE-27030-6

references:  CM-7, 366

Description

To remove the bind package, which contains the named service, run the following command:

$ sudo yum erase bind

Rationale

If there is no need to make DNS server software available, removing it provides a safeguard against its activation.

OVAL details

Items not found satisfying package bind is removed:

Object oval:ssg:obj:1556 of type rpminfo_object
Name
bind
Disable Zone Transfers from the Nameserverxccdf_org.ssgproject.content_rule_dns_server_disable_zone_transfers CCE-27528-9

Disable Zone Transfers from the Nameserver

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

identifiers:  CCE-27528-9

Description

Is it necessary for a secondary nameserver to receive zone data via zone transfer from the primary server? If not, follow the instructions in this section. If so, see the next section for instructions on protecting zone transfers. Add or correct the following directive within /etc/named.conf:

options {
  allow-transfer { none; };
  ...
}

Rationale

If both the primary and secondary nameserver are under your control, or if you have only one nameserver, it may be possible to use an external configuration management mechanism to distribute zone updates. In that case, it is not necessary to allow zone transfers within BIND itself, so they should be disabled to avoid the potential for abuse.

Authenticate Zone Transfersxccdf_org.ssgproject.content_rule_dns_server_authenticate_zone_transfers CCE-27496-9

Authenticate Zone Transfers

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

identifiers:  CCE-27496-9

references:  CM-7

Description

If it is necessary for a secondary nameserver to receive zone data via zone transfer from the primary server, follow the instructions here. Use dnssec-keygen to create a symmetric key file in the current directory:

$ cd /tmp
$ sudo dnssec-keygen -a HMAC-MD5 -b 128 -n HOST dns.example.com
Kdns.example.com .+aaa +iiiii
This output is the name of a file containing the new key. Read the file to find the base64-encoded key string:
$ sudo cat Kdns.example.com .+NNN +MMMMM .key
dns.example.com IN KEY 512 3 157 base64-key-string
Add the directives to /etc/named.conf on the primary server:
key zone-transfer-key {
  algorithm hmac-md5;
  secret "base64-key-string ";
};
zone "example.com " IN {
  type master;
  allow-transfer { key zone-transfer-key; };
  ...
};
Add the directives below to /etc/named.conf on the secondary nameserver:
key zone-transfer-key {
  algorithm hmac-md5;
  secret "base64-key-string ";
};

server IP-OF-MASTER {
  keys { zone-transfer-key; };
};

zone "example.com " IN {
  type slave;
  masters { IP-OF-MASTER ; };
  ...
};

Rationale

The BIND transaction signature (TSIG) functionality allows primary and secondary nameservers to use a shared secret to verify authorization to perform zone transfers. This method is more secure than using IP-based limiting to restrict nameserver access, since IP addresses can be easily spoofed. However, if you cannot configure TSIG between your servers because, for instance, the secondary nameserver is not under your control and its administrators are unwilling to configure TSIG, you can configure an allow-transfer directive with numerical IP addresses or ACLs as a last resort.

Warnings
warning  The purpose of the dnssec-keygen command is to create the shared secret string base64-key-string. Once this secret has been obtained and inserted into named.conf on the primary and secondary servers, the key files Kdns.example.com .+NNN +MMMMM .key and Kdns.example.com .+NNN +MMMMM .private are no longer needed, and may safely be deleted.
Disable Dynamic Updatesxccdf_org.ssgproject.content_rule_dns_server_disable_dynamic_updates CCE-27105-6

Disable Dynamic Updates

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

identifiers:  CCE-27105-6

Description

Is there a mission-critical reason to enable the risky dynamic update functionality? If not, edit /etc/named.conf. For each zone specification, correct the following directive if necessary:

zone "example.com " IN {
  allow-update { none; };
  ...
};

Rationale

Dynamic updates allow remote servers to add, delete, or modify any entries in your zone file. Therefore, they should be considered highly risky, and disabled unless there is a very good reason for their use. If dynamic updates must be allowed, IP-based ACLs are insufficient protection, since they are easily spoofed. Instead, use TSIG keys (see the previous section for an example), and consider using the update-policy directive to restrict changes to only the precise type of change needed.

Disable vsftpd Servicexccdf_org.ssgproject.content_rule_disable_vsftpd CCE-26948-0

Disable vsftpd Service

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

identifiers:  CCE-26948-0

references:  CM-7, 1436

Description

The vsftpd service can be disabled with the following command:

# chkconfig vsftpd off

Rationale

Running FTP server software provides a network-based avenue of attack, and should be disabled if not needed. Furthermore, the FTP protocol is unencrypted and creates a risk of compromising sensitive information.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1797 of type runlevel_object
Service nameRunlevel
vsftpd0
State oval:ssg:ste:1798 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1799 of type runlevel_object
Service nameRunlevel
vsftpd1
State oval:ssg:ste:1798 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1800 of type runlevel_object
Service nameRunlevel
vsftpd2
State oval:ssg:ste:1798 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1801 of type runlevel_object
Service nameRunlevel
vsftpd3
State oval:ssg:ste:1798 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1802 of type runlevel_object
Service nameRunlevel
vsftpd4
State oval:ssg:ste:1798 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1803 of type runlevel_object
Service nameRunlevel
vsftpd5
State oval:ssg:ste:1798 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1804 of type runlevel_object
Service nameRunlevel
vsftpd6
State oval:ssg:ste:1798 of type runlevel_state
StartKill
falsetrue
Uninstall vsftpd Packagexccdf_org.ssgproject.content_rule_uninstall_vsftpd CCE-26687-4

Uninstall vsftpd Package

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

identifiers:  CCE-26687-4

references:  CM-7, 1436

Description

The vsftpd package can be removed with the following command:

# yum erase vsftpd

Rationale

Removing the vsftpd package decreases the risk of its accidental activation.

OVAL details

Items not found satisfying package vsftpd is removed:

Object oval:ssg:obj:1629 of type rpminfo_object
Name
vsftpd
Install vsftpd Packagexccdf_org.ssgproject.content_rule_package_vsftpd_installed CCE-27187-4

Install vsftpd Package

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

identifiers:  CCE-27187-4

references:  CM-7

Description

If this machine must operate as an FTP server, install the vsftpd package via the standard channels.

$ sudo yum install vsftpd

Rationale

After RHEL 2.1, Red Hat switched from distributing wu-ftpd with RHEL to distributing vsftpd. For security and for consistency with future Red Hat releases, the use of vsftpd is recommended.

OVAL details

Items not found violating package vsftpd is installed:

Object oval:ssg:obj:1661 of type rpminfo_object
Name
vsftpd
Restrict Access to Anonymous Users if Possiblexccdf_org.ssgproject.content_rule_ftp_restrict_to_anon CCE-27115-5

Restrict Access to Anonymous Users if Possible

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

identifiers:  CCE-27115-5

Description

Is there a mission-critical reason for users to transfer files to/from their own accounts using FTP, rather than using a secure protocol like SCP/SFTP? If not, edit the vsftpd configuration file. Add or correct the following configuration option:

local_enable=NO
If non-anonymous FTP logins are necessary, follow the guidance in the remainder of this section to secure these logins as much as possible.

Rationale

The use of non-anonymous FTP logins is strongly discouraged. Since SSH clients and servers are widely available, and since SSH provides support for a transfer mode which resembles FTP in user interface, there is no good reason to allow password-based FTP access.

Enable Logging of All FTP Transactionsxccdf_org.ssgproject.content_rule_ftp_log_transactions CCE-27142-9

Enable Logging of All FTP Transactions

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

identifiers:  CCE-27142-9

Description

Add or correct the following configuration options within the vsftpd configuration file, located at /etc/vsftpd/vsftpd.conf:

xferlog_enable=YES
xferlog_std_format=NO
log_ftp_protocol=YES

Rationale

To trace malicious activity facilitated by the FTP service, it must be configured to ensure that all commands sent to the FTP server are logged using the verbose vsftpd log format. The default vsftpd log file is /var/log/vsftpd.log.

Warnings
warning  If verbose logging to vsftpd.log is done, sparse logging of downloads to /var/log/xferlog will not also occur. However, the information about what files were downloaded is included in the information logged to vsftpd.log
OVAL details

Items not found violating log ftp transactions:

Object oval:ssg:obj:1368 of type textfilecontent54_object
FilepathPatternInstance
/etc/vsftpd/vsftpd.conf^[\s]*xferlog_enable[\s]*=[\s]*YES$1

Items not found violating log ftp transactions:

Object oval:ssg:obj:1369 of type textfilecontent54_object
FilepathPatternInstance
/etc/vsftpd/vsftpd.conf^[\s]*xferlog_std_format[\s]*=[\s]*NO$1

Items not found violating log ftp transactions:

Object oval:ssg:obj:1370 of type textfilecontent54_object
FilepathPatternInstance
/etc/vsftpd/vsftpd.conf^[\s]*log_ftp_protocol[\s]*=[\s]*YES$1
Create Warning Banners for All FTP Usersxccdf_org.ssgproject.content_rule_ftp_present_banner CCE-27145-2

Create Warning Banners for All FTP Users

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

identifiers:  CCE-27145-2

references:  48

Description

Edit the vsftpd configuration file, which resides at /etc/vsftpd/vsftpd.conf by default. Add or correct the following configuration options:

banner_file=/etc/issue

Rationale

This setting will cause the system greeting banner to be used for FTP connections as well.

OVAL details

Items not found violating Banner for FTP Users:

Object oval:ssg:obj:1983 of type textfilecontent54_object
FilepathPatternInstance
/etc/vsftpd/vsftpd.conf^[\s]*banner_file[\s]*=[\s]*/etc/issue*$1
Disable FTP Uploads if Possiblexccdf_org.ssgproject.content_rule_ftp_disable_uploads CCE-27117-1

Disable FTP Uploads if Possible

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

identifiers:  CCE-27117-1

Description

Is there a mission-critical reason for users to upload files via FTP? If not, edit the vsftpd configuration file to add or correct the following configuration options:

write_enable=NO
If FTP uploads are necessary, follow the guidance in the remainder of this section to secure these transactions as much as possible.

Rationale

Anonymous FTP can be a convenient way to make files available for universal download. However, it is less common to have a need to allow unauthenticated users to place files on the FTP server. If this must be done, it is necessary to ensure that files cannot be uploaded and downloaded from the same directory.

Place the FTP Home Directory on its Own Partitionxccdf_org.ssgproject.content_rule_ftp_home_partition CCE-27411-8

Place the FTP Home Directory on its Own Partition

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

identifiers:  CCE-27411-8

Description

By default, the anonymous FTP root is the home directory of the FTP user account. The df command can be used to verify that this directory is on its own partition.

Rationale

If there is a mission-critical reason for anonymous users to upload files, precautions must be taken to prevent these users from filling a disk used by other services.

Disable httpd Servicexccdf_org.ssgproject.content_rule_disable_httpd CCE-27075-1

Disable httpd Service

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

identifiers:  CCE-27075-1

references:  CM-7

Description

The httpd service can be disabled with the following command:

# chkconfig httpd off

Rationale

Running web server software provides a network-based avenue of attack, and should be disabled if not needed.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1747 of type runlevel_object
Service nameRunlevel
httpd0
State oval:ssg:ste:1748 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1749 of type runlevel_object
Service nameRunlevel
httpd1
State oval:ssg:ste:1748 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1750 of type runlevel_object
Service nameRunlevel
httpd2
State oval:ssg:ste:1748 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1751 of type runlevel_object
Service nameRunlevel
httpd3
State oval:ssg:ste:1748 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1752 of type runlevel_object
Service nameRunlevel
httpd4
State oval:ssg:ste:1748 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1753 of type runlevel_object
Service nameRunlevel
httpd5
State oval:ssg:ste:1748 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1754 of type runlevel_object
Service nameRunlevel
httpd6
State oval:ssg:ste:1748 of type runlevel_state
StartKill
falsetrue
Uninstall httpd Packagexccdf_org.ssgproject.content_rule_uninstall_httpd CCE-27133-8

Uninstall httpd Package

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

identifiers:  CCE-27133-8

references:  CM-7

Description

The httpd package can be removed with the following command:

# yum erase httpd

Rationale

If there is no need to make the web server software available, removing it provides a safeguard against its activation.

OVAL details

Items not found satisfying package httpd is removed:

Object oval:ssg:obj:1570 of type rpminfo_object
Name
httpd
Set httpd ServerTokens Directive to Prodxccdf_org.ssgproject.content_rule_httpd_servertokens_prod CCE-27425-8

Set httpd ServerTokens Directive to Prod

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

identifiers:  CCE-27425-8

references:  CM-7

Description

ServerTokens Prod restricts information in page headers, returning only the word "Apache."

Add or correct the following directive in /etc/httpd/conf/httpd.conf:

ServerTokens Prod

Rationale

Information disclosed to clients about the configuration of the web server and system could be used to plan an attack on the given system. This information disclosure should be restricted to a minimum.

Set httpd ServerSignature Directive to Offxccdf_org.ssgproject.content_rule_httpd_serversignature_off CCE-27586-7

Set httpd ServerSignature Directive to Off

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

identifiers:  CCE-27586-7

references:  CM-7

Description

ServerSignature Off restricts httpd from displaying server version number on error pages.

Add or correct the following directive in /etc/httpd/conf/httpd.conf:

ServerSignature Off

Rationale

Information disclosed to clients about the configuration of the web server and system could be used to plan an attack on the given system. This information disclosure should be restricted to a minimum.

Disable HTTP Digest Authenticationxccdf_org.ssgproject.content_rule_httpd_digest_authentication CCE-27553-7

Disable HTTP Digest Authentication

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

identifiers:  CCE-27553-7

Description

The auth_digest module provides encrypted authentication sessions. If this functionality is unnecessary, comment out the related module:

#LoadModule auth_digest_module modules/mod_auth_digest.so

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Disable HTTP mod_rewritexccdf_org.ssgproject.content_rule_httpd_mod_rewrite CCE-27570-1

Disable HTTP mod_rewrite

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

identifiers:  CCE-27570-1

Description

The mod_rewrite module is very powerful and can protect against certain classes of web attacks. However, it is also very complex and has a significant history of vulnerabilities itself. If its functionality is unnecessary, comment out the related module:

#LoadModule rewrite_module modules/mod_rewrite.so

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Disable LDAP Supportxccdf_org.ssgproject.content_rule_httpd_ldap_support CCE-27395-3

Disable LDAP Support

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

identifiers:  CCE-27395-3

Description

The ldap module provides HTTP authentication via an LDAP directory. If its functionality is unnecessary, comment out the related modules:

#LoadModule ldap_module modules/mod_ldap.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
If LDAP is to be used, SSL encryption should be used as well.

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Disable Server Side Includesxccdf_org.ssgproject.content_rule_httpd_server_side_includes CCE-27558-6

Disable Server Side Includes

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

identifiers:  CCE-27558-6

Description

Server Side Includes provide a method of dynamically generating web pages through the insertion of server-side code. However, the technology is also deprecated and introduces significant security concerns. If this functionality is unnecessary, comment out the related module:

#LoadModule include_module modules/mod_include.so
If there is a critical need for Server Side Includes, they should be enabled with the option IncludesNoExec to prevent arbitrary code execution. Additionally, user supplied data should be encoded to prevent cross-site scripting vulnerabilities.

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Disable MIME Magicxccdf_org.ssgproject.content_rule_httpd_mime_magic CCE-27541-2

Disable MIME Magic

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

identifiers:  CCE-27541-2

Description

The mime_magic module provides a second layer of MIME support that in most configurations is likely extraneous. If its functionality is unnecessary, comment out the related module:

#LoadModule mime_magic_module modules/mod_mime_magic.so

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Disable WebDAV (Distributed Authoring and Versioning)xccdf_org.ssgproject.content_rule_httpd_webdav CCE-27329-2

Disable WebDAV (Distributed Authoring and Versioning)

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

identifiers:  CCE-27329-2

Description

WebDAV is an extension of the HTTP protocol that provides distributed and collaborative access to web content. If its functionality is unnecessary, comment out the related modules:

#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
If there is a critical need for WebDAV, extra care should be taken in its configuration. Since DAV access allows remote clients to manipulate server files, any location on the server that is DAV enabled should be protected by access controls.

Rationale

Minimizing the number of loadable modules available to the web server, reduces risk by limiting the capabilities allowed by the web server.

Disable Server Activity Statusxccdf_org.ssgproject.content_rule_httpd_server_activity_status CCE-27468-8

Disable Server Activity Status

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

identifiers:  CCE-27468-8

Description

The status module provides real-time access to statistics on the internal operation of the web server. This may constitute an unnecessary information leak and should be disabled unless necessary. To do so, comment out the related module:

#LoadModule status_module modules/mod_status.so
If there is a critical need for this module, ensure that access to the status page is properly restricted to a limited set of hosts in the status handler configuration.

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Disable Web Server Configuration Displayxccdf_org.ssgproject.content_rule_httpd_server_configuration_display CCE-27507-3

Disable Web Server Configuration Display

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

identifiers:  CCE-27507-3

Description

The info module creates a web page illustrating the configuration of the web server. This can create an unnecessary security leak and should be disabled. If its functionality is unnecessary, comment out the module:

#LoadModule info_module modules/mod_info.so
If there is a critical need for this module, use the Location directive to provide an access control list to restrict access to the information.

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Disable URL Correction on Misspelled Entriesxccdf_org.ssgproject.content_rule_httpd_url_correction CCE-27276-5

Disable URL Correction on Misspelled Entries

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

identifiers:  CCE-27276-5

Description

The speling module attempts to find a document match by allowing one misspelling in an otherwise failed request. If this functionality is unnecessary, comment out the module:

#LoadModule speling_module modules/mod_speling.so
This functionality weakens server security by making site enumeration easier.

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Disable Proxy Supportxccdf_org.ssgproject.content_rule_httpd_proxy_support CCE-27442-3

Disable Proxy Support

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

identifiers:  CCE-27442-3

Description

The proxy module provides proxying support, allowing httpd to forward requests and serve as a gateway for other servers. If its functionality is unnecessary, comment out the module:

#LoadModule proxy_module modules/mod_proxy.so
If proxy support is needed, load mod_proxy and the appropriate proxy protocol handler module (one of mod_proxy_http, mod_proxy_ftp, or mod_proxy_connect). Additionally, make certain that a server is secure before enabling proxying, as open proxy servers are a security risk. mod_proxy_balancer enables load balancing, but requires that mod status be enabled.

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Disable Cache Supportxccdf_org.ssgproject.content_rule_httpd_cache_support CCE-26859-9

Disable Cache Support

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

identifiers:  CCE-26859-9

Description

The cache module allows httpd to cache data, optimizing access to frequently accessed content. However, it introduces potential security flaws such as the possibility of circumventing Allow and Deny directives.

If this functionality is unnecessary, comment out the module:

#LoadModule cache_module modules/mod_cache.so
If caching is required, it should not be enabled for any limited-access content.

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Disable CGI Supportxccdf_org.ssgproject.content_rule_httpd_cgi_support CCE-27362-3

Disable CGI Support

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

identifiers:  CCE-27362-3

Description

The cgi module allows HTML to interact with the CGI web programming language.

If this functionality is unnecessary, comment out the module:

#LoadModule cgi_module modules/mod_cgi.so
If the web server requires the use of CGI, enable mod_cgi.

Rationale

Minimizing the number of loadable modules available to the web server reduces risk by limiting the capabilities allowed by the web server.

Restrict Root Directoryxccdf_org.ssgproject.content_rule_httpd_restrict_root_directory CCE-27009-0

Restrict Root Directory

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

identifiers:  CCE-27009-0

Description

The httpd root directory should always have the most restrictive configuration enabled.

<Directory / >
   Options None
   AllowOverride None
   Order allow,deny
</Directory>

Rationale

The Web Server's root directory content should be protected from unauthorized access by web clients.

Restrict Web Directoryxccdf_org.ssgproject.content_rule_httpd_restrict_web_directory CCE-27574-3

Restrict Web Directory

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

identifiers:  CCE-27574-3

Description

The default configuration for the web (/var/www/html) Directory allows directory indexing (Indexes) and the following of symbolic links (FollowSymLinks). Neither of these is recommended.

The /var/www/html directory hierarchy should not be viewable via the web, and symlinks should only be followed if the owner of the symlink also owns the linked file.

Ensure that this policy is adhered to by altering the related section of the configuration:

<Directory "/var/www/html">
#  ...
   Options SymLinksIfOwnerMatch
#  ...
</Directory>

Rationale

Access to the web server's directory hierarchy could allow access to unauthorized files by web clients. Following symbolic links could also allow such access.

Restrict Other Critical Directoriesxccdf_org.ssgproject.content_rule_httpd_restrict_critical_directories CCE-27565-1

Restrict Other Critical Directories

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

identifiers:  CCE-27565-1

Description

All accessible web directories should be configured with similarly restrictive settings. The Options directive should be limited to necessary functionality and the AllowOverride directive should be used only if needed. The Order and Deny access control tags should be used to deny access by default, allowing access only where necessary.

Rationale

Directories accessible from a web client should be configured with the least amount of access possible in order to avoid unauthorized access to restricted content or server information.

Limit Available Methodsxccdf_org.ssgproject.content_rule_httpd_limit_available_methods CCE-27581-8

Limit Available Methods

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

identifiers:  CCE-27581-8

Description

Web server methods are defined in section 9 of RFC 2616 (http://www.ietf.org/rfc/rfc2616.txt). If a web server does not require the implementation of all available methods, they should be disabled.

Note: GET and POST are the most common methods. A majority of the others are limited to the WebDAV protocol.

<Directory /var/www/html>
# ...
   # Only allow specific methods (this command is case-sensitive!)
   <LimitExcept GET POST>
      Order allow,deny
   </LimitExcept>
# ...
</Directory>

Rationale

Minimizing the number of available methods to the web client reduces risk by limiting the capabilities allowed by the web server.

Install mod_sslxccdf_org.ssgproject.content_rule_httpd_install_mod_ssl CCE-27403-5

Install mod_ssl

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

identifiers:  CCE-27403-5

Description

Install the mod_ssl module:

$ sudo yum install mod_ssl

Rationale

mod_ssl provides encryption capabilities for the httpd Web server. Unencrypted content is transmitted in plain text which could be passively monitored and accessed by unauthorized parties.

Install mod_securityxccdf_org.ssgproject.content_rule_httpd_install_mod_security CCE-27525-5

Install mod_security

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

identifiers:  CCE-27525-5

Description

Install the security module:

$ sudo yum install mod_security

Rationale

mod_security provides an additional level of protection for the web server by enabling the administrator to implement content access policies and filters at the application layer.

Set Permissions on the /var/log/httpd/ Directoryxccdf_org.ssgproject.content_rule_httpd_logs_permissions CCE-27150-2

Set Permissions on the /var/log/httpd/ Directory

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

identifiers:  CCE-27150-2

references:  CM-7

Description

Ensure that the permissions on the web server log directory is set to 700:

$ sudo chmod 700 /var/log/httpd/
This is its default setting.

Rationale

Access to the web server's log files may allow an unauthorized user or attacker to access information about the web server or alter the server's log files.

OVAL details

Items not found violating Testing directory permissions:

Object oval:ssg:obj:1946 of type file_object
PathFilename
/var/log/httpdno value
State oval:ssg:ste:1947 of type file_state
SuidSgidStickyGreadGwriteGexecOreadOwriteOexec
falsefalsefalsefalsefalsefalsefalsefalsefalse
Set Permissions on the /etc/httpd/conf/ Directoryxccdf_org.ssgproject.content_rule_httpd_conf_dir_permissions CCE-27487-8

Set Permissions on the /etc/httpd/conf/ Directory

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

identifiers:  CCE-27487-8

Description

Set permissions on the web server configuration directory to 750:

$ sudo chmod 750 /etc/httpd/conf/

Rationale

Access to the web server's configuration files may allow an unauthorized user or attacker to access information about the web server or alter the server's configuration files.

OVAL details

Items not found violating Testing directory permissions:

Object oval:ssg:obj:2150 of type file_object
PathFilename
/etc/httpd/confno value
State oval:ssg:ste:2151 of type file_state
SuidSgidStickyGreadGwriteGexecOreadOwriteOexec
falsefalsefalsetruefalsetruefalsefalsefalse
Set Permissions on All Configuration Files Inside /etc/httpd/conf/xccdf_org.ssgproject.content_rule_httpd_conf_files_permissions CCE-27316-9

Set Permissions on All Configuration Files Inside /etc/httpd/conf/

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

identifiers:  CCE-27316-9

references:  CM-7

Description

Set permissions on the web server configuration files to 640:

$ sudo chmod 640 /etc/httpd/conf/*

Rationale

Access to the web server's configuration files may allow an unauthorized user or attacker to access information about the web server or to alter the server's configuration files.

OVAL details

Items not found violating /etc/httpd/conf/* permissions:

Object oval:ssg:obj:1912 of type file_object
BehaviorsPathFilename
no value/etc/httpd/conf^.*$
State oval:ssg:ste:1913 of type file_state
SuidSgidStickyUexecGreadGwriteGexecOreadOwriteOexec
falsefalsefalsefalsetruefalsefalsefalsefalsefalse
Disable Dovecot Servicexccdf_org.ssgproject.content_rule_disable_dovecot CCE-26922-5

Disable Dovecot Service

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

identifiers:  CCE-26922-5

Description

The dovecot service can be disabled with the following command:

# chkconfig dovecot off

Rationale

Running an IMAP or POP3 server provides a network-based avenue of attack, and should be disabled if not needed.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1353 of type runlevel_object
Service nameRunlevel
dovecot0
State oval:ssg:ste:1354 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1355 of type runlevel_object
Service nameRunlevel
dovecot1
State oval:ssg:ste:1354 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1356 of type runlevel_object
Service nameRunlevel
dovecot2
State oval:ssg:ste:1354 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1357 of type runlevel_object
Service nameRunlevel
dovecot3
State oval:ssg:ste:1354 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1358 of type runlevel_object
Service nameRunlevel
dovecot4
State oval:ssg:ste:1354 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1359 of type runlevel_object
Service nameRunlevel
dovecot5
State oval:ssg:ste:1354 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1360 of type runlevel_object
Service nameRunlevel
dovecot6
State oval:ssg:ste:1354 of type runlevel_state
StartKill
falsetrue
Uninstall dovecot Packagexccdf_org.ssgproject.content_rule_uninstall_dovecot CCE-27039-7

Uninstall dovecot Package

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

identifiers:  CCE-27039-7

Description

The dovecot package can be uninstalled with the following command:

$ sudo yum erase dovecot

Rationale

If there is no need to make the Dovecot software available, removing it provides a safeguard against its activation.

OVAL details

Items not found satisfying package dovecot is removed:

Object oval:ssg:obj:1530 of type rpminfo_object
Name
dovecot
Enable the SSL flag in /etc/dovecot.confxccdf_org.ssgproject.content_rule_dovecot_enable_ssl CCE-27571-9

Enable the SSL flag in /etc/dovecot.conf

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

identifiers:  CCE-27571-9

Description

To allow clients to make encrypted connections the ssl flag in Dovecot's configuration file needs to be set to yes.

Edit /etc/dovecot/conf.d/10-ssl.conf and add or correct the following line:

ssl = yes

Rationale

SSL encrypt network traffic between the Dovecot server and its clients protecting user credentials, mail as it is downloaded, and clients may use SSL certificates to authenticate the server, preventing another system from impersonating the server.

OVAL details

Items not found violating Tests the value of the ssl[\s]*(<:nocomment:>*) setting in the /etc/dovecot.conf file:

Object oval:ssg:obj:1863 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/dovecot/conf.d10-ssl.conf^[\s]*ssl[\s]*=[\s]*yes[\s]*$1
Configure Dovecot to Use the SSL Certificate filexccdf_org.ssgproject.content_rule_dovecot_configure_ssl_cert CCE-27459-7

Configure Dovecot to Use the SSL Certificate file

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

identifiers:  CCE-27459-7

Description

This option tells Dovecot where to find the the mail server's SSL Certificate.

Edit /etc/dovecot/conf.d/10-ssl.conf and add or correct the following line (note: the path below is the default path set by the Dovecot installation. If you are using a different path, ensure you reference the appropriate file):

ssl_cert = </etc/pki/dovecot/certs/dovecot.pem

Rationale

SSL certificates are used by the client to authenticate the identity of the server, as well as to encrypt credentials and message traffic. Not using SSL to encrypt mail server traffic could allow unauthorized access to credentials and mail messages since they are sent in plain text over the network.

Configure Dovecot to Use the SSL Key filexccdf_org.ssgproject.content_rule_dovecot_configure_ssl_key CCE-27633-7

Configure Dovecot to Use the SSL Key file

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

identifiers:  CCE-27633-7

Description

This option tells Dovecot where to find the the mail server's SSL Key.

Edit /etc/dovecot/conf.d/10-ssl.conf and add or correct the following line (note: the path below is the default path set by the Dovecot installation. If you are using a different path, ensure you reference the appropriate file):

ssl_key = </etc/pki/dovecot/private/dovecot.pem

Rationale

SSL certificates are used by the client to authenticate the identity of the server, as well as to encrypt credentials and message traffic. Not using SSL to encrypt mail server traffic could allow unauthorized access to credentials and mail messages since they are sent in plain text over the network.

Disable Plaintext Authenticationxccdf_org.ssgproject.content_rule_dovecot_disable_plaintext_auth CCE-27144-5

Disable Plaintext Authentication

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

identifiers:  CCE-27144-5

Description

To prevent Dovecot from attempting plaintext authentication of clients, edit /etc/dovecot/conf.d/10-auth.conf and add or correct the following line:

disable_plaintext_auth = yes

Rationale

Using plain text authentication to the mail server could allow an attacker access to credentials by monitoring network traffic.

OVAL details

Items not found violating Tests the value of the disable_plaintext_auth[\s]*(<:nocomment:>*) setting in the /etc/dovecot.conf file:

Object oval:ssg:obj:1834 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/dovecot/conf.d10-auth.conf^[\s]*disable_plaintext_auth[\s]*=[\s]*yes[\s]*$1
Disable Sambaxccdf_org.ssgproject.content_rule_disable_smb_server CCE-27143-7

Disable Samba

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

identifiers:  CCE-27143-7

references:  1436

Description

The smb service can be disabled with the following command:

# chkconfig smb off

Rationale

Running a Samba server provides a network-based avenue of attack, and should be disabled if not needed.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2117 of type runlevel_object
Service nameRunlevel
smb0
State oval:ssg:ste:2118 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2119 of type runlevel_object
Service nameRunlevel
smb1
State oval:ssg:ste:2118 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2120 of type runlevel_object
Service nameRunlevel
smb2
State oval:ssg:ste:2118 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2121 of type runlevel_object
Service nameRunlevel
smb3
State oval:ssg:ste:2118 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2122 of type runlevel_object
Service nameRunlevel
smb4
State oval:ssg:ste:2118 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2123 of type runlevel_object
Service nameRunlevel
smb5
State oval:ssg:ste:2118 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2124 of type runlevel_object
Service nameRunlevel
smb6
State oval:ssg:ste:2118 of type runlevel_state
StartKill
falsetrue
Disable Root Access to SMB Sharesxccdf_org.ssgproject.content_rule_smb_server_disable_root CCE-27533-9

Disable Root Access to SMB Shares

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

identifiers:  CCE-27533-9

Description

Administrators should not use administrator accounts to access Samba file and printer shares. Disable the root user and the wheel administrator group:

[share]
  invalid users = root @wheel
If administrator accounts cannot be disabled, ensure that local machine passwords and Samba service passwords do not match.

Rationale

Typically, administrator access is required when Samba must create user and machine accounts and shares. Domain member servers and standalone servers may not need administrator access at all. If that is the case, add the invalid users parameter to [global] instead.

Require Client SMB Packet Signing, if using smbclientxccdf_org.ssgproject.content_rule_require_smb_client_signing CCE-26328-5

Require Client SMB Packet Signing, if using smbclient

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

identifiers:  CCE-26328-5

Description

To require samba clients running smbclient to use packet signing, add the following to the [global] section of the Samba configuration file, /etc/samba/smb.conf:

client signing = mandatory
Requiring samba clients such as smbclient to use packet signing ensures they can only communicate with servers that support packet signing.

Rationale

Packet signing can prevent man-in-the-middle attacks which modify SMB packets in transit.

OVAL details

Items not found violating check for client signing = mandatory in /etc/samba/smb.conf:

Object oval:ssg:obj:2133 of type textfilecontent54_object
PathFilenamePatternInstance
/etc/sambasmb.conf^[\s]*client[\s]+signing[\s]*=[\s]*mandatory1
Require Client SMB Packet Signing, if using mount.cifsxccdf_org.ssgproject.content_rule_require_smb_client_signing_mount.cifs CCE-26792-2

Require Client SMB Packet Signing, if using mount.cifs

Rule IDxccdf_org.ssgproject.content_rule_require_smb_client_signing_mount.cifs
Result
pass
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26792-2

Description

Require packet signing of clients who mount Samba shares using the mount.cifs program (e.g., those who specify shares in /etc/fstab). To do so, ensure signing options (either sec=krb5i or sec=ntlmv2i) are used.

See the mount.cifs(8) man page for more information. A Samba client should only communicate with servers who can support SMB packet signing.

Rationale

Packet signing can prevent man-in-the-middle attacks which modify SMB packets in transit.

OVAL details

Items not found satisfying check for no cifs in /etc/fstab:

Object oval:ssg:obj:1567 of type textfilecontent54_object
PathFilenamePatternInstance
/etcfstab^[\s]*[\S]+[\s]+[\S]+[\s]+cifs[\s]+([\S]+)1

Items not found satisfying check for sec=krb5i or sec=ntlmv2i in /etc/fstab:

Object oval:ssg:obj:1567 of type textfilecontent54_object
PathFilenamePatternInstance
/etcfstab^[\s]*[\S]+[\s]+[\S]+[\s]+cifs[\s]+([\S]+)1
State oval:ssg:ste:1568 of type textfilecontent54_state
InstanceSubexpression
2sec=(krb5i|ntlmv2i)

Items not found satisfying check for no cifs in /etc/mtab:

Object oval:ssg:obj:1569 of type textfilecontent54_object
PathFilenamePatternInstance
/etcmtab^[\s]*[\S]+[\s]+[\S]+[\s]+cifs[\s]+([\S]+)1

Items not found satisfying check for sec=krb5i or sec=ntlmv2i in /etc/mtab:

Object oval:ssg:obj:1569 of type textfilecontent54_object
PathFilenamePatternInstance
/etcmtab^[\s]*[\S]+[\s]+[\S]+[\s]+cifs[\s]+([\S]+)1
State oval:ssg:ste:1568 of type textfilecontent54_state
InstanceSubexpression
2sec=(krb5i|ntlmv2i)
Disable Squidxccdf_org.ssgproject.content_rule_disable_squid CCE-27146-0

Disable Squid

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

identifiers:  CCE-27146-0

Description

The squid service can be disabled with the following command:

# chkconfig squid off

Rationale

Running proxy server software provides a network-based avenue of attack, and should be removed if not needed.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2125 of type runlevel_object
Service nameRunlevel
squid0
State oval:ssg:ste:2126 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2127 of type runlevel_object
Service nameRunlevel
squid1
State oval:ssg:ste:2126 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2128 of type runlevel_object
Service nameRunlevel
squid2
State oval:ssg:ste:2126 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2129 of type runlevel_object
Service nameRunlevel
squid3
State oval:ssg:ste:2126 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2130 of type runlevel_object
Service nameRunlevel
squid4
State oval:ssg:ste:2126 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2131 of type runlevel_object
Service nameRunlevel
squid5
State oval:ssg:ste:2126 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:2132 of type runlevel_object
Service nameRunlevel
squid6
State oval:ssg:ste:2126 of type runlevel_state
StartKill
falsetrue
Uninstall squid Packagexccdf_org.ssgproject.content_rule_uninstall_squid CCE-26977-9

Uninstall squid Package

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

identifiers:  CCE-26977-9

Description

The squid package can be removed with the following command:

# yum erase squid

Rationale

If there is no need to make the proxy server software available, removing it provides a safeguard against its activation.

OVAL details

Items not found satisfying package squid is removed:

Object oval:ssg:obj:2230 of type rpminfo_object
Name
squid
Disable snmpd Servicexccdf_org.ssgproject.content_rule_disable_snmpd CCE-26906-8

Disable snmpd Service

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

identifiers:  CCE-26906-8

Description

The snmpd service can be disabled with the following command:

# chkconfig snmpd off

Rationale

Running SNMP software provides a network-based avenue of attack, and should be disabled if not needed.

OVAL details

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1571 of type runlevel_object
Service nameRunlevel
snmpd0
State oval:ssg:ste:1572 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1573 of type runlevel_object
Service nameRunlevel
snmpd1
State oval:ssg:ste:1572 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1574 of type runlevel_object
Service nameRunlevel
snmpd2
State oval:ssg:ste:1572 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1575 of type runlevel_object
Service nameRunlevel
snmpd3
State oval:ssg:ste:1572 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1576 of type runlevel_object
Service nameRunlevel
snmpd4
State oval:ssg:ste:1572 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1577 of type runlevel_object
Service nameRunlevel
snmpd5
State oval:ssg:ste:1572 of type runlevel_state
StartKill
falsetrue

Items not found satisfying Runlevel test:

Object oval:ssg:obj:1578 of type runlevel_object
Service nameRunlevel
snmpd6
State oval:ssg:ste:1572 of type runlevel_state
StartKill
falsetrue
Uninstall net-snmp Packagexccdf_org.ssgproject.content_rule_uninstall_net-snmp CCE-26332-7

Uninstall net-snmp Package

Rule IDxccdf_org.ssgproject.content_rule_uninstall_net-snmp
Result
pass
Time2015-08-22T01:36:04
Severitylow
Identifiers and References

identifiers:  CCE-26332-7

Description

The net-snmp package provides the snmpd service. The net-snmpd package can be removed with the following command:

# yum erase net-snmpd

Rationale

If there is no need to run SNMP server software, removing the package provides a safeguard against its activation.

OVAL details

Items not found satisfying package net-snmp is removed:

Object oval:ssg:obj:1695 of type rpminfo_object
Name
net-snmp
Configure SNMP Service to Use Only SNMPv3 or Newer xccdf_org.ssgproject.content_rule_snmpd_use_newer_protocol CCE-27365-6

Configure SNMP Service to Use Only SNMPv3 or Newer

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

identifiers:  CCE-27365-6

Description

Edit /etc/snmp/snmpd.conf, removing any references to rocommunity, rwcommunity, or com2sec. Upon doing that, restart the SNMP service:

$ sudo service snmpd restart

Rationale

Earlier versions of SNMP are considered insecure, as they potentially allow unauthorized access to detailed system management information.

OVAL details

Items not found violating Check snmpd configuration:

Object oval:ssg:obj:1364 of type textfilecontent54_object
FilepathPatternInstance
/etc/snmp/snmpd.conf^[\s]*(com2se|rocommunity|rwcommunity)1
Ensure Default Password Is Not Usedxccdf_org.ssgproject.content_rule_snmpd_not_default_password CCE-27593-3

Ensure Default Password Is Not Used

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

identifiers:  CCE-27593-3

references:  test_attestation

Description

Edit /etc/snmp/snmpd.conf, remove default community string public. Upon doing that, restart the SNMP service:

$ sudo service snmpd restart

Rationale

Presence of the default SNMP password enables querying of different system aspects and could result in unauthorized knowledge of the system.

OVAL details

Items not found violating Check snmpd configuration:

Object oval:ssg:obj:1760 of type textfilecontent54_object
FilepathPatternInstance
/etc/snmp/snmpd.conf^[\s]*(com2se|rocommunity|rwcommunity|createUser).*(public|private)1
Product Meets this Requirementxccdf_org.ssgproject.content_rule_met_inherently_generic

Product Meets this Requirement

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

references:  42, 56, 206, 1084, 66, 85, 86, 185, 223, 171, 172, 1694, 770, 804, 162, 163, 164, 345, 346, 1096, 1111, 1291, 386, 156, 186, 1083, 1082, 1090, 804, 1127, 1128, 1129, 1248, 1265, 1314, 1362, 1368, 1310, 1311, 1328, 1399, 1400, 1427, 1499, 1632, 1693, 1665, 1674

Description

This requirement is a permanent not a finding. No fix is required.

Rationale

Red Hat Enterprise Linux meets this requirement through design and implementation.

Product Meets this Requirementxccdf_org.ssgproject.content_rule_met_inherently_auditing

Product Meets this Requirement

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

references:  130, 157, 131, 132, 133, 134, 135, 159, 174

Description

This requirement is a permanent not a finding. No fix is required.

Rationale

The Red Hat Enterprise Linux audit system meets this requirement through design and implementation.

Product Meets this Requirementxccdf_org.ssgproject.content_rule_met_inherently_nonselected

Product Meets this Requirement

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

references:  34, 35, 99, 154, 226, 802, 872, 1086, 1087, 1089, 1091, 1424, 1426, 1428, 1209, 1214, 1237, 1269, 1338, 1425, 1670

Description

This requirement is a permanent not a finding. No fix is required.

Rationale

Red Hat Enterprise Linux meets this requirement through design and implementation.

Guidance Does Not Meet this Requirement Due to Impracticality or Scopexccdf_org.ssgproject.content_rule_unmet_nonfinding_nonselected_scope

Guidance Does Not Meet this Requirement Due to Impracticality or Scope

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

references:  21, 25, 28, 29, 30, 165, 221, 354, 553, 779, 780, 781, 1009, 1094, 1123, 1124, 1125, 1132, 1135, 1140, 1141, 1142, 1143, 1145, 1147, 1148, 1166, 1339, 1340, 1341, 1350, 1356, 1373, 1374, 1383, 1391, 1392, 1395, 1662

Description

This requirement is NA. No fix is required.

Rationale

The guidance does not meet this requirement. The requirement is impractical or out of scope.

Implementation of the Requirement is Not Supportedxccdf_org.ssgproject.content_rule_unmet_finding_nonselected

Implementation of the Requirement is Not Supported

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

references:  20, 31, 52, 144, 1158, 1294, 1295, 1500

Description

This requirement is a permanent finding and cannot be fixed. An appropriate mitigation for the system must be implemented but this finding cannot be considered fixed.

Rationale

RHEL6 does not support this requirement.

Guidance Does Not Meet this Requirement Due to Impracticality or Scopexccdf_org.ssgproject.content_rule_unmet_nonfinding_scope

Guidance Does Not Meet this Requirement Due to Impracticality or Scope

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

references:  15, 27, 218, 219, 371, 372, 535, 537, 539, 1682, 370, 37, 24, 1112, 1126, 1143, 1149, 1157, 1159, 1210, 1211, 1274, 1372, 1376, 1377, 1352, 1401, 1555, 1556, 1150

Description

This requirement is NA. No fix is required.

Rationale

The guidance does not meet this requirement. The requirement is impractical or out of scope.

A process for prompt installation of OS updates must exist.xccdf_org.ssgproject.content_rule_update_process

A process for prompt installation of OS updates must exist.

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

references:  1232

Description

Procedures to promptly apply software updates must be established and executed. The Red Hat operating system provides support for automating such a process, by running the yum program through a cron job or by managing the system and its packages through the Red Hat Network or a Satellite Server.

Rationale

This is a manual inquiry about update procedure.

Red Hat and Red Hat Enterprise Linux are either registered trademarks or trademarks of Red Hat, Inc. in the United States and other countries. All other names are registered trademarks or trademarks of their respective companies.