<Benchmark xmlns="http://checklists.nist.gov/xccdf/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="RHEL-6" resolved="1" xml:lang="en-US">
  <status date="2013-07-05">draft</status>
  <title xml:lang="en-US">Guide to the Secure Configuration of Red Hat Enterprise Linux 6</title>
  <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This guide presents a catalog of security-relevant
configuration settings for Red Hat Enterprise Linux 6 formatted in the
eXtensible Configuration Checklist Description Format (XCCDF).  
<xhtml:br/>
<xhtml:br/>
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 <xhtml:i>catalog, not a
checklist,</xhtml:i> and satisfaction of every item is not likely to be possible or
sensible in many operational scenarios.  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 <xhtml:i>Profiles</xhtml:i>, 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 is one example of
a baseline created from this guidance.
</description>
  <notice xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" id="terms_of_use">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.</notice>
  <front-matter xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The SCAP Security Guide Project<xhtml:br/>https://fedorahosted.org/scap-security-guide</front-matter>
  <rear-matter xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rear-matter>
  <platform idref="cpe:/o:redhat:enterprise_linux:6"/>
  <platform idref="cpe:/o:redhat:enterprise_linux:6::client"/>
  <version>0.9</version>
  <model system="urn:xccdf:scoring:default"/>
  <Profile id="rht-ccp">
    <title xml:lang="en-US">TEST FOR CCP</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This is a *draft* SCAP profile for Red Hat Certified Cloud Providers</description>
    <select idref="ccp_addl" selected="true"/>
    <select idref="partition_for_tmp" selected="true"/>
  </Profile>
  <Profile id="rht-ccp-backup">
    <title xml:lang="en-US">Red Hat Corporate Profile for Certified Cloud Providers (RH CCP) - BACKUP</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This is a *draft* SCAP profile for Red Hat Certified Cloud Providers</description>
    <select idref="ccp_addl" selected="true"/>
    <select idref="partition_for_tmp" selected="true"/>
    <select idref="partition_for_var" selected="true"/>
    <select idref="partition_for_var_log" selected="true"/>
    <select idref="partition_for_var_log_audit" selected="true"/>
    <select idref="enable_selinux_bootloader" selected="true"/>
    <select idref="set_selinux_state" selected="true"/>
    <select idref="set_selinux_policy" selected="true"/>
    <select idref="selinux_unlabeled_device_files" selected="true"/>
    <select idref="ensure_redhat_gpgkey_installed" selected="true"/>
    <select idref="security_patches_up_to_date" selected="true"/>
    <select idref="ensure_gpgcheck_globally_activated" selected="true"/>
    <select idref="ensure_gpgcheck_never_disabled" selected="true"/>
    <select idref="package_aide_installed" selected="true"/>
    <select idref="limiting_password_reuse" selected="true"/>
    <select idref="no_shelllogin_for_systemaccounts" selected="true"/>
    <select idref="no_empty_passwords" selected="true"/>
    <select idref="no_hashes_outside_shadow" selected="true"/>
    <select idref="no_uidzero_except_root" selected="true"/>
    <select idref="password_min_len" selected="true"/>
    <select idref="password_min_age" selected="true"/>
    <select idref="password_max_age" selected="true"/>
    <select idref="password_warn_age" selected="true"/>
    <select idref="password_retry" selected="true"/>
    <select idref="password_require_digits" selected="true"/>
    <select idref="password_require_uppercases" selected="true"/>
    <select idref="password_require_specials" selected="true"/>
    <select idref="password_require_lowercases" selected="true"/>
    <select idref="password_require_diffchars" selected="true"/>
    <select idref="deny_password_attempts" selected="true"/>
    <select idref="set_password_hashing_algorithm_systemauth" selected="true"/>
    <select idref="set_password_hashing_algorithm_logindefs" selected="true"/>
    <select idref="set_password_hashing_algorithm_libuserconf" selected="true"/>
    <select idref="require_singleuser_auth" selected="true"/>
    <select idref="userowner_shadow_file" selected="true"/>
    <select idref="groupowner_shadow_file" selected="true"/>
    <select idref="perms_shadow_file" selected="true"/>
    <select idref="userowner_gshadow_file" selected="true"/>
    <select idref="groupowner_gshadow_file" selected="true"/>
    <select idref="perms_gshadow_file" selected="true"/>
    <select idref="userowner_passwd_file" selected="true"/>
    <select idref="groupowner_passwd_file" selected="true"/>
    <select idref="file_permissions_etc_passwd" selected="true"/>
    <select idref="userowner_group_file" selected="true"/>
    <select idref="groupowner_group_file" selected="true"/>
    <select idref="perms_group_file" selected="true"/>
    <select idref="file_permissions_library_dirs" selected="true"/>
    <select idref="file_ownership_library_dirs" selected="true"/>
    <select idref="file_permissions_binary_dirs" selected="true"/>
    <select idref="file_ownership_binary_dirs" selected="true"/>
    <select idref="audit_logs_permissions" selected="true"/>
    <select idref="user_owner_grub_conf" selected="true"/>
    <select idref="group_owner_grub_conf" selected="true"/>
    <select idref="permissions_grub_conf" selected="true"/>
    <select idref="bootloader_password" selected="true"/>
    <select idref="enable_randomize_va_space" selected="true"/>
    <select idref="enable_execshield" selected="true"/>
    <select idref="disable_ipv6_module_loading" selected="true"/>
    <select idref="enable_ip6tables" selected="true"/>
    <select idref="enable_iptables" selected="true"/>
    <select idref="set_iptables_default_rule" selected="true"/>
    <select idref="disable_protocol_dccp" selected="true"/>
    <select idref="disable_protocol_sctp" selected="true"/>
    <select idref="disable_protocol_rds" selected="true"/>
    <select idref="disable_protocol_tipc" selected="true"/>
    <select idref="disable_xinetd" selected="true"/>
    <select idref="uninstall_xinetd" selected="true"/>
    <select idref="uninstall_telnet_server" selected="true"/>
    <select idref="disable_telnet_service" selected="true"/>
    <select idref="uninstall_rsh-server" selected="true"/>
    <select idref="disable_rsh" selected="true"/>
    <select idref="disable_rexec" selected="true"/>
    <select idref="disable_rlogin" selected="true"/>
    <select idref="uninstall_ypserv" selected="true"/>
    <select idref="disable_ypbind" selected="true"/>
    <select idref="uninstall_tftp-server" selected="true"/>
    <select idref="disable_tftp" selected="true"/>
    <select idref="disable_avahi" selected="true"/>
    <select idref="service_abrtd_disabled" selected="true"/>
    <select idref="service_atd_disabled" selected="true"/>
    <select idref="service_autofs_disabled" selected="true"/>
    <select idref="service_ntpdate_disabled" selected="true"/>
    <select idref="service_oddjobd_disabled" selected="true"/>
    <select idref="service_qpidd_disabled" selected="true"/>
    <select idref="service_rdisc_disabled" selected="true"/>
    <select idref="sshd_allow_only_protocol2" selected="true"/>
    <select idref="sshd_set_idle_timeout" selected="true"/>
    <select idref="sshd_set_keepalive" selected="true"/>
    <select idref="sshd_disable_rhosts" selected="true"/>
    <select idref="disable_host_auth" selected="true"/>
    <select idref="sshd_disable_root_login" selected="true"/>
    <select idref="sshd_disable_empty_passwords" selected="true"/>
    <select idref="sshd_enable_warning_banner" selected="true"/>
    <select idref="sshd_do_not_permit_user_env" selected="true"/>
    <select idref="sshd_use_approved_ciphers" selected="true"/>
    <refine-value idref="var_selinux_state_name" selector="enforcing"/>
    <refine-value idref="var_selinux_policy_name" selector="targeted"/>
    <refine-value idref="file_owner_logfiles_value" selector="root"/>
    <refine-value idref="file_groupowner_logfiles_value" selector="root"/>
    <refine-value idref="sshd_idle_timeout_value" selector="5_minutes"/>
    <refine-value idref="var_password_min_len" selector="6"/>
    <refine-value idref="var_password_max_age" selector="90"/>
    <refine-value idref="var_password_min_age" selector="7"/>
    <refine-value idref="var_password_warn_age" selector="7"/>
    <refine-value idref="var_password_pam_cracklib_retry" selector="3"/>
    <refine-value idref="var_password_pam_cracklib_minlen" selector="14"/>
    <refine-value idref="var_password_pam_cracklib_dcredit" selector="1"/>
    <refine-value idref="var_password_pam_cracklib_ucredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_ocredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_lcredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_difok" selector="3"/>
    <refine-value idref="password_history_retain_number" selector="5"/>
    <refine-value idref="var_accounts_user_umask" selector="077"/>
    <refine-value idref="login_banner_text" selector="usgcb_default"/>
  </Profile>
  <Profile id="test">
    <title xml:lang="en-US">test</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This profile is for testing.</description>
    <select idref="configure_auditd_num_logs" selected="true"/>
    <select idref="configure_auditd_max_log_file" selected="true"/>
    <select idref="configure_auditd_action_mail_acct" selected="true"/>
    <select idref="configure_auditd_space_left_action" selected="true"/>
    <select idref="configure_auditd_admin_space_left_action" selected="true"/>
    <select idref="configure_auditd_max_log_file_action" selected="true"/>
    <select idref="user_umask_bashrc" selected="true"/>
    <select idref="user_umask_cshrc" selected="true"/>
    <select idref="user_umask_profile" selected="true"/>
    <select idref="user_umask_logindefs" selected="true"/>
    <select idref="set_daemon_umask" selected="true"/>
    <refine-value idref="var_auditd_num_logs" selector="5"/>
    <refine-value idref="var_auditd_max_log_file" selector="6"/>
    <refine-value idref="var_auditd_max_log_file_action" selector="rotate"/>
    <refine-value idref="var_auditd_space_left_action" selector="syslog"/>
    <refine-value idref="var_auditd_admin_space_left_action" selector="single"/>
    <refine-value idref="var_auditd_action_mail_acct" selector="root"/>
    <refine-value idref="var_accounts_user_umask" selector="077"/>
    <refine-value idref="var_umask_for_daemons" selector="027"/>
    <refine-value idref="var_password_min_len" selector="12"/>
    <refine-value idref="var_password_max_age" selector="90"/>
    <refine-value idref="var_password_min_age" selector="7"/>
    <refine-value idref="var_password_warn_age" selector="7"/>
  </Profile>
  <Profile id="common">
    <title xml:lang="en-US">Common Profile for General-Purpose Systems</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This profile contains items common to general-purpose desktop and server installations.</description>
    <select idref="partition_for_tmp" selected="true"/>
    <select idref="partition_for_var" selected="true"/>
    <select idref="partition_for_var_log" selected="true"/>
    <select idref="partition_for_var_log_audit" selected="true"/>
    <select idref="partition_for_home" selected="true"/>
    <select idref="ensure_redhat_gpgkey_installed" selected="true"/>
    <select idref="service_rhnsd_disabled" selected="true"/>
    <select idref="security_patches_up_to_date" selected="true"/>
    <select idref="ensure_gpgcheck_globally_activated" selected="true"/>
    <select idref="ensure_gpgcheck_never_disabled" selected="true"/>
    <select idref="package_aide_installed" selected="true"/>
    <select idref="enable_selinux_bootloader" selected="true"/>
    <select idref="no_rsh_trust_files" selected="true"/>
    <select idref="set_selinux_state" selected="true"/>
    <select idref="set_selinux_policy" selected="true"/>
    <select idref="selinux_unlabeled_device_files" selected="true"/>
    <select idref="restrict_root_console_logins" selected="true"/>
    <select idref="restrict_serial_port_logins" selected="true"/>
    <select idref="no_shelllogin_for_systemaccounts" selected="true"/>
    <select idref="no_empty_passwords" selected="true"/>
    <select idref="no_hashes_outside_shadow" selected="true"/>
    <select idref="no_uidzero_except_root" selected="true"/>
    <select idref="userowner_shadow_file" selected="true"/>
    <select idref="groupowner_shadow_file" selected="true"/>
    <select idref="perms_shadow_file" selected="true"/>
    <select idref="userowner_gshadow_file" selected="true"/>
    <select idref="groupowner_gshadow_file" selected="true"/>
    <select idref="perms_gshadow_file" selected="true"/>
    <select idref="userowner_passwd_file" selected="true"/>
    <select idref="groupowner_passwd_file" selected="true"/>
    <select idref="file_permissions_etc_passwd" selected="true"/>
    <select idref="userowner_group_file" selected="true"/>
    <select idref="groupowner_group_file" selected="true"/>
    <select idref="perms_group_file" selected="true"/>
    <select idref="file_permissions_library_dirs" selected="true"/>
    <select idref="file_ownership_library_dirs" selected="true"/>
    <select idref="file_permissions_binary_dirs" selected="true"/>
    <select idref="file_ownership_binary_dirs" selected="true"/>
    <select idref="audit_logs_permissions" selected="true"/>
    <select idref="password_min_len" selected="true"/>
    <select idref="password_min_age" selected="true"/>
    <select idref="password_max_age" selected="true"/>
    <select idref="password_warn_age" selected="true"/>
    <select idref="password_retry" selected="true"/>
    <select idref="password_require_digits" selected="true"/>
    <select idref="password_require_uppercases" selected="true"/>
    <select idref="password_require_specials" selected="true"/>
    <select idref="password_require_lowercases" selected="true"/>
    <select idref="password_require_diffchars" selected="true"/>
    <select idref="deny_password_attempts" selected="true"/>
    <select idref="set_password_hashing_algorithm_systemauth" selected="true"/>
    <select idref="set_password_hashing_algorithm_logindefs" selected="true"/>
    <select idref="set_password_hashing_algorithm_libuserconf" selected="true"/>
    <select idref="user_owner_grub_conf" selected="true"/>
    <select idref="group_owner_grub_conf" selected="true"/>
    <select idref="permissions_grub_conf" selected="true"/>
    <select idref="bootloader_password" selected="true"/>
    <select idref="require_singleuser_auth" selected="true"/>
    <select idref="disable_interactive_boot" selected="true"/>
    <select idref="package_screen_installed" selected="true"/>
    <select idref="set_system_login_banner" selected="true"/>
    <select idref="enable_randomize_va_space" selected="true"/>
    <select idref="enable_execshield" selected="true"/>
    <select idref="disable_sysctl_ipv4_default_send_redirects" selected="true"/>
    <select idref="disable_sysctl_ipv4_all_send_redirects" selected="true"/>
    <select idref="disable_sysctl_ipv4_ip_forward" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_accept_source_route" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_accept_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_secure_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_log_martians" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_accept_source_route" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_secure_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_accept_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true"/>
    <select idref="set_sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true"/>
    <select idref="set_sysctl_net_ipv4_tcp_syncookies" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_rp_filter" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_rp_filter" selected="true"/>
    <select idref="disable_ipv6_module_loading" selected="true"/>
    <select idref="set_sysctl_ipv6_default_accept_redirects" selected="true"/>
    <select idref="enable_ip6tables" selected="true"/>
    <select idref="enable_iptables" selected="true"/>
    <select idref="set_iptables_default_rule" selected="true"/>
    <select idref="disable_protocol_dccp" selected="true"/>
    <select idref="disable_protocol_sctp" selected="true"/>
    <select idref="disable_protocol_rds" selected="true"/>
    <select idref="disable_protocol_tipc" selected="true"/>
    <select idref="package_rsyslog_installed" selected="true"/>
    <select idref="service_rsyslog_enabled" selected="true"/>
    <select idref="userowner_rsyslog_files" selected="true"/>
    <select idref="groupowner_rsyslog_files" selected="true"/>
    <select idref="rsyslog_file_permissions" selected="true"/>
    <select idref="rsyslog_send_messages_to_logserver" selected="true"/>
    <select idref="ensure_logrotate_activated" selected="true"/>
    <select idref="enable_auditd_service" selected="true"/>
    <select idref="enable_auditd_bootloader" selected="true"/>
    <select idref="configure_auditd_num_logs" selected="true"/>
    <select idref="configure_auditd_max_log_file" selected="true"/>
    <select idref="configure_auditd_max_log_file_action" selected="true"/>
    <select idref="configure_auditd_admin_space_left_action" selected="true"/>
    <select idref="audit_rules_time_adjtimex" selected="true"/>
    <select idref="audit_rules_time_settimeofday" selected="true"/>
    <select idref="audit_rules_time_stime" selected="true"/>
    <select idref="audit_rules_time_clock_settime" selected="true"/>
    <select idref="audit_rules_time_watch_localtime" selected="true"/>
    <select idref="audit_account_changes" selected="true"/>
    <select idref="audit_network_modifications" selected="true"/>
    <select idref="audit_mac_changes" selected="true"/>
    <select idref="audit_rules_dac_modification_chmod" selected="true"/>
    <select idref="audit_rules_dac_modification_chown" selected="true"/>
    <select idref="audit_rules_dac_modification_fchmod" selected="true"/>
    <select idref="audit_rules_dac_modification_fchmodat" selected="true"/>
    <select idref="audit_rules_dac_modification_fchown" selected="true"/>
    <select idref="audit_rules_dac_modification_fchownat" selected="true"/>
    <select idref="audit_rules_dac_modification_fremovexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_fsetxattr" selected="true"/>
    <select idref="audit_rules_dac_modification_lchown" selected="true"/>
    <select idref="audit_rules_dac_modification_lremovexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_lsetxattr" selected="true"/>
    <select idref="audit_rules_dac_modification_removexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_setxattr" selected="true"/>
    <select idref="audit_file_access" selected="true"/>
    <select idref="audit_privileged_commands" selected="true"/>
    <select idref="audit_media_exports" selected="true"/>
    <select idref="audit_file_deletions" selected="true"/>
    <select idref="audit_sysadmin_actions" selected="true"/>
    <select idref="audit_kernel_module_loading" selected="true"/>
    <select idref="disable_xinetd" selected="true"/>
    <select idref="uninstall_xinetd" selected="true"/>
    <select idref="uninstall_telnet_server" selected="true"/>
    <select idref="disable_telnet_service" selected="true"/>
    <select idref="uninstall_rsh-server" selected="true"/>
    <select idref="disable_rsh" selected="true"/>
    <select idref="disable_rexec" selected="true"/>
    <select idref="disable_rlogin" selected="true"/>
    <select idref="uninstall_ypserv" selected="true"/>
    <select idref="disable_ypbind" selected="true"/>
    <select idref="uninstall_tftp-server" selected="true"/>
    <select idref="disable_tftp" selected="true"/>
    <select idref="enable_cron" selected="true"/>
    <select idref="sshd_allow_only_protocol2" selected="true"/>
    <select idref="sshd_set_idle_timeout" selected="true"/>
    <select idref="sshd_set_keepalive" selected="true"/>
    <select idref="sshd_disable_rhosts" selected="true"/>
    <select idref="disable_host_auth" selected="true"/>
    <select idref="sshd_disable_root_login" selected="true"/>
    <select idref="sshd_disable_empty_passwords" selected="true"/>
    <select idref="sshd_enable_warning_banner" selected="true"/>
    <select idref="sshd_do_not_permit_user_env" selected="true"/>
    <select idref="sshd_use_approved_ciphers" selected="true"/>
    <select idref="disable_avahi" selected="true"/>
    <select idref="enable_ntpd" selected="true"/>
    <select idref="ntpd_specify_remote_server" selected="true"/>
    <select idref="postfix_network_listening" selected="true"/>
    <select idref="ldap_client_start_tls" selected="true"/>
    <select idref="ldap_client_tls_cacertpath" selected="true"/>
    <select idref="package_openldap-servers_removed" selected="true"/>
    <select idref="set_screensaver_inactivity_timeout" selected="true"/>
    <select idref="enable_screensaver_after_idle" selected="true"/>
    <select idref="enable_screensaver_password_lock" selected="true"/>
    <select idref="set_blank_screensaver" selected="true"/>
    <select idref="service_abrtd_disabled" selected="true"/>
    <select idref="service_atd_disabled" selected="true"/>
    <select idref="service_autofs_disabled" selected="true"/>
    <select idref="service_ntpdate_disabled" selected="true"/>
    <select idref="service_oddjobd_disabled" selected="true"/>
    <select idref="service_qpidd_disabled" selected="true"/>
    <select idref="service_rdisc_disabled" selected="true"/>
    <select idref="use_nodev_option_on_nfs_mounts" selected="true"/>
    <select idref="use_nosuid_option_on_nfs_mounts" selected="true"/>
    <select idref="mountopt_noexec_on_removable_partitions" selected="true"/>
    <select idref="require_smb_client_signing" selected="true"/>
    <select idref="require_smb_client_signing_mount.cifs" selected="true"/>
    <select idref="limiting_password_reuse" selected="true"/>
    <refine-value idref="inactivity_timeout_value" selector="15_minutes"/>
    <refine-value idref="var_umask_for_daemons" selector="027"/>
    <refine-value idref="var_password_min_len" selector="14"/>
    <refine-value idref="var_password_max_age" selector="90"/>
    <refine-value idref="var_password_min_age" selector="7"/>
    <refine-value idref="var_password_warn_age" selector="7"/>
    <refine-value idref="var_password_pam_cracklib_retry" selector="3"/>
    <refine-value idref="var_password_pam_cracklib_minlen" selector="14"/>
    <refine-value idref="var_password_pam_cracklib_dcredit" selector="1"/>
    <refine-value idref="var_password_pam_cracklib_ucredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_ocredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_lcredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_difok" selector="3"/>
    <refine-value idref="password_history_retain_number" selector="5"/>
    <refine-value idref="var_accounts_user_umask" selector="077"/>
    <refine-value idref="login_banner_text" selector="usgcb_default"/>
    <refine-value idref="var_selinux_state_name" selector="enforcing"/>
    <refine-value idref="var_selinux_policy_name" selector="targeted"/>
    <refine-value idref="var_auditd_num_logs" selector="5"/>
    <refine-value idref="var_auditd_max_log_file" selector="6"/>
    <refine-value idref="var_auditd_max_log_file_action" selector="rotate"/>
    <refine-value idref="var_auditd_admin_space_left_action" selector="single"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_icmp_ignore_bogus_error_messages_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled"/>
    <refine-value idref="file_owner_logfiles_value" selector="root"/>
    <refine-value idref="file_groupowner_logfiles_value" selector="root"/>
    <refine-value idref="sshd_idle_timeout_value" selector="5_minutes"/>
  </Profile>
  <Profile id="desktop">
    <title xml:lang="en-US">Common Profile for General-Purpose SystemsDesktop Baseline</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This profile contains items common to general-purpose desktop and server installations.This profile is for a desktop installation of RHEL 6.</description>
    <select idref="partition_for_tmp" selected="true"/>
    <select idref="partition_for_var" selected="true"/>
    <select idref="partition_for_var_log" selected="true"/>
    <select idref="partition_for_var_log_audit" selected="true"/>
    <select idref="partition_for_home" selected="true"/>
    <select idref="ensure_redhat_gpgkey_installed" selected="true"/>
    <select idref="service_rhnsd_disabled" selected="true"/>
    <select idref="security_patches_up_to_date" selected="true"/>
    <select idref="ensure_gpgcheck_globally_activated" selected="true"/>
    <select idref="ensure_gpgcheck_never_disabled" selected="true"/>
    <select idref="package_aide_installed" selected="true"/>
    <select idref="enable_selinux_bootloader" selected="true"/>
    <select idref="no_rsh_trust_files" selected="true"/>
    <select idref="set_selinux_state" selected="true"/>
    <select idref="set_selinux_policy" selected="true"/>
    <select idref="selinux_unlabeled_device_files" selected="true"/>
    <select idref="restrict_root_console_logins" selected="true"/>
    <select idref="restrict_serial_port_logins" selected="true"/>
    <select idref="no_shelllogin_for_systemaccounts" selected="true"/>
    <select idref="no_empty_passwords" selected="true"/>
    <select idref="no_hashes_outside_shadow" selected="true"/>
    <select idref="no_uidzero_except_root" selected="true"/>
    <select idref="userowner_shadow_file" selected="true"/>
    <select idref="groupowner_shadow_file" selected="true"/>
    <select idref="perms_shadow_file" selected="true"/>
    <select idref="userowner_gshadow_file" selected="true"/>
    <select idref="groupowner_gshadow_file" selected="true"/>
    <select idref="perms_gshadow_file" selected="true"/>
    <select idref="userowner_passwd_file" selected="true"/>
    <select idref="groupowner_passwd_file" selected="true"/>
    <select idref="file_permissions_etc_passwd" selected="true"/>
    <select idref="userowner_group_file" selected="true"/>
    <select idref="groupowner_group_file" selected="true"/>
    <select idref="perms_group_file" selected="true"/>
    <select idref="file_permissions_library_dirs" selected="true"/>
    <select idref="file_ownership_library_dirs" selected="true"/>
    <select idref="file_permissions_binary_dirs" selected="true"/>
    <select idref="file_ownership_binary_dirs" selected="true"/>
    <select idref="audit_logs_permissions" selected="true"/>
    <select idref="password_min_len" selected="true"/>
    <select idref="password_min_age" selected="true"/>
    <select idref="password_max_age" selected="true"/>
    <select idref="password_warn_age" selected="true"/>
    <select idref="password_retry" selected="true"/>
    <select idref="password_require_digits" selected="true"/>
    <select idref="password_require_uppercases" selected="true"/>
    <select idref="password_require_specials" selected="true"/>
    <select idref="password_require_lowercases" selected="true"/>
    <select idref="password_require_diffchars" selected="true"/>
    <select idref="deny_password_attempts" selected="true"/>
    <select idref="set_password_hashing_algorithm_systemauth" selected="true"/>
    <select idref="set_password_hashing_algorithm_logindefs" selected="true"/>
    <select idref="set_password_hashing_algorithm_libuserconf" selected="true"/>
    <select idref="user_owner_grub_conf" selected="true"/>
    <select idref="group_owner_grub_conf" selected="true"/>
    <select idref="permissions_grub_conf" selected="true"/>
    <select idref="bootloader_password" selected="true"/>
    <select idref="require_singleuser_auth" selected="true"/>
    <select idref="disable_interactive_boot" selected="true"/>
    <select idref="package_screen_installed" selected="true"/>
    <select idref="set_system_login_banner" selected="true"/>
    <select idref="enable_randomize_va_space" selected="true"/>
    <select idref="enable_execshield" selected="true"/>
    <select idref="disable_sysctl_ipv4_default_send_redirects" selected="true"/>
    <select idref="disable_sysctl_ipv4_all_send_redirects" selected="true"/>
    <select idref="disable_sysctl_ipv4_ip_forward" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_accept_source_route" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_accept_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_secure_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_log_martians" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_accept_source_route" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_secure_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_accept_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true"/>
    <select idref="set_sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true"/>
    <select idref="set_sysctl_net_ipv4_tcp_syncookies" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_rp_filter" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_rp_filter" selected="true"/>
    <select idref="disable_ipv6_module_loading" selected="true"/>
    <select idref="set_sysctl_ipv6_default_accept_redirects" selected="true"/>
    <select idref="enable_ip6tables" selected="true"/>
    <select idref="enable_iptables" selected="true"/>
    <select idref="set_iptables_default_rule" selected="true"/>
    <select idref="disable_protocol_dccp" selected="true"/>
    <select idref="disable_protocol_sctp" selected="true"/>
    <select idref="disable_protocol_rds" selected="true"/>
    <select idref="disable_protocol_tipc" selected="true"/>
    <select idref="package_rsyslog_installed" selected="true"/>
    <select idref="service_rsyslog_enabled" selected="true"/>
    <select idref="userowner_rsyslog_files" selected="true"/>
    <select idref="groupowner_rsyslog_files" selected="true"/>
    <select idref="rsyslog_file_permissions" selected="true"/>
    <select idref="rsyslog_send_messages_to_logserver" selected="true"/>
    <select idref="ensure_logrotate_activated" selected="true"/>
    <select idref="enable_auditd_service" selected="true"/>
    <select idref="enable_auditd_bootloader" selected="true"/>
    <select idref="configure_auditd_num_logs" selected="true"/>
    <select idref="configure_auditd_max_log_file" selected="true"/>
    <select idref="configure_auditd_max_log_file_action" selected="true"/>
    <select idref="configure_auditd_admin_space_left_action" selected="true"/>
    <select idref="audit_rules_time_adjtimex" selected="true"/>
    <select idref="audit_rules_time_settimeofday" selected="true"/>
    <select idref="audit_rules_time_stime" selected="true"/>
    <select idref="audit_rules_time_clock_settime" selected="true"/>
    <select idref="audit_rules_time_watch_localtime" selected="true"/>
    <select idref="audit_account_changes" selected="true"/>
    <select idref="audit_network_modifications" selected="true"/>
    <select idref="audit_mac_changes" selected="true"/>
    <select idref="audit_rules_dac_modification_chmod" selected="true"/>
    <select idref="audit_rules_dac_modification_chown" selected="true"/>
    <select idref="audit_rules_dac_modification_fchmod" selected="true"/>
    <select idref="audit_rules_dac_modification_fchmodat" selected="true"/>
    <select idref="audit_rules_dac_modification_fchown" selected="true"/>
    <select idref="audit_rules_dac_modification_fchownat" selected="true"/>
    <select idref="audit_rules_dac_modification_fremovexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_fsetxattr" selected="true"/>
    <select idref="audit_rules_dac_modification_lchown" selected="true"/>
    <select idref="audit_rules_dac_modification_lremovexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_lsetxattr" selected="true"/>
    <select idref="audit_rules_dac_modification_removexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_setxattr" selected="true"/>
    <select idref="audit_file_access" selected="true"/>
    <select idref="audit_privileged_commands" selected="true"/>
    <select idref="audit_media_exports" selected="true"/>
    <select idref="audit_file_deletions" selected="true"/>
    <select idref="audit_sysadmin_actions" selected="true"/>
    <select idref="audit_kernel_module_loading" selected="true"/>
    <select idref="disable_xinetd" selected="true"/>
    <select idref="uninstall_xinetd" selected="true"/>
    <select idref="uninstall_telnet_server" selected="true"/>
    <select idref="disable_telnet_service" selected="true"/>
    <select idref="uninstall_rsh-server" selected="true"/>
    <select idref="disable_rsh" selected="true"/>
    <select idref="disable_rexec" selected="true"/>
    <select idref="disable_rlogin" selected="true"/>
    <select idref="uninstall_ypserv" selected="true"/>
    <select idref="disable_ypbind" selected="true"/>
    <select idref="uninstall_tftp-server" selected="true"/>
    <select idref="disable_tftp" selected="true"/>
    <select idref="enable_cron" selected="true"/>
    <select idref="sshd_allow_only_protocol2" selected="true"/>
    <select idref="sshd_set_idle_timeout" selected="true"/>
    <select idref="sshd_set_keepalive" selected="true"/>
    <select idref="sshd_disable_rhosts" selected="true"/>
    <select idref="disable_host_auth" selected="true"/>
    <select idref="sshd_disable_root_login" selected="true"/>
    <select idref="sshd_disable_empty_passwords" selected="true"/>
    <select idref="sshd_enable_warning_banner" selected="true"/>
    <select idref="sshd_do_not_permit_user_env" selected="true"/>
    <select idref="sshd_use_approved_ciphers" selected="true"/>
    <select idref="disable_avahi" selected="true"/>
    <select idref="enable_ntpd" selected="true"/>
    <select idref="ntpd_specify_remote_server" selected="true"/>
    <select idref="postfix_network_listening" selected="true"/>
    <select idref="ldap_client_start_tls" selected="true"/>
    <select idref="ldap_client_tls_cacertpath" selected="true"/>
    <select idref="package_openldap-servers_removed" selected="true"/>
    <select idref="service_abrtd_disabled" selected="true"/>
    <select idref="service_atd_disabled" selected="true"/>
    <select idref="service_autofs_disabled" selected="true"/>
    <select idref="service_ntpdate_disabled" selected="true"/>
    <select idref="service_oddjobd_disabled" selected="true"/>
    <select idref="service_qpidd_disabled" selected="true"/>
    <select idref="service_rdisc_disabled" selected="true"/>
    <select idref="use_nodev_option_on_nfs_mounts" selected="true"/>
    <select idref="use_nosuid_option_on_nfs_mounts" selected="true"/>
    <select idref="mountopt_noexec_on_removable_partitions" selected="true"/>
    <select idref="require_smb_client_signing" selected="true"/>
    <select idref="require_smb_client_signing_mount.cifs" selected="true"/>
    <select idref="limiting_password_reuse" selected="true"/>
    <select idref="enable_gdm_login_banner" selected="true"/>
    <select idref="set_gdm_login_banner_text" selected="true"/>
    <select idref="set_screensaver_inactivity_timeout" selected="true"/>
    <select idref="enable_screensaver_after_idle" selected="true"/>
    <select idref="enable_screensaver_password_lock" selected="true"/>
    <select idref="set_blank_screensaver" selected="true"/>
    <select idref="install_openswan" selected="true"/>
    <select idref="disable_vsftpd" selected="true"/>
    <select idref="uninstall_vsftpd" selected="true"/>
    <select idref="disable_dns_server" selected="true"/>
    <select idref="uninstall_bind" selected="true"/>
    <select idref="disable_httpd" selected="true"/>
    <select idref="uninstall_httpd" selected="true"/>
    <select idref="disable_smb_server" selected="true"/>
    <select idref="disable_squid" selected="true"/>
    <select idref="uninstall_squid" selected="true"/>
    <select idref="disable_snmpd" selected="true"/>
    <select idref="uninstall_net-snmp" selected="true"/>
    <select idref="disable_dovecot" selected="true"/>
    <select idref="uninstall_dovecot" selected="true"/>
    <select idref="service_nfs_disabled" selected="true"/>
    <select idref="service_rpcsvcgssd_disabled" selected="true"/>
    <select idref="service_nfslock_disabled" selected="true"/>
    <select idref="service_rpcgssd_disabled" selected="true"/>
    <select idref="service_rpcidmapd_disabled" selected="true"/>
    <select idref="service_netfs_disabled" selected="true"/>
    <select idref="disable_dhcp_server" selected="true"/>
    <select idref="uninstall_dhcp_server" selected="true"/>
    <refine-value idref="var_umask_for_daemons" selector="027"/>
    <refine-value idref="var_password_min_len" selector="14"/>
    <refine-value idref="var_password_max_age" selector="90"/>
    <refine-value idref="var_password_min_age" selector="7"/>
    <refine-value idref="var_password_warn_age" selector="7"/>
    <refine-value idref="var_password_pam_cracklib_retry" selector="3"/>
    <refine-value idref="var_password_pam_cracklib_minlen" selector="14"/>
    <refine-value idref="var_password_pam_cracklib_dcredit" selector="1"/>
    <refine-value idref="var_password_pam_cracklib_ucredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_ocredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_lcredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_difok" selector="3"/>
    <refine-value idref="password_history_retain_number" selector="5"/>
    <refine-value idref="var_accounts_user_umask" selector="077"/>
    <refine-value idref="login_banner_text" selector="usgcb_default"/>
    <refine-value idref="var_selinux_state_name" selector="enforcing"/>
    <refine-value idref="var_selinux_policy_name" selector="targeted"/>
    <refine-value idref="var_auditd_num_logs" selector="5"/>
    <refine-value idref="var_auditd_max_log_file" selector="6"/>
    <refine-value idref="var_auditd_max_log_file_action" selector="rotate"/>
    <refine-value idref="var_auditd_admin_space_left_action" selector="single"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_icmp_ignore_bogus_error_messages_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled"/>
    <refine-value idref="file_owner_logfiles_value" selector="root"/>
    <refine-value idref="file_groupowner_logfiles_value" selector="root"/>
    <refine-value idref="sshd_idle_timeout_value" selector="5_minutes"/>
    <refine-value idref="inactivity_timeout_value" selector="15_minutes"/>
  </Profile>
  <Profile id="server">
    <title xml:lang="en-US">Common Profile for General-Purpose SystemsServer Baseline</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This profile contains items common to general-purpose desktop and server installations.This profile is for RHEL 6 acting as a server.</description>
    <select idref="partition_for_tmp" selected="true"/>
    <select idref="partition_for_var" selected="true"/>
    <select idref="partition_for_var_log" selected="true"/>
    <select idref="partition_for_var_log_audit" selected="true"/>
    <select idref="partition_for_home" selected="true"/>
    <select idref="ensure_redhat_gpgkey_installed" selected="true"/>
    <select idref="service_rhnsd_disabled" selected="true"/>
    <select idref="security_patches_up_to_date" selected="true"/>
    <select idref="ensure_gpgcheck_globally_activated" selected="true"/>
    <select idref="ensure_gpgcheck_never_disabled" selected="true"/>
    <select idref="package_aide_installed" selected="true"/>
    <select idref="enable_selinux_bootloader" selected="true"/>
    <select idref="no_rsh_trust_files" selected="true"/>
    <select idref="set_selinux_state" selected="true"/>
    <select idref="set_selinux_policy" selected="true"/>
    <select idref="selinux_unlabeled_device_files" selected="true"/>
    <select idref="restrict_root_console_logins" selected="true"/>
    <select idref="restrict_serial_port_logins" selected="true"/>
    <select idref="no_shelllogin_for_systemaccounts" selected="true"/>
    <select idref="no_empty_passwords" selected="true"/>
    <select idref="no_hashes_outside_shadow" selected="true"/>
    <select idref="no_uidzero_except_root" selected="true"/>
    <select idref="userowner_shadow_file" selected="true"/>
    <select idref="groupowner_shadow_file" selected="true"/>
    <select idref="perms_shadow_file" selected="true"/>
    <select idref="userowner_gshadow_file" selected="true"/>
    <select idref="groupowner_gshadow_file" selected="true"/>
    <select idref="perms_gshadow_file" selected="true"/>
    <select idref="userowner_passwd_file" selected="true"/>
    <select idref="groupowner_passwd_file" selected="true"/>
    <select idref="file_permissions_etc_passwd" selected="true"/>
    <select idref="userowner_group_file" selected="true"/>
    <select idref="groupowner_group_file" selected="true"/>
    <select idref="perms_group_file" selected="true"/>
    <select idref="file_permissions_library_dirs" selected="true"/>
    <select idref="file_ownership_library_dirs" selected="true"/>
    <select idref="file_permissions_binary_dirs" selected="true"/>
    <select idref="file_ownership_binary_dirs" selected="true"/>
    <select idref="audit_logs_permissions" selected="true"/>
    <select idref="password_min_len" selected="true"/>
    <select idref="password_min_age" selected="true"/>
    <select idref="password_max_age" selected="true"/>
    <select idref="password_warn_age" selected="true"/>
    <select idref="password_retry" selected="true"/>
    <select idref="password_require_digits" selected="true"/>
    <select idref="password_require_uppercases" selected="true"/>
    <select idref="password_require_specials" selected="true"/>
    <select idref="password_require_lowercases" selected="true"/>
    <select idref="password_require_diffchars" selected="true"/>
    <select idref="deny_password_attempts" selected="true"/>
    <select idref="set_password_hashing_algorithm_systemauth" selected="true"/>
    <select idref="set_password_hashing_algorithm_logindefs" selected="true"/>
    <select idref="set_password_hashing_algorithm_libuserconf" selected="true"/>
    <select idref="user_owner_grub_conf" selected="true"/>
    <select idref="group_owner_grub_conf" selected="true"/>
    <select idref="permissions_grub_conf" selected="true"/>
    <select idref="bootloader_password" selected="true"/>
    <select idref="require_singleuser_auth" selected="true"/>
    <select idref="disable_interactive_boot" selected="true"/>
    <select idref="package_screen_installed" selected="true"/>
    <select idref="set_system_login_banner" selected="true"/>
    <select idref="enable_randomize_va_space" selected="true"/>
    <select idref="enable_execshield" selected="true"/>
    <select idref="disable_sysctl_ipv4_default_send_redirects" selected="true"/>
    <select idref="disable_sysctl_ipv4_all_send_redirects" selected="true"/>
    <select idref="disable_sysctl_ipv4_ip_forward" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_accept_source_route" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_accept_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_secure_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_log_martians" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_accept_source_route" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_secure_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_accept_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true"/>
    <select idref="set_sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true"/>
    <select idref="set_sysctl_net_ipv4_tcp_syncookies" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_rp_filter" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_rp_filter" selected="true"/>
    <select idref="disable_ipv6_module_loading" selected="true"/>
    <select idref="set_sysctl_ipv6_default_accept_redirects" selected="true"/>
    <select idref="enable_ip6tables" selected="true"/>
    <select idref="enable_iptables" selected="true"/>
    <select idref="set_iptables_default_rule" selected="true"/>
    <select idref="disable_protocol_dccp" selected="true"/>
    <select idref="disable_protocol_sctp" selected="true"/>
    <select idref="disable_protocol_rds" selected="true"/>
    <select idref="disable_protocol_tipc" selected="true"/>
    <select idref="package_rsyslog_installed" selected="true"/>
    <select idref="service_rsyslog_enabled" selected="true"/>
    <select idref="userowner_rsyslog_files" selected="true"/>
    <select idref="groupowner_rsyslog_files" selected="true"/>
    <select idref="rsyslog_file_permissions" selected="true"/>
    <select idref="rsyslog_send_messages_to_logserver" selected="true"/>
    <select idref="ensure_logrotate_activated" selected="true"/>
    <select idref="enable_auditd_service" selected="true"/>
    <select idref="enable_auditd_bootloader" selected="true"/>
    <select idref="configure_auditd_num_logs" selected="true"/>
    <select idref="configure_auditd_max_log_file" selected="true"/>
    <select idref="configure_auditd_max_log_file_action" selected="true"/>
    <select idref="configure_auditd_admin_space_left_action" selected="true"/>
    <select idref="audit_rules_time_adjtimex" selected="true"/>
    <select idref="audit_rules_time_settimeofday" selected="true"/>
    <select idref="audit_rules_time_stime" selected="true"/>
    <select idref="audit_rules_time_clock_settime" selected="true"/>
    <select idref="audit_rules_time_watch_localtime" selected="true"/>
    <select idref="audit_account_changes" selected="true"/>
    <select idref="audit_network_modifications" selected="true"/>
    <select idref="audit_mac_changes" selected="true"/>
    <select idref="audit_rules_dac_modification_chmod" selected="true"/>
    <select idref="audit_rules_dac_modification_chown" selected="true"/>
    <select idref="audit_rules_dac_modification_fchmod" selected="true"/>
    <select idref="audit_rules_dac_modification_fchmodat" selected="true"/>
    <select idref="audit_rules_dac_modification_fchown" selected="true"/>
    <select idref="audit_rules_dac_modification_fchownat" selected="true"/>
    <select idref="audit_rules_dac_modification_fremovexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_fsetxattr" selected="true"/>
    <select idref="audit_rules_dac_modification_lchown" selected="true"/>
    <select idref="audit_rules_dac_modification_lremovexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_lsetxattr" selected="true"/>
    <select idref="audit_rules_dac_modification_removexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_setxattr" selected="true"/>
    <select idref="audit_file_access" selected="true"/>
    <select idref="audit_privileged_commands" selected="true"/>
    <select idref="audit_media_exports" selected="true"/>
    <select idref="audit_file_deletions" selected="true"/>
    <select idref="audit_sysadmin_actions" selected="true"/>
    <select idref="audit_kernel_module_loading" selected="true"/>
    <select idref="disable_xinetd" selected="true"/>
    <select idref="uninstall_xinetd" selected="true"/>
    <select idref="uninstall_telnet_server" selected="true"/>
    <select idref="disable_telnet_service" selected="true"/>
    <select idref="uninstall_rsh-server" selected="true"/>
    <select idref="disable_rsh" selected="true"/>
    <select idref="disable_rexec" selected="true"/>
    <select idref="disable_rlogin" selected="true"/>
    <select idref="uninstall_ypserv" selected="true"/>
    <select idref="disable_ypbind" selected="true"/>
    <select idref="uninstall_tftp-server" selected="true"/>
    <select idref="disable_tftp" selected="true"/>
    <select idref="enable_cron" selected="true"/>
    <select idref="sshd_allow_only_protocol2" selected="true"/>
    <select idref="sshd_set_idle_timeout" selected="true"/>
    <select idref="sshd_set_keepalive" selected="true"/>
    <select idref="sshd_disable_rhosts" selected="true"/>
    <select idref="disable_host_auth" selected="true"/>
    <select idref="sshd_disable_root_login" selected="true"/>
    <select idref="sshd_disable_empty_passwords" selected="true"/>
    <select idref="sshd_enable_warning_banner" selected="true"/>
    <select idref="sshd_do_not_permit_user_env" selected="true"/>
    <select idref="sshd_use_approved_ciphers" selected="true"/>
    <select idref="disable_avahi" selected="true"/>
    <select idref="enable_ntpd" selected="true"/>
    <select idref="ntpd_specify_remote_server" selected="true"/>
    <select idref="postfix_network_listening" selected="true"/>
    <select idref="ldap_client_start_tls" selected="true"/>
    <select idref="ldap_client_tls_cacertpath" selected="true"/>
    <select idref="package_openldap-servers_removed" selected="true"/>
    <select idref="set_screensaver_inactivity_timeout" selected="true"/>
    <select idref="enable_screensaver_after_idle" selected="true"/>
    <select idref="enable_screensaver_password_lock" selected="true"/>
    <select idref="set_blank_screensaver" selected="true"/>
    <select idref="service_abrtd_disabled" selected="true"/>
    <select idref="service_atd_disabled" selected="true"/>
    <select idref="service_autofs_disabled" selected="true"/>
    <select idref="service_ntpdate_disabled" selected="true"/>
    <select idref="service_oddjobd_disabled" selected="true"/>
    <select idref="service_qpidd_disabled" selected="true"/>
    <select idref="service_rdisc_disabled" selected="true"/>
    <select idref="use_nodev_option_on_nfs_mounts" selected="true"/>
    <select idref="use_nosuid_option_on_nfs_mounts" selected="true"/>
    <select idref="mountopt_noexec_on_removable_partitions" selected="true"/>
    <select idref="require_smb_client_signing" selected="true"/>
    <select idref="require_smb_client_signing_mount.cifs" selected="true"/>
    <select idref="limiting_password_reuse" selected="true"/>
    <select idref="deactivate_wireless_interfaces" selected="true"/>
    <select idref="disable_xwindows_with_runlevel" selected="true"/>
    <select idref="packagegroup_xwindows_remove" selected="true"/>
    <select idref="disable_dhcp_client" selected="true"/>
    <refine-value idref="inactivity_timeout_value" selector="15_minutes"/>
    <refine-value idref="var_umask_for_daemons" selector="027"/>
    <refine-value idref="var_password_min_len" selector="14"/>
    <refine-value idref="var_password_max_age" selector="90"/>
    <refine-value idref="var_password_min_age" selector="7"/>
    <refine-value idref="var_password_warn_age" selector="7"/>
    <refine-value idref="var_password_pam_cracklib_retry" selector="3"/>
    <refine-value idref="var_password_pam_cracklib_minlen" selector="14"/>
    <refine-value idref="var_password_pam_cracklib_dcredit" selector="1"/>
    <refine-value idref="var_password_pam_cracklib_ucredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_ocredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_lcredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_difok" selector="3"/>
    <refine-value idref="password_history_retain_number" selector="5"/>
    <refine-value idref="var_accounts_user_umask" selector="077"/>
    <refine-value idref="login_banner_text" selector="usgcb_default"/>
    <refine-value idref="var_selinux_state_name" selector="enforcing"/>
    <refine-value idref="var_selinux_policy_name" selector="targeted"/>
    <refine-value idref="var_auditd_num_logs" selector="5"/>
    <refine-value idref="var_auditd_max_log_file" selector="6"/>
    <refine-value idref="var_auditd_max_log_file_action" selector="rotate"/>
    <refine-value idref="var_auditd_admin_space_left_action" selector="single"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_icmp_ignore_bogus_error_messages_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled"/>
    <refine-value idref="file_owner_logfiles_value" selector="root"/>
    <refine-value idref="file_groupowner_logfiles_value" selector="root"/>
    <refine-value idref="sshd_idle_timeout_value" selector="5_minutes"/>
  </Profile>
  <Profile id="ftp">
    <title xml:lang="en-US">Common Profile for General-Purpose SystemsServer Baselineftp</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This profile contains items common to general-purpose desktop and server installations.This profile is for RHEL 6 acting as a server.This profile is for FTP servers.</description>
    <select idref="partition_for_tmp" selected="true"/>
    <select idref="partition_for_var" selected="true"/>
    <select idref="partition_for_var_log" selected="true"/>
    <select idref="partition_for_var_log_audit" selected="true"/>
    <select idref="partition_for_home" selected="true"/>
    <select idref="ensure_redhat_gpgkey_installed" selected="true"/>
    <select idref="service_rhnsd_disabled" selected="true"/>
    <select idref="security_patches_up_to_date" selected="true"/>
    <select idref="ensure_gpgcheck_globally_activated" selected="true"/>
    <select idref="ensure_gpgcheck_never_disabled" selected="true"/>
    <select idref="package_aide_installed" selected="true"/>
    <select idref="enable_selinux_bootloader" selected="true"/>
    <select idref="no_rsh_trust_files" selected="true"/>
    <select idref="set_selinux_state" selected="true"/>
    <select idref="set_selinux_policy" selected="true"/>
    <select idref="selinux_unlabeled_device_files" selected="true"/>
    <select idref="restrict_root_console_logins" selected="true"/>
    <select idref="restrict_serial_port_logins" selected="true"/>
    <select idref="no_shelllogin_for_systemaccounts" selected="true"/>
    <select idref="no_empty_passwords" selected="true"/>
    <select idref="no_hashes_outside_shadow" selected="true"/>
    <select idref="no_uidzero_except_root" selected="true"/>
    <select idref="userowner_shadow_file" selected="true"/>
    <select idref="groupowner_shadow_file" selected="true"/>
    <select idref="perms_shadow_file" selected="true"/>
    <select idref="userowner_gshadow_file" selected="true"/>
    <select idref="groupowner_gshadow_file" selected="true"/>
    <select idref="perms_gshadow_file" selected="true"/>
    <select idref="userowner_passwd_file" selected="true"/>
    <select idref="groupowner_passwd_file" selected="true"/>
    <select idref="file_permissions_etc_passwd" selected="true"/>
    <select idref="userowner_group_file" selected="true"/>
    <select idref="groupowner_group_file" selected="true"/>
    <select idref="perms_group_file" selected="true"/>
    <select idref="file_permissions_library_dirs" selected="true"/>
    <select idref="file_ownership_library_dirs" selected="true"/>
    <select idref="file_permissions_binary_dirs" selected="true"/>
    <select idref="file_ownership_binary_dirs" selected="true"/>
    <select idref="audit_logs_permissions" selected="true"/>
    <select idref="password_min_len" selected="true"/>
    <select idref="password_min_age" selected="true"/>
    <select idref="password_max_age" selected="true"/>
    <select idref="password_warn_age" selected="true"/>
    <select idref="password_retry" selected="true"/>
    <select idref="password_require_digits" selected="true"/>
    <select idref="password_require_uppercases" selected="true"/>
    <select idref="password_require_specials" selected="true"/>
    <select idref="password_require_lowercases" selected="true"/>
    <select idref="password_require_diffchars" selected="true"/>
    <select idref="deny_password_attempts" selected="true"/>
    <select idref="set_password_hashing_algorithm_systemauth" selected="true"/>
    <select idref="set_password_hashing_algorithm_logindefs" selected="true"/>
    <select idref="set_password_hashing_algorithm_libuserconf" selected="true"/>
    <select idref="user_owner_grub_conf" selected="true"/>
    <select idref="group_owner_grub_conf" selected="true"/>
    <select idref="permissions_grub_conf" selected="true"/>
    <select idref="bootloader_password" selected="true"/>
    <select idref="require_singleuser_auth" selected="true"/>
    <select idref="disable_interactive_boot" selected="true"/>
    <select idref="package_screen_installed" selected="true"/>
    <select idref="set_system_login_banner" selected="true"/>
    <select idref="enable_randomize_va_space" selected="true"/>
    <select idref="enable_execshield" selected="true"/>
    <select idref="disable_sysctl_ipv4_default_send_redirects" selected="true"/>
    <select idref="disable_sysctl_ipv4_all_send_redirects" selected="true"/>
    <select idref="disable_sysctl_ipv4_ip_forward" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_accept_source_route" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_accept_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_secure_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_log_martians" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_accept_source_route" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_secure_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_accept_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true"/>
    <select idref="set_sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true"/>
    <select idref="set_sysctl_net_ipv4_tcp_syncookies" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_rp_filter" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_rp_filter" selected="true"/>
    <select idref="disable_ipv6_module_loading" selected="true"/>
    <select idref="set_sysctl_ipv6_default_accept_redirects" selected="true"/>
    <select idref="enable_ip6tables" selected="true"/>
    <select idref="enable_iptables" selected="true"/>
    <select idref="set_iptables_default_rule" selected="true"/>
    <select idref="disable_protocol_dccp" selected="true"/>
    <select idref="disable_protocol_sctp" selected="true"/>
    <select idref="disable_protocol_rds" selected="true"/>
    <select idref="disable_protocol_tipc" selected="true"/>
    <select idref="package_rsyslog_installed" selected="true"/>
    <select idref="service_rsyslog_enabled" selected="true"/>
    <select idref="userowner_rsyslog_files" selected="true"/>
    <select idref="groupowner_rsyslog_files" selected="true"/>
    <select idref="rsyslog_file_permissions" selected="true"/>
    <select idref="rsyslog_send_messages_to_logserver" selected="true"/>
    <select idref="ensure_logrotate_activated" selected="true"/>
    <select idref="enable_auditd_service" selected="true"/>
    <select idref="enable_auditd_bootloader" selected="true"/>
    <select idref="configure_auditd_num_logs" selected="true"/>
    <select idref="configure_auditd_max_log_file" selected="true"/>
    <select idref="configure_auditd_max_log_file_action" selected="true"/>
    <select idref="configure_auditd_admin_space_left_action" selected="true"/>
    <select idref="audit_rules_time_adjtimex" selected="true"/>
    <select idref="audit_rules_time_settimeofday" selected="true"/>
    <select idref="audit_rules_time_stime" selected="true"/>
    <select idref="audit_rules_time_clock_settime" selected="true"/>
    <select idref="audit_rules_time_watch_localtime" selected="true"/>
    <select idref="audit_account_changes" selected="true"/>
    <select idref="audit_network_modifications" selected="true"/>
    <select idref="audit_mac_changes" selected="true"/>
    <select idref="audit_rules_dac_modification_chmod" selected="true"/>
    <select idref="audit_rules_dac_modification_chown" selected="true"/>
    <select idref="audit_rules_dac_modification_fchmod" selected="true"/>
    <select idref="audit_rules_dac_modification_fchmodat" selected="true"/>
    <select idref="audit_rules_dac_modification_fchown" selected="true"/>
    <select idref="audit_rules_dac_modification_fchownat" selected="true"/>
    <select idref="audit_rules_dac_modification_fremovexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_fsetxattr" selected="true"/>
    <select idref="audit_rules_dac_modification_lchown" selected="true"/>
    <select idref="audit_rules_dac_modification_lremovexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_lsetxattr" selected="true"/>
    <select idref="audit_rules_dac_modification_removexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_setxattr" selected="true"/>
    <select idref="audit_file_access" selected="true"/>
    <select idref="audit_privileged_commands" selected="true"/>
    <select idref="audit_media_exports" selected="true"/>
    <select idref="audit_file_deletions" selected="true"/>
    <select idref="audit_sysadmin_actions" selected="true"/>
    <select idref="audit_kernel_module_loading" selected="true"/>
    <select idref="disable_xinetd" selected="true"/>
    <select idref="uninstall_xinetd" selected="true"/>
    <select idref="uninstall_telnet_server" selected="true"/>
    <select idref="disable_telnet_service" selected="true"/>
    <select idref="uninstall_rsh-server" selected="true"/>
    <select idref="disable_rsh" selected="true"/>
    <select idref="disable_rexec" selected="true"/>
    <select idref="disable_rlogin" selected="true"/>
    <select idref="uninstall_ypserv" selected="true"/>
    <select idref="disable_ypbind" selected="true"/>
    <select idref="uninstall_tftp-server" selected="true"/>
    <select idref="disable_tftp" selected="true"/>
    <select idref="enable_cron" selected="true"/>
    <select idref="sshd_allow_only_protocol2" selected="true"/>
    <select idref="sshd_set_idle_timeout" selected="true"/>
    <select idref="sshd_set_keepalive" selected="true"/>
    <select idref="sshd_disable_rhosts" selected="true"/>
    <select idref="disable_host_auth" selected="true"/>
    <select idref="sshd_disable_root_login" selected="true"/>
    <select idref="sshd_disable_empty_passwords" selected="true"/>
    <select idref="sshd_enable_warning_banner" selected="true"/>
    <select idref="sshd_do_not_permit_user_env" selected="true"/>
    <select idref="sshd_use_approved_ciphers" selected="true"/>
    <select idref="disable_avahi" selected="true"/>
    <select idref="enable_ntpd" selected="true"/>
    <select idref="ntpd_specify_remote_server" selected="true"/>
    <select idref="postfix_network_listening" selected="true"/>
    <select idref="ldap_client_start_tls" selected="true"/>
    <select idref="ldap_client_tls_cacertpath" selected="true"/>
    <select idref="package_openldap-servers_removed" selected="true"/>
    <select idref="set_screensaver_inactivity_timeout" selected="true"/>
    <select idref="enable_screensaver_after_idle" selected="true"/>
    <select idref="enable_screensaver_password_lock" selected="true"/>
    <select idref="set_blank_screensaver" selected="true"/>
    <select idref="service_abrtd_disabled" selected="true"/>
    <select idref="service_atd_disabled" selected="true"/>
    <select idref="service_autofs_disabled" selected="true"/>
    <select idref="service_ntpdate_disabled" selected="true"/>
    <select idref="service_oddjobd_disabled" selected="true"/>
    <select idref="service_qpidd_disabled" selected="true"/>
    <select idref="service_rdisc_disabled" selected="true"/>
    <select idref="use_nodev_option_on_nfs_mounts" selected="true"/>
    <select idref="use_nosuid_option_on_nfs_mounts" selected="true"/>
    <select idref="mountopt_noexec_on_removable_partitions" selected="true"/>
    <select idref="require_smb_client_signing" selected="true"/>
    <select idref="require_smb_client_signing_mount.cifs" selected="true"/>
    <select idref="limiting_password_reuse" selected="true"/>
    <select idref="deactivate_wireless_interfaces" selected="true"/>
    <select idref="disable_xwindows_with_runlevel" selected="true"/>
    <select idref="packagegroup_xwindows_remove" selected="true"/>
    <select idref="disable_dhcp_client" selected="true"/>
    <select idref="install_vsftpd" selected="true"/>
    <select idref="ftp_log_transactions" selected="true"/>
    <select idref="ftp_present_banner" selected="true"/>
    <select idref="ftp_restrict_to_anon" selected="true"/>
    <select idref="ftp_disable_uploads" selected="true"/>
    <select idref="ftp_home_partition" selected="true"/>
    <refine-value idref="inactivity_timeout_value" selector="15_minutes"/>
    <refine-value idref="var_umask_for_daemons" selector="027"/>
    <refine-value idref="var_password_min_len" selector="14"/>
    <refine-value idref="var_password_max_age" selector="90"/>
    <refine-value idref="var_password_min_age" selector="7"/>
    <refine-value idref="var_password_warn_age" selector="7"/>
    <refine-value idref="var_password_pam_cracklib_retry" selector="3"/>
    <refine-value idref="var_password_pam_cracklib_minlen" selector="14"/>
    <refine-value idref="var_password_pam_cracklib_dcredit" selector="1"/>
    <refine-value idref="var_password_pam_cracklib_ucredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_ocredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_lcredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_difok" selector="3"/>
    <refine-value idref="password_history_retain_number" selector="5"/>
    <refine-value idref="var_accounts_user_umask" selector="077"/>
    <refine-value idref="login_banner_text" selector="usgcb_default"/>
    <refine-value idref="var_selinux_state_name" selector="enforcing"/>
    <refine-value idref="var_selinux_policy_name" selector="targeted"/>
    <refine-value idref="var_auditd_num_logs" selector="5"/>
    <refine-value idref="var_auditd_max_log_file" selector="6"/>
    <refine-value idref="var_auditd_max_log_file_action" selector="rotate"/>
    <refine-value idref="var_auditd_admin_space_left_action" selector="single"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_icmp_ignore_bogus_error_messages_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled"/>
    <refine-value idref="file_owner_logfiles_value" selector="root"/>
    <refine-value idref="file_groupowner_logfiles_value" selector="root"/>
    <refine-value idref="sshd_idle_timeout_value" selector="5_minutes"/>
  </Profile>
  <Profile id="stig-rhel6-server">
    <title xml:lang="en-US">Common Profile for General-Purpose SystemsPre-release Draft STIG for RHEL 6 Server</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This profile contains items common to general-purpose desktop and server installations.This profile is being developed under the DoD consensus model to become a STIG in coordination with DISA FSO.</description>
    <select idref="partition_for_tmp" selected="true"/>
    <select idref="partition_for_var" selected="true"/>
    <select idref="partition_for_var_log" selected="true"/>
    <select idref="partition_for_var_log_audit" selected="true"/>
    <select idref="partition_for_home" selected="true"/>
    <select idref="ensure_redhat_gpgkey_installed" selected="true"/>
    <select idref="service_rhnsd_disabled" selected="true"/>
    <select idref="security_patches_up_to_date" selected="true"/>
    <select idref="ensure_gpgcheck_globally_activated" selected="true"/>
    <select idref="ensure_gpgcheck_never_disabled" selected="true"/>
    <select idref="package_aide_installed" selected="true"/>
    <select idref="enable_selinux_bootloader" selected="true"/>
    <select idref="no_rsh_trust_files" selected="true"/>
    <select idref="set_selinux_state" selected="true"/>
    <select idref="set_selinux_policy" selected="true"/>
    <select idref="selinux_unlabeled_device_files" selected="true"/>
    <select idref="restrict_root_console_logins" selected="true"/>
    <select idref="restrict_serial_port_logins" selected="true"/>
    <select idref="no_shelllogin_for_systemaccounts" selected="true"/>
    <select idref="no_empty_passwords" selected="true"/>
    <select idref="no_hashes_outside_shadow" selected="true"/>
    <select idref="no_uidzero_except_root" selected="true"/>
    <select idref="userowner_shadow_file" selected="true"/>
    <select idref="groupowner_shadow_file" selected="true"/>
    <select idref="perms_shadow_file" selected="true"/>
    <select idref="userowner_gshadow_file" selected="true"/>
    <select idref="groupowner_gshadow_file" selected="true"/>
    <select idref="perms_gshadow_file" selected="true"/>
    <select idref="userowner_passwd_file" selected="true"/>
    <select idref="groupowner_passwd_file" selected="true"/>
    <select idref="file_permissions_etc_passwd" selected="true"/>
    <select idref="userowner_group_file" selected="true"/>
    <select idref="groupowner_group_file" selected="true"/>
    <select idref="perms_group_file" selected="true"/>
    <select idref="file_permissions_library_dirs" selected="true"/>
    <select idref="file_ownership_library_dirs" selected="true"/>
    <select idref="file_permissions_binary_dirs" selected="true"/>
    <select idref="file_ownership_binary_dirs" selected="true"/>
    <select idref="audit_logs_permissions" selected="true"/>
    <select idref="password_min_len" selected="true"/>
    <select idref="password_min_age" selected="true"/>
    <select idref="password_max_age" selected="true"/>
    <select idref="password_warn_age" selected="true"/>
    <select idref="password_retry" selected="true"/>
    <select idref="password_require_digits" selected="true"/>
    <select idref="password_require_uppercases" selected="true"/>
    <select idref="password_require_specials" selected="true"/>
    <select idref="password_require_lowercases" selected="true"/>
    <select idref="password_require_diffchars" selected="true"/>
    <select idref="deny_password_attempts" selected="true"/>
    <select idref="set_password_hashing_algorithm_systemauth" selected="true"/>
    <select idref="set_password_hashing_algorithm_logindefs" selected="true"/>
    <select idref="set_password_hashing_algorithm_libuserconf" selected="true"/>
    <select idref="user_owner_grub_conf" selected="true"/>
    <select idref="group_owner_grub_conf" selected="true"/>
    <select idref="permissions_grub_conf" selected="true"/>
    <select idref="bootloader_password" selected="true"/>
    <select idref="require_singleuser_auth" selected="true"/>
    <select idref="disable_interactive_boot" selected="true"/>
    <select idref="package_screen_installed" selected="true"/>
    <select idref="set_system_login_banner" selected="true"/>
    <select idref="enable_randomize_va_space" selected="true"/>
    <select idref="enable_execshield" selected="true"/>
    <select idref="disable_sysctl_ipv4_default_send_redirects" selected="true"/>
    <select idref="disable_sysctl_ipv4_all_send_redirects" selected="true"/>
    <select idref="disable_sysctl_ipv4_ip_forward" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_accept_source_route" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_accept_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_secure_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_log_martians" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_accept_source_route" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_secure_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_accept_redirects" selected="true"/>
    <select idref="set_sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true"/>
    <select idref="set_sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true"/>
    <select idref="set_sysctl_net_ipv4_tcp_syncookies" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_all_rp_filter" selected="true"/>
    <select idref="set_sysctl_net_ipv4_conf_default_rp_filter" selected="true"/>
    <select idref="disable_ipv6_module_loading" selected="true"/>
    <select idref="set_sysctl_ipv6_default_accept_redirects" selected="true"/>
    <select idref="enable_ip6tables" selected="true"/>
    <select idref="enable_iptables" selected="true"/>
    <select idref="set_iptables_default_rule" selected="true"/>
    <select idref="disable_protocol_dccp" selected="true"/>
    <select idref="disable_protocol_sctp" selected="true"/>
    <select idref="disable_protocol_rds" selected="true"/>
    <select idref="disable_protocol_tipc" selected="true"/>
    <select idref="package_rsyslog_installed" selected="true"/>
    <select idref="service_rsyslog_enabled" selected="true"/>
    <select idref="userowner_rsyslog_files" selected="true"/>
    <select idref="groupowner_rsyslog_files" selected="true"/>
    <select idref="rsyslog_file_permissions" selected="true"/>
    <select idref="rsyslog_send_messages_to_logserver" selected="true"/>
    <select idref="ensure_logrotate_activated" selected="true"/>
    <select idref="enable_auditd_service" selected="true"/>
    <select idref="enable_auditd_bootloader" selected="true"/>
    <select idref="configure_auditd_num_logs" selected="true"/>
    <select idref="configure_auditd_max_log_file" selected="true"/>
    <select idref="configure_auditd_max_log_file_action" selected="true"/>
    <select idref="configure_auditd_admin_space_left_action" selected="true"/>
    <select idref="audit_rules_time_adjtimex" selected="true"/>
    <select idref="audit_rules_time_settimeofday" selected="true"/>
    <select idref="audit_rules_time_stime" selected="true"/>
    <select idref="audit_rules_time_clock_settime" selected="true"/>
    <select idref="audit_rules_time_watch_localtime" selected="true"/>
    <select idref="audit_account_changes" selected="true"/>
    <select idref="audit_network_modifications" selected="true"/>
    <select idref="audit_mac_changes" selected="true"/>
    <select idref="audit_rules_dac_modification_chmod" selected="true"/>
    <select idref="audit_rules_dac_modification_chown" selected="true"/>
    <select idref="audit_rules_dac_modification_fchmod" selected="true"/>
    <select idref="audit_rules_dac_modification_fchmodat" selected="true"/>
    <select idref="audit_rules_dac_modification_fchown" selected="true"/>
    <select idref="audit_rules_dac_modification_fchownat" selected="true"/>
    <select idref="audit_rules_dac_modification_fremovexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_fsetxattr" selected="true"/>
    <select idref="audit_rules_dac_modification_lchown" selected="true"/>
    <select idref="audit_rules_dac_modification_lremovexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_lsetxattr" selected="true"/>
    <select idref="audit_rules_dac_modification_removexattr" selected="true"/>
    <select idref="audit_rules_dac_modification_setxattr" selected="true"/>
    <select idref="audit_file_access" selected="true"/>
    <select idref="audit_privileged_commands" selected="true"/>
    <select idref="audit_media_exports" selected="true"/>
    <select idref="audit_file_deletions" selected="true"/>
    <select idref="audit_sysadmin_actions" selected="true"/>
    <select idref="audit_kernel_module_loading" selected="true"/>
    <select idref="disable_xinetd" selected="true"/>
    <select idref="uninstall_xinetd" selected="true"/>
    <select idref="uninstall_telnet_server" selected="true"/>
    <select idref="disable_telnet_service" selected="true"/>
    <select idref="uninstall_rsh-server" selected="true"/>
    <select idref="disable_rsh" selected="true"/>
    <select idref="disable_rexec" selected="true"/>
    <select idref="disable_rlogin" selected="true"/>
    <select idref="uninstall_ypserv" selected="true"/>
    <select idref="disable_ypbind" selected="true"/>
    <select idref="uninstall_tftp-server" selected="true"/>
    <select idref="disable_tftp" selected="true"/>
    <select idref="enable_cron" selected="true"/>
    <select idref="sshd_allow_only_protocol2" selected="true"/>
    <select idref="sshd_set_idle_timeout" selected="true"/>
    <select idref="sshd_set_keepalive" selected="true"/>
    <select idref="sshd_disable_rhosts" selected="true"/>
    <select idref="disable_host_auth" selected="true"/>
    <select idref="sshd_disable_root_login" selected="true"/>
    <select idref="sshd_disable_empty_passwords" selected="true"/>
    <select idref="sshd_enable_warning_banner" selected="true"/>
    <select idref="sshd_do_not_permit_user_env" selected="true"/>
    <select idref="sshd_use_approved_ciphers" selected="true"/>
    <select idref="disable_avahi" selected="true"/>
    <select idref="enable_ntpd" selected="true"/>
    <select idref="ntpd_specify_remote_server" selected="true"/>
    <select idref="postfix_network_listening" selected="true"/>
    <select idref="ldap_client_start_tls" selected="true"/>
    <select idref="ldap_client_tls_cacertpath" selected="true"/>
    <select idref="package_openldap-servers_removed" selected="true"/>
    <select idref="set_screensaver_inactivity_timeout" selected="true"/>
    <select idref="enable_screensaver_after_idle" selected="true"/>
    <select idref="enable_screensaver_password_lock" selected="true"/>
    <select idref="set_blank_screensaver" selected="true"/>
    <select idref="service_abrtd_disabled" selected="true"/>
    <select idref="service_autofs_disabled" selected="true"/>
    <select idref="service_ntpdate_disabled" selected="true"/>
    <select idref="service_oddjobd_disabled" selected="true"/>
    <select idref="service_qpidd_disabled" selected="true"/>
    <select idref="service_rdisc_disabled" selected="true"/>
    <select idref="use_nodev_option_on_nfs_mounts" selected="true"/>
    <select idref="use_nosuid_option_on_nfs_mounts" selected="true"/>
    <select idref="mountopt_noexec_on_removable_partitions" selected="true"/>
    <select idref="require_smb_client_signing" selected="true"/>
    <select idref="require_smb_client_signing_mount.cifs" selected="true"/>
    <select idref="encrypt_partitions" selected="true"/>
    <select idref="rpm_verify_permissions" selected="true"/>
    <select idref="rpm_verify_hashes" selected="true"/>
    <select idref="world_writeable_files" selected="true"/>
    <select idref="install_antivirus" selected="true"/>
    <select idref="install_hids" selected="true"/>
    <select idref="disable_ctrlaltdel_reboot" selected="true"/>
    <select idref="service_postfix_enable" selected="true"/>
    <select idref="package_sendmail_removed" selected="true"/>
    <select idref="service_netconsole_disabled" selected="true"/>
    <select idref="disable_xwindows_with_runlevel" selected="true"/>
    <select idref="packagegroup_xwindows_remove" selected="true"/>
    <select idref="disable_dhcp_client" selected="true"/>
    <select idref="limiting_password_reuse" selected="true"/>
    <select idref="gid_passwd_group_same" selected="true"/>
    <select idref="account_unique_name" selected="true"/>
    <select idref="account_temp_expire_date" selected="true"/>
    <select idref="password_require_consecrepeat" selected="true"/>
    <select idref="no_files_unowned_by_user" selected="true"/>
    <select idref="no_files_unowned_by_group" selected="true"/>
    <select idref="aide_periodic_cron_checking" selected="true"/>
    <select idref="disable_users_coredumps" selected="true"/>
    <select idref="no_insecure_locks_exports" selected="true"/>
    <select idref="configure_auditd_space_left_action" selected="true"/>
    <select idref="configure_auditd_action_mail_acct" selected="true"/>
    <select idref="kernel_module_bluetooth_disabled" selected="true"/>
    <select idref="kernel_module_usb-storage_disabled" selected="true"/>
    <select idref="max_concurrent_login_sessions" selected="true"/>
    <select idref="set_iptables_default_rule_forward" selected="true"/>
    <select idref="install_openswan" selected="true"/>
    <select idref="enable_gdm_login_banner" selected="true"/>
    <select idref="set_gdm_login_banner_text" selected="true"/>
    <select idref="service_bluetooth_disabled" selected="true"/>
    <select idref="account_disable_post_pw_expiration" selected="true"/>
    <select idref="sticky_world_writable_dirs" selected="true"/>
    <select idref="world_writable_files_system_ownership" selected="true"/>
    <select idref="tftpd_uses_secure_mode" selected="true"/>
    <select idref="ftp_log_transactions" selected="true"/>
    <select idref="snmpd_use_newer_protocol" selected="true"/>
    <select idref="snmpd_not_default_password" selected="true"/>
    <select idref="user_umask_bashrc" selected="true"/>
    <select idref="user_umask_cshrc" selected="true"/>
    <select idref="user_umask_profile" selected="true"/>
    <select idref="user_umask_logindefs" selected="true"/>
    <select idref="set_daemon_umask" selected="true"/>
    <select idref="no_netrc_files" selected="true"/>
    <select idref="ftp_present_banner" selected="true"/>
    <select idref="smartcard_auth" selected="true"/>
    <select idref="display_login_attempts" selected="true"/>
    <select idref="deny_password_attempts_unlock_time" selected="true"/>
    <select idref="deny_password_attempts_fail_interval" selected="true"/>
    <select idref="service_atd_disabled" selected="false"/>
    <refine-value idref="inactivity_timeout_value" selector="15_minutes"/>
    <refine-value idref="var_password_min_len" selector="14"/>
    <refine-value idref="var_password_warn_age" selector="7"/>
    <refine-value idref="var_password_pam_cracklib_retry" selector="3"/>
    <refine-value idref="var_password_pam_cracklib_minlen" selector="14"/>
    <refine-value idref="var_password_pam_cracklib_dcredit" selector="1"/>
    <refine-value idref="var_password_pam_cracklib_ucredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_ocredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_lcredit" selector="2"/>
    <refine-value idref="var_password_pam_cracklib_difok" selector="3"/>
    <refine-value idref="var_selinux_state_name" selector="enforcing"/>
    <refine-value idref="var_selinux_policy_name" selector="targeted"/>
    <refine-value idref="var_auditd_num_logs" selector="5"/>
    <refine-value idref="var_auditd_max_log_file" selector="6"/>
    <refine-value idref="var_auditd_max_log_file_action" selector="rotate"/>
    <refine-value idref="var_auditd_admin_space_left_action" selector="single"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled"/>
    <refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_icmp_ignore_bogus_error_messages_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled"/>
    <refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled"/>
    <refine-value idref="file_owner_logfiles_value" selector="root"/>
    <refine-value idref="file_groupowner_logfiles_value" selector="root"/>
    <refine-value idref="sshd_idle_timeout_value" selector="5_minutes"/>
    <refine-value idref="max_concurrent_login_sessions_value" selector="10"/>
    <refine-value idref="login_banner_text" selector="dod_default"/>
    <refine-value idref="var_accounts_user_umask" selector="077"/>
    <refine-value idref="var_umask_for_daemons" selector="027"/>
    <refine-value idref="var_accounts_passwords_pam_faillock_unlock_time" selector="604800"/>
    <refine-value idref="var_accounts_passwords_pam_faillock_fail_interval" selector="900"/>
    <refine-value idref="password_history_retain_number" selector="24"/>
    <refine-value idref="var_password_max_age" selector="60"/>
    <refine-value idref="var_password_min_age" selector="1"/>
    <refine-value idref="var_accounts_passwords_pam_faillock_deny" selector="3"/>
  </Profile>
  <Value id="conditional_clause" operator="equals" type="string">
    <title xml:lang="en-US">A conditional clause for check statements.</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">A conditional clause for check statements.</description>
    <value>This is a placeholder.</value>
  </Value>

  <Group id="ccp_addl">
     <title xml:lang="en-US">Addl Checks for RHT CCP Certification</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Description for Addl RHT CCP Checks.
        </description>
        <Rule id="non-rh_packages" selected="true" severity="low">
          <version>1</version>
          <title>All packages should be RH signed package</title>
	  <rationale>This was checked in previous CCP image certification processes</rationale>
	  <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
             <check-content-ref name="oval:ssg:def:10101" href="ssg-rhel6-oval.new_ccp.xml"/>
          </check>
        </Rule>
  </Group>

  <Group id="intro">
    <title xml:lang="en-US">Introduction</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"><!-- purpose and scope of guidance -->
The purpose of this guidance is to provide security configuration
recommendations and baselines for the Red Hat Enterprise Linux (RHEL) 6 operating
system. The guidance provided here should be applicable to all variants
(Desktop, Server, Advanced Platform) of the product. Recommended
settings for the basic operating system are provided, as well as for many
network services that the system can provide to other systems.
<!-- audience -->The guide is intended for system administrators. Readers are assumed to
possess basic system administration skills for Unix-like systems, as well
as some familiarity with Red Hat's documentation and administration
conventions. Some instructions within this guide are complex.
All directions should be followed completely and with understanding of
their effects in order to avoid serious adverse effects on the system
and its security.
</description>
    <Group id="general-principles">
      <title xml:lang="en-US">General Principles</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The following general principles motivate much of the advice in this
guide and should also influence any configuration decisions that are
not explicitly covered.
</description>
      <Group id="principle-encrypt-transmitted-data">
        <title xml:lang="en-US">Encrypt Transmitted Data Whenever Possible</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Data transmitted over a network, whether wired or wireless, is susceptible
to passive monitoring. Whenever practical solutions for encrypting
such data exist, they should be applied. Even if data is expected to
be transmitted only over a local network, it should still be encrypted.
Encrypting authentication data, such as passwords, is particularly
important. Networks of RHEL 6 machines can and should be configured
so that no unencrypted authentication data is ever transmitted between
machines.
</description>
      </Group>
      <Group id="principle-minimize-software">
        <title xml:lang="en-US">Minimize Software to Minimize Vulnerability</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The simplest way to avoid vulnerabilities in software is to avoid
installing that software. On RHEL, the RPM Package Manager (originally
Red Hat Package Manager, abbreviated RPM) allows for careful management of
the set of software packages installed on a system. Installed software
contributes to system vulnerability in several ways. Packages that
include setuid programs may provide local attackers a potential path to
privilege escalation. Packages that include network services may give
this opportunity to network-based attackers. Packages that include
programs which are predictably executed by local users (e.g. after
graphical login) may provide opportunities for trojan horses or other
attack code to be run undetected. The number of software packages
installed on a system can almost always be significantly pruned to include
only the software for which there is an environmental or operational need.
</description>
      </Group>
      <Group id="principle-separate-servers">
        <title xml:lang="en-US">Run Different Network Services on Separate Systems</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Whenever possible, a server should be dedicated to serving exactly one
network service. This limits the number of other services that can
be compromised in the event that an attacker is able to successfully
exploit a software flaw in one network service.
</description>
      </Group>
      <Group id="principle-use-security-tools">
        <title xml:lang="en-US">Configure Security Tools to Improve System Robustness</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Several tools exist which can be effectively used to improve a system's
resistance to and detection of unknown attacks. These tools can improve
robustness against attack at the cost of relatively little configuration
effort. In particular, this guide recommends and discusses the use of
Iptables for host-based firewalling, SELinux for protection against
vulnerable services, and a logging and auditing infrastructure for
detection of problems.
</description>
      </Group>
      <Group id="principle-least-privilege">
        <title xml:lang="en-US">Least Privilege</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Grant the least privilege necessary for user accounts and software to perform tasks.
For example, <xhtml:code>sudo</xhtml:code> can be implemented to limit authorization to super user
accounts on the system only to designated personnel. Another example is to limit
logins on server systems to only those administrators who need to log into them in
order to perform administration tasks. Using SELinux also follows the principle of
least privilege: SELinux policy can confine software to perform only actions on the
system that are specifically allowed. This can be far more restrictive than the
actions permissible by the traditional Unix permissions model.
</description>
      </Group>
    </Group>
    <Group id="how-to-use">
      <title xml:lang="en-US">How to Use This Guide</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Readers should heed the following points when using the guide.
</description>
      <Group id="intro-read-sections-completely">
        <title xml:lang="en-US">Read Sections Completely and in Order</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Each section may build on information and recommendations discussed in
prior sections. Each section should be read and understood completely;
instructions should never be blindly applied. Relevant discussion may
occur after instructions for an action. 
</description>
      </Group>
      <Group id="intro-test-non-production">
        <title xml:lang="en-US">Test in Non-Production Environment</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
This guidance should always be tested in a non-production environment
before deployment. This test environment should simulate the setup in
which the system will be deployed as closely as possible.
</description>
      </Group>
      <Group id="intro-root-shell-assumed">
        <title xml:lang="en-US">Root Shell Environment Assumed</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Most of the actions listed in this document are written with the
assumption that they will be executed by the root user running the
<xhtml:code>/bin/bash</xhtml:code> shell. Commands preceded with a hash mark (#)
assume that the administrator will execute the commands as root, i.e.
apply the command via <xhtml:code>sudo</xhtml:code> whenever possible, or use
<xhtml:code>su</xhtml:code> to gain root privileges if <xhtml:code>sudo</xhtml:code> cannot be
used. Commands which can be executed as a non-root user are are preceded
by a dollar sign ($) prompt.
</description>
      </Group>
      <Group id="intro-formatting-conventions">
        <title xml:lang="en-US">Formatting Conventions</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Commands intended for shell execution, as well as configuration file text,
are featured in a <xhtml:code>monospace font</xhtml:code>. <xhtml:i>Italics</xhtml:i> are used
to indicate instances where the system administrator must substitute
the appropriate information into a command or configuration file.
</description>
      </Group>
      <Group id="intro-reboot-required">
        <title xml:lang="en-US">Reboot Required</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
A system reboot is implicitly required after some actions in order to
complete the reconfiguration of the system. In many cases, the changes
will not take effect until a reboot is performed. In order to ensure
that changes are applied properly and to test functionality, always
reboot the system after applying a set of recommendations from this guide.
</description>
      </Group>
    </Group>
  </Group>
  <Group id="system">
    <title xml:lang="en-US">System Settings</title>
    <Group id="software">
      <title xml:lang="en-US">Installing and Maintaining Software</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The following sections contain information on
security-relevant choices during the initial operating system
installation process and the setup of software
updates.</description>
      <Group id="disk_partitioning">
        <title xml:lang="en-US">Disk Partitioning</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To ensure separation and protection of data, there
are top-level system directories which should be placed on their
own physical partition or logical volume. The installer's default
partitioning scheme creates separate logical volumes for 
<xhtml:code>/</xhtml:code>, <xhtml:code>/boot</xhtml:code>, and <xhtml:code>swap</xhtml:code>.
<xhtml:ul><xhtml:li>If starting with any of the default layouts, check the box to
"Review and modify partitioning." This allows for the easy creation
of additional logical volumes inside the volume group already
created, though it may require making <xhtml:code>/</xhtml:code>'s logical volume smaller to
create space. In general, using logical volumes is preferable to
using partitions because they can be more easily adjusted
later.</xhtml:li><xhtml:li>If creating a custom layout, create the partitions mentioned in
the previous paragraph (which the installer will require anyway),
as well as separate ones described in the following sections.</xhtml:li></xhtml:ul>
If a system has already been installed, and the default
partitioning scheme was used, it is possible but nontrivial to
modify it to create separate logical volumes for the directories
listed above. The Logical Volume Manager (LVM) makes this possible.
See the LVM HOWTO at http://tldp.org/HOWTO/LVM-HOWTO/ for more
detailed information on LVM.</description>
        <Rule id="partition_for_tmp" selected="false" severity="low">          <title xml:lang="en-US">Ensure /tmp Located On Separate Partition</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>/tmp</xhtml:code> 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.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
          <reference href="http://iase.disa.mil/cci/index.html">1208</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>MM</dc:contributor>
            <dc:date>20120928</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>/tmp</xhtml:code> partition is used as temporary storage by many programs.
Placing <xhtml:code>/tmp</xhtml:code> in its own partition enables the setting of more
restrictive mount options, which can help protect programs which use it.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26435-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:678" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if  <xhtml:code>/tmp </xhtml:code>
    is on its own partition or logical volume:

  <xhtml:pre>$ mount | grep "on /tmp "</xhtml:pre>
  If <xhtml:code>/tmp </xhtml:code> has its own partition or volume group, a line
  will be returned.
  
          </check-content>
          </check>
        </Rule>
        <Rule id="partition_for_var" selected="false" severity="low">
          <title xml:lang="en-US">Ensure /var Located On Separate Partition</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/var</xhtml:code> directory is used by daemons and other system
services to store frequently-changing data. Ensure that <xhtml:code>/var</xhtml:code> has its own partition
or logical volume at installation time, or migrate it using LVM.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
          <reference href="http://iase.disa.mil/cci/index.html">1208</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>MM</dc:contributor>
            <dc:date>20120928</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Ensuring that <xhtml:code>/var</xhtml:code> 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 <xhtml:code>/var</xhtml:code> directory to contain
world-writable directories, installed by other software packages.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26639-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:750" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if  <xhtml:code>/var </xhtml:code>
    is on its own partition or logical volume:

  <xhtml:pre>$ mount | grep "on /var "</xhtml:pre>
  If <xhtml:code>/var </xhtml:code> has its own partition or volume group, a line
  will be returned.
  
          </check-content>
          </check>
        </Rule>
        <Rule id="partition_for_var_log" selected="false" severity="low">
          <title xml:lang="en-US">Ensure /var/log Located On Separate Partition</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
System logs are stored in the <xhtml:code>/var/log</xhtml:code> directory.
Ensure that it has its own partition or logical
volume at installation time, or migrate it using LVM.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1208</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>MM</dc:contributor>
            <dc:date>20120928</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Placing <xhtml:code>/var/log</xhtml:code> in its own partition
enables better separation between log files
and other files in <xhtml:code>/var/</xhtml:code>.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26215-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:360" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if  <xhtml:code>/var/log </xhtml:code>
    is on its own partition or logical volume:

  <xhtml:pre>$ mount | grep "on /var/log "</xhtml:pre>
  If <xhtml:code>/var/log </xhtml:code> has its own partition or volume group, a line
  will be returned.
  
          </check-content>
          </check>
        </Rule>
        <Rule id="partition_for_var_log_audit" selected="false" severity="low">
          <title xml:lang="en-US">Ensure /var/log/audit Located On Separate Partition</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Audit logs are stored in the <xhtml:code>/var/log/audit</xhtml:code> 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.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-4</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <reference href="http://iase.disa.mil/cci/index.html">137</reference>
          <reference href="http://iase.disa.mil/cci/index.html">138</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1208</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>MM</dc:contributor>
            <dc:date>20120928</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Placing <xhtml:code>/var/log/audit</xhtml:code> 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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26436-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:984" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if  <xhtml:code>/var/log/audit </xhtml:code>
    is on its own partition or logical volume:

  <xhtml:pre>$ mount | grep "on /var/log/audit "</xhtml:pre>
  If <xhtml:code>/var/log/audit </xhtml:code> has its own partition or volume group, a line
  will be returned.
  
          </check-content>
          </check>
        </Rule>
        <Rule id="partition_for_home" selected="false" severity="low">
          <title xml:lang="en-US">Ensure /home Located On Separate Partition</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If user home directories will be stored locally, create a separate partition
for <xhtml:code>/home</xhtml:code> at installation time (or migrate it later using LVM). If
<xhtml:code>/home</xhtml:code> 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.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
          <reference href="http://iase.disa.mil/cci/index.html">1208</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>MM</dc:contributor>
            <dc:date>20120928</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Ensuring that <xhtml:code>/home</xhtml:code> 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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26557-9</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:638" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if  <xhtml:code>/home </xhtml:code>
    is on its own partition or logical volume:

  <xhtml:pre>$ mount | grep "on /home "</xhtml:pre>
  If <xhtml:code>/home </xhtml:code> has its own partition or volume group, a line
  will be returned.
  
          </check-content>
          </check>
        </Rule>
        <Rule id="encrypt_partitions" selected="false" severity="low">
          <title xml:lang="en-US">Encrypt Partitions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
<xhtml:br/><xhtml:br/>
For manual installations, select the <xhtml:code>Encrypt</xhtml:code> 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.
<xhtml:br/><xhtml:br/>
For automated/unattended installations, it is possible to use Kickstart by adding
the <xhtml:code>--encrypted</xhtml:code> and <xhtml:code>--passphrase=</xhtml:code> options to the definition of each partition to be
encrypted. For example, the following line would encrypt the root partition:
<xhtml:pre>part / --fstype=ext3 --size=100 --onpart=hda1 --encrypted --passphrase=<xhtml:i>PASSPHRASE</xhtml:i></xhtml:pre>
Any <xhtml:i>PASSPHRASE</xhtml:i> is stored in the Kickstart in plaintext, and the Kickstart must then be protected accordingly.
Omitting the <xhtml:code>--passphrase=</xhtml:code> option from the partition definition will cause the
installer to pause and interactively ask for the passphrase during installation.
<xhtml:br/><xhtml:br/>
Detailed information on encrypting partitions using LUKS can be found on
the Red Had Documentation web site:<xhtml:br/>
https://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/sect-Security_Guide-LUKS_Disk_Encryption.html
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-13</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-28</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1019</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1199</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1200</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <check system="ocil-transitional">
            <check-export export-name="encryption must be used and is not employed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Determine if encryption must be used to protect data on the system. 
</check-content>
          </check>
        </Rule>
      </Group>
      <Group id="updating">
        <title xml:lang="en-US">Updating Software</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>yum</xhtml:code> command line tool is used to install and
update software packages. The system also provides a graphical
software update tool in the <xhtml:b>System</xhtml:b> menu, in the <xhtml:b>Administration</xhtml:b> submenu,
called <xhtml:b>Software Update</xhtml:b>.
<xhtml:br/><xhtml:br/>
Red Hat Enterprise Linux systems contain an installed software catalog called
the RPM database, which records metadata of installed packages.  Tools such as
<xhtml:code>yum</xhtml:code> or the graphical <xhtml:b>Software Update</xhtml:b> ensure usage of RPM
packages for software installation.  This allows for insight into the current
inventory of installed software on the system, and is highly recommended.
</description>
        <Rule id="ensure_redhat_gpgkey_installed" selected="false" severity="high">
          <title xml:lang="en-US">Ensure Red Hat GPG Key Installed</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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 if desired), the Red Hat GPG key must properly be installed.  
To ensure the GPG key is installed, run:
<xhtml:pre># rhn_register</xhtml:pre>
If the system is not connected to the internet, or a local RHN Satellite,
then install the Red Hat GPG key from a secure, static location, such as
the Red Hat installation CD-ROM or DVD. Assuming the disc is mounted
in /mnt/cdrom, use the following command as the root user to import
it into the keyring:
<xhtml:pre># rpm --import /mnt/cdrom/RPM-GPG-KEY</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MA-1(b)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">351</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>MM</dc:contributor>
            <dc:date>20120928</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
This key is necessary to cryptographically verify packages
are from Red Hat.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26506-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:336" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the Red Hat GPG Key is not installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure that the GPG key is installed, run:
<xhtml:pre>$ rpm -q --queryformat "%{SUMMARY}\n" gpg-pubkey</xhtml:pre>
The command should return the string below:
<xhtml:pre>gpg(Red Hat, Inc. (release key 2)  &lt;security@redhat.com&gt;</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="ensure_gpgcheck_globally_activated" selected="false" severity="high">
          <title xml:lang="en-US">Ensure gpgcheck Enabled In Main Yum Configuration</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>gpgcheck</xhtml:code> option should be used to ensure
checking of an RPM package's signature always occurs prior to its
installation. To configure yum to check package signatures before installing
them, ensure the following line appears in <xhtml:code>/etc/yum.conf</xhtml:code> in
the <xhtml:code>[main]</xhtml:code> section:
<xhtml:pre>gpgcheck=1</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MA-1(b)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">352</reference>
          <reference href="http://iase.disa.mil/cci/index.html">663</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>MM</dc:contributor>
            <dc:date>20120928</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Ensuring the validity of packages' cryptographic signatures prior to
installation ensures the provenance of the software and
protects against malicious tampering.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26709-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:606" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="GPG checking is not enabled" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To determine whether <xhtml:code>yum</xhtml:code> is configured to use <xhtml:code>gpgcheck</xhtml:code>,
inspect <xhtml:code>/etc/yum.conf</xhtml:code> and ensure the following appears in the
<xhtml:code>[main]</xhtml:code> section:
<xhtml:pre>gpgcheck=1</xhtml:pre>
A value of <xhtml:code>1</xhtml:code> indicates that <xhtml:code>gpgcheck</xhtml:code> is enabled. Absence of a
<xhtml:code>gpgcheck</xhtml:code> line or a setting of <xhtml:code>0</xhtml:code> indicates that it is
disabled.
</check-content>
          </check>
        </Rule>
        <Rule id="ensure_gpgcheck_never_disabled" selected="false" severity="high">
          <title xml:lang="en-US">Ensure gpgcheck Enabled For All Yum Package Repositories</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To ensure signature checking is not disabled for
any repos, remove any lines from files in <xhtml:code>/etc/yum.repos.d</xhtml:code> of the form:
<xhtml:pre>gpgcheck=0</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MA-1(b)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">352</reference>
          <reference href="http://iase.disa.mil/cci/index.html">663</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>MM</dc:contributor>
            <dc:date>20120928</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Ensuring all packages' cryptographic signatures are valid prior to
installation ensures the provenance of the software and
protects against malicious tampering.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26647-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:235" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="GPG checking is disabled" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To determine whether <xhtml:code>yum</xhtml:code> has been configured to disable
<xhtml:code>gpgcheck</xhtml:code> for any repos,  inspect all files in
<xhtml:code>/etc/yum.repos.d</xhtml:code> and ensure the following does not appear in any
sections:
<xhtml:pre>gpgcheck=0</xhtml:pre>
A value of <xhtml:code>0</xhtml:code> indicates that <xhtml:code>gpgcheck</xhtml:code> has been disabled for that repo. 
</check-content>
          </check>
        </Rule>
        <Rule id="security_patches_up_to_date" selected="false" severity="high">
          <title xml:lang="en-US">Ensure Software Patches Installed</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre># yum update</xhtml:pre>
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 <xhtml:code>rpm</xhtml:code>.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-2</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MA-1(b)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1227</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1233</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>MM</dc:contributor>
            <dc:date>20120928</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Installing software updates is a fundamental mitigation against
the exploitation of publicly-known vulnerabilities.
</rationale>
          <check system="ocil-transitional">
            <check-export export-name="updates are not installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
If the system is joined to the Red Hat Network, a Red Hat Satellite Server, or
a yum server which provides updates, invoking the following command will
indicate if updates are available:
<xhtml:pre># yum check-update</xhtml:pre>
If the system is not configured to update from one of these sources,
run the following command to list when each package was last updated:
<xhtml:pre>$ rpm -qa -last</xhtml:pre>
Compare this to Red Hat Security Advisories (RHSA) listed at 
https://access.redhat.com/security/updates/active/
to determine if the system is missing applicable updates.
</check-content>
          </check>
        </Rule>
      </Group>
      <Group id="integrity">
        <title xml:lang="en-US">Software Integrity Checking</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Both the AIDE (Advanced Intrusion Detection Environment)
software and the RPM package management system provide
mechanisms for verifying the integrity of installed software.
AIDE uses snapshots of file metadata (such as hashes) and compares these
to current system files in order to detect changes.
The RPM package management system can conduct integrity
checks by comparing information in its metadata database with
files installed on the system.
<xhtml:br/><xhtml:br/>
Integrity checking cannot <xhtml:i>prevent</xhtml:i> intrusions into your
system, but can detect that they have occurred. Requirements
for software integrity checking may be highly dependent on
the environment in which the system will be used. Snapshot-based
approaches such as AIDE may induce considerable overhead
in the presence of frequent software updates.
</description>
        <Group id="aide">
          <title xml:lang="en-US">Verify Integrity with AIDE</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">AIDE conducts integrity checks by comparing information about
files with previously-gathered information. Ideally, the AIDE database should
be created immediately after your system is built, and then again after any
software update.  AIDE is highly configurable, with further configuration
information located in <xhtml:code>/usr/share/doc/aide-<xhtml:i>VERSION</xhtml:i></xhtml:code>.
</description>
          <Rule id="package_aide_installed" selected="false" severity="medium">
            <title xml:lang="en-US">Install AIDE</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Install the AIDE package with the command:
<xhtml:pre># yum install aide</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-3(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-3(e)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(3)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-28</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1069</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The AIDE package must be installed if it is to be available for integrity checking.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27024-9</ident>
            <fix system="urn:xccdf:fix:script:sh">yum -y install aide
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1091" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the package is not installed" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    Run the following command to determine if the <xhtml:code>aide</xhtml:code> package is installed:
    <xhtml:pre># rpm -q aide</xhtml:pre>
            </check-content>
            </check>
          </Rule>
          <Rule id="disable_prelink" selected="false" severity="low">
            <title xml:lang="en-US">Disable Prelinking</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The prelinking feature changes binaries in an attempt to decrease their startup
time.  In order to disable it, change or add the following line inside the file
<xhtml:code>/etc/sysconfig/prelink</xhtml:code>:
<xhtml:pre>PRELINKING=no</xhtml:pre>
Next, run the following command to return binaries to a normal, non-prelinked state:
<xhtml:pre># /usr/sbin/prelink -ua</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(3)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-28</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-7</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The prelinking feature can interfere with the operation
of AIDE, because it changes binaries.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27221-1</ident>
          </Rule>
          <Rule id="aide_build_database" selected="false" severity="low">
            <title xml:lang="en-US">Build and Test AIDE Database</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Run the following command to generate a new database:
<xhtml:pre># /usr/sbin/aide --init</xhtml:pre>
By default, the database will be written to the file <xhtml:code>/var/lib/aide/aide.db.new.gz</xhtml:code>.
Storing the database, the configuration file <xhtml:code>/etc/aide.conf</xhtml:code>, and the binary
<xhtml:code>/usr/sbin/aide</xhtml:code> (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:
<xhtml:pre># cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz</xhtml:pre>
To initiate a manual check, run the following command:
<xhtml:pre># /usr/sbin/aide --check</xhtml:pre>
If this check produces any unexpected output, investigate.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-3(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-3(e)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(3)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-28</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-7</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          </Rule>
          <Rule id="aide_periodic_cron_checking" selected="false" severity="medium">
            <title xml:lang="en-US">Configure Periodic Execution of AIDE</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
AIDE should be executed on a periodic basis to check for changes.
To implement a daily execution of AIDE at 4:05am using cron, add the following line to <xhtml:code>/etc/crontab</xhtml:code>:
<xhtml:pre>05 4 * * * root /usr/sbin/aide --check</xhtml:pre>
AIDE can be executed periodically through other means; this is merely one example.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-3(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-3(e)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(3)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-28</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">374</reference>
            <reference href="http://iase.disa.mil/cci/index.html">416</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1069</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1263</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1297</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1589</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
By default, AIDE does not install itself for periodic execution. Periodically
running AIDE may reveal unexpected changes in installed files.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27222-9</ident>
            <check system="ocil-transitional">
              <check-export export-name="there is no output" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To determine that periodic AIDE execution has been scheduled, run the following command:
<xhtml:pre># grep aide /etc/crontab</xhtml:pre>
</check-content>
            </check>
          </Rule>
        </Group>
        <Group id="rpm_verification">
          <title xml:lang="en-US">Verify Integrity with RPM</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The RPM package management system includes the ability
to verify the integrity of installed packages by comparing the
installed files with information about the files taken from the
package metadata stored in the RPM database. Although an attacker
could corrupt the RPM database (analogous to attacking the AIDE
database as described above), this check can still reveal
modification of important files. To list which files on the system differ from what is expected by the RPM database:
<xhtml:pre># rpm -qVa</xhtml:pre>
See the man page for <xhtml:code>rpm</xhtml:code> to see a complete explanation of each column.
</description>
          <Rule id="rpm_verify_permissions" selected="false" severity="low">
            <title xml:lang="en-US">Verify File Permissions with RPM</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The RPM package management system can check file access
permissions of installed software packages, including many that are
important to system security. The following command will reset permissions to 
their expected values:
<xhtml:pre># rpm --setperms <xhtml:i>package</xhtml:i></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(3)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1493</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1494</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1495</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26731-0</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1060" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="there is output" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
The following command will list which files on the system have permissions different from what
is expected by the RPM database:
<xhtml:pre># rpm -Va | grep '^.M'</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="rpm_verify_hashes" selected="false" severity="low">
            <title xml:lang="en-US">Verify File Hashes with RPM</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre># rpm -Va | grep '^..5'</xhtml:pre>
A "c" in the second column indicates that a file is a configuration file,
which may appropriately be expected to change.
If the file that has changed was not expected to then refresh from distribution media or online repositories.
<xhtml:pre>rpm -Uvh <xhtml:i>affected_package</xhtml:i></xhtml:pre> 
OR 
<xhtml:pre>yum reinstall <xhtml:i>affected_package</xhtml:i></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-6(3)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1496</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The hash on 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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27223-7</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:636" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="there is output" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml"> The following command will list which files on the system 
have file hashes different from what is expected by the RPM database. 
<xhtml:pre># rpm -Va | grep '$1 ~ /..5/ &amp;&amp; $2 != "c"'</xhtml:pre> 
</check-content>
            </check>
          </Rule>
        </Group>
        <Group id="additional_security_software">
          <title xml:lang="en-US">Additional Security Software</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Additional security software that is not provided or supported
by Red Hat can be installed to provide complementary or duplicative
security capabilities to those provided by the base platform.  Add-on
software may not be appropriate for some specialized systems.
</description>
          <Rule id="install_hids" selected="false" severity="high">
            <title xml:lang="en-US">Install Intrusion Detection Software</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
<xhtml:br/>
<xhtml:br/>
Install an additional intrusion detection tool to provide complementary or
duplicative monitoring, reporting, and reaction capabilities to those of the base
platform.  For DoD systems, the McAfee Host Based Security System is provided
to fulfill this role.  
<!-- provide link to cybercom site? -->
<!-- need additional commentary: verify that HBSS (sans HIPS module) compatible w/SELinux -->
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1263</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Adding host-based intrusion detection tools can provide the capability to
automatically take actions in response to malicious behavior, which can provide
additional agility in reacting to network threats. These tools also often
include a reporting capability to provide network awareness of system, which
may not otherwise exist in an organization's systems management regime.
</rationale>
            <check system="ocil-transitional">
              <check-export export-name="no host-based intrusion detection tools are installed" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect the system to determine if intrusion detection software has been installed.
Verify the intrusion detection software is active. 
<!-- add instructions for HBSS?  the text in the RHEL 5 STIG is wrong as usual -->
</check-content>
            </check>
          </Rule>
          <Rule id="install_antivirus" selected="false" severity="low">
            <title xml:lang="en-US">Install Virus Scanning Software</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Install virus scanning software, which uses signatures to search for the
presence of viruses on the filesystem. 
The McAfee uvscan virus scanning tool is provided for DoD systems.
Ensure virus definition files are no older than 7 days, or their last release.
<!-- need info here on where DoD admins can go to get this -->
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.
<!-- what's the basis for the IAO language? would not failure of a check
     imply a discussion, for every check in this document, 
     with the IAO (or SSO or ISSO or ISSM or whatever is the right acronym in your
     particular neighborhood) should occur? -->
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-28</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-3</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1239</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1668</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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. 
</rationale>
            <check system="ocil-transitional">
              <check-export export-name="virus scanning software does not run daily, or has signatures that are out of date" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect the system for a cron job or system service which executes
a virus scanning tool regularly.
<xhtml:br/>
<!-- this should be handled as DoD-specific text in a future revision -->
To verify the McAfee command line scan tool (uvscan) is scheduled for
regular execution, run the following command to check for a cron job:
<xhtml:pre># grep uvscan /etc/cron* /var/spool/cron/*</xhtml:pre>
This will reveal if and when the uvscan program will be run.
<xhtml:br/>
To check on the age of uvscan virus definition files, run the following command:
<xhtml:pre># cd /usr/local/uvscan
# ls -la avvscan.dat avvnames.dat avvclean.dat</xhtml:pre>
</check-content>
            </check>
          </Rule>
        </Group>
      </Group>
    </Group>
    <Group id="permissions">
      <title xml:lang="en-US">File Permissions and Masks</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Traditional Unix security relies heavily on file and
directory permissions to prevent unauthorized users from reading or
modifying files to which they should not have access. Adhere to the
principle of least privilege - configure each file, directory, and
filesystem to allow only the access needed in order for that file
to serve its purpose.
<xhtml:br/><xhtml:br/>
Note: Several of the commands in this section search filesystems
for files or directories with certain characteristics, and are
intended to be run on every local partition on a given machine.
When the variable <xhtml:i>PART</xhtml:i> appears in one of the commands below,
it means that the command is intended to be run repeatedly, with the
name of each local partition substituted for <xhtml:i>PART</xhtml:i> in turn.
<xhtml:br/><xhtml:br/>
The following command prints a list of ext4 partitions on the local
machine, which is the default filesystem for Red Hat Enterprise Linux
6 installations:
<xhtml:pre>$ mount -t ext4 | awk '{print $3}'</xhtml:pre>
If your site uses a local filesystem type other than ext4, you
will need to modify this command.</description>
      <Group id="partitions">
        <title xml:lang="en-US">Restrict Partition Mount Options</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">System partitions can be mounted with certain options
that limit what files on those partitions can do. These options
are set in the <xhtml:code>/etc/fstab</xhtml:code> configuration file, and can be
used to make certain types of malicious behavior more difficult.</description>
        <Value id="var_removable_partition" operator="equals" type="string">
          <title xml:lang="en-US">Removable Partition</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This value is used by the checks mount_option_nodev_removable_partitions, mount_option_nodev_removable_partitions,
and mount_option_nodev_removable_partitions to ensure that the correct mount options are set on partitions mounted from
removable media such as CD-ROMs, USB keys, and floppy drives. This value should be modified to reflect any removable
partitions that are required on the local system.</description>
          <value selector="dev_cdrom">/dev/cdrom</value>
        </Value>
        <Rule id="mountopt_nodev_on_nonroot_partitions" selected="false" severity="low">
          <title xml:lang="en-US">Add nodev Option to Non-Root Local Partitions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>nodev</xhtml:code> mount option prevents files from being
interpreted as character or block devices. 
Legitimate character and block devices should exist only in
the <xhtml:code>/dev</xhtml:code> directory on the root partition or within chroot
jails built for system services.

	Add the <xhtml:code>nodev</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	any non-root local partitions.
	
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>nodev</xhtml:code> mount option prevents files from being
interpreted as character or block devices. The only legitimate location
for device files is the <xhtml:code>/dev</xhtml:code> directory located on the root partition.
The only exception to this is chroot jails, for which it is not advised
to set <xhtml:code>nodev</xhtml:code> on these filesystems.</rationale>
          <ident system="http://cce.mitre.org">CCE-27045-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:861" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="mountopt_nodev_on_removable_partitions" selected="false" severity="low">
          <title xml:lang="en-US">Add nodev Option to Removable Media Partitions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>nodev</xhtml:code> mount option prevents files from being
interpreted as character or block devices. 
Legitimate character and block devices should exist only in
the <xhtml:code>/dev</xhtml:code> directory on the root partition or within chroot
jails built for system services. 

	Add the <xhtml:code>nodev</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	any removable media partitions.
	
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(e)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MP-2</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> The only legitimate location for device files is the <xhtml:code>/dev</xhtml:code> directory
located on the root partition.  An exception to this is chroot jails, and it is
not advised to set <xhtml:code>nodev</xhtml:code> on partitions which contain their root
filesystems.  </rationale>
          <ident system="http://cce.mitre.org">CCE-26860-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2144" value-id="var_removable_partition"/>
            <check-content-ref name="oval:ssg:def:212" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="mountopt_noexec_on_removable_partitions" selected="false" severity="low">
          <title xml:lang="en-US">Add noexec Option to Removable Media Partitions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>noexec</xhtml:code> mount option prevents the direct
execution of binaries on the mounted filesystem. Users should not
be allowed to execute binaries that exist on partitions mounted
from removable media (such as a USB key). The <xhtml:code>noexec</xhtml:code>
option prevents code from being executed directly from the media
itself, and may therefore provide a line of defense against
certain types of worms or malicious code.

	Add the <xhtml:code>noexec</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	any removable media partitions.
	
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(e)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MP-2</reference>
          <reference href="http://iase.disa.mil/cci/index.html">87</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Allowing users to execute binaries from removable media such as USB keys exposes
the system to potential compromise.</rationale>
          <ident system="http://cce.mitre.org">CCE-27196-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2144" value-id="var_removable_partition"/>
            <check-content-ref name="oval:ssg:def:156" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="removable media partitions are present" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify that binaries cannot be directly executed from removable media, run the following command:
<xhtml:pre># grep -v noexec /etc/fstab</xhtml:pre>
The resulting output will show partitions which do not have the <xhtml:code>noexec</xhtml:code> flag. Verify all partitions
in the output are not removable media.
</check-content>
          </check>
        </Rule>
        <Rule id="mountopt_nosuid_on_removable_partitions" selected="false" severity="low">
          <title xml:lang="en-US">Add nosuid Option to Removable Media Partitions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>nosuid</xhtml:code> 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 guid
files into the system via partitions mounted from removeable media.

	Add the <xhtml:code>nosuid</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	any removable media partitions.
	
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(e)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MP-2</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The presence of suid and sgid executables should be tightly controlled. Users
should not be able to execute suid or sgid binaries from partitions mounted off of
removable media.</rationale>
          <ident system="http://cce.mitre.org">CCE-27056-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2144" value-id="var_removable_partition"/>
            <check-content-ref name="oval:ssg:def:675" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="mount_option_tmp_nodev" selected="false" severity="low">
          <title xml:lang="en-US">Add nodev Option to /tmp</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>nodev</xhtml:code> mount option can be used to prevent device files from
being created in <xhtml:code>/tmp</xhtml:code>.
Legitimate character and block devices should not exist
within temporary directories like <xhtml:code>/tmp</xhtml:code>. 

	Add the <xhtml:code>nodev</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	<xhtml:code>/tmp</xhtml:code>.
	
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MP-2</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The only legitimate location for device files is the <xhtml:code>/dev</xhtml:code> directory
located on the root partition. The only exception to this is chroot jails.</rationale>
          <ident system="http://cce.mitre.org">CCE-26499-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:384" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="mount_option_tmp_noexec" selected="false" severity="low">
          <title xml:lang="en-US">Add noexec Option to /tmp</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>noexec</xhtml:code> mount option can be used to prevent binaries
from being executed out of <xhtml:code>/tmp</xhtml:code>.

	Add the <xhtml:code>noexec</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	<xhtml:code>/tmp</xhtml:code>.
	
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MP-2</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Allowing users to execute binaries from world-writable directories
such as <xhtml:code>/tmp</xhtml:code> should never be necessary in normal operation and
can expose the system to potential compromise.</rationale>
          <ident system="http://cce.mitre.org">CCE-26720-3</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1182" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="mount_option_tmp_nosuid" selected="false" severity="low">
          <title xml:lang="en-US">Add nosuid Option to /tmp</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>nosuid</xhtml:code> mount option can be used to prevent
execution of setuid programs in <xhtml:code>/tmp</xhtml:code>. The suid/sgid permissions
should not be required in these world-writable directories.

	Add the <xhtml:code>nosuid</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	<xhtml:code>/tmp</xhtml:code>.
	
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MP-2</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26762-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:643" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="mount_option_dev_shm_nodev" selected="false" severity="low">
          <title xml:lang="en-US">Add nodev Option to /dev/shm</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>nodev</xhtml:code> mount option can be used to prevent creation
of device files in <xhtml:code>/dev/shm</xhtml:code>.
Legitimate character and block devices should not exist
within temporary directories like <xhtml:code>/dev/shm</xhtml:code>. 

	Add the <xhtml:code>nodev</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	<xhtml:code>/dev/shm</xhtml:code>.
	
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MP-2</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The only legitimate location for device files is the <xhtml:code>/dev</xhtml:code> directory
located on the root partition. The only exception to this is chroot jails.</rationale>
          <ident system="http://cce.mitre.org">CCE-26778-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:816" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="mount_option_dev_shm_noexec" selected="false" severity="low">
          <title xml:lang="en-US">Add noexec Option to /dev/shm</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>noexec</xhtml:code> mount option can be used to prevent binaries
from being executed out of <xhtml:code>/dev/shm</xhtml:code>.
It can be dangerous to allow the execution of binaries
from world-writable temporary storage directories such as <xhtml:code>/dev/shm</xhtml:code>.

	Add the <xhtml:code>noexec</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	<xhtml:code>/dev/shm</xhtml:code>.
	
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MP-2</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Allowing users to execute binaries from world-writable directories
such as <xhtml:code>/dev/shm</xhtml:code> can expose the system to potential compromise.</rationale>
          <ident system="http://cce.mitre.org">CCE-26622-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:911" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="mount_option_dev_shm_nosuid" selected="false" severity="low">
          <title xml:lang="en-US">Add nosuid Option to /dev/shm</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>nosuid</xhtml:code> mount option can be used to prevent execution
of setuid programs in <xhtml:code>/dev/shm</xhtml:code>.  The suid/sgid permissions should not
be required in these world-writable directories.

	Add the <xhtml:code>nosuid</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	<xhtml:code>/dev/shm</xhtml:code>.
	
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MP-2</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26486-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:470" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="mount_option_var_tmp_bind_var" selected="false" severity="low">
          <title xml:lang="en-US">Bind Mount /var/tmp To /tmp</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/var/tmp</xhtml:code> directory is a world-writable directory.  
Bind-mount it to <xhtml:code>/tmp</xhtml:code> in order to consolidate temporary storage into
one location protected by the same techniques as <xhtml:code>/tmp</xhtml:code>.  To do so, edit
<xhtml:code>/etc/fstab</xhtml:code> and add the following line:
<xhtml:pre>/tmp     /var/tmp     none     rw,nodev,noexec,nosuid,bind     0 0</xhtml:pre>
See the <xhtml:code>mount(8)</xhtml:code> man page for further explanation of bind mounting.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Having multiple locations for temporary storage is not required. Unless absolutely
necessary to meet requirements, the storage location <xhtml:code>/var/tmp</xhtml:code> should be bind mounted to
<xhtml:code>/tmp</xhtml:code> and thus share the same protections.</rationale>
          <ident system="http://cce.mitre.org">CCE-26582-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:144" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
      </Group>
      <Group id="mounting">
        <title xml:lang="en-US">Restrict Dynamic Mounting and Unmounting of
Filesystems</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Linux includes a number of facilities for the
automated addition and removal of filesystems on a running system.
These facilities may increase convenience, but they all bring some
risk -- whether direct risk from allowing unprivileged users to
introduce arbitrary filesystems to a machine, or risk that software
flaws in the automated mount facility itself will allow an attacker
to compromise the system.
<xhtml:br/><xhtml:br/>
This command can be used to list the types of filesystems that are
available to the currently executing kernel:
<xhtml:pre># find /lib/modules/`uname -r`/kernel/fs -type f -name '*.ko'</xhtml:pre>
If these filesystems are not required then they should be explicitly disabled
in the appropriate <xhtml:code>/etc/modprobe.d</xhtml:code> configuration file.
<xhtml:br/><xhtml:br/>
Use caution when enabling any such facility, and find out
whether better configuration management or user education might
solve the same problem with less risk.</description>
        <Rule id="kernel_module_usb-storage_disabled" selected="false" severity="low">
          <title xml:lang="en-US">Disable Modprobe Loading of USB Storage Driver</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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 <xhtml:code>usb-storage</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install usb-storage /bin/false</xhtml:pre>
This will prevent the <xhtml:code>modprobe</xhtml:code> program from loading the <xhtml:code>usb-storage</xhtml:code>
module, but will not prevent an administrator (or another program) from using the
<xhtml:code>insmod</xhtml:code> program to load the module manually.</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(e)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1250</reference>
          <reference href="http://iase.disa.mil/cci/index.html">85</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">USB storage devices such as thumb drives can be used to introduce unauthorized
software and other vulnerabilities. Support for these devices should be disabled and
the devices themselves should be tightly controlled.</rationale>
          <ident system="http://cce.mitre.org">CCE-27016-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1003" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
If the system is configured to prevent the loading of the
<xhtml:code>usb-storage</xhtml:code> kernel module,
it will contain lines inside any file in <xhtml:code>/etc/modprobe.d</xhtml:code> or the deprecated<xhtml:code>/etc/modprobe.conf</xhtml:code>.
These lines instruct the module loading system to run another program (such as
<xhtml:code>/bin/false</xhtml:code>) upon a module <xhtml:code>install</xhtml:code> event.
Run the following command to search for such lines in all files in <xhtml:code>/etc/modprobe.d</xhtml:code>
and the deprecated <xhtml:code>/etc/modprobe.conf</xhtml:code>:
<xhtml:pre xml:space="preserve">$ grep -r usb-storage /etc/modprobe.conf /etc/modprobe.d</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="bootloader_nousb_argument" selected="false" severity="low">
          <title xml:lang="en-US">Disable Kernel Support for USB via Bootloader Configuration</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Another means of disabling USB storage is to disable all USB support provided
by the operating system. This can be accomplished by adding the <xhtml:code>nousb</xhtml:code>
argument to the kernel's boot loader configuration. To disable kernel support
for USB, append "nousb" to the kernel line in <xhtml:code>/etc/grub.conf</xhtml:code> as follows:
<xhtml:pre>kernel /vmlinuz-<xhtml:i>VERSION</xhtml:i> ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet nousb</xhtml:pre>
<xhtml:i><xhtml:b>WARNING:</xhtml:b> Disabling all kernel support for USB will cause problems for systems with USB-based keyboards,
mice, or printers. This guidance is inappropriate for systems which require USB connectivity.</xhtml:i></description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(e)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1250</reference>
          <reference href="http://iase.disa.mil/cci/index.html">85</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Disabling the USB subsystem within the Linux kernel at system boot will also
disable USB storage devices if they are plugged into the system. Support for these devices
should be disabled and the devices themselves should be tightly controlled.</rationale>
          <ident system="http://cce.mitre.org">CCE-27011-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:283" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="bios_disable_usb_boot" selected="false" severity="low">
          <title xml:lang="en-US">Disable Booting from USB Devices</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">An attacker with physical access could try to boot the system from a USB
flash drive and then access any data on the system's hard drive, circumventing the normal
operating system's access controls. To prevent this, configure the BIOS to disallow
booting from USB drives. Also configure the BIOS or firmware password as described in
the section titled "Set BIOS Password" to prevent unauthorized configuration changes.</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(e)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1250</reference>
          <reference href="http://iase.disa.mil/cci/index.html">85</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Booting a system from a USB device would allow an attacker to circumvent
any security measures offered by the native OS. Attackers could mount partitions and modify the
configuration of the native OS. The BIOS should be configured to disallow booting from USB media.</rationale>
        </Rule>
        <Rule id="service_autofs_disabled" selected="false" severity="low">
          <title xml:lang="en-US">Disable the Automounter</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>autofs</xhtml:code> 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 <xhtml:code>/misc/cd</xhtml:code>.
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 is
almost always possible to configure filesystem mounts statically by editing <xhtml:code>/etc/fstab</xhtml:code>
rather than relying on the automounter.
<xhtml:br/><xhtml:br/>
If the <xhtml:code>autofs</xhtml:code> service is not needed to dynamically mount NFS filesystems
or removable media, disable the service for all runlevels:
<xhtml:pre># chkconfig --level 0123456 autofs off</xhtml:pre>
Stop the service if it is already running:
<xhtml:pre># service autofs stop</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(e)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1250</reference>
          <reference href="http://iase.disa.mil/cci/index.html">85</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">All filesystems that are required for the successful operation of the system
should be explicitly listed in <xhtml:code>/etc/fstab</xhtml:code> by and administrator. New filesystems should
not be arbitrarily introduced via the automounter.</rationale>
          <ident system="http://cce.mitre.org">CCE-26976-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:608" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it does not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify the <xhtml:code>autofs</xhtml:code> service is disabled, run the following command:
<xhtml:pre>chkconfig --list autofs</xhtml:pre>
If properly configured, the output should be the following:
<xhtml:pre>autofs         	0:off	1:off	2:off	3:off	4:off	5:off	6:off</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="gconf_gnome_disable_automount" selected="false" severity="low">
          <title xml:lang="en-US">Disable GNOME Automounting</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre># gconftool-2 --direct \
	--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
	--type bool \
	--set /apps/nautilus/preferences/media_automount false
# gconftool-2 --direct \
	--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
	--type bool \
	--set /apps/nautilus/preferences/media_autorun_never true</xhtml:pre>
These settings can be verified by running the following:
<xhtml:pre>$ gconftool-2 --direct \
	--config-source xml:read:/etc/gconf/gconf.xml.mandatory \
	--get /apps/nautilus/preferences/media_automount
$ gconftool-2 --direct \
	--config-source xml:read:/etc/gconf/gconf.xml.mandatory \
	--get /apps/nautilus/preferences/media_autorun_never</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-19(e)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1250</reference>
          <reference href="http://iase.disa.mil/cci/index.html">85</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The system's capabilities for automatic mounting should be configured to match whatever is defined by security
policy. Disabling USB storage as described in the USB section will prevent the use of USB storage devices, but
this step should also be taken as an additional layer of protection to prevent automatic mounting of CDs and
DVDs.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27035-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:889" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="disable_module_cramfs" selected="false" severity="low">
          <title xml:lang="en-US">Disable Mounting of cramfs</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system to prevent the <xhtml:code>cramfs</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install cramfs /bin/false</xhtml:pre>
This effectively prevents usage of this uncommon filesystem.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</rationale>
          <ident system="http://cce.mitre.org">CCE-26340-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1064" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="disable_module_freevxfs" selected="false" severity="low">
          <title xml:lang="en-US">Disable Mounting of freevxfs</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system to prevent the <xhtml:code>freevxfs</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install freevxfs /bin/false</xhtml:pre>
This effectively prevents usage of this uncommon filesystem.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</rationale>
          <ident system="http://cce.mitre.org">CCE-26544-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:523" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="disable_module_jffs2" selected="false" severity="low">
          <title xml:lang="en-US">Disable Mounting of jffs2</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system to prevent the <xhtml:code>jffs2</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install jffs2 /bin/false</xhtml:pre>
This effectively prevents usage of this uncommon filesystem.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</rationale>
          <ident system="http://cce.mitre.org">CCE-26670-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:379" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="disable_module_hfs" selected="false" severity="low">
          <title xml:lang="en-US">Disable Mounting of hfs</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system to prevent the <xhtml:code>hfs</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install hfs /bin/false</xhtml:pre>
This effectively prevents usage of this uncommon filesystem.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</rationale>
          <ident system="http://cce.mitre.org">CCE-26800-3</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:502" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="disable_module_hfsplus" selected="false" severity="low">
          <title xml:lang="en-US">Disable Mounting of hfsplus</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system to prevent the <xhtml:code>hfsplus</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install hfsplus /bin/false</xhtml:pre>
This effectively prevents usage of this uncommon filesystem.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</rationale>
          <ident system="http://cce.mitre.org">CCE-26361-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1088" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="disable_module_squashfs" selected="false" severity="low">
          <title xml:lang="en-US">Disable Mounting of squashfs</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system to prevent the <xhtml:code>squashfs</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install squashfs /bin/false</xhtml:pre>
This effectively prevents usage of this uncommon filesystem.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</rationale>
          <ident system="http://cce.mitre.org">CCE-26404-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:195" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="disable_module_udf" selected="false" severity="low">
          <title xml:lang="en-US">Disable Mounting of udf</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system to prevent the <xhtml:code>udf</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install udf /bin/false</xhtml:pre>
This effectively prevents usage of this uncommon filesystem.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</rationale>
          <ident system="http://cce.mitre.org">CCE-26677-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:722" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="disable_gnome_thumbnailers" selected="false" severity="low">
          <title xml:lang="en-US">Disable All GNOME Thumbnailers</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre># gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type bool \
  --set /desktop/gnome/thumbnailers/disable_all true</xhtml:pre>
This effectively prevents an attacker from gaining access to a
system through a flaw in GNOME's Nautilus thumbnail creators.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-27224-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:806" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
      </Group>
      <Group id="files">
        <title xml:lang="en-US">Verify Permissions on Important Files and
Directories</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Permissions for many files on a system must be set
restrictively to ensure sensitive information is properly protected.
This section discusses important
permission restrictions which can be verified
to ensure that no harmful discrepancies have
arisen.</description>
        <Group id="permissions_important_account_files">
          <title xml:lang="en-US">Verify Permissions on Files with Local Account Information and Credentials</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The default restrictive permissions for files which act as
important security databases such as <xhtml:code>passwd</xhtml:code>, <xhtml:code>shadow</xhtml:code>,
<xhtml:code>group</xhtml:code>, and <xhtml:code>gshadow</xhtml:code> files must be maintained.  Many utilities
need read access to the <xhtml:code>passwd</xhtml:code> file in order to function properly, but
read access to the <xhtml:code>shadow</xhtml:code> file allows malicious attacks against system
passwords, and should never be enabled.</description>
          <Rule id="userowner_shadow_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify User Who Owns shadow File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the owner of <xhtml:code>/etc/shadow</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chown root /etc/shadow </xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/shadow</xhtml:code> 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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26947-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:468" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the ownership of <xhtml:code>/etc/shadow</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /etc/shadow</xhtml:pre>
    If properly configured, the output should indicate the following owner:
    <xhtml:code>root</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="groupowner_shadow_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify Group Who Owns shadow File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the group owner of <xhtml:code>/etc/shadow</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chgrp root /etc/shadow </xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/shadow</xhtml:code> file stores password hashes. Protection of this file is
critical for system security.</rationale>
            <ident system="http://cce.mitre.org">CCE-26967-0</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1128" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the group ownership of <xhtml:code>/etc/shadow</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /etc/shadow</xhtml:pre>
    If properly configured, the output should indicate the following group-owner.
    <xhtml:code>root</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="perms_shadow_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify Permissions on shadow File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the permissions of <xhtml:code>/etc/shadow</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chmod 0000 /etc/shadow</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/shadow</xhtml:code> 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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26992-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:245" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the permissions of <xhtml:code>/etc/shadow</xhtml:code>, run the command:
    <xhtml:pre>$ ls -l /etc/shadow</xhtml:pre>
    If properly configured, the output should indicate the following permissions:
    <xhtml:code>----------</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="userowner_group_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify User Who Owns group File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the owner of <xhtml:code>/etc/group</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chown root /etc/group </xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/group</xhtml:code> file contains information regarding groups that are configured
on the system. Protection of this file is important for system security.</rationale>
            <ident system="http://cce.mitre.org">CCE-26822-7</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:274" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the ownership of <xhtml:code>/etc/group</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /etc/group</xhtml:pre>
    If properly configured, the output should indicate the following owner:
    <xhtml:code>root</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="groupowner_group_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify Group Who Owns group File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the group owner of <xhtml:code>/etc/group</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chgrp root /etc/group </xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/group</xhtml:code> file contains information regarding groups that are configured
on the system. Protection of this file is important for system security.</rationale>
            <ident system="http://cce.mitre.org">CCE-26930-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1179" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the group ownership of <xhtml:code>/etc/group</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /etc/group</xhtml:pre>
    If properly configured, the output should indicate the following group-owner.
    <xhtml:code>root</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="perms_group_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify Permissions on group File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the permissions of <xhtml:code>/etc/group</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chmod 644 /etc/group</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/group</xhtml:code> file contains information regarding groups that are configured
on the system. Protection of this file is important for system security.</rationale>
            <ident system="http://cce.mitre.org">CCE-26954-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:528" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the permissions of <xhtml:code>/etc/group</xhtml:code>, run the command:
    <xhtml:pre>$ ls -l /etc/group</xhtml:pre>
    If properly configured, the output should indicate the following permissions:
    <xhtml:code>-rw-r--r--</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="userowner_gshadow_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify User Who Owns gshadow File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the owner of <xhtml:code>/etc/gshadow</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chown root /etc/gshadow </xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/gshadow</xhtml:code> file contains group password hashes. Protection of this file
is critical for system security.</rationale>
            <ident system="http://cce.mitre.org">CCE-27026-4</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:441" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the ownership of <xhtml:code>/etc/gshadow</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /etc/gshadow</xhtml:pre>
    If properly configured, the output should indicate the following owner:
    <xhtml:code>root</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="groupowner_gshadow_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify Group Who Owns gshadow File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the group owner of <xhtml:code>/etc/gshadow</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chgrp root /etc/gshadow </xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/gshadow</xhtml:code> file contains group password hashes. Protection of this file
is critical for system security.</rationale>
            <ident system="http://cce.mitre.org">CCE-26975-3</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:828" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the group ownership of <xhtml:code>/etc/gshadow</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /etc/gshadow</xhtml:pre>
    If properly configured, the output should indicate the following group-owner.
    <xhtml:code>root</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="perms_gshadow_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify Permissions on gshadow File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the permissions of <xhtml:code>/etc/gshadow</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chmod 0000 /etc/gshadow</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/gshadow</xhtml:code> file contains group password hashes. Protection of this file
is critical for system security.</rationale>
            <ident system="http://cce.mitre.org">CCE-26951-4</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:278" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the permissions of <xhtml:code>/etc/gshadow</xhtml:code>, run the command:
    <xhtml:pre>$ ls -l /etc/gshadow</xhtml:pre>
    If properly configured, the output should indicate the following permissions:
    <xhtml:code>----------</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="userowner_passwd_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify User Who Owns passwd File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the owner of <xhtml:code>/etc/passwd</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chown root /etc/passwd </xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/passwd</xhtml:code> file contains information about the users that are configured on
the system. Protection of this file is critical for system security.</rationale>
            <ident system="http://cce.mitre.org">CCE-26953-0</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:754" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the ownership of <xhtml:code>/etc/passwd</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /etc/passwd</xhtml:pre>
    If properly configured, the output should indicate the following owner:
    <xhtml:code>root</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="groupowner_passwd_file" selected="false" severity="medium">
            <title xml:lang="en-US">Verify Group Who Owns passwd File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the group owner of <xhtml:code>/etc/passwd</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chgrp root /etc/passwd </xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>/etc/passwd</xhtml:code> file contains information about the users that are configured on
the system. Protection of this file is critical for system security.</rationale>
            <ident system="http://cce.mitre.org">CCE-26856-5</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:210" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the group ownership of <xhtml:code>/etc/passwd</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /etc/passwd</xhtml:pre>
    If properly configured, the output should indicate the following group-owner.
    <xhtml:code>root</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="file_permissions_etc_passwd" selected="false" severity="medium">
            <title xml:lang="en-US">Verify Permissions on passwd File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To properly set the permissions of <xhtml:code>/etc/passwd</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chmod 0644 /etc/passwd</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If the <xhtml:code>/etc/passwd</xhtml:code> 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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26868-0</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:724" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the permissions of <xhtml:code>/etc/passwd</xhtml:code>, run the command:
    <xhtml:pre>$ ls -l /etc/passwd</xhtml:pre>
    If properly configured, the output should indicate the following permissions:
    <xhtml:code>-rw-r--r--</xhtml:code>
            </check-content>
            </check>
          </Rule>
        </Group>
        <Group id="permissions_within_important_dirs">
          <title xml:lang="en-US">Verify File Permissions Within Some Important Directories</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Some directories contain files whose confidentiality or integrity
is notably important and may also be susceptible to misconfiguration over time, particularly if
unpackaged software is installed. As such,
an argument exists to verify that files' permissions within these directories remain
configured correctly and restrictively.   
</description>
          <Rule id="file_permissions_library_dirs" selected="false" severity="medium">
            <title xml:lang="en-US">Verify that Shared Library Files Have Restrictive Permissions</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre>/lib
/lib64
/usr/lib
/usr/lib64
</xhtml:pre>
Kernel modules, which can be added to the kernel during runtime, are
stored in <xhtml:code>/lib/modules</xhtml:code>. 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:
<xhtml:pre># chmod go-w <xhtml:i>FILE</xhtml:i></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1499</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:305" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="any of these files are group-writable or world-writable" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Shared libraries are stored in the following directories:
<xhtml:pre>/lib
/lib64
/usr/lib
/usr/lib64
</xhtml:pre>
To find shared libraries that are group-writable or world-writable,
run the following command for each directory <xhtml:i>DIR</xhtml:i> which contains shared libraries:
<xhtml:pre>$ find <xhtml:i>DIR</xhtml:i> -perm /022 -type f</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="file_ownership_library_dirs" selected="false" severity="medium">
            <title xml:lang="en-US">Verify that Shared Library Files Have Root Ownership</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre>/lib
/lib64
/usr/lib
/usr/lib64
</xhtml:pre>
Kernel modules, which can be added to the kernel during runtime, are also
stored in <xhtml:code>/lib/modules</xhtml:code>. All files in these directories should be
owned by the <xhtml:code>root</xhtml:code> user. If any file in these directories is found
to be owned by a user other than root, correct its ownership with the
following command:
<xhtml:pre># chown root <xhtml:i>FILE</xhtml:i></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1499</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:165" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="any of these files are not owned by root" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Shared libraries are stored in the following directories:
<xhtml:pre>/lib
/lib64
/usr/lib
/usr/lib64
</xhtml:pre>
For each of these directories, run the following command to find files not 
owned by root:
<xhtml:pre>$ find <xhtml:i>DIR</xhtml:i> \! -user root -type f</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="file_permissions_binary_dirs" selected="false" severity="medium">
            <title xml:lang="en-US">Verify that System Executables Have Restrictive Permissions</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
System executables are stored in the following directories by default:
<xhtml:pre>/bin
/usr/bin
/usr/local/bin
/sbin
/usr/sbin
/usr/local/sbin</xhtml:pre>
All files in these directories should not be group-writable or world-writable.
If any file <xhtml:i>FILE</xhtml:i> in these directories is found
to be group-writable or world-writable, correct its permission with the
following command:
<xhtml:pre># chmod go-w <xhtml:i>FILE</xhtml:i></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1499</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
            <check system="ocil-transitional">
              <check-export export-name="any system executables are found to be group or world writable" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
System executables are stored in the following directories by default:
<xhtml:pre>/bin
/usr/bin
/usr/local/bin
/sbin
/usr/sbin
/usr/local/sbin</xhtml:pre>
To find system executables that are group-writable or world-writable,
run the following command for each directory <xhtml:i>DIR</xhtml:i> which contains system executables:
<xhtml:pre>$ find <xhtml:i>DIR</xhtml:i> -perm /022</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="file_ownership_binary_dirs" selected="false" severity="medium">
            <title xml:lang="en-US">Verify that System Executables Have Root Ownership</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
System executables are stored in the following directories by default:
<xhtml:pre>/bin
/usr/bin
/usr/local/bin
/sbin
/usr/sbin
/usr/local/sbin</xhtml:pre>
All files in these directories should be owned by the <xhtml:code>root</xhtml:code> user.
If any file <xhtml:i>FILE</xhtml:i> in these directories is found
to be owned by a user other than root, correct its ownership with the
following command:
<xhtml:pre># chown root <xhtml:i>FILE</xhtml:i></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1499</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
            <check system="ocil-transitional">
              <check-export export-name="any system executables are found to not be owned by root" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
System executables are stored in the following directories by default:
<xhtml:pre>/bin
/usr/bin
/usr/local/bin
/sbin
/usr/sbin
/usr/local/sbin</xhtml:pre>
To find system executables that are not owned by <xhtml:code>root</xhtml:code>,
run the following command for each directory <xhtml:i>DIR</xhtml:i> which contains system executables:
<xhtml:pre>$ find <xhtml:i>DIR</xhtml:i> \! -user root</xhtml:pre>
</check-content>
            </check>
          </Rule>
        </Group>
        <Rule id="sticky_world_writable_dirs" selected="false" severity="low">
          <title xml:lang="en-US">Verify that All World-Writable Directories Have Sticky Bits Set</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
<xhtml:br/>
To set the sticky bit on a world-writable directory <xhtml:i>DIR</xhtml:i>, run the
following command:
<xhtml:pre># chmod +t <xhtml:i>DIR</xhtml:i></xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>swells</dc:contributor>
            <dc:date>20120929</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Failing to set the sticky bit on public directories allows unauthorized users to delete files in the directory structure.
<xhtml:br/><xhtml:br/>
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 <xhtml:code>/tmp</xhtml:code>), and for directories 
requiring global read/write access.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26840-9</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:187" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="any world-writable directories are missing the sticky bit" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To find world-writable directories that lack the sticky bit, run the following command:
<xhtml:pre># find / -xdev -type d -perm 002 ! -perm 1000</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="world_writeable_files" selected="false" severity="medium">
          <title xml:lang="en-US">Ensure No World-Writable Files Exist</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26910-0</ident>
          <check system="ocil-transitional">
            <check-export export-name="there is output" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To find world-writable files, run the following command:
<xhtml:pre># find / -xdev -type f -perm -002</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="no_unpackaged_sgid_files" selected="false" severity="low">
          <title xml:lang="en-US">Ensure All Setgid Executables Are Authorized</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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. 
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26769-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:542" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="there is output" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To find world-writable files, run the following command:
<xhtml:pre># find / -xdev -type f -perm -002</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="no_unpackaged_suid_files" selected="false" severity="low">
          <title xml:lang="en-US">Ensure All SUID Executables Are Authorized</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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. 
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26497-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:763" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To find world-writable files, run the following command:
<xhtml:pre># find / -xdev -type f -perm -002</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="no_files_unowned_by_user" selected="false" severity="low">
          <title xml:lang="en-US">Ensure All Files Are Owned by a User</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference href="http://iase.disa.mil/cci/index.html">224</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27032-2</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1155" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="files exist that are not owned by a valid user" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
The following command will discover and print any
files on local partitions which do not belong to a valid user.
Run it once for each local partition <xhtml:i>PART</xhtml:i>:
<xhtml:pre># find <xhtml:i>PART</xhtml:i> -xdev -nouser -print</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="no_files_unowned_by_group" selected="false" severity="low">
          <title xml:lang="en-US">Ensure All Files Are Owned by a Group</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference href="http://iase.disa.mil/cci/index.html">224</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26872-2</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:262" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="there is output" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
The following command will discover and print any
files on local partitions which do not belong to a valid group.
Run it once for each local partition <xhtml:i>PART</xhtml:i>:
<xhtml:pre># find <xhtml:i>PART</xhtml:i> -xdev -nogroup -print</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="world_writable_files_system_ownership" selected="false" severity="low">
          <title xml:lang="en-US">Ensure All World-Writable Directories Are Owned by a System Account</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>swells</dc:contributor>
            <dc:date>20120929</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26642-9</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:466" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="there is output" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
The following command will discover and print world-writable directories that
are not owned by a system account, given the assumption that only system
accounts have a uid lower than 500.  Run it once for each local partition <xhtml:i>PART</xhtml:i>:
<xhtml:pre># find <xhtml:i>PART</xhtml:i> -xdev -type d -perm 0002 -uid +500 -print</xhtml:pre>
</check-content>
          </check>
        </Rule>
      </Group>
      <Group id="restrictions">
        <title xml:lang="en-US">Restrict Programs from Dangerous Execution Patterns</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The recommendations in this section are designed to
ensure that the system's features to protect against potentially
dangerous program execution are activated.
These protections are applied at the system initialization or
kernel level, and defend against certain types of badly-configured
or compromised programs.</description>
        <Group id="daemon_umask">
          <title xml:lang="en-US">Daemon Umask</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The umask is a per-process setting which limits
the default permissions for creation of new files and directories.
The system includes initialization scripts which set the default umask
for system daemons.
</description>
          <Value id="var_umask_for_daemons" operator="equals" type="string">
            <title xml:lang="en-US">daemon umask</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Enter umask for daemons</description>
            <value>022</value>
            <value selector="022">022</value>
            <value selector="027">027</value>
          </Value>
          <Rule id="set_daemon_umask" selected="false" severity="low">
            <title xml:lang="en-US">Set Daemon Umask</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The file <xhtml:code>/etc/init.d/functions</xhtml:code> 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
<xhtml:i>UMASK</xhtml:i> appropriately:
<xhtml:pre>umask <xhtml:i>UMASK</xhtml:i></xhtml:pre>
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.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27031-4</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2119" value-id="var_umask_for_daemons"/>
              <check-content-ref name="oval:ssg:def:228" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check the value of the <xhtml:code>umask</xhtml:code>, run the following command:
<xhtml:pre>$ grep umask /etc/init.d/functions</xhtml:pre>
The output should show either <xhtml:code>022</xhtml:code> or <xhtml:code>027</xhtml:code>.
</check-content>
            </check>
          </Rule>
        </Group>
        <Group id="coredumps">
          <title xml:lang="en-US">Disable Core Dumps</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">A core dump file is the memory image of an executable
program when it was terminated by the operating system due to
errant behavior. In most cases, only software developers
legitimately need to access these files. The core dump files may
also contain sensitive information, or unnecessarily occupy large
amounts of disk space.
<xhtml:br/><xhtml:br/>
Once a hard limit is set in <xhtml:code>/etc/security/limits.conf</xhtml:code>, a
user cannot increase that limit within his or her own session. If access
to core dumps is required, consider restricting them to only
certain users or groups. See the <xhtml:code>limits.conf</xhtml:code> man page for more
information.
<xhtml:br/><xhtml:br/>
The core dumps of setuid programs are further protected. The
<xhtml:code>sysctl</xhtml:code> variable <xhtml:code>fs.suid_dumpable</xhtml:code> controls whether
the kernel allows core dumps from these programs at all. The default
value of 0 is recommended.</description>
          <Rule id="disable_users_coredumps" selected="false" severity="low">
            <title xml:lang="en-US">Disable Core Dumps for All Users</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To disable core dumps for all users, add the following line to
<xhtml:code>/etc/security/limits.conf</xhtml:code>:
<xhtml:pre>*     hard   core    0</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-5</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27033-0</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:798" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it is not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify that core dumps are disabled for all users, run the following command:
<xhtml:pre>$ grep core /etc/security/limits.conf</xhtml:pre>
The output should be:
<xhtml:pre>*     hard   core    0</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="disable_setuid_coredumps" selected="false" severity="low">
            <title xml:lang="en-US">Disable Core Dumps for SUID programs</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>fs.suid_dumpable</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w fs.suid_dumpable=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">fs.suid_dumpable = 0</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SI-11</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27044-7</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:280" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>fs.suid_dumpable</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl fs.suid_dumpable</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
        </Group>
        <Group id="enable_execshield_settings">
          <title xml:lang="en-US">Enable ExecShield</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">ExecShield describes kernel features that provide
protection against exploitation of memory corruption errors such as buffer
overflows. These features include random placement of the stack and other
memory regions, prevention of execution in memory that should only hold data,
and special handling of text buffers. These protections are enabled by default and
controlled through <xhtml:code>sysctl</xhtml:code> variables <xhtml:code>kernel.exec-shield</xhtml:code> and
<xhtml:code>kernel.randomize_va_space</xhtml:code>.
</description>
          <Rule id="enable_execshield" selected="false" severity="medium">
            <title xml:lang="en-US">Enable ExecShield</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>kernel.exec-shield</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w kernel.exec-shield=1</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">kernel.exec-shield = 1</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27007-4</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:686" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>kernel.exec-shield</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl kernel.exec-shield</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>1</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="enable_randomize_va_space" selected="false" severity="medium">
            <title xml:lang="en-US">Enable Randomized Layout of Virtual Address Space</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>kernel.randomize_va_space</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w kernel.randomize_va_space=2</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">kernel.randomize_va_space = 2</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 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.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26999-3</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:268" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>kernel.randomize_va_space</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl kernel.randomize_va_space</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>2</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
        </Group>
        <Group id="enable_nx">
          <title xml:lang="en-US">Enable Execute Disable (XD) or No Execute (NX) Support on
x86 Systems</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Recent processors in the x86 family support the
ability to prevent code execution on a per memory page basis.
Generically and on AMD processors, this ability is called No
Execute (NX), while on Intel processors it is called Execute
Disable (XD). This ability can help prevent exploitation of buffer
overflow vulnerabilities and should be activated whenever possible.
Extra steps must be taken to ensure that this protection is
enabled, particularly on 32-bit x86 systems. Other processors, such
as Itanium and POWER, have included such support since inception
and the standard kernel for those platforms supports the
feature.</description>
          <Rule id="install_PAE_kernel_on_x86-32" selected="false" severity="low">
            <title xml:lang="en-US">Install PAE Kernel on Supported 32-bit x86 Systems</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre># yum install kernel-PAE</xhtml:pre>
The installation process should also have configured the
bootloader to load the new kernel at boot. Verify this at reboot
and modify <xhtml:code>/etc/grub.conf</xhtml:code> if necessary.</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="hardware">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.</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27010-8</ident>
          </Rule>
          <Rule id="bios_enable_execution_restrictions" selected="false" severity="low">
            <title xml:lang="en-US">Enable NX or XD Support in the BIOS</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          </Rule>
        </Group>
      </Group>
    </Group>
    <Group id="selinux">
      <title xml:lang="en-US">SELinux</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">SELinux is a feature of the Linux kernel which can be
used to guard against misconfigured or compromised programs.
SELinux enforces the idea that programs should be limited in what
files they can access and what actions they can take.
<xhtml:br/><xhtml:br/>
The default SELinux policy, as configured on RHEL 6, has been
sufficiently developed and debugged that it should be usable on
almost any Red Hat machine with minimal configuration and a small
amount of system administrator training. This policy prevents
system services - including most of the common network-visible
services such as mail servers, FTP servers, and DNS servers - from
accessing files which those services have no valid reason to
access. This action alone prevents a huge amount of possible damage
from network attacks against services, from trojaned software, and
so forth.
<xhtml:br/><xhtml:br/>
This guide recommends that SELinux be enabled using the
default (targeted) policy on every Red Hat system, unless that
system has requirements which make a stronger policy
appropriate.
</description>
      <Group id="enabling_selinux">
        <title xml:lang="en-US">Enable SELinux</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Edit the file <xhtml:code>/etc/selinux/config</xhtml:code>. Add or correct the
following lines:
<xhtml:pre>SELINUX=enforcing
SELINUXTYPE=targeted</xhtml:pre>
Edit the file <xhtml:code>/etc/grub.conf</xhtml:code>. Ensure that the following
arguments DO NOT appear on any kernel command line in the file:
<xhtml:pre>selinux=0
enforcing=0</xhtml:pre>
The directive <xhtml:code>SELINUX=enforcing</xhtml:code> enables SELinux at boot time.
If SELinux is suspected of involvement with boot-time problems
(unlikely), it is possible to boot into the warning-only mode
<xhtml:code>SELINUX=permissive</xhtml:code> for debugging purposes. Make certain to change
the mode back to enforcing after debugging, set the filesystems to
be relabeled for consistency using the command <xhtml:code>touch
/.autorelabel</xhtml:code>, and reboot.
<xhtml:br/><xhtml:br/>
However, the RHEL 6 default SELinux configuration should be
sufficiently reasonable that most systems will boot without serious
problems. Some applications that require deep or unusual system
privileges, such as virtual machine software, may not be compatible
with SELinux in its default configuration. However, this should be
uncommon, and SELinux's application support continues to improve.
In other cases, SELinux may reveal unusual or insecure program
behavior by design.
<xhtml:br/><xhtml:br/>
The directive <xhtml:code>SELINUXTYPE=targeted</xhtml:code> configures SELinux to use
the default targeted policy.
<xhtml:br/><xhtml:br/>
The SELinux boot mode specified in <xhtml:code>/etc/selinux/config</xhtml:code> can be
overridden by command-line arguments passed to the kernel. It is
necessary to check <xhtml:code>grub.conf</xhtml:code> to ensure that this has not been done
and to protect the boot process.
</description>
        <Value id="var_selinux_state_name" operator="equals" type="string">
          <title xml:lang="en-US">SELinux state</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">enforcing - SELinux security policy is enforced.
<xhtml:br/>permissive - SELinux prints warnings instead of enforcing.
<xhtml:br/>disabled - SELinux is fully disabled.</description>
          <value>enforcing</value>
          <value selector="enforcing">enforcing</value>
          <value selector="permissive">permissive</value>
          <value selector="disabled">disabled</value>
        </Value>
        <Value id="var_selinux_policy_name" operator="equals" type="string">
          <title xml:lang="en-US">SELinux policy</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Type of policy in use. Possible values are:
<xhtml:br/>targeted - Only targeted network daemons are protected.
<xhtml:br/>strict - Full SELinux protection.
<xhtml:br/>mls - Multiple levels of security</description>
          <value>targeted</value>
          <value selector="targeted">targeted</value>
          <value selector="mls">mls</value>
        </Value>
        <Rule id="enable_selinux_bootloader" selected="false" severity="medium">
          <title xml:lang="en-US">Ensure SELinux Not Disabled in /etc/grub.conf</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">SELinux can be disabled at boot time by an argument in
<xhtml:code>/etc/grub.conf</xhtml:code>.
Remove any instances of <xhtml:code>selinux=0</xhtml:code> from the kernel arguments in that
file to prevent SELinux from being disabled at boot.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-3</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-3(3)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <reference href="http://iase.disa.mil/cci/index.html">22</reference>
          <reference href="http://iase.disa.mil/cci/index.html">32</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26956-3</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:734" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="SELinux is disabled at boot time" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect <xhtml:code>/etc/grub.conf</xhtml:code> for any instances of <xhtml:code>selinux=0</xhtml:code>
in the kernel boot arguments.  Presence of <xhtml:code>selinux=0</xhtml:code> indicates
that SELinux is disabled at boot time.
</check-content>
          </check>
        </Rule>
        <Rule id="set_selinux_state" selected="false" severity="medium">
          <title xml:lang="en-US">Ensure SELinux State is Enforcing</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The SELinux state should be set to <xhtml:code>enforcing</xhtml:code> at
system boot time.  In the file <xhtml:code>/etc/selinux/config</xhtml:code>, add or correct the
following line to configure the system to boot into enforcing mode:
<xhtml:pre>SELINUX=enforcing</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-3</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-3(3)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <reference href="http://iase.disa.mil/cci/index.html">22</reference>
          <reference href="http://iase.disa.mil/cci/index.html">32</reference>
          <reference href="http://iase.disa.mil/cci/index.html">26</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26969-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2130" value-id="var_selinux_state_name"/>
            <check-content-ref name="oval:ssg:def:736" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="SELINUX is not set to enforcing" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Check the file <xhtml:code>/etc/selinux/config</xhtml:code> and ensure the following line appears:
<xhtml:pre>SELINUX=enforcing</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="set_selinux_policy" selected="false" severity="low">
          <title xml:lang="en-US">Configure SELinux Policy</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The SELinux <xhtml:code>targeted</xhtml:code> 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 <xhtml:code>/etc/selinux/config</xhtml:code>:
<xhtml:pre>SELINUXTYPE=targeted</xhtml:pre>
Other policies, such as <xhtml:code>mls</xhtml:code>, provide additional security labeling
and greater confinement but are not compatible with many general-purpose
use cases.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-3</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-3(3)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <reference href="http://iase.disa.mil/cci/index.html">22</reference>
          <reference href="http://iase.disa.mil/cci/index.html">32</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Setting the SELinux policy to <xhtml:code>targeted</xhtml:code> 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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26875-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2123" value-id="var_selinux_policy_name"/>
            <check-content-ref name="oval:ssg:def:439" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it does not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Check the file <xhtml:code>/etc/selinux/config</xhtml:code> and ensure the following line appears:
<xhtml:pre>SELINUXTYPE=targeted</xhtml:pre>
</check-content>
          </check>
        </Rule>
      </Group>
      <Rule id="service_restorecond_enabled" selected="false" severity="low">
        <title xml:lang="en-US">Enable the SELinux Context Restoration Service (restorecond)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>restorecond</xhtml:code> service utilizes <xhtml:code>inotify</xhtml:code> to look
for the creation of new files listed in the
<xhtml:code>/etc/selinux/restorecond.conf</xhtml:code> configuration file. When a file is
created, <xhtml:code>restorecond</xhtml:code> ensures the file receives the proper SELinux
security context.

    The <xhtml:code>restorecond</xhtml:code> service can be enabled with the following command:
    <xhtml:pre># chkconfig --level 2345 restorecond on</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-3</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-3(3)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>restorecond</xhtml:code> service helps ensure that the default SELinux
file context is applied to files. This allows automatic correction
of file contexts created by some programs.</rationale>
        <ident system="http://cce.mitre.org">CCE-26991-0</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:506" href="ssg-rhel6-oval.xml"/>
        </check>
      </Rule>
      <Rule id="selinux_confinement_of_daemons" selected="false" severity="medium">
        <title xml:lang="en-US">Ensure No Daemons are Unconfined by SELinux</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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 <xhtml:code>init</xhtml:code> process, they inherit the <xhtml:code>initrc_t</xhtml:code> context.
<xhtml:br/>
<xhtml:br/>
To check for unconfined daemons, run the following command:
<xhtml:pre># ps -eZ | egrep "initrc" | egrep -vw "tr|ps|egrep|bash|awk" | tr ':' ' ' | awk '{ print $NF }'</xhtml:pre>
It should produce no output in a well-configured system.
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Daemons which run with the <xhtml:code>initrc_t</xhtml:code> context may cause AVC denials,
or allow privileges that the daemon does not require.
</rationale>
      </Rule>
      <Rule id="selinux_unlabeled_device_files" selected="false" severity="low">
        <title xml:lang="en-US">Ensure No Device Files are Unlabeled by SELinux</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>unlabeled_t</xhtml:code>, investigate the cause and
correct the file's context.
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference href="http://iase.disa.mil/cci/index.html">22</reference>
        <reference href="http://iase.disa.mil/cci/index.html">32</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If a device file carries the SELinux type <xhtml:code>unlabeled_t</xhtml:code>, then SELinux
cannot properly restrict access to the device file.
</rationale>
        <ident system="http://cce.mitre.org">CCE-26774-0</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:1120" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="there is output" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">To check for unlabeled device files, run the following command:
<xhtml:pre># ls -RZ /dev | grep unlabeled_t</xhtml:pre>
It should produce no output in a well-configured system.</check-content>
        </check>
      </Rule>
    </Group>
    <Group id="accounts">
      <title xml:lang="en-US">Account and Access Control</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">In traditional Unix security, if an attacker gains
shell access to a certain login account, they can perform any action
or access any file to which that account has access. Therefore,
making it more difficult for unauthorized people to gain shell
access to accounts, particularly to privileged accounts, is a
necessary part of securing a system. This section introduces
mechanisms for restricting access to accounts under
RHEL 6.</description>
      <Group id="accounts-restrictions">
        <title xml:lang="en-US">Protect Accounts by Restricting Password-Based Login</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Conventionally, Unix shell accounts are accessed by
providing a username and password to a login program, which tests
these values for correctness using the <xhtml:code>/etc/passwd</xhtml:code> and
<xhtml:code>/etc/shadow</xhtml:code> files. Password-based login is vulnerable to
guessing of weak passwords, and to sniffing and man-in-the-middle
attacks against passwords entered over a network or at an insecure
console. Therefore, mechanisms for accessing accounts by entering
usernames and passwords should be restricted to those which are
operationally necessary.</description>
        <Group id="root_logins">
          <title xml:lang="en-US">Restrict Root Logins</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Direct root logins should be allowed only for emergency use.
In normal situations, the administrator should access the system
via a unique unprivileged account, and then use <xhtml:code>su</xhtml:code> or <xhtml:code>sudo</xhtml:code> to execute
privileged commands. Discouraging administrators from accessing the
root account directly ensures an audit trail in organizations with
multiple administrators. Locking down the channels through which
root can connect directly also reduces opportunities for
password-guessing against the root account. The <xhtml:code>login</xhtml:code> program
uses the file <xhtml:code>/etc/securetty</xhtml:code> to determine which interfaces
should allow root logins.

The virtual devices <xhtml:code>/dev/console</xhtml:code>
and <xhtml:code>/dev/tty*</xhtml:code> represent the system consoles (accessible via
the Ctrl-Alt-F1 through Ctrl-Alt-F6 keyboard sequences on a default
installation). The default securetty file also contains <xhtml:code>/dev/vc/*</xhtml:code>.
These are likely to be deprecated in most environments, but may be retained
for compatibility. Root should also be prohibited from connecting
via network protocols. Other sections of this document
include guidance describing how to prevent root from logging in via SSH.
</description>
          <Rule id="no_direct_root_logins" selected="false" severity="medium">
            <title xml:lang="en-US">Direct root Logins Not Allowed</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To further limit access to the <xhtml:code>root</xhtml:code> account, administrators
can disable root logins at the console by editing the <xhtml:code>/etc/secuetty</xhtml:code> 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 thesyste,
whether via the console or a raw network interface. This is dangerous as as user can login to
his machine as root via Telnet, which sends the passowrd in plain text over the network.
By default, Red Hat Enteprise Linux's <xhtml:code>/etc/securetty</xhtml:code> 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:
<xhtml:pre>
echo &gt; /etc/securetty
</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-2(1)</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
            <check system="ocil-transitional">
              <check-export export-name="the /etc/securetty file is not empty" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure root may not directly login to the system over physical consoles,
run the following command:
<xhtml:pre>cat /etc/securetty</xhtml:pre>
If any output is returned, this is a finding.
</check-content>
            </check>
          </Rule>
          <Rule id="restrict_root_console_logins" selected="false" severity="medium">
            <title xml:lang="en-US">Restrict Virtual Console Root Logins</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To restrict root logins through the (deprecated) virtual console devices,
ensure lines of this form do not appear in <xhtml:code>/etc/securetty</xhtml:code>:
<xhtml:pre>vc/1
vc/2
vc/3
vc/4</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6(2)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">770</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Preventing direct root login to virtual console devices
helps ensure accountability for actions taken on the system
using the root account.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26855-7</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:622" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="root login over virtual console devices is permitted" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check for virtual console entries which permit root login, run the
following command:
<xhtml:pre># grep ^vc/[0-9] /etc/securetty</xhtml:pre>
If any output is returned, then root logins over virtual console devices is permitted.
</check-content>
            </check>
          </Rule>
          <Rule id="restrict_serial_port_logins" selected="false" severity="low">
            <title xml:lang="en-US">Restrict Serial Port Root Logins</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To restrict root logins on serial ports,
ensure lines of this form do not appear in <xhtml:code>/etc/securetty</xhtml:code>:
<xhtml:pre>ttyS0
ttyS1</xhtml:pre>
<!-- TODO: discussion/description of serial port -->
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6(2)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">770</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Preventing direct root login to serial port interfaces
helps ensure accountability for actions taken on the systems
using the root account.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27047-0</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:264" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="root login over serial ports is permitted" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check for serial port entries which permit root login,
run the following command:
<xhtml:pre># grep ^ttyS/[0-9] /etc/securetty</xhtml:pre>
If any output is returned, then root login over serial ports is permitted.
</check-content>
            </check>
          </Rule>
          <Rule id="no_root_webbrowsing" selected="false" severity="low">
            <title xml:lang="en-US">Restrict Web Browser Use for Administrative Accounts</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Enforce policy requiring administrative accounts use web browsers only for 
local service administration.
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
            <check system="ocil-transitional">
              <check-export export-name="this is not the case" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Check the <xhtml:code>root</xhtml:code> home directory for a <xhtml:code>.mozilla</xhtml:code> directory.  If 
one exists, ensure browsing is limited to local service administration.
</check-content>
            </check>
          </Rule>
          <Rule id="no_shelllogin_for_systemaccounts" selected="false" severity="medium">
            <title xml:lang="en-US">Ensure that System Accounts Do Not Run a Shell Upon Login</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
<xhtml:br/><xhtml:br/>
The login shell for each local account is stored in the last field of each line
in <xhtml:code>/etc/passwd</xhtml:code>.  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 <xhtml:i>SYSACCT</xhtml:i> (other than root) has a login shell,
disable it with the command:
<xhtml:pre># usermod -s /sbin/nologin <xhtml:i>SYSACCT</xhtml:i></xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="functionality">
Do not perform the steps in this
section on the root account. Doing so might cause the system to
become inaccessible.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <reference href="http://iase.disa.mil/cci/index.html">178</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Ensuring shells are not given to system accounts upon login
makes it more difficult for attackers to make use of
system accounts.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26966-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:2145" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="any system account (other than root) has a login shell" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To obtain a listing of all users,
their UIDs, and their shells, run the command:
<xhtml:pre>$ awk -F: '{print $1 ":" $3 ":" $7}' /etc/passwd</xhtml:pre>
Identify the system accounts from this listing. These will
primarily be the accounts with UID numbers less than 500, other
than root.
</check-content>
            </check>
          </Rule>
          <Rule id="no_uidzero_except_root" selected="false" severity="medium">
            <title xml:lang="en-US">Verify Only Root Has UID 0</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-2(1)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">366</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26971-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1118" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="any account other than root has a UID of 0" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To list all password file entries for accounts with UID 0, run the following command:
<xhtml:pre># awk -F: '($3 == "0") {print}' /etc/passwd</xhtml:pre>
This should print only one line, for the user root.
</check-content>
            </check>
          </Rule>
          <Rule id="root_path_default" selected="false" severity="low">
            <title xml:lang="en-US">Root Path Must Be Vendor Default</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Assuming root shell is bash, edit the following files:
<xhtml:pre>~/.profile</xhtml:pre>
<xhtml:pre>~/.bashrc</xhtml:pre>
Change any <xhtml:code>PATH</xhtml:code> variables to the vendor default for root and remove any 
empty <xhtml:code>PATH</xhtml:code> entries or references to relative paths.
</description>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The root account's executable search path must be the vendor default, and must 
contain only absolute paths.
</rationale>
            <check system="ocil-transitional">
              <check-export export-name="any of these conditions are not met" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To view the root user's <xhtml:code>PATH</xhtml:code>, run the following command:
<xhtml:pre># env | grep PATH</xhtml:pre>
If correctly configured, the <xhtml:code>PATH</xhtml:code> must: use vendor default settings, 
have no empty entries, and have no entries beginning with a character
other than a slash (/).
</check-content>
            </check>
          </Rule>
        </Group>
        <Group id="password_storage">
          <title xml:lang="en-US">Verify Proper Storage and Existence of Password
Hashes</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
By default, password hashes for local accounts are stored
in the second field (colon-separated) in
<xhtml:code>/etc/shadow</xhtml:code>. This file should be readable only by
processes running with root credentials, preventing users from
casually accessing others' password hashes and attempting
to crack them.
However, it remains possible to misconfigure the system
and store password hashes
in world-readable files such as <xhtml:code>/etc/passwd</xhtml:code>, or
to even store passwords themselves in plaintext on the system.
Using system-provided tools for password change/creation
should allow administrators to avoid such misconfiguration.
</description>
          <Rule id="no_empty_passwords" selected="false" severity="high">
            <title xml:lang="en-US">Prevent Log In to Accounts With Empty Password</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>nullok</xhtml:code>
option in <xhtml:code>/etc/pam.d/system-auth</xhtml:code> to
prevent logins with empty passwords.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(a)</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27038-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:794" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="NULL passwords can be used" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify that null passwords cannot be used, run the following command:
<xhtml:pre># grep nullok /etc/pam.d/system-auth</xhtml:pre>
If this produces any output, it may be possible to log into accounts
with empty passwords.
</check-content>
            </check>
          </Rule>
          <Rule id="no_hashes_outside_shadow" selected="false" severity="medium">
            <title xml:lang="en-US">Verify All Account Password Hashes are Shadowed</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If any password hashes are stored in <xhtml:code>/etc/passwd</xhtml:code> (in the second field,
instead of an <xhtml:code>x</xhtml:code>), 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.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(h)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">201</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The hashes for all user account passwords should be stored in
the file <xhtml:code>/etc/shadow</xhtml:code> and never in <xhtml:code>/etc/passwd</xhtml:code>,
which is readable by all users.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26476-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:618" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="any stored hashes are found in /etc/passwd" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check that no password hashes are stored in
<xhtml:code>/etc/passwd</xhtml:code>, run the following command:
<xhtml:pre># awk -F: '($2 != "x") {print}' /etc/passwd</xhtml:pre>
If it produces any output, then a password hash is
stored in <xhtml:code>/etc/passwd</xhtml:code>.
</check-content>
            </check>
          </Rule>
          <Rule id="gid_passwd_group_same" selected="false" severity="low">
            <title xml:lang="en-US">All GIDs referenced in /etc/passwd must be defined in /etc/group</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Add a group to the system for each GID referenced without a corresponding group.
</description>
            <reference href="http://iase.disa.mil/cci/index.html">366</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Inconsistency in GIDs between <xhtml:code>/etc/passwd</xhtml:code> and <xhtml:code>/etc/group</xhtml:code> could lead to a user having unintended rights.
</rationale>
            <check system="ocil-transitional">
              <check-export export-name="there is output" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure all GIDs referenced in <xhtml:code>/etc/passwd</xhtml:code> are defined in <xhtml:code>/etc/group</xhtml:code>, 
run the following command:
<xhtml:pre># pwck -qr</xhtml:pre>
There should be no output.
</check-content>
            </check>
          </Rule>
          <Rule id="no_netrc_files" selected="false" severity="medium">
            <title xml:lang="en-US">Verify No netrc Files Exist</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>.netrc</xhtml:code> 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 <xhtml:code>.netrc</xhtml:code> files should be removed.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(h)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">196</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Unencrypted passwords for remote FTP servers may be stored in <xhtml:code>.netrc</xhtml:code>
files. DoD policy requires passwords be encrypted in storage and not used
in access scripts.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27225-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:926" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="any .netrc files exist" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check the system for the existence of any <xhtml:code>.netrc</xhtml:code> files,
run the following command:
<xhtml:pre># find /home -xdev -name .netrc</xhtml:pre>
<!-- needs fixup to limit search to home dirs -->
</check-content>
            </check>
          </Rule>
        </Group>
        <Group id="password_expiration">
          <title xml:lang="en-US">Set Password Expiration Parameters</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The file <xhtml:code>/etc/login.defs</xhtml:code> controls several
password-related settings. Programs such as <xhtml:code>passwd</xhtml:code>,
<xhtml:code>su</xhtml:code>, and
<xhtml:code>login</xhtml:code> consult <xhtml:code>/etc/login.defs</xhtml:code> to determine
behavior with regard to password aging, expiration warnings,
and length. See the man page <xhtml:code>login.defs(5)</xhtml:code> for more information.
<xhtml:br/><xhtml:br/>
Users should be forced to change their passwords, in order to
decrease the utility of compromised passwords. However, the need to
change passwords often should be balanced against the risk that
users will reuse or write down passwords if forced to change them
too often. Forcing password changes every 90-360 days, depending on
the environment, is recommended. Set the appropriate value as
<xhtml:code>PASS_MAX_DAYS</xhtml:code> and apply it to existing accounts with the
<xhtml:code>-M</xhtml:code> flag.
<xhtml:br/><xhtml:br/>
The <xhtml:code>PASS_MIN_DAYS</xhtml:code> (<xhtml:code>-m</xhtml:code>) setting prevents password
changes for 7 days after the first change, to discourage password
cycling. If you use this setting, train users to contact an administrator
for an emergency password change in case a new password becomes
compromised. The <xhtml:code>PASS_WARN_AGE</xhtml:code> (<xhtml:code>-W</xhtml:code>) setting gives
users 7 days of warnings at login time that their passwords are about to expire.
<xhtml:br/><xhtml:br/>
For example, for each existing human user <xhtml:i>USER</xhtml:i>, expiration parameters
could be adjusted to a 180 day maximum password age, 7 day minimum password
age, and 7 day warning period with the following command:
<xhtml:pre># chage -M 180 -m 7 -W 7 USER</xhtml:pre>
</description>
          <Value id="var_password_min_len" type="number">
            <title xml:lang="en-US">minimum password length</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Minimum number of characters in password</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">This will only check new passwords</warning>
            <value>14</value>
            <value selector="6">6</value>
            <value selector="8">8</value>
            <value selector="10">10</value>
            <value selector="12">12</value>
            <value selector="14">14</value>
          </Value>
          <Value id="var_password_max_age" type="number">
            <title xml:lang="en-US">maximum password age</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Maximum age of password in days</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">This will only apply to newly created accounts</warning>
            <value>60</value>
            <value selector="60">60</value>
            <value selector="90">90</value>
            <value selector="120">120</value>
            <value selector="180">180</value>
          </Value>
          <Value id="var_password_min_age" type="number">
            <title xml:lang="en-US">minimum password age</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Minimum age of password in days</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">This will only apply to newly created accounts</warning>
            <value>7</value>
            <value selector="7">7</value>
            <value selector="5">5</value>
            <value selector="1">1</value>
            <value selector="2">2</value>
            <value selector="0">0</value>
          </Value>
          <Value id="var_password_warn_age" type="number">
            <title xml:lang="en-US">warning days before password expires</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The number of days' warning given before a password expires.</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">This will only apply to newly created accounts</warning>
            <value>7</value>
            <value selector="0">0</value>
            <value selector="7">7</value>
            <value selector="14">14</value>
          </Value>
          <Rule id="password_min_len" selected="false" severity="medium">
            <title xml:lang="en-US">Set Password Minimum Length in login.defs</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To specify password length requirements for new accounts,
edit the file <xhtml:code>/etc/login.defs</xhtml:code> and add or correct the following
lines:
<xhtml:pre>PASS_MIN_LEN 14<!-- <sub idref="var_password_min_len"> --></xhtml:pre>
<xhtml:br/><xhtml:br/>
The DoD requirement is <xhtml:code>14</xhtml:code>. 
The FISMA requirement is <xhtml:code>12</xhtml:code>.
If a program consults <xhtml:code>/etc/login.defs</xhtml:code> and also another PAM module
(such as <xhtml:code>pam_cracklib</xhtml:code>) during a password change operation,
then the most restrictive must be satisfied. See PAM section
for more information about enforcing password quality requirements.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(f)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(a)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">205</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Requiring a minimum password length makes password
cracking attacks more difficult by ensuring a larger
search space. However, any security benefit from an onerous requirement
must be carefully weighed against usability problems, support costs, or counterproductive
behavior that may result.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27002-5</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2127" value-id="var_password_min_len"/>
              <check-content-ref name="oval:ssg:def:595" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it is not set to the required value" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check the minimum password length, run the command:
<xhtml:pre>$ grep PASS_MIN_LEN /etc/login.defs</xhtml:pre>
The DoD requirement is <xhtml:code>14</xhtml:code>. 
</check-content>
            </check>
          </Rule>
          <Rule id="password_min_age" selected="false" severity="medium">
            <title xml:lang="en-US">Set Password Minimum Age</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To specify password minimum age for new accounts,
edit the file <xhtml:code>/etc/login.defs</xhtml:code>
and add or correct the following line, replacing <xhtml:i>DAYS</xhtml:i> appropriately:
<xhtml:pre>PASS_MIN_DAYS <xhtml:i>DAYS</xhtml:i></xhtml:pre>
A value of 1 day is considered for sufficient for many
environments.
The DoD requirement is 1. 
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(f)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(d)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">198</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Setting the minimum password age protects against
users cycling back to a favorite password
after satisfying the password reuse requirement.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27013-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2133" value-id="var_password_min_age"/>
              <check-content-ref name="oval:ssg:def:800" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it is not set to the required value" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check the minimum password age, run the command:
<xhtml:pre>$ grep PASS_MIN_DAYS /etc/login.defs</xhtml:pre>
The DoD and FISMA requirement is 1. 
</check-content>
            </check>
          </Rule>
          <Rule id="password_max_age" selected="false" severity="medium">
            <title xml:lang="en-US">Set Password Maximum Age</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To specify password maximum age for new accounts,
edit the file <xhtml:code>/etc/login.defs</xhtml:code>
and add or correct the following line, replacing <xhtml:i>DAYS</xhtml:i> appropriately:
<xhtml:pre>PASS_MAX_DAYS <xhtml:i>DAYS</xhtml:i></xhtml:pre>
A value of 180 days is sufficient for many environments. 
The DoD requirement is 60.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(f)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(g)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(d)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">180</reference>
            <reference href="http://iase.disa.mil/cci/index.html">199</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Setting the password maximum age ensures users are required to
periodically change their passwords. This could possibly decrease
the utility of a stolen password. Requiring shorter password lifetimes
increases the risk of users writing down the password in a convenient
location subject to physical compromise.</rationale>
            <ident system="http://cce.mitre.org">CCE-26985-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2142" value-id="var_password_max_age"/>
              <check-content-ref name="oval:ssg:def:1126" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it is not set to the required value" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check the maximum password age, run the command:
<xhtml:pre>$ grep PASS_MAX_DAYS /etc/login.defs</xhtml:pre>
The DoD and FISMA requirement is 60.
A value of 180 days is sufficient for many environments. 
</check-content>
            </check>
          </Rule>
          <Rule id="password_warn_age" selected="false" severity="low">
            <title xml:lang="en-US">Set Password Warning Age</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To specify how many days prior to password
expiration that a warning will be issued to users,
edit the file <xhtml:code>/etc/login.defs</xhtml:code> and add or correct
 the following line, replacing <xhtml:i>DAYS</xhtml:i> appropriately:
<xhtml:pre>PASS_WARN_AGE <xhtml:i>DAYS</xhtml:i></xhtml:pre>
The DoD requirement is 7.
<!-- <sub idref="password_warn_age_login_defs_value" /> -->
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(f)</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Setting the password warning age enables users to
make the change at a practical time.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26988-6</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2141" value-id="var_password_warn_age"/>
              <check-content-ref name="oval:ssg:def:1124" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it is not set to the required value" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check the password warning age, run the command:
<xhtml:pre>$ grep PASS_WARN_AGE /etc/login.defs</xhtml:pre>
The DoD requirement is 7.
</check-content>
            </check>
          </Rule>
        </Group>
        <Group id="account_expiration">
          <title xml:lang="en-US">Set Account Expiration Parameters</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Accounts can be configured to be automatically disabled
after a certain time period,
meaning that they will require administrator interaction to become usable again.
Expiration of accounts after inactivity can be set for all accounts by default
and also on a per-account basis, such as for accounts that are known to be temporary.
To configure automatic expiration of an account following
the expiration of its password (that is, after the password has expired and not been changed),
run the following command, substituting <xhtml:code><xhtml:i>NUM_DAYS</xhtml:i></xhtml:code> and <xhtml:code><xhtml:i>USER</xhtml:i></xhtml:code> appropriately:
<xhtml:pre># chage -I <xhtml:i>NUM_DAYS USER</xhtml:i></xhtml:pre>
Accounts, such as temporary accounts, can also be configured to expire on an explicitly-set date with the
<xhtml:code>-E</xhtml:code> option.
The file <xhtml:code>/etc/default/useradd</xhtml:code> controls
default settings for all newly-created accounts created with the system's
normal command line utilities.
</description>
          <Value id="var_account_disable_post_pw_expiration" type="number">
            <title xml:lang="en-US">number of days after a password expires until the account is permanently disabled</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The number of days to wait after a password expires, until the account will be permanently disabled.</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">This will only apply to newly created accounts</warning>
            <value>35</value>
            <value selector="30">30</value>
            <value selector="35">35</value>
            <value selector="60">60</value>
            <value selector="90">90</value>
            <value selector="180">180</value>
          </Value>
          <Rule id="account_disable_post_pw_expiration" selected="false" severity="low">
            <title xml:lang="en-US">Set Account Expiration Following Inactivity</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To specify the number of days after a password expires (which
signifies inactivity) until an account is permanently disabled, add or correct
the following lines in <xhtml:code>/etc/default/useradd</xhtml:code>, substituting
<xhtml:code><xhtml:i>NUM_DAYS</xhtml:i></xhtml:code> appropriately:
<xhtml:pre>INACTIVE=<xhtml:i>NUM_DAYS</xhtml:i></xhtml:pre>
A value of 35 is recommended.  
If a password is currently on the
verge of expiration, then 35 days remain until the account is automatically
disabled. However, if the password will not expire for another 60 days, then 95
days could elapse until the account would be automatically disabled. See the
<xhtml:code>useradd</xhtml:code> man page for more information.  Determining the inactivity
timeout must be done with careful consideration of the length of a "normal"
period of inactivity for users in the particular environment. Setting
the timeout too low incurs support costs and also has the potential to impact
availability of the system to legitimate users.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-2(2)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-2(3)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">16</reference>
            <reference href="http://iase.disa.mil/cci/index.html">17</reference>
            <reference href="http://iase.disa.mil/cci/index.html">795</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Disabling inactive accounts ensures that accounts which may not
have been responsibly removed are not available to attackers
who may have compromised their credentials.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27283-1</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2132" value-id="var_account_disable_post_pw_expiration"/>
              <check-content-ref name="oval:ssg:def:796" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify the <xhtml:code>INACTIVE</xhtml:code> setting, run the following command:
<xhtml:pre>grep "INACTIVE" /etc/default/useradd</xhtml:pre>
The output should indicate the <xhtml:code>INACTIVE</xhtml:code> configuration option is set
to an appropriate integer as shown in the example below:
<xhtml:pre># grep "INACTIVE" /etc/default/useradd
INACTIVE=35</xhtml:pre></check-content>
            </check>
          </Rule>
          <Rule id="account_unique_name" selected="false" severity="low">
            <title xml:lang="en-US">Ensure All Accounts on the System Have Unique Names</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Change usernames, or delete accounts, so each has a unique name.
</description>
            <reference href="http://iase.disa.mil/cci/index.html">770</reference>
            <reference href="http://iase.disa.mil/cci/index.html">804</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Unique usernames allow for accountability on the system. 
</rationale>
            <ident system="http://cce.mitre.org">CCE-27609-7</ident>
            <check system="ocil-transitional">
              <check-export export-name="a line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Run the following command to check for duplicate account names:
<xhtml:pre># pwck -qr</xhtml:pre>
If there are no duplicate names, no line will be returned.
</check-content>
            </check>
          </Rule>
          <Rule id="account_temp_expire_date" selected="false" severity="low">
            <title xml:lang="en-US">Assign Expiration Date to Temporary Accounts</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
In the event temporary or emergency accounts are required, configure the system
to terminate them after a documented time period. For every temporary and
emergency account, run the following command to set an expiration date on it,
substituting <xhtml:code><xhtml:i>USER</xhtml:i></xhtml:code> and <xhtml:code><xhtml:i>YYYY-MM-DD</xhtml:i></xhtml:code> appropriately:
<xhtml:pre># chage -E <xhtml:i>YYYY-MM-DD USER</xhtml:i></xhtml:pre>
<xhtml:code><xhtml:i>YYYY-MM-DD</xhtml:i></xhtml:code> indicates the documented expiration date for the account.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-2(2)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-2(3)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">16</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1682</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
When temporary and emergency accounts are created, there is a risk they may
remain in place and active after the need for them no longer exists.  Account
expiration greatly reduces the risk of accounts being misused or hijacked. 
<xhtml:br/>
</rationale>
            <check system="ocil-transitional">
              <check-export export-name="any temporary or emergency accounts have no expiration date set or do not expire within a documented time frame" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
For every temporary and emergency account, run the following command
to obtain its account aging and expiration information:
<xhtml:pre># chage -l <xhtml:i>USER</xhtml:i></xhtml:pre>
Verify each of these accounts has an expiration date set as documented.
</check-content>
            </check>
          </Rule>
        </Group>
      </Group>
      <Group id="accounts-pam">
        <title xml:lang="en-US">Protect Accounts by Configuring PAM</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">PAM, or Pluggable Authentication Modules, is a system
which implements modular authentication for Linux programs. PAM provides
a flexible and configurable architecture for authentication, and it should be configured
to minimize exposure to unnecessary risk. This section contains
guidance on how to accomplish that.
<xhtml:br/><xhtml:br/>
PAM is implemented as a set of shared objects which are
loaded and invoked whenever an application wishes to authenticate a
user. Typically, the application must be running as root in order
to take advantage of PAM, because PAM's modules often need to be able
to access sensitive stores of account information, such as /etc/shadow.
Traditional privileged network listeners
(e.g. sshd) or SUID programs (e.g. sudo) already meet this
requirement. An SUID root application, userhelper, is provided so
that programs which are not SUID or privileged themselves can still
take advantage of PAM.
<xhtml:br/><xhtml:br/>
PAM looks in the directory <xhtml:code>/etc/pam.d</xhtml:code> for
application-specific configuration information. For instance, if
the program login attempts to authenticate a user, then PAM's
libraries follow the instructions in the file <xhtml:code>/etc/pam.d/login</xhtml:code>
to determine what actions should be taken.
<xhtml:br/><xhtml:br/>
One very important file in <xhtml:code>/etc/pam.d</xhtml:code> is
<xhtml:code>/etc/pam.d/system-auth</xhtml:code>. This file, which is included by
many other PAM configuration files, defines 'default' system authentication
measures. Modifying this file is a good way to make far-reaching
authentication changes, for instance when implementing a
centralized authentication service.</description>
        <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">Be careful when making changes to PAM's
configuration files. The syntax for these files is complex, and
modifications can have unexpected consequences. The default
configurations shipped with applications should be sufficient for
most users.</warning>
        <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">Running <xhtml:code>authconfig</xhtml:code> or
<xhtml:code>system-config-authentication</xhtml:code> will re-write the PAM configuration
files, destroying any manually made changes and replacing them with
a series of system defaults. One reference to the configuration
file syntax can be found at
http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/sag-configuration-file.html.</warning>
        <Value id="password_history_retain_number" operator="equals" type="number">
          <title xml:lang="en-US">remember</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The last n passwords for each user are saved in
<xhtml:code>/etc/security/opasswd</xhtml:code> in order to force password change history and
keep the user from alternating between the same password too
frequently.</description>
          <value>24</value>
          <value selector="0">0</value>
          <value selector="5">5</value>
          <value selector="10">10</value>
          <value selector="24">24</value>
        </Value>
        <Rule id="display_login_attempts" selected="false" severity="low">
          <title xml:lang="en-US">Set Last Logon/Access Notification</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To configure the system to notify users of last logon/access
using <xhtml:code>pam_lastlog</xhtml:code>, add the following line immediately after <xhtml:code>session  required  pam_limits.so</xhtml:code>:
<xhtml:pre>session       required     pam_lastlog.so showfailed</xhtml:pre>
</description>
          <reference href="http://iase.disa.mil/cci/index.html">53</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Users need to be aware of activity that occurs regarding
their account. Providing users with information regarding the number
of unsuccessful attempts that were made to login to their account
allows the user to determine if any unauthorized activity has occurred
and gives them an opportunity to notify administrators.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27291-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:640" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="that is not the case" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure that last logon/access notification is configured correctly, run
the following command:
<xhtml:pre># grep pam_lastlog.so /etc/pam.d/system-auth</xhtml:pre>
The output should show output <xhtml:code>showfailed</xhtml:code>.
</check-content>
          </check>
        </Rule>
        <Group id="password_quality">
          <title xml:lang="en-US">Set Password Quality Requirements</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The default <xhtml:code>pam_cracklib</xhtml:code> PAM module provides strength
checking for passwords. It performs a number of checks, such as
making sure passwords are not similar to dictionary words, are of
at least a certain length, are not the previous password reversed,
and are not simply a change of case from the previous password. It
can also require passwords to be in certain character classes.
<xhtml:br/><xhtml:br/>
The <xhtml:code>pam_passwdqc</xhtml:code> PAM module also provides the ability to enforce
stringent password strength requirements. It is provided
in an RPM of the same name.
<xhtml:br/><xhtml:br/>
The man pages <xhtml:code>pam_cracklib(8)</xhtml:code> and <xhtml:code>pam_passwdqc(8)</xhtml:code>
provide information on the capabilities and configuration of
each.</description>
          <Group id="password_quality_pamcracklib">
            <title xml:lang="en-US">Set Password Quality Requirements, if using
pam_cracklib</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>pam_cracklib</xhtml:code> PAM module can be configured to meet
requirements for a variety of policies.
<xhtml:br/><xhtml:br/>
For example, to configure <xhtml:code>pam_cracklib</xhtml:code> to require at least one uppercase
character, lowercase character, digit, and other (special)
character, locate the following line in <xhtml:code>/etc/pam.d/system-auth</xhtml:code>:
<xhtml:pre>password requisite pam_cracklib.so try_first_pass retry=3</xhtml:pre>
and then alter it to read:
<xhtml:pre>password required pam_cracklib.so try_first_pass retry=3 maxrepeat=3 minlen=14 dcredit=-1 ucredit=-1 ocredit=-1 lcredit=-1 difok=4</xhtml:pre>
If no such line exists, add one as the first line of the password section in <xhtml:code>/etc/pam.d/system-auth</xhtml:code>.
The arguments can be modified to ensure compliance with
your organization's security policy. Discussion of each parameter follows.
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">Note that the password quality
requirements are not enforced for the root account for some
reason.</warning>
            <Value id="var_password_pam_cracklib_retry" operator="equals" type="number">
              <title xml:lang="en-US">retry</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Number of retry attempts before erroring out</description>
              <value>3</value>
              <value selector="1">1</value>
              <value selector="2">2</value>
              <value selector="3">3</value>
            </Value>
            <Value id="var_password_pam_cracklib_minlen" operator="equals" type="number">
              <title xml:lang="en-US">minlen</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Minimum number of characters in password</description>
              <value>14</value>
              <value selector="6">6</value>
              <value selector="8">8</value>
              <value selector="10">10</value>
              <value selector="12">12</value>
              <value selector="14">14</value>
              <value selector="15">15</value>
            </Value>
            <Value id="var_password_pam_cracklib_dcredit" operator="equals" type="number">
              <title xml:lang="en-US">dcredit</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Minimum number of digits in password</description>
              <value>-1</value>
              <value selector="2">-2</value>
              <value selector="1">-1</value>
              <value selector="0">0</value>
            </Value>
            <Value id="var_password_pam_cracklib_ocredit" operator="equals" type="number">
              <title xml:lang="en-US">ocredit</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Minimum number of other (special characters) in
password</description>
              <value>-1</value>
              <value selector="2">-2</value>
              <value selector="1">-1</value>
              <value selector="0">0</value>
            </Value>
            <Value id="var_password_pam_cracklib_lcredit" operator="equals" type="number">
              <title xml:lang="en-US">lcredit</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Minimum number of lower case in password</description>
              <value>-1</value>
              <value selector="2">-2</value>
              <value selector="1">-1</value>
              <value selector="0">0</value>
            </Value>
            <Value id="var_password_pam_cracklib_ucredit" operator="equals" type="number">
              <title xml:lang="en-US">ucredit</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Minimum number of upper case in password</description>
              <value>-1</value>
              <value selector="2">-2</value>
              <value selector="1">-1</value>
              <value selector="0">0</value>
            </Value>
            <Value id="var_password_pam_cracklib_difok" operator="equals" type="number">
              <title xml:lang="en-US">difok</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Minimum number of characters not present in old
password</description>
              <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">Keep this high for short
passwords</warning>
              <value>4</value>
              <value selector="2">2</value>
              <value selector="3">3</value>
              <value selector="4">4</value>
              <value selector="5">5</value>
            </Value>
            <Value id="var_accounts_passwords_pam_faillock_deny" operator="equals" type="number">
              <title xml:lang="en-US">fail_deny</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Number of failed login attempts before account lockout</description>
              <value>3</value>
              <value selector="3">3</value>
              <value selector="5">5</value>
              <value selector="10">10</value>
            </Value>
            <Value id="var_accounts_passwords_pam_faillock_unlock_time" operator="equals" type="number">
              <title xml:lang="en-US">fail_unlock_time</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Seconds before automatic unlocking after excessive failed logins</description>
              <value>604800</value>
              <value selector="900">900</value>
              <value selector="1800">1800</value>
              <value selector="3600">3600</value>
              <value selector="86400">86400</value>
              <value selector="604800">604800</value>
            </Value>
            <Value id="var_accounts_passwords_pam_faillock_fail_interval" operator="equals" type="number">
              <title xml:lang="en-US">fail_interval</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Interval for counting failed login attempts before account lockout</description>
              <value>900</value>
              <value selector="900">900</value>
              <value selector="1800">1800</value>
              <value selector="3600">3600</value>
              <value selector="86400">86400</value>
              <value selector="100000000">100000000</value>
            </Value>
            <Rule id="password_retry" selected="false" severity="low">
              <title xml:lang="en-US">Set Password Retry Prompts Permitted Per-Session</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To configure the number of retry prompts that are permitted per-session:
<xhtml:br/><xhtml:br/>
Edit the <xhtml:code>pam_cracklib.so</xhtml:code> statement in <xhtml:code>/etc/pam.d/system-auth</xhtml:code> to 
show <xhtml:code>retry=3</xhtml:code>, or a lower value if site policy is more restrictive.
<xhtml:br/><xhtml:br/>
The DoD requirement is a maximum of 3 prompts per session.
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
              <reference href="http://iase.disa.mil/cci/index.html">1092</reference>
              <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
                <dc:contributor>DS</dc:contributor>
                <dc:date>20121024</dc:date>
              </reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
              <ident system="http://cce.mitre.org">CCE-27123-9</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-export export-name="oval:ssg:var:2121" value-id="var_password_pam_cracklib_retry"/>
                <check-content-ref name="oval:ssg:def:290" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="it is not the required value" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check how many retry attempts are permitted on a per-session basis, run the following command:
<xhtml:pre>$ grep pam_cracklib /etc/pam.d/system-auth</xhtml:pre>
The <xhtml:code>retry</xhtml:code> parameter will indicate how many attempts are permitted.
The DoD required value is less than or equal to 3.
This would appear as <xhtml:code>retry=3</xhtml:code>, or a lower value.
</check-content>
              </check>
            </Rule>
            <Rule id="password_require_consecrepeat" selected="false" severity="low">
              <title xml:lang="en-US">Set Password to Maximum of Three Consecutive Repeating Characters</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The pam_cracklib module's <xhtml:code>maxrepeat</xhtml:code> 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 <xhtml:code>maxrepeat=3</xhtml:code>
after pam_cracklib.so to prevent a run of four or more identical characters.
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
              <reference href="http://iase.disa.mil/cci/index.html">366</reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Passwords with excessive repeating characters may be more vulnerable to password-guessing attacks.
</rationale>
              <ident system="http://cce.mitre.org">CCE-27227-8</ident>
              <check system="ocil-transitional">
                <check-export export-name="maxrepeat is not found or not set to the required value" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check the maximum value for consecutive repeating characters, run the following command:
<xhtml:pre>$ grep pam_cracklib /etc/pam.d/system-auth</xhtml:pre>
Look for the value of the <xhtml:code>maxrepeat</xhtml:code> parameter. The DoD requirement is 3.
</check-content>
              </check>
            </Rule>
            <Rule id="password_require_digits" selected="false" severity="low">
              <title xml:lang="en-US">Set Password Strength Minimum Digit Characters</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The pam_cracklib module's <xhtml:code>dcredit</xhtml:code> 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 <xhtml:code>dcredit=-1</xhtml:code> after pam_cracklib.so to require use of a digit in passwords.
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(b)</reference>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">194</reference>
              <reference href="http://iase.disa.mil/cci/index.html">194</reference>
              <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
                <dc:contributor>DS</dc:contributor>
                <dc:date>20121024</dc:date>
              </reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Requiring digits makes password guessing attacks more difficult by ensuring a larger
search space.
</rationale>
              <ident system="http://cce.mitre.org">CCE-26374-9</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-export export-name="oval:ssg:var:2137" value-id="var_password_pam_cracklib_dcredit"/>
                <check-content-ref name="oval:ssg:def:951" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="dcredit is not found or not set to the required value" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check how many digits are required in a password, run the following command:
<xhtml:pre>$ grep pam_cracklib /etc/pam.d/system-auth</xhtml:pre>
The <xhtml:code>dcredit</xhtml:code> parameter (as a negative number) will indicate how many digits are required.
The DoD requires at least one digit in a password.
This would appear as <xhtml:code>dcredit=-1</xhtml:code>.
</check-content>
              </check>
            </Rule>
            <Rule id="password_require_uppercases" selected="false" severity="low">
              <title xml:lang="en-US">Set Password Strength Minimum Uppercase Characters</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The pam_cracklib module's <xhtml:code>ucredit=</xhtml:code> 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 <xhtml:code>ucredit=-1</xhtml:code> after pam_cracklib.so to require use of an upper case character in passwords.
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(b)</reference>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(a)</reference>
              <reference href="http://iase.disa.mil/cci/index.html">192</reference>
              <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
                <dc:contributor>DS</dc:contributor>
                <dc:date>20121024</dc:date>
              </reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Requiring a minimum number of uppercase characters makes password guessing attacks
more difficult by ensuring a larger search space.
</rationale>
              <ident system="http://cce.mitre.org">CCE-26601-5</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-export export-name="oval:ssg:var:2120" value-id="var_password_pam_cracklib_ucredit"/>
                <check-content-ref name="oval:ssg:def:249" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="ucredit is not found or not set to the required value" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check how many uppercase characters are required in a password, run the following command:
<xhtml:pre>$ grep pam_cracklib /etc/pam.d/system-auth</xhtml:pre>
The <xhtml:code>ucredit</xhtml:code> parameter (as a negative number) will indicate how many uppercase characters are required.
The DoD and FISMA require at least one uppercase character in a password.
This would appear as <xhtml:code>ucredit=-1</xhtml:code>.
</check-content>
              </check>
            </Rule>
            <Rule id="password_require_specials" selected="false" severity="low">
              <title xml:lang="en-US">Set Password Strength Minimum Special Characters</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The pam_cracklib module's <xhtml:code>ocredit=</xhtml:code> 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 <xhtml:code>ocredit=-1</xhtml:code> after pam_cracklib.so to require use of a special character in passwords.
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(b)</reference>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(a)</reference>
              <reference href="http://iase.disa.mil/cci/index.html">1619</reference>
              <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
                <dc:contributor>DS</dc:contributor>
                <dc:date>20121024</dc:date>
              </reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Requiring a minimum number of special characters makes password guessing attacks
more difficult by ensuring a larger search space.
</rationale>
              <ident system="http://cce.mitre.org">CCE-26409-3</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-export export-name="oval:ssg:var:2124" value-id="var_password_pam_cracklib_ocredit"/>
                <check-content-ref name="oval:ssg:def:525" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="ocredit is not found or not set to the required value" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check how many special characters are required in a password, run the following command:
<xhtml:pre>$ grep pam_cracklib /etc/pam.d/system-auth</xhtml:pre>
The <xhtml:code>ocredit</xhtml:code> parameter (as a negative number) will indicate how many special characters are required.
The DoD and FISMA require at least one special character in a password.
This would appear as <xhtml:code>ocredit=-1</xhtml:code>.
</check-content>
              </check>
            </Rule>
            <Rule id="password_require_lowercases" selected="false" severity="low">
              <title xml:lang="en-US">Set Password Strength Minimum Lowercase Characters</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The pam_cracklib module's <xhtml:code>lcredit=</xhtml:code> 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 <xhtml:code>lcredit=-1</xhtml:code> after pam_cracklib.so to require use of a lowercase character in passwords.
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(b)</reference>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(a)</reference>
              <reference href="http://iase.disa.mil/cci/index.html">193</reference>
              <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
                <dc:contributor>DS</dc:contributor>
                <dc:date>20121024</dc:date>
              </reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Requiring a minimum number of lowercase characters makes password guessing attacks
more difficult by ensuring a larger search space.
</rationale>
              <ident system="http://cce.mitre.org">CCE-26631-2</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-export export-name="oval:ssg:var:2140" value-id="var_password_pam_cracklib_lcredit"/>
                <check-content-ref name="oval:ssg:def:1085" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="lcredit is not found or not set to the required value" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check how many lowercase characters are required in a password, run the following command:
<xhtml:pre>$ grep pam_cracklib /etc/pam.d/system-auth</xhtml:pre>
The <xhtml:code>lcredit</xhtml:code> parameter (as a negative number) will indicate how many special characters are required.
The DoD and FISMA require at least one lowercase character in a password.
This would appear as <xhtml:code>lcredit=-1</xhtml:code>.
</check-content>
              </check>
            </Rule>
            <Rule id="password_require_diffchars" selected="false" severity="low">
              <title xml:lang="en-US">Set Password Strength Minimum Different Characters</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The pam_cracklib module's <xhtml:code>difok</xhtml:code> parameter controls requirements for
usage of different characters during a password change.
Add <xhtml:code>difok=<xhtml:i>NUM</xhtml:i></xhtml:code> after pam_cracklib.so to require differing
characters when changing passwords, substituting <xhtml:i>NUM</xhtml:i> appropriately.
The DoD requirement is <xhtml:code>4</xhtml:code>.
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(b)</reference>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(b)</reference>
              <reference href="http://iase.disa.mil/cci/index.html">195</reference>
              <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
                <dc:contributor>DS</dc:contributor>
                <dc:date>20121024</dc:date>
              </reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
              <ident system="http://cce.mitre.org">CCE-26615-5</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-export export-name="oval:ssg:var:2122" value-id="var_password_pam_cracklib_difok"/>
                <check-content-ref name="oval:ssg:def:320" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="difok is not found or not set to the required value" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check how many characters must differ during a password change, run the following command:
<xhtml:pre>$ grep pam_cracklib /etc/pam.d/system-auth</xhtml:pre>
The <xhtml:code>difok</xhtml:code> parameter will indicate how many characters must differ.
The DoD requires four characters differ during a password change.
This would appear as <xhtml:code>difok=4</xhtml:code>.
</check-content>
              </check>
            </Rule>
          </Group>
        </Group>
        <Group id="locking_out_password_attempts">
          <title xml:lang="en-US">Set Lockouts for Failed Password Attempts</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>pam_faillock</xhtml:code> PAM module provides the capability to
lock out user accounts after a number of failed login attempts. Its
documentation is available in
<xhtml:code>/usr/share/doc/pam-VERSION/txts/README.pam_faillock</xhtml:code>.
<xhtml:br/><xhtml:br/>
</description>
          <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">Locking out user accounts presents the
risk of a denial-of-service attack. The lockout policy
must weigh whether the risk of such a
denial-of-service attack outweighs the benefits of thwarting
password guessing attacks.</warning>
          <Rule id="deny_password_attempts" selected="false" severity="medium">
            <title xml:lang="en-US">Set Deny For Failed Password Attempts</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system to lock out accounts after a number of incorrect login
attempts using <xhtml:code>pam_faillock.so</xhtml:code>:
<xhtml:br/><xhtml:br/>
Add the following lines immediately below the <xhtml:code>pam_unix.so</xhtml:code> statement in <xhtml:code>AUTH</xhtml:code> section of
<xhtml:code>/etc/pam.d/system-auth</xhtml:code>:
<xhtml:pre>auth [default=die] pam_faillock.so authfail deny=3 unlock_time=604800 fail_interval=900</xhtml:pre>
<xhtml:pre>auth required pam_faillock.so authsucc deny=3 unlock_time=604800 fail_interval=900</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-7(a)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">44</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Locking out user accounts after a number of incorrect attempts
prevents direct password guessing attacks.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26844-1</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2138" value-id="var_accounts_passwords_pam_faillock_deny"/>
              <check-content-ref name="oval:ssg:def:1013" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="that is not the case" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the failed password attempt policy is configured correctly, run the following command:
<xhtml:pre># grep pam_faillock /etc/pam.d/system-auth</xhtml:pre>
The output should show <xhtml:code>deny=3</xhtml:code>.
</check-content>
            </check>
          </Rule>
          <Rule id="deny_password_attempts_unlock_time" selected="false" severity="medium">
            <title xml:lang="en-US">Set Lockout Time For Failed Password Attempts</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system to lock out accounts after a number of incorrect login
attempts and require an administrator to unlock the account using <xhtml:code>pam_faillock.so</xhtml:code>:
<xhtml:br/><xhtml:br/>
Add the following lines immediately below the <xhtml:code>pam_env.so</xhtml:code> statement in <xhtml:code>/etc/pam.d/system-auth</xhtml:code>:
<xhtml:pre>auth [default=die] pam_faillock.so authfail deny=3 unlock_time=604800 fail_interval=900</xhtml:pre>
<xhtml:pre>auth required pam_faillock.so authsucc deny=3 unlock_time=604800 fail_interval=900</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-7(b)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">47</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27110-6</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2147" value-id="var_accounts_passwords_pam_faillock_unlock_time"/>
              <check-content-ref name="oval:ssg:def:2146" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="that is not the case" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the failed password attempt policy is configured correctly, run the following command:
<xhtml:pre># grep pam_faillock /etc/pam.d/system-auth</xhtml:pre>
The output should show <xhtml:code>unlock_time=&lt;some-large-number&gt;</xhtml:code>.
</check-content>
            </check>
          </Rule>
          <Rule id="deny_password_attempts_fail_interval" selected="false" severity="medium">
            <title xml:lang="en-US">Set Interval For Counting Failed Password Attempts</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system to lock out accounts after a number of incorrect login
attempts within a 15 minute interval using <xhtml:code>pam_faillock.so</xhtml:code>:
<xhtml:br/><xhtml:br/>
Add the following lines immediately below the <xhtml:code>pam_env.so</xhtml:code> statement in <xhtml:code>/etc/pam.d/system-auth</xhtml:code>:
<xhtml:pre>auth [default=die] pam_faillock.so authfail deny=3 unlock_time=604800 fail_interval=900</xhtml:pre>
<xhtml:pre>auth required pam_faillock.so authsucc deny=3 unlock_time=604800 fail_interval=900</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-7(a)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1452</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Locking out user accounts after a number of incorrect attempts within a
specific period of time prevents direct password guessing attacks.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27215-3</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2149" value-id="var_accounts_passwords_pam_faillock_fail_interval"/>
              <check-content-ref name="oval:ssg:def:2148" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="that is not the case" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the failed password attempt policy is configured correctly, run the following command:
<xhtml:pre># grep pam_faillock /etc/pam.d/system-auth</xhtml:pre>
The output should show <xhtml:code>fail_interval=&lt;interval-in-seconds&gt;</xhtml:code> where <xhtml:code>interval-in-seconds</xhtml:code> is 900 (15 minutes) or greater.  If the <xhtml:code>fail_interval</xhtml:code> parameter is not set, the default setting of 900 seconds is acceptable.
</check-content>
            </check>
          </Rule>
          <Rule id="limiting_password_reuse" selected="false" severity="medium">
            <title xml:lang="en-US">Limit Password Reuse</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Do not allow users to reuse recent passwords. This can
be accomplished by using the <xhtml:code>remember</xhtml:code> option for the <xhtml:code>pam_unix</xhtml:code> PAM
module.  In the file <xhtml:code>/etc/pam.d/system-auth</xhtml:code>, append <xhtml:code>remember=24</xhtml:code> to the 
line which refers to the <xhtml:code>pam_unix.so</xhtml:code> module, as shown:
<xhtml:pre>password sufficient pam_unix.so <xhtml:i>existing_options</xhtml:i> remember=24</xhtml:pre>
The DoD and FISMA requirement is 24 passwords.</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(f)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(e)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">200</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Preventing re-use of previous passwords helps ensure that a compromised password is not re-used by a user.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26741-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2115" value-id="password_history_retain_number"/>
              <check-content-ref name="oval:ssg:def:138" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify the password reuse setting is compliant, run the following command:
<xhtml:pre>$ grep remember /etc/pam.d/system-auth</xhtml:pre>
The output should show the following at the end of the line:
<xhtml:pre>remember=24</xhtml:pre>
</check-content>
            </check>
          </Rule>
        </Group>
        <Group id="set_password_hashing_algorithm">
          <title xml:lang="en-US">Set Password Hashing Algorithm</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The system's default algorithm for storing password hashes in
<xhtml:code>/etc/shadow</xhtml:code> is SHA-512. This can be configured in several
locations.</description>
          <Rule id="set_password_hashing_algorithm_systemauth" selected="false" severity="medium">
            <title xml:lang="en-US">Set Password Hashing Algorithm in /etc/pam.d/system-auth</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
In <xhtml:code>/etc/pam.d/system-auth</xhtml:code>, the <xhtml:code>password</xhtml:code> section of
the file controls which PAM modules execute during a password change.
Set the <xhtml:code>pam_unix.so</xhtml:code> module in the
<xhtml:code>password</xhtml:code> section to include the argument <xhtml:code>sha512</xhtml:code>, as shown below:
<xhtml:pre>password    sufficient    pam_unix.so sha512 <xhtml:i>other arguments...</xhtml:i></xhtml:pre>
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.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">803</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Using a stronger hashing algorithm makes password cracking attacks more difficult.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26303-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:680" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect the <xhtml:code>password</xhtml:code> section of <xhtml:code>/etc/pam.d/system-auth</xhtml:code>  and
ensure that the <xhtml:code>pam_unix.so</xhtml:code> module includes the argument
<xhtml:code>sha512</xhtml:code>:
<xhtml:pre>$ grep sha512 /etc/pam.d/system-auth</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="set_password_hashing_algorithm_logindefs" selected="false" severity="medium">
            <title xml:lang="en-US">Set Password Hashing Algorithm in /etc/login.defs</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
In <xhtml:code>/etc/login.defs</xhtml:code>, add or correct the following line to ensure
the system will use SHA-512 as the hashing algorithm:
<xhtml:pre>ENCRYPT_METHOD SHA512</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">803</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Using a stronger hashing algorithm makes password cracking attacks more difficult.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27228-6</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:206" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect <xhtml:code>/etc/login.defs</xhtml:code> and ensure the following line appears:
<xhtml:pre>ENCRYPT_METHOD SHA512</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="set_password_hashing_algorithm_libuserconf" selected="false" severity="medium">
            <title xml:lang="en-US">Set Password Hashing Algorithm in /etc/libuser.conf</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
In <xhtml:code>/etc/libuser.conf</xhtml:code>, add or correct the following line in its
<xhtml:code>[defaults]</xhtml:code> section to ensure the system will use the SHA-512
algorithm for password hashing:
<xhtml:pre>crypt_style = sha512</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">803</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Using a stronger hashing algorithm makes password cracking attacks more difficult.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27229-4</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1030" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect <xhtml:code>/etc/libuser.conf</xhtml:code> and ensure the following line appears
in the <xhtml:code>[default]</xhtml:code> section:
<xhtml:pre>crypt_style = sha512</xhtml:pre>
</check-content>
            </check>
          </Rule>
        </Group>
      </Group>
      <Group id="accounts-session">
        <title xml:lang="en-US">Secure Session Configuration Files for Login Accounts</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">When a user logs into a Unix account, the system
configures the user's session by reading a number of files. Many of
these files are located in the user's home directory, and may have
weak permissions as a result of user error or misconfiguration. If
an attacker can modify or even read certain types of account
configuration information, they can often gain full access to the
affected user's account. Therefore, it is important to test and
correct configuration file permissions for interactive accounts,
particularly those of privileged users such as root or system
administrators.</description>
        <Value id="max_concurrent_login_sessions_value" operator="equals" type="number">
          <title xml:lang="en-US">Maximum concurrent login sessions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Maximum number of concurrent sessions by a user</description>
          <value>1</value>
          <value selector="1">1</value>
          <value selector="5">5</value>
          <value selector="10">10</value>
          <value selector="15">15</value>
          <value selector="20">20</value>
        </Value>
        <Rule id="max_concurrent_login_sessions" selected="false" severity="low">
          <title xml:lang="en-US">Limit the Number of Concurrent Login Sessions Allowed Per User</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Limiting the number of allowed users and sessions per user can limit risks related to Denial of 
Service attacks. This addresses concurrent sessions for a single account and does not address 
concurrent sessions by a single user via multiple accounts.  The DoD requirement is 10.   To set the number of concurrent
sessions per user add the following line in <xhtml:code>/etc/security/limits.conf</xhtml:code>:
<xhtml:pre>* hard maxlogins 10</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-10</reference>
          <reference href="http://iase.disa.mil/cci/index.html">54</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Limiting simultaneous user logins can insulate the system from denial of service 
problems caused by excessive logins. Automated login processes operating improperly or 
maliciously may result in an exceptional number of simultaneous login sessions.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27457-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2126" value-id="max_concurrent_login_sessions_value"/>
            <check-content-ref name="oval:ssg:def:577" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it is not similar" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Run the following command to ensure the <xhtml:code>maxlogins</xhtml:code> value is configured for all users
on the system:
<xhtml:pre># grep "maxlogins" /etc/security/limits.conf</xhtml:pre>
You should receive output similar to the following:
<xhtml:pre>*		hard	maxlogins	10</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Group id="root_paths">
          <title xml:lang="en-US">Ensure that No Dangerous Directories Exist in Root's Path</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The active path of the root account can be obtained by
starting a new root shell and running:
<xhtml:pre># echo $PATH</xhtml:pre>
This will produce a colon-separated list of
directories in the path.
<xhtml:br/><xhtml:br/>
Certain path elements could be considered dangerous, as they could lead
to root executing unknown or
untrusted programs, which could contain malicious
code.
Since root may sometimes work inside
untrusted directories, the <xhtml:code>.</xhtml:code> character, which represents the
current directory, should never be in the root path, nor should any
directory which can be written to by an unprivileged or
semi-privileged (system) user.
<xhtml:br/><xhtml:br/>
It is a good practice for administrators to always execute
privileged commands by typing the full path to the
command.</description>
          <Rule id="root_path_no_dot" selected="false" severity="low">
            <title xml:lang="en-US">Ensure that Root's Path Does Not Include Relative Paths or Null Directories</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Ensure that none of the directories in root's path is equal to a single
<xhtml:code>.</xhtml:code> character, or
that it contains any instances that lead to relative path traversal, such as
<xhtml:code>..</xhtml:code> or beginning a path without the slash (<xhtml:code>/</xhtml:code>) character.
Also ensure that there are no "empty" elements in the path, such as in these examples:
<xhtml:pre>PATH=:/bin
PATH=/bin:
PATH=/bin::/sbin</xhtml:pre>
These empty elements have the same effect as a single <xhtml:code>.</xhtml:code> character.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Including these entries increases the risk that root could
execute code from an untrusted location.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26826-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:495" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
          <Rule id="root_path_no_groupother_writable" selected="false" severity="low">
            <title xml:lang="en-US">Ensure that Root's Path Does Not Include World or Group-Writable Directories</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
For each element in root's path, run:
<xhtml:pre># ls -ld <xhtml:i>DIR</xhtml:i></xhtml:pre>
and ensure that write permissions are disabled for group and
other.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Such entries increase the risk that root could
execute code provided by unprivileged users,
and potentially malicious code.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26768-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:482" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="group or other write permissions exist" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure write permissions are disabled for group and other
 for each element in root's path, run the following command:
<xhtml:pre># ls -ld <xhtml:i>DIR</xhtml:i></xhtml:pre>
</check-content>
            </check>
          </Rule>
        </Group>
        <Rule id="homedir_perms_no_groupwrite_worldread" selected="false" severity="low">
          <title xml:lang="en-US">Ensure that User Home Directories are not Group-Writable or World-Readable</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">For each human user of the system, view the
permissions of the user's home directory:
<xhtml:pre># ls -ld /home/<xhtml:i>USER</xhtml:i></xhtml:pre>
Ensure that the directory is not group-writable and that it
is not world-readable. If necessary, repair the permissions:
<xhtml:pre># chmod g-w /home/<xhtml:i>USER</xhtml:i>
# chmod o-rwx /home/<xhtml:i>USER</xhtml:i></xhtml:pre>
</description>
          <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">This action may involve
modifying user home directories. Notify your user community, and
solicit input if appropriate, before making this type of
change.</warning>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26981-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1100" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the user home directory is group-writable or world-readable" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the user home directory is not group-writable or world-readable, run the following:
<xhtml:pre># ls -ld /home/<xhtml:i>USER</xhtml:i></xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Group id="user_umask">
          <title xml:lang="en-US">Ensure that Users Have Sensible Umask Values</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The umask setting controls the default permissions
for the creation of new files.
With a default <xhtml:code>umask</xhtml:code> setting of 077, files and directories
created by users will not be readable by any other user on the
system. Users who wish to make specific files group- or
world-readable can accomplish this by using the chmod command.
Additionally, users can make all their files readable to their
group by default by setting a <xhtml:code>umask</xhtml:code> of 027 in their shell
configuration files. If default per-user groups exist (that is, if
every user has a default group whose name is the same as that
user's username and whose only member is the user), then it may
even be safe for users to select a <xhtml:code>umask</xhtml:code> of 007, making it very
easy to intentionally share files with groups of which the user is
a member.
<xhtml:br/><xhtml:br/>
<!--In addition, it may be necessary to change root's <tt>umask</tt>
temporarily in order to install software or files which must be
readable by other users, or to change the default umasks of certain
service accounts such as the FTP user. However, setting a
restrictive default protects the files of users who have not taken
steps to make their files more available, and preventing files from
being inadvertently shared.-->
</description>
          <Value id="var_accounts_user_umask" operator="equals" type="string">
            <title xml:lang="en-US">Sensible umask</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Enter default user umask</description>
            <value>027</value>
            <value selector="007">007</value>
            <value selector="022">022</value>
            <value selector="027">027</value>
            <value selector="077">077</value>
          </Value>
          <Rule id="user_umask_bashrc" selected="false" severity="low">
            <title xml:lang="en-US">Ensure the Default Bash Umask is Set Correctly</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To ensure the default umask for users of the Bash shell is set properly,
add or correct the <xhtml:code>umask</xhtml:code> setting in <xhtml:code>/etc/bashrc</xhtml:code> to read
as follows:
<xhtml:pre>umask 077<!-- <sub idref="umask_user_value" /> --></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <reference href="http://iase.disa.mil/cci/index.html">366</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>swells</dc:contributor>
              <dc:date>20120929</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26917-5</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2116" value-id="var_accounts_user_umask"/>
              <check-content-ref name="oval:ssg:def:996" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the above command returns no output, or if the umask is configured incorrectly" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Verify the <xhtml:code>umask</xhtml:code> setting is configured correctly in the <xhtml:code>/etc/bashrc</xhtml:code> file by
running the following command:
<xhtml:pre># grep "umask" /etc/bashrc</xhtml:pre>
All output must show the value of <xhtml:code>umask</xhtml:code> set to 077, as shown below:
<xhtml:pre># grep "umask" /etc/bashrc
umask 077
umask 077</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="user_umask_cshrc" selected="false" severity="low">
            <title xml:lang="en-US">Ensure the Default C Shell Umask is Set Correctly</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To ensure the default umask for users of the C shell is set properly,
add or correct the <xhtml:code>umask</xhtml:code> setting in <xhtml:code>/etc/csh.cshrc</xhtml:code> to read as follows:
<xhtml:pre>umask 077<!-- <sub idref="umask_user_value" /> --></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <reference href="http://iase.disa.mil/cci/index.html">366</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>swells</dc:contributor>
              <dc:date>20120929</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27034-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2116" value-id="var_accounts_user_umask"/>
              <check-content-ref name="oval:ssg:def:381" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the above command returns no output, or if the umask is configured incorrectly" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Verify the <xhtml:code>umask</xhtml:code> setting is configured correctly in the <xhtml:code>/etc/csh.cshrc</xhtml:code> file by
running the following command:
<xhtml:pre># grep "umask" /etc/csh.cshrc</xhtml:pre>
All output must show the value of <xhtml:code>umask</xhtml:code> set to 077, as shown in the below:
<xhtml:pre># grep "umask" /etc/csh.cshrc
umask 077</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="user_umask_profile" selected="false" severity="low">
            <title xml:lang="en-US">Ensure the Default Umask is Set Correctly in /etc/profile</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To ensure the default umask controlled by <xhtml:code>/etc/profile</xhtml:code> is set properly,
add or correct the <xhtml:code>umask</xhtml:code> setting in <xhtml:code>/etc/profile</xhtml:code> to read as follows:
<xhtml:pre>umask 077<!--<sub idref="umask_user_value" /> --></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <reference href="http://iase.disa.mil/cci/index.html">366</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>swells</dc:contributor>
              <dc:date>20120929</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26669-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2116" value-id="var_accounts_user_umask"/>
              <check-content-ref name="oval:ssg:def:183" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the above command returns no output, or if the umask is configured incorrectly" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Verify the <xhtml:code>umask</xhtml:code> setting is configured correctly in the <xhtml:code>/etc/profile</xhtml:code> file by
running the following command:
<xhtml:pre># grep "umask" /etc/profile</xhtml:pre>
All output must show the value of <xhtml:code>umask</xhtml:code> set to 077, as shown in the below:
<xhtml:pre># grep "umask" /etc/profile
umask 077</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="user_umask_logindefs" selected="false" severity="low">
            <title xml:lang="en-US">Ensure the Default Umask is Set Correctly in login.defs</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To ensure the default umask controlled by <xhtml:code>/etc/login.defs</xhtml:code> is set properly,
add or correct the <xhtml:code>UMASK</xhtml:code> setting in <xhtml:code>/etc/login.defs</xhtml:code> to read as follows:
<xhtml:pre>UMASK 077<!-- <sub idref="umask_user_value" /> --></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <reference href="http://iase.disa.mil/cci/index.html">366</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>swells</dc:contributor>
              <dc:date>20120929</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 and 
written to by unauthorized users.</rationale>
            <ident system="http://cce.mitre.org">CCE-26371-5</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2116" value-id="var_accounts_user_umask"/>
              <check-content-ref name="oval:ssg:def:1001" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the above command returns no output, or if the umask is configured incorrectly" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Verify the <xhtml:code>UMASK</xhtml:code> setting is configured correctly in the <xhtml:code>/etc/login.defs</xhtml:code> file by
running the following command:
<xhtml:pre># grep -i "UMASK" /etc/login.defs</xhtml:pre>
All output must show the value of <xhtml:code>umask</xhtml:code> set to 077, as shown in the below:
<xhtml:pre># grep -i "UMASK" /etc/login.defs
umask 077</xhtml:pre>
</check-content>
            </check>
          </Rule>
        </Group>
      </Group>
      <Group id="accounts-physical">
        <title xml:lang="en-US">Protect Physical Console Access</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">It is impossible to fully protect a system from an
attacker with physical access, so securing the space in which the
system is located should be considered a necessary step. However,
there are some steps which, if taken, make it more difficult for an
attacker to quickly or undetectably modify a system from its
console.</description>
        <Group id="bootloader">
          <title xml:lang="en-US">Set Boot Loader Password</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">During the boot process, the boot loader is
responsible for starting the execution of the kernel and passing
options to it. The boot loader allows for the selection of
different kernels - possibly on different partitions or media.
The default RHEL boot loader for x86 systems is called GRUB.
Options it can pass to the kernel include <xhtml:i>single-user mode</xhtml:i>, which
provides root access without any authentication, and the ability to
disable SELinux. To prevent local users from modifying the boot
parameters and endangering security, protect the boot loader configuration
with a password and ensure its configuration file's permissions
are set properly.
</description>
          <Rule id="user_owner_grub_conf" selected="false" severity="medium">
            <title xml:lang="en-US">Verify /etc/grub.conf User Ownership</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The file <xhtml:code>/etc/grub.conf</xhtml:code> should 
be owned by the <xhtml:code>root</xhtml:code> user to prevent destruction 
or modification of the file.

    To properly set the owner of <xhtml:code>/etc/grub.conf</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chown root /etc/grub.conf </xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Only root should be able to modify important boot parameters.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26995-1</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:224" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the ownership of <xhtml:code>/etc/grub.conf</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /etc/grub.conf</xhtml:pre>
    If properly configured, the output should indicate the following owner:
    <xhtml:code>root</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="group_owner_grub_conf" selected="false" severity="medium">
            <title xml:lang="en-US">Verify /etc/grub.conf Group Ownership</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The file <xhtml:code>/etc/grub.conf</xhtml:code> should 
be group-owned by the <xhtml:code>root</xhtml:code> group to prevent 
destruction or modification of the file.

    To properly set the group owner of <xhtml:code>/etc/grub.conf</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chgrp root /etc/grub.conf </xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>root</xhtml:code> group is a highly-privileged group. Furthermore, the group-owner of this
file should not have any access privileges anyway.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27022-3</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1167" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check the group ownership of <xhtml:code>/etc/grub.conf</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /etc/grub.conf</xhtml:pre>
    If properly configured, the output should indicate the following group-owner.
    <xhtml:code>root</xhtml:code>
            </check-content>
            </check>
          </Rule>
          <Rule id="permissions_grub_conf" selected="false" severity="medium">
            <title xml:lang="en-US">Verify /boot/grub/grub.conf Permissions</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">File permissions for <xhtml:code>/boot/grub/grub.conf</xhtml:code> should be set to 600, which
is the default.

    To properly set the permissions of <xhtml:code>/boot/grub/grub.conf</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chmod 600 /boot/grub/grub.conf</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <reference href="http://iase.disa.mil/cci/index.html">225</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Proper permissions ensure that only the root user can modify important boot
parameters.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26949-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:708" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check the permissions of /etc/grub.conf, run the command:
<xhtml:pre># ls -lL /etc/grub.conf</xhtml:pre>
If properly configured, the output should indicate the following 
permissions: <xhtml:code>-rw-------</xhtml:code>
</check-content>
            </check>
          </Rule>
          <Rule id="bootloader_password" selected="false" severity="medium">
            <title xml:lang="en-US">Set Boot Loader Password</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre># grub-crypt --sha-512</xhtml:pre>
When prompted to enter a password, insert the following line into <xhtml:code>/etc/grub.conf</xhtml:code>
immediately after the header comments. (Use the output from <xhtml:code>grub-crypt</xhtml:code> as the
value of <xhtml:b>password-hash</xhtml:b>):
<xhtml:pre>password --encrypted <xhtml:b>password-hash</xhtml:b></xhtml:pre>
NOTE: To meet FISMA Moderate, the bootloader password MUST differ from the root password.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-2(1)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(e)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">213</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121026</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26911-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:752" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify the boot loader password has been set and encrypted, run the following command:
<xhtml:pre># grep password /etc/grub.conf</xhtml:pre>
The output should show the following:
<xhtml:pre>password --encrypted <xhtml:b>password-hash</xhtml:b></xhtml:pre>
</check-content>
            </check>
          </Rule>
        </Group>
        <Rule id="require_singleuser_auth" selected="false" severity="medium">
          <title xml:lang="en-US">Require Authentication for Single User Mode</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
<xhtml:br/><xhtml:br/>
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 <xhtml:code>/etc/sysconfig/init</xhtml:code>:
<xhtml:pre>SINGLE=/sbin/sulogin</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-2(1)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">213</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27040-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1047" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the output is different" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check if authentication is required for single-user mode, run the following command:
<xhtml:pre>$ grep SINGLE /etc/sysconfig/init</xhtml:pre>
The output should be the following:
<xhtml:pre>SINGLE=/sbin/sulogin</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="disable_ctrlaltdel_reboot" selected="false" severity="high">
          <title xml:lang="en-US">Disable Ctrl-Alt-Del Reboot Activation</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
By default, the system includes the following line in
<xhtml:code>/etc/init/control-alt-delete.conf</xhtml:code>
to reboot the system when the Ctrl-Alt-Del key sequence is pressed:
<xhtml:pre>exec /sbin/shutdown -r now "Control-Alt-Delete pressed"</xhtml:pre>
<xhtml:br/>
To configure the system to log a message instead of
rebooting the system, alter that line to read as follows:
<xhtml:pre>exec /usr/bin/logger -p security.info "Control-Alt-Delete pressed"</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <check system="ocil-transitional">
            <check-export export-name="the system is configured to run the shutdown command" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the system is configured to log a message instead of rebooting the system when 
Ctrl-Alt-Del is pressed, ensure the following line is in <xhtml:code>/etc/init/control-alt-delete.conf</xhtml:code>:
<xhtml:pre>exec /usr/bin/logger -p security.info "Control-Alt-Delete pressed"</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="disable_interactive_boot" selected="false" severity="medium">
          <title xml:lang="en-US">Disable Interactive Boot</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To disable the ability for users to perform interactive startups,
edit the file <xhtml:code>/etc/sysconfig/init</xhtml:code>.
Add or correct the line:
<xhtml:pre>PROMPT=no</xhtml:pre>
The <xhtml:code>PROMPT</xhtml:code> 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.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-2</reference>
          <reference href="http://iase.disa.mil/cci/index.html">213</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Using interactive boot,
the console user could disable auditing, firewalls, or other
services, weakening system security.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27043-9</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:197" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it does not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check whether interactive boot is disabled, run the following command:
<xhtml:pre>$ grep PROMPT /etc/sysconfig/init</xhtml:pre>
If interactive boot is disabled, the output will show:
<xhtml:pre>PROMPT=no</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Group id="screen_locking">
          <title xml:lang="en-US">Configure Screen Locking</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">When a user must temporarily leave an account
logged-in, screen locking should be employed to prevent passersby
from abusing the account. User education and training is
particularly important for screen locking to be effective, and policies
can be implemented to reinforce this.
<xhtml:br/><xhtml:br/>
Automatic screen locking is only meant as a safeguard for
those cases where a user forgot to lock the screen.</description>
          <Group id="gui_screen_locking">
            <title xml:lang="en-US">Configure GUI Screen Locking</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">In the default GNOME desktop, the screen can be locked
by choosing <xhtml:b>Lock Screen</xhtml:b> from the <xhtml:b>System</xhtml:b> menu.
<xhtml:br/><xhtml:br/>
The <xhtml:code>gconftool-2</xhtml:code> program can be used to enforce mandatory
screen locking settings for the default GNOME environment.
The
following sections detail commands to enforce idle activation of the screen saver,
screen locking, a blank-screen screensaver, and an idle
activation time.

<xhtml:br/><xhtml:br/>
Because users should be trained to lock the screen when they
step away from the computer, the automatic locking feature is only
meant as a backup. The Lock Screen icon from the System menu can
also be dragged to the taskbar in order to facilitate even more
convenient screen-locking.
<xhtml:br/><xhtml:br/>
The root account cannot be screen-locked, but this should
<!-- TODO: is this still true? -->have no practical effect as the root account should <xhtml:i>never</xhtml:i> be used
to log into an X Windows environment, and should only be used to
for direct login via console in emergency circumstances.
<xhtml:br/><xhtml:br/>
For more information about configuring GNOME screensaver, see
http://live.gnome.org/GnomeScreensaver. For more information about
enforcing preferences in the GNOME environment using the GConf
configuration system, see http://projects.gnome.org/gconf and
the man page <xhtml:code>gconftool-2(1)</xhtml:code>.</description>
            <Value id="inactivity_timeout_value" operator="equals" type="string">
              <title xml:lang="en-US">Inactivity timeout</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Choose allowed duration of inactive SSH connections, shells, and X sessions</description>
              <value>15</value>
              <value selector="5_minutes">5</value>
              <value selector="10_minutes">10</value>
              <value selector="15_minutes">15</value>
            </Value>
            <Rule id="set_screensaver_inactivity_timeout" selected="false" severity="medium">
              <title xml:lang="en-US">Set GNOME Login Inactivity Timeout</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Run the following command to set the idle time-out value for
inactivity in the GNOME desktop to 15 minutes:
<xhtml:pre># gconftool-2 \
  --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type int \
  --set /apps/gnome-screensaver/idle_delay 15</xhtml:pre>
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-11(a)</reference>
              <reference href="http://iase.disa.mil/cci/index.html">57</reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Setting the idle delay controls when the
screensaver will start, and can be combined with
screen locking to prevent access from passersby.
</rationale>
              <ident system="http://cce.mitre.org">CCE-26828-4</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-export export-name="oval:ssg:var:2129" value-id="inactivity_timeout_value"/>
                <check-content-ref name="oval:ssg:def:684" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="it is not" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check the current idle time-out value, run the following command:
<xhtml:pre>$ gconftool-2 -g /apps/gnome-screensaver/idle_delay</xhtml:pre>
If properly configured, the output should be <xhtml:code>15</xhtml:code>. 
</check-content>
              </check>
            </Rule>
            <Rule id="enable_screensaver_after_idle" selected="false" severity="medium">
              <title xml:lang="en-US">GNOME Desktop Screensaver Mandatory Use</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Run the following command to activate the screensaver
in the GNOME desktop after a period of inactivity:
<xhtml:pre># gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type bool \
  --set /apps/gnome-screensaver/idle_activation_enabled true</xhtml:pre>
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-11(a)</reference>
              <reference href="http://iase.disa.mil/cci/index.html">57</reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Enabling idle activation of the screen saver 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.
</rationale>
              <ident system="http://cce.mitre.org">CCE-26600-7</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-content-ref name="oval:ssg:def:140" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="it is not" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">To check the screensaver mandatory use status, run the following command:
<xhtml:pre>$ gconftool-2 -g /apps/gnome-screensaver/idle_activation_enabled</xhtml:pre>
If properly configured, the output should be <xhtml:code>true</xhtml:code>.
</check-content>
              </check>
            </Rule>
            <Rule id="enable_screensaver_password_lock" selected="false" severity="medium">
              <title xml:lang="en-US">Enable Screen Lock Activation After Idle Period</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Run the following command to activate locking of the screensaver
in the GNOME desktop when it is activated:
<xhtml:pre># gconftool-2 --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type bool \
  --set /apps/gnome-screensaver/lock_enabled true</xhtml:pre>
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-11(a)</reference>
              <reference href="http://iase.disa.mil/cci/index.html">57</reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
              <ident system="http://cce.mitre.org">CCE-26235-2</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-content-ref name="oval:ssg:def:702" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="it is not" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check the status of the idle screen lock activation, run the following command:
<xhtml:pre>$ gconftool-2 -g /apps/gnome-screensaver/lock_enabled</xhtml:pre>
If properly configured, the output should be <xhtml:code>true</xhtml:code>.
</check-content>
              </check>
            </Rule>
            <Rule id="set_blank_screensaver" selected="false" severity="low">
              <title xml:lang="en-US">Implement Blank Screen Saver</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Run the following command to set the screensaver mode
in the GNOME desktop to a blank screen:
<xhtml:pre># gconftool-2
  --direct \
  --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
  --type string \
  --set /apps/gnome-screensaver/mode blank-only</xhtml:pre>
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-11(b)</reference>
              <reference href="http://iase.disa.mil/cci/index.html">60</reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Setting the screensaver mode to blank-only conceals the
contents of the display from passersby.
</rationale>
              <ident system="http://cce.mitre.org">CCE-26638-7</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-content-ref name="oval:ssg:def:1040" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="it is not" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the screensaver is configured to be blank, run the following command:
<xhtml:pre>$ gconftool-2 -g /apps/gnome-screensaver/mode</xhtml:pre>
If properly configured, the output should be <xhtml:code>blank-only</xhtml:code> 
</check-content>
              </check>
            </Rule>
          </Group>
          <Group id="console_screen_locking">
            <title xml:lang="en-US">Configure Console Screen Locking</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
A console screen locking mechanism is provided in the
<xhtml:code>screen</xhtml:code> package, which is not installed by default.
</description>
            <Rule id="package_screen_installed" selected="false" severity="low">
              <title xml:lang="en-US">Install the screen Package</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To enable console screen locking, install the <xhtml:code>screen</xhtml:code> package:
<xhtml:pre># yum install screen</xhtml:pre>
Instruct users to begin new terminal sessions with the following command:
<xhtml:pre>$ screen</xhtml:pre>
The console can now be locked with the following key combination:
<xhtml:pre>ctrl+a x</xhtml:pre>
</description>
              <reference href="http://iase.disa.mil/cci/index.html">58</reference>
              <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
                <dc:contributor>DS</dc:contributor>
                <dc:date>20121026</dc:date>
              </reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Installing <xhtml:code>screen</xhtml:code> ensures a console locking capability is available
for users who may need to suspend console logins.
</rationale>
              <ident system="http://cce.mitre.org">CCE-26940-7</ident>
              <fix system="urn:xccdf:fix:script:sh">yum -y install screen
</fix>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-content-ref name="oval:ssg:def:900" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="the package is not installed" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
                
    Run the following command to determine if the <xhtml:code>screen</xhtml:code> package is installed:
    <xhtml:pre># rpm -q screen</xhtml:pre>
              </check-content>
              </check>
            </Rule>
          </Group>
          <Group id="smart_card_login">
            <title xml:lang="en-US">Hardware Tokens for Authentication</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The use of hardware tokens such as smart cards for system login
provides stronger, two-factor authentication than using a username/password.
In Red Hat Enterprise Linux servers and workstations, hardware token login
is not enabled by default and must be enabled in the system settings.
</description>
            <Rule id="smartcard_auth" selected="false" severity="medium">
              <title xml:lang="en-US">Enable Smart Card Login</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To enable smart card authentication, consult the documentation at:
<xhtml:ul><xhtml:li>https://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Smart_Cards/enabling-smart-card-login.html</xhtml:li></xhtml:ul>
</description>
              <reference href="http://iase.disa.mil/cci/index.html">765</reference>
              <reference href="http://iase.disa.mil/cci/index.html">766</reference>
              <reference href="http://iase.disa.mil/cci/index.html">767</reference>
              <reference href="http://iase.disa.mil/cci/index.html">768</reference>
              <reference href="http://iase.disa.mil/cci/index.html">771</reference>
              <reference href="http://iase.disa.mil/cci/index.html">772</reference>
              <reference href="http://iase.disa.mil/cci/index.html">884</reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Smart card login provides two-factor authentication stronger than
that provided by a username/password combination. Smart cards leverage a PKI
(public key infrastructure) in order to provide and verify credentials.
</rationale>
              <check system="ocil-transitional">
                <check-export export-name="non-exempt accounts are not using CAC authentication" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Interview the SA to determine if all accounts not exempted by policy are
using CAC authentication. 
For DoD systems, the following systems and accounts are exempt from using
smart card (CAC) authentication:
<xhtml:ul><xhtml:li>SIPRNET systems</xhtml:li><!-- also any other non-Internet systems? --><xhtml:li>Standalone systems</xhtml:li><xhtml:li>Application accounts</xhtml:li><xhtml:li>Temporary employee accounts, such as students or interns, who cannot easily receive a CAC or PIV</xhtml:li><xhtml:li>Operational tactical locations that are not collocated with RAPIDS workstations to issue CAC or ALT</xhtml:li><xhtml:li>Test systems, such as those with an Interim Approval to Test (IATT) and use a separate VPN, firewall, or security measure preventing access to network and system components from outside the protection boundary documented in the IATT.</xhtml:li></xhtml:ul>
</check-content>
              </check>
            </Rule>
          </Group>
        </Group>
      </Group>
      <Group id="accounts-banners">
        <title xml:lang="en-US">Warning Banners for System Accesses</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Each system should expose as little information about
itself as possible.
<xhtml:br/><xhtml:br/>
System banners, which are typically displayed just before a
login prompt, give out information about the service or the host's
operating system. This might include the distribution name and the
system kernel version, and the particular version of a network
service. This information can assist intruders in gaining access to
the system as it can reveal whether the system is running
vulnerable software. Most network services can be configured to
limit what information is displayed.
<xhtml:br/><xhtml:br/>
Many organizations implement security policies that require a
system banner provide notice of the system's ownership, provide
warning to unauthorized users, and remind authorized users of their
consent to monitoring.</description>
        <Value id="login_banner_text" operator="equals" type="string">
          <title xml:lang="en-US">Login Banner Verbiage</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Enter an appropriate login banner for your organization. Please note that new lines must
be expressed by the '\n' character and special characters like parentheses and quotation marks must be escaped with '\'.</description>
          <value selector="usgcb_default">
-- WARNING --[\s\n]*This system is for the use of authorized users only. Individuals[\s\n]*using this computer system without authority or in excess of their[\s\n]*authority are subject to having all their activities on this system[\s\n]*monitored and recorded by system personnel. Anyone using this[\s\n]*system expressly consents to such monitoring and is advised that[\s\n]*if such monitoring reveals possible evidence of criminal activity[\s\n]*system personal may provide the evidence of such monitoring to law[\s\n]*enforcement officials.</value>
          <value selector="dod_default">You[\s\n]+are[\s\n]+accessing[\s\n]+a[\s\n]+U.S.[\s\n]+Government[\s\n]+\(USG\)[\s\n]+Information[\s\n]+System[\s\n]+\(IS\)[\s\n]+that[\s\n]+is[\s\n]+provided[\s\n]+for[\s\n]+USG-authorized[\s\n]+use[\s\n]+only.[\s\n]*By[\s\n]+using[\s\n]+this[\s\n]+IS[\s\n]+\(which[\s\n]+includes[\s\n]+any[\s\n]+device[\s\n]+attached[\s\n]+to[\s\n]+this[\s\n]+IS\),[\s\n]+you[\s\n]+consent[\s\n]+to[\s\n]+the[\s\n]+following[\s\n]+conditions\:[\s\n]*-[\s\n]*The[\s\n]+USG[\s\n]+routinely[\s\n]+intercepts[\s\n]+and[\s\n]+monitors[\s\n]+communications[\s\n]+on[\s\n]+this[\s\n]+IS[\s\n]+for[\s\n]+purposes[\s\n]+including,[\s\n]+but[\s\n]+not[\s\n]+limited[\s\n]+to,[\s\n]+penetration[\s\n]+testing,[\s\n]+COMSEC[\s\n]+monitoring,[\s\n]+network[\s\n]+operations[\s\n]+and[\s\n]+defense,[\s\n]+personnel[\s\n]+misconduct[\s\n]+\(PM\),[\s\n]+law[\s\n]+enforcement[\s\n]+\(LE\),[\s\n]+and[\s\n]+counterintelligence[\s\n]+\(CI\)[\s\n]+investigations.[\s\n]*-[\s\n]*At[\s\n]+any[\s\n]+time,[\s\n]+the[\s\n]+USG[\s\n]+may[\s\n]+inspect[\s\n]+and[\s\n]+seize[\s\n]+data[\s\n]+stored[\s\n]+on[\s\n]+this[\s\n]+IS.[\s\n]*-[\s\n]*Communications[\s\n]+using,[\s\n]+or[\s\n]+data[\s\n]+stored[\s\n]+on,[\s\n]+this[\s\n]+IS[\s\n]+are[\s\n]+not[\s\n]+private,[\s\n]+are[\s\n]+subject[\s\n]+to[\s\n]+routine[\s\n]+monitoring,[\s\n]+interception,[\s\n]+and[\s\n]+search,[\s\n]+and[\s\n]+may[\s\n]+be[\s\n]+disclosed[\s\n]+or[\s\n]+used[\s\n]+for[\s\n]+any[\s\n]+USG-authorized[\s\n]+purpose.[\s\n]*-[\s\n]*This[\s\n]+IS[\s\n]+includes[\s\n]+security[\s\n]+measures[\s\n]+\(e.g.,[\s\n]+authentication[\s\n]+and[\s\n]+access[\s\n]+controls\)[\s\n]+to[\s\n]+protect[\s\n]+USG[\s\n]+interests[\s\n]+--[\s\n]+not[\s\n]+for[\s\n]+your[\s\n]+personal[\s\n]+benefit[\s\n]+or[\s\n]+privacy.[\s\n]*-[\s\n]*Notwithstanding[\s\n]+the[\s\n]+above,[\s\n]+using[\s\n]+this[\s\n]+IS[\s\n]+does[\s\n]+not[\s\n]+constitute[\s\n]+consent[\s\n]+to[\s\n]+PM,[\s\n]+LE[\s\n]+or[\s\n]+CI[\s\n]+investigative[\s\n]+searching[\s\n]+or[\s\n]+monitoring[\s\n]+of[\s\n]+the[\s\n]+content[\s\n]+of[\s\n]+privileged[\s\n]+communications,[\s\n]+or[\s\n]+work[\s\n]+product,[\s\n]+related[\s\n]+to[\s\n]+personal[\s\n]+representation[\s\n]+or[\s\n]+services[\s\n]+by[\s\n]+attorneys,[\s\n]+psychotherapists,[\s\n]+or[\s\n]+clergy,[\s\n]+and[\s\n]+their[\s\n]+assistants.[\s\n]+Such[\s\n]+communications[\s\n]+and[\s\n]+work[\s\n]+product[\s\n]+are[\s\n]+private[\s\n]+and[\s\n]+confidential.[\s\n]+See[\s\n]+User[\s\n]+Agreement[\s\n]+for[\s\n]+details.</value>
          <value selector="dod_short">I\'ve read \&amp; consent to terms in IS user agreem\'t.</value>
        </Value>
        <Rule id="set_system_login_banner" selected="false" severity="medium">
          <title xml:lang="en-US">Modify the System Login Banner</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure the system login banner:
<xhtml:br/><xhtml:br/>
Edit <xhtml:code>/etc/issue</xhtml:code>. Replace the default text with a message
compliant with the local site policy or a legal disclaimer.

The DoD required text is either:
<xhtml:br/><xhtml:br/>
<xhtml:code>You are accessing a U.S. Government (USG) Information System (IS) that is
provided for USG-authorized use only. By using this IS (which includes any
device attached to this IS), you consent to the following conditions: 
<xhtml:br/>-The USG routinely intercepts and monitors communications on this IS for purposes
including, but not limited to, penetration testing, COMSEC monitoring, network
operations and defense, personnel misconduct (PM), law enforcement (LE), and
counterintelligence (CI) investigations. 
<xhtml:br/>-At any time, the USG may inspect and seize data stored on this IS. 
<xhtml:br/>-Communications using, or data stored on, this IS are not private, are subject 
to routine monitoring, interception, and search, and may be disclosed or used 
for any USG-authorized purpose. 
<xhtml:br/>-This IS includes security measures (e.g., authentication and access controls) 
to protect USG interests -- not for your personal benefit or privacy. 
<xhtml:br/>-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative
searching or monitoring of the content of privileged communications, or work
product, related to personal representation or services by attorneys,
psychotherapists, or clergy, and their assistants. Such communications and work
product are private and confidential. See User Agreement for details.</xhtml:code>
<xhtml:br/><xhtml:br/>
OR:
<xhtml:br/><xhtml:br/>
<xhtml:code>I've read &amp; consent to terms in IS user agreem't.</xhtml:code>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-8(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-8(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-8(c)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">48</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1384</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1385</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1386</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1387</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1388</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
An appropriate warning message reinforces policy awareness during the logon
process and facilitates possible legal action against attackers.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26974-6</ident>
          <fix system="urn:xccdf:fix:script:sh">login_banner_text="<sub idref="login_banner_text"/>"
cat &lt;&lt;EOF &gt;/etc/issue
$login_banner_text
EOF
</fix>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2114" value-id="login_banner_text"/>
            <check-content-ref name="oval:ssg:def:1083" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it does not display the required banner" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check if the system login banner is compliant,
run the following command:
<xhtml:pre>$ cat /etc/issue</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Group id="gui_login_banner">
          <title xml:lang="en-US">Implement a GUI Warning Banner</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">In the default graphical environment, users logging
directly into the system are greeted with a login screen provided
by the GNOME Display Manager (GDM). The warning banner should be
displayed in this graphical environment for these users.
The following sections describe how to configure the GDM login
banner.
</description>
          <Rule id="enable_gdm_login_banner" selected="false" severity="medium">
            <title xml:lang="en-US">Enable GUI Warning Banner</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To enable displaying a login warning banner in the GNOME
Display Manager's login screen, run the following command:
<xhtml:pre>sudo -u gdm gconftool-2 \
  --type bool \
  --set /apps/gdm/simple-greeter/banner_message_enable true</xhtml:pre>
To display a banner, this setting must be enabled and then
banner text must also be set.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-8(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-8(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-8(c)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">48</reference>
            <reference href="http://iase.disa.mil/cci/index.html">50</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
An appropriate warning message reinforces policy awareness during the logon
process and facilitates possible legal action against attackers.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27195-7</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:960" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it is not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure a login warning banner is enabled, run the following:
<xhtml:pre>$ gconftool-2 -g /apps/gdm/simple-greeter/banner_message_enable</xhtml:pre>
Search for the <xhtml:code>banner_message_enable</xhtml:code> schema.
If properly configured, the <xhtml:code>default</xhtml:code> value should be <xhtml:code>true</xhtml:code>.
</check-content>
            </check>
          </Rule>
          <Rule id="set_gdm_login_banner_text" selected="false" severity="medium">
            <title xml:lang="en-US">Set GUI Warning Banner Text</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To set the text shown by the GNOME Display Manager
in the login screen, run the following command:
<xhtml:pre>sudo -u gdm gconftool-2 \
  --type string \
  --set /apps/gdm/simple-greeter/banner_message_text \
  "Text of the warning banner here"</xhtml:pre>
When entering a warning banner that spans several lines, remember
to begin and end the string with <xhtml:code>"</xhtml:code>. This command writes
directly to the file <xhtml:code>/var/lib/gdm/.gconf/apps/gdm/simple-greeter/%gconf.xml</xhtml:code>,
and this file can later be edited directly if necessary.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-8(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-8(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-8(c)</reference>
            <reference href="http://iase.disa.mil/cci/index.html">48</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1384</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1385</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1386</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1387</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1388</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
An appropriate warning message reinforces policy awareness during the logon
process and facilitates possible legal action against attackers.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27017-3</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2114" value-id="login_banner_text"/>
              <check-content-ref name="oval:ssg:def:2150" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the login warning banner text is properly set, run the following:
<xhtml:pre>$ gconftool-2 -g /apps/gdm/simple-greeter/banner_message_text</xhtml:pre>
If properly configured, the proper banner text will appear within this schema.
</check-content>
            </check>
          </Rule>
        </Group>
        <Rule id="disable_user_list" selected="false" severity="low">
          <title xml:lang="en-US">Disable the User List</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
<xhtml:br/><xhtml:br/>
Run the following command to disable the user list:
<xhtml:pre>sudo -u gdm gconftool-2 \
  --type bool \
  --set /apps/gdm/simple-greeter/disable_user_list true</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-23</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-27230-2</ident>
          <check system="ocil-transitional">
            <check-export export-name="it is not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the user list is disabled, run the following command:
<xhtml:pre>$ gconftool-2 -g /apps/gdm/simple-greeter/disable_user_list</xhtml:pre>
The output should be <xhtml:code>true</xhtml:code>.
</check-content>
          </check>
        </Rule>
      </Group>
    </Group>
    <Group id="network">
      <title xml:lang="en-US">Network Configuration and Firewalls</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Most machines must be connected to a network of some
sort, and this brings with it the substantial risk of network
attack. This section discusses the security impact of decisions
about networking which must be made when configuring a system.
<xhtml:br/><xhtml:br/>
This section also discusses firewalls, network access
controls, and other network security frameworks, which allow
system-level rules to be written that can limit an attackers' ability
to connect to your system. These rules can specify that network
traffic should be allowed or denied from certain IP addresses,
hosts, and networks. The rules can also specify which of the
system's network services are available to particular hosts or
networks.</description>
      <Group id="network_disable_unused_interfaces">
        <title xml:lang="en-US">Disable Unused Interfaces</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Network interfaces expand the attack surface of the 
system.  Unused interfaces are not monitored or controlled, and 
should be disabled.
<xhtml:br/><xhtml:br/>
If the system does not require network communications but still
needs to use the loopback interface, remove all files of the form
<xhtml:code>ifcfg-<xhtml:i>interface</xhtml:i></xhtml:code> except for <xhtml:code>ifcfg-lo</xhtml:code> from
<xhtml:code>/etc/sysconfig/network-scripts</xhtml:code>:
<xhtml:pre># rm /etc/sysconfig/network-scripts/ifcfg-<xhtml:i>interface</xhtml:i></xhtml:pre>
If the system is a standalone machine with no need for network access or even
communication over the loopback device, then disable this service.

    The <xhtml:code>network</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig network off</xhtml:pre>
</description>
      </Group>
      <Rule id="network_disable_zeroconf" selected="false" severity="low">
        <title xml:lang="en-US">Disable Zeroconf Networking</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.245.0.0
subnet, add or correct the following line in <xhtml:code>/etc/sysconfig/network</xhtml:code>:
<xhtml:pre>NOZEROCONF=yes</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
        <ident system="http://cce.mitre.org">CCE-27151-0</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:154" href="ssg-rhel6-oval.xml"/>
        </check>
      </Rule>
      <Rule id="network_sniffer_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Ensure System is Not Acting as a Network Sniffer</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre>$ ip link | grep PROMISC</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MA-3</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
        <ident system="http://cce.mitre.org">CCE-27152-8</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:930" href="ssg-rhel6-oval.xml"/>
        </check>
      </Rule>
      <Group id="network-kernel">
        <title xml:lang="en-US">Kernel Parameters Which Affect Networking</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>sysctl</xhtml:code> utility is used to set
parameters which affect the operation of the Linux kernel. Kernel parameters
which affect networking and have security implications are described here.
</description>
        <Group id="network_host_parameters">
          <title xml:lang="en-US">Network Parameters for Hosts Only</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If the system is not going to be used as a router, then setting certain
kernel parameters ensure that the host will not perform routing
of network traffic.</description>
          <Rule id="disable_sysctl_ipv4_default_send_redirects" selected="false" severity="medium">
            <title xml:lang="en-US">Disable Kernel Parameter for Sending ICMP Redirects by Default</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.default.send_redirects</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.default.send_redirects=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.default.send_redirects = 0</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-5</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27001-7</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:632" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.default.send_redirects</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.default.send_redirects</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="disable_sysctl_ipv4_all_send_redirects" selected="false" severity="medium">
            <title xml:lang="en-US">Disable Kernel Parameter for Sending ICMP Redirects for All Interfaces</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.all.send_redirects</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.all.send_redirects=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.all.send_redirects = 0</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27004-1</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:865" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.all.send_redirects</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.all.send_redirects</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="disable_sysctl_ipv4_ip_forward" selected="false" severity="medium">
            <title xml:lang="en-US">Disable Kernel Parameter for IP Forwarding</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.ip_forward</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.ip_forward=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.ip_forward = 0</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">366</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26866-4</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:972" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
    The status of the <xhtml:code>net.ipv4.ip_forward</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.ip_forward</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
The ability to forward packets is only appropriate for routers.
</check-content>
            </check>
          </Rule>
        </Group>
        <Group id="network_host_and_router_parameters">
          <title xml:lang="en-US">Network Related Kernel Runtime Parameters for Hosts and Routers</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Certain kernel parameters should be set for systems which are
acting as either hosts or routers to improve the system's ability defend
against certain types of IPv4 protocol attacks.</description>
          <Value id="sysctl_net_ipv4_conf_all_accept_source_route_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.conf.all.accept_source_route</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Trackers could be using source-routed packets to
generate traffic that seems to be intra-net, but actually was
created outside and has been redirected.</description>
            <value>0</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_conf_all_accept_redirects_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.conf.all.accept_redirects</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Disable ICMP Redirect Acceptance</description>
            <value>0</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_conf_all_secure_redirects_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.conf.all.secure_redirects</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Enable to prevent hijacking of routing path by only
allowing redirects from gateways known in routing
table.</description>
            <value>1</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_conf_all_log_martians_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.conf.all.log_martians</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Disable so you don't Log Spoofed Packets, Source
Routed Packets, Redirect Packets</description>
            <value>0</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_conf_default_accept_source_route_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.conf.default.accept_source_route</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Disable IP source routing?</description>
            <value>0</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_conf_default_accept_redirects_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.conf.default.accept_redirects</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Disable ICMP Redirect Acceptance?</description>
            <value>0</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_conf_default_secure_redirects_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.conf.default.secure_redirects</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Log packets with impossible addresses to kernel
log?</description>
            <value>1</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.icmp_echo_ignore_broadcasts</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Ignore all ICMP ECHO and TIMESTAMP requests sent to it
via broadcast/multicast</description>
            <value>1</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.icmp_ignore_bogus_error_responses</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Enable to prevent unnecessary logging</description>
            <value>1</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_tcp_syncookies_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.tcp_syncookies</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Enable to turn on TCP SYN Cookie
Protection</description>
            <value>1</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_conf_all_rp_filter_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.conf.all.rp_filter</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Enable to enforce sanity checking, also called ingress
filtering or egress filtering. The point is to drop a packet if the
source and destination IP addresses in the IP header do not make
sense when considered in light of the physical interface on which
it arrived.</description>
            <value>1</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Value id="sysctl_net_ipv4_conf_default_rp_filter_value" operator="equals" type="string">
            <title xml:lang="en-US">net.ipv4.conf.default.rp_filter</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Enables source route verification</description>
            <value>1</value>
            <value selector="enabled">1</value>
            <value selector="disabled">0</value>
          </Value>
          <Rule id="set_sysctl_net_ipv4_conf_all_accept_source_route" selected="false" severity="medium">
            <title xml:lang="en-US">Disable Kernel Parameter for Accepting Source-Routed Packets for All Interfaces</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.all.accept_source_route</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.all.accept_source_route=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.all.accept_source_route = 0</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Accepting source-routed packets in the IPv4 protocol has few legitimate
uses. It should be disabled unless it is absolutely required.</rationale>
            <ident system="http://cce.mitre.org">CCE-27037-1</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# Set runtime for net.ipv4.conf.all.accept_source_route
#
sysctl -q -n -w net.ipv4.conf.all.accept_source_route=0

#
# If net.ipv4.conf.all.accept_source_route present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv4.conf.all.accept_source_route = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.accept_source_route /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.all.accept_source_route.*/net.ipv4.conf.all.accept_source_route = 0/g' /etc/sysctl.conf
else
	echo "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.accept_source_route to 0 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.conf.all.accept_source_route = 0" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2151" value-id="sysctl_net_ipv4_conf_all_accept_source_route_value"/>
              <check-content-ref name="oval:ssg:def:941" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.all.accept_source_route</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.all.accept_source_route</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_conf_all_accept_redirects" selected="false" severity="medium">
            <title xml:lang="en-US">Disable Kernel Parameter for Accepting ICMP Redirects for All Interfaces</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.all.accept_redirects</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.all.accept_redirects=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.all.accept_redirects = 0</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1503</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Accepting ICMP redirects has few legitimate
uses. It should be disabled unless it is absolutely required.</rationale>
            <ident system="http://cce.mitre.org">CCE-27027-2</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# 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 "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.accept_redirects to 0 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.conf.all.accept_redirects = 0" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2152" value-id="sysctl_net_ipv4_conf_all_accept_redirects_value"/>
              <check-content-ref name="oval:ssg:def:292" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.all.accept_redirects</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.all.accept_redirects</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_conf_all_secure_redirects" selected="false" severity="medium">
            <title xml:lang="en-US">Disable Kernel Parameter for Accepting Secure Redirects for All Interfaces</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.all.secure_redirects</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.all.secure_redirects=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.all.secure_redirects = 0</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1503</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Accepting "secure" ICMP redirects (from those gateways listed as
default gateways) has few legitimate uses. It should be disabled unless it is
absolutely required.</rationale>
            <ident system="http://cce.mitre.org">CCE-26854-0</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# 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 "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.secure_redirects to 0 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.conf.all.secure_redirects = 0" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2153" value-id="sysctl_net_ipv4_conf_all_secure_redirects_value"/>
              <check-content-ref name="oval:ssg:def:377" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.all.secure_redirects</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.all.secure_redirects</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_conf_all_log_martians" selected="false" severity="low">
            <title xml:lang="en-US">Enable Kernel Parameter to Log Martian Packets</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.all.log_martians</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.all.log_martians=1</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.all.log_martians = 1</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27066-0</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# 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 "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.log_martians to 1 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.conf.all.log_martians = 1" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2154" value-id="sysctl_net_ipv4_conf_all_log_martians_value"/>
              <check-content-ref name="oval:ssg:def:326" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.all.log_martians</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.all.log_martians</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>1</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_conf_default_accept_source_route" selected="false" severity="medium">
            <title xml:lang="en-US">Disable Kernel Parameter for Accepting Source-Routed Packets By Default</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.default.accept_source_route</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.default.accept_source_route=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.default.accept_source_route = 0</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-5</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Accepting source-routed packets in the IPv4 protocol has few legitimate
uses. It should be disabled unless it is absolutely required.</rationale>
            <ident system="http://cce.mitre.org">CCE-26983-7</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# Set runtime for net.ipv4.conf.default.accept_source_route
#
sysctl -q -n -w net.ipv4.conf.default.accept_source_route=0

#
# If net.ipv4.conf.default.accept_source_route present in /etc/sysctl.conf, change value to "0"
#	else, add "net.ipv4.conf.default.accept_source_route = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.accept_source_route /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.default.accept_source_route.*/net.ipv4.conf.default.accept_source_route = 0/g' /etc/sysctl.conf
else
	echo "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.conf.default.accept_source_route to 0 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.conf.default.accept_source_route = 0" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2155" value-id="sysctl_net_ipv4_conf_default_accept_source_route_value"/>
              <check-content-ref name="oval:ssg:def:1079" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.default.accept_source_route</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.default.accept_source_route</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_conf_default_accept_redirects" selected="false" severity="low">
            <title xml:lang="en-US">Disable Kernel Parameter for Accepting ICMP Redirects By Default</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.default.accept_redirects</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.default.accept_redirects=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.default.accept_redirects = 0</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-5</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This feature of the IPv4 protocol has few legitimate
uses. It should be disabled unless it is absolutely required.</rationale>
            <ident system="http://cce.mitre.org">CCE-27015-7</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# 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 "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.conf.default.accept_redirects to 0 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.conf.default.accept_redirects = 0" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:974" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.default.accept_redirects</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.default.accept_redirects</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_conf_default_secure_redirects" selected="false" severity="medium">
            <title xml:lang="en-US">Disable Kernel Parameter for Accepting Secure Redirects By Default</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.default.secure_redirects</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.default.secure_redirects=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.default.secure_redirects = 0</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-5</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Accepting "secure" ICMP redirects (from those gateways listed as
default gateways) has few legitimate uses. It should be disabled unless it is
absolutely required.</rationale>
            <ident system="http://cce.mitre.org">CCE-26831-8</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# 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 "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.conf.default.secure_redirects to 0 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.conf.default.secure_redirects = 0" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2156" value-id="sysctl_net_ipv4_conf_default_secure_redirects_value"/>
              <check-content-ref name="oval:ssg:def:134" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.default.secure_redirects</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.default.secure_redirects</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="false" severity="low">
            <title xml:lang="en-US">Enable Kernel Parameter to Ignore ICMP Broadcast Echo Requests</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.icmp_echo_ignore_broadcasts</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=1</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.icmp_echo_ignore_broadcasts = 1</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Ignoring ICMP echo requests (pings) sent to broadcast or multicast
addresses makes the system slightly more difficult to enumerate on the network.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26883-9</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# 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 "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.icmp_echo_ignore_broadcasts to 1 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.icmp_echo_ignore_broadcasts = 1" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2157" value-id="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value"/>
              <check-content-ref name="oval:ssg:def:398" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.icmp_echo_ignore_broadcasts</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.icmp_echo_ignore_broadcasts</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>1</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="false" severity="low">
            <title xml:lang="en-US">Enable Kernel Parameter to Ignore Bogus ICMP Error Responses</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.icmp_ignore_bogus_error_responses</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.icmp_ignore_bogus_error_responses=1</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.icmp_ignore_bogus_error_responses = 1</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-5</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Ignoring bogus ICMP error responses reduces
log size, although some activity would not be logged.</rationale>
            <ident system="http://cce.mitre.org">CCE-26993-6</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# 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 "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.icmp_ignore_bogus_error_responses to 1 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.icmp_ignore_bogus_error_responses = 1" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2158" value-id="sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value"/>
              <check-content-ref name="oval:ssg:def:373" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.icmp_ignore_bogus_error_responses</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.icmp_ignore_bogus_error_responses</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>1</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_tcp_syncookies" selected="false" severity="medium">
            <title xml:lang="en-US">Enable Kernel Parameter to Use TCP Syncookies</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.tcp_syncookies</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.tcp_syncookies=1</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.tcp_syncookies = 1</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1092</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1095</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 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.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27053-8</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# Set runtime for net.ipv4.tcp_syncookies
#
sysctl -q -n -w net.ipv4.tcp_syncookies=1

#
# If net.ipv4.tcp_syncookies present in /etc/sysctl.conf, change value to "1"
#	else, add "net.ipv4.tcp_syncookies = 1" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.tcp_syncookies /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.tcp_syncookies.*/net.ipv4.tcp_syncookies = 1/g' /etc/sysctl.conf
else
	echo "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.tcp_syncookies to 1 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.tcp_syncookies = 1" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2159" value-id="sysctl_net_ipv4_tcp_syncookies_value"/>
              <check-content-ref name="oval:ssg:def:1074" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.tcp_syncookies</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.tcp_syncookies</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>1</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_conf_all_rp_filter" selected="false" severity="medium">
            <title xml:lang="en-US">Enable Kernel Parameter to Use Reverse Path Filtering for All Interfaces</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.all.rp_filter</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.all.rp_filter=1</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.all.rp_filter = 1</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-5</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26979-5</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# 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 "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.conf.all.rp_filter to 1 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.conf.all.rp_filter = 1" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2160" value-id="sysctl_net_ipv4_conf_all_rp_filter_value"/>
              <check-content-ref name="oval:ssg:def:241" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.all.rp_filter</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.all.rp_filter</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>1</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
          <Rule id="set_sysctl_net_ipv4_conf_default_rp_filter" selected="false" severity="medium">
            <title xml:lang="en-US">Enable Kernel Parameter to Use Reverse Path Filtering by Default</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    To set the runtime status of the <xhtml:code>net.ipv4.conf.default.rp_filter</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv4.conf.default.rp_filter=1</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv4.conf.default.rp_filter = 1</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-5</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-7</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26915-9</ident>
            <fix system="urn:xccdf:fix:script:sh">#
# Set runtime for net.ipv4.conf.default.rp_filter
#
sysctl -q -n -w net.ipv4.conf.default.rp_filter=1

#
# If net.ipv4.conf.default.rp_filter present in /etc/sysctl.conf, change value to "1"
#	else, add "net.ipv4.conf.default.rp_filter = 1" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.rp_filter /etc/sysctl.conf ; then
	sed -i 's/^net.ipv4.conf.default.rp_filter.*/net.ipv4.conf.default.rp_filter = 1/g' /etc/sysctl.conf
else
	echo "" &gt;&gt; /etc/sysctl.conf
	echo "# Set net.ipv4.conf.default.rp_filter to 1 per security requirements" &gt;&gt; /etc/sysctl.conf
	echo "net.ipv4.conf.default.rp_filter = 1" &gt;&gt; /etc/sysctl.conf
fi
</fix>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-export export-name="oval:ssg:var:2161" value-id="sysctl_net_ipv4_conf_default_rp_filter_value"/>
              <check-content-ref name="oval:ssg:def:883" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    The status of the <xhtml:code>net.ipv4.conf.default.rp_filter</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv4.conf.default.rp_filter</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>1</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
            </check-content>
            </check>
          </Rule>
        </Group>
      </Group>
      <Group id="network-wireless">
        <title xml:lang="en-US">Wireless Networking</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Wireless networking, such as 802.11
(WiFi) and Bluetooth, can present a security risk to sensitive or
classified systems and networks. Wireless networking hardware is
much more likely to be included in laptop or portable systems than
desktops or servers. 
<xhtml:br/><xhtml:br/>
Removal of hardware provides the greatest assurance that the wireless
capability remains disabled. Acquisition policies often include provisions to
prevent the purchase of equipment that will be used in sensitive spaces and
includes wireless capabilities. If it is impractical to remove the wireless
hardware, and policy permits the device to enter sensitive spaces as long
as wireless is disabled, efforts should instead focus on disabling wireless capability
via software.</description>
        <Group id="wireless_software">
          <title xml:lang="en-US">Disable Wireless Through Software Configuration</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If it is impossible to remove the wireless hardware
from the device in question, disable as much of it as possible
through software. The following methods can disable software
support for wireless networking, but note that these methods do not
prevent malicious software or careless users from re-activating the
devices.</description>
          <Rule id="wireless_disable_in_bios" selected="false" severity="low">
            <title xml:lang="en-US">Disable WiFi or Bluetooth BIOS</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(3)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">85</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Disabling wireless support in the BIOS prevents easy
activation of the wireless interface, generally requiring administrators
to reboot the system first.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26878-9</ident>
          </Rule>
          <Rule id="deactivate_wireless_interfaces" selected="false" severity="low">
            <title xml:lang="en-US">Deactivate Wireless Network Interfaces</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Deactivating wireless network interfaces should prevent
normal usage of the wireless capability.
<xhtml:br/><xhtml:br/>
First, identify the interfaces available with the command:
<xhtml:pre># ifconfig -a</xhtml:pre>
Additionally,the following command may also be used to
determine whether wireless support ('extensions') is included for a
particular interface, though this may not always be a clear
indicator:
<xhtml:pre># iwconfig</xhtml:pre>
After identifying any wireless interfaces (which may have
names like <xhtml:code>wlan0</xhtml:code>, <xhtml:code>ath0</xhtml:code>, <xhtml:code>wifi0</xhtml:code>, <xhtml:code>em1</xhtml:code> or
<xhtml:code>eth0</xhtml:code>), deactivate the interface with the command:
<xhtml:pre># ifdown <xhtml:i>interface</xhtml:i></xhtml:pre>
These changes will only last until the next reboot. To
disable the interface for future boots, remove the appropriate
interface file from <xhtml:code>/etc/sysconfig/network-scripts</xhtml:code>:
<xhtml:pre># rm /etc/sysconfig/network-scripts/ifcfg-<xhtml:i>interface</xhtml:i></xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(3)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">85</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121025</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27057-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:804" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
          <Rule id="service_bluetooth_disabled" selected="false" severity="medium">
            <title xml:lang="en-US">Disable Bluetooth Service</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    The <xhtml:code>bluetooth</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig bluetooth off</xhtml:pre>
              <xhtml:pre># service bluetooth stop</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(3)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">85</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121025</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Disabling the <xhtml:code>bluetooth</xhtml:code> 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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27081-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:579" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the service is running" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check that the <xhtml:code>bluetooth</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>bluetooth</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>bluetooth</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>bluetooth</xhtml:code> --list
<xhtml:code>bluetooth</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>bluetooth</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service bluetooth status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>bluetooth is stopped</xhtml:pre>
            </check-content>
            </check>
          </Rule>
          <Rule id="kernel_module_bluetooth_disabled" selected="false" severity="medium">
            <title xml:lang="en-US">Disable Bluetooth Kernel Modules</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The kernel's module loading system can be configured to prevent
loading of the Bluetooth module. Add the following to
the appropriate <xhtml:code>/etc/modprobe.d</xhtml:code> configuration file
to prevent the loading of the Bluetooth module:
<xhtml:pre>install net-pf-31 /bin/false
install bluetooth /bin/false</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-18(3)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">85</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121025</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If Bluetooth functionality must be disabled, preventing the kernel
from loading the kernel module provides an additional safeguard against its
activation.</rationale>
            <ident system="http://cce.mitre.org">CCE-26763-3</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:176" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
If the system is configured to prevent the loading of the
<xhtml:code>bluetooth</xhtml:code> kernel module,
it will contain lines inside any file in <xhtml:code>/etc/modprobe.d</xhtml:code> or the deprecated<xhtml:code>/etc/modprobe.conf</xhtml:code>.
These lines instruct the module loading system to run another program (such as
<xhtml:code>/bin/false</xhtml:code>) upon a module <xhtml:code>install</xhtml:code> event.
Run the following command to search for such lines in all files in <xhtml:code>/etc/modprobe.d</xhtml:code>
and the deprecated <xhtml:code>/etc/modprobe.conf</xhtml:code>:
<xhtml:pre xml:space="preserve">$ grep -r bluetooth /etc/modprobe.conf /etc/modprobe.d</xhtml:pre>
              
If the system is configured to prevent the loading of the
<xhtml:code>net-pf-31</xhtml:code> kernel module,
it will contain lines inside any file in <xhtml:code>/etc/modprobe.d</xhtml:code> or the deprecated<xhtml:code>/etc/modprobe.conf</xhtml:code>.
These lines instruct the module loading system to run another program (such as
<xhtml:code>/bin/false</xhtml:code>) upon a module <xhtml:code>install</xhtml:code> event.
Run the following command to search for such lines in all files in <xhtml:code>/etc/modprobe.d</xhtml:code>
and the deprecated <xhtml:code>/etc/modprobe.conf</xhtml:code>:
<xhtml:pre xml:space="preserve">$ grep -r net-pf-31 /etc/modprobe.conf /etc/modprobe.d</xhtml:pre>
            </check-content>
            </check>
          </Rule>
        </Group>
      </Group>
      <Group id="network-ipv6">
        <title xml:lang="en-US">IPv6</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The system includes support for Internet Protocol
version 6. A major and often-mentioned improvement over IPv4 is its
enormous increase in the number of available addresses. Another
important feature is its support for automatic configuration of
many network settings.</description>
        <Group id="disabling_ipv6">
          <title xml:lang="en-US">Disable Support for IPv6 Unless Needed</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Despite configuration that suggests support for IPv6 has
been disabled, link-local IPv6 address auto-configuration occurs
even when only an IPv4 address is assigned. The only way to
effectively prevent execution of the IPv6 networking stack is to
instruct the system not to activate the IPv6 kernel module.
</description>
          <Rule id="disable_ipv6_module_loading" selected="false" severity="medium">
            <title xml:lang="en-US">Disable IPv6 Networking Support Automatic Loading</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To prevent the IPv6 kernel module (<xhtml:code>ipv6</xhtml:code>) from loading the
IPv6 networking stack, add the following line to
<xhtml:code>/etc/modprobe.d/disabled.conf</xhtml:code> (or another file in
<xhtml:code>/etc/modprobe.d</xhtml:code>):
<xhtml:pre>options ipv6 disable=1</xhtml:pre>
This permits the IPv6 module to be loaded (and thus satisfy other modules that
depend on it), while disabling support for the IPv6 protocol.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Any unnecessary network stacks - including IPv6 - should be disabled, to reduce
the vulnerability to exploitation.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27153-6</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:111" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the ipv6 kernel module is loaded" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
If the system uses IPv6, this is not applicable.
<xhtml:br/><xhtml:br/>
If the system is configured to prevent the loading of the
<xhtml:code>ipv6</xhtml:code> kernel module, it will contain a line
of the form:
<xhtml:pre>options ipv6 disable=1</xhtml:pre>
Such lines may be inside any file in <xhtml:code>/etc/modprobe.d</xhtml:code> or the
deprecated<xhtml:code>/etc/modprobe.conf</xhtml:code>.  This permits insertion of the IPv6
kernel module (which other parts of the system expect to be present), but
otherwise keeps it inactive.  Run the following command to search for such
lines in all files in <xhtml:code>/etc/modprobe.d</xhtml:code> and the deprecated
<xhtml:code>/etc/modprobe.conf</xhtml:code>:
<xhtml:pre xml:space="preserve">$ grep -r ipv6 /etc/modprobe.conf /etc/modprobe.d</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="network_ipv6_disable_rpc" selected="false" severity="low">
            <title xml:lang="en-US">Disable Support for RPC IPv6</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">RPC services for NFSv4 try to load transport modules for
<xhtml:code>udp6</xhtml:code> and <xhtml:code>tcp6</xhtml:code> by default, even if IPv6 has been disabled in
<xhtml:code>/etc/modprobe.d</xhtml:code>. To prevent RPC services such as <xhtml:code>rpc.mountd</xhtml:code>
from attempting to start IPv6 network listeners, remove or comment out the
following two lines in <xhtml:code>/etc/netconfig</xhtml:code>:
<xhtml:pre>udp6       tpi_clts      v     inet6    udp     -       -
tcp6       tpi_cots_ord  v     inet6    tcp     -       -</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <ident system="http://cce.mitre.org">CCE-27232-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:968" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
        </Group>
        <Group id="configuring_ipv6">
          <title xml:lang="en-US">Configure IPv6 Settings if Necessary</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">A major feature of IPv6 is the extent to which systems
implementing it can automatically configure their networking
devices using information from the network. From a security
perspective, manually configuring important configuration
information is preferable to accepting it from the network
in an unauthenticated fashion.</description>
          <Group id="disabling_ipv6_autoconfig">
            <title xml:lang="en-US">Disable Automatic Configuration</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Disable the system's acceptance of router
advertisements and redirects by adding or correcting the following
line in <xhtml:code>/etc/sysconfig/network</xhtml:code> (note that this does not disable
sending router solicitations):
<xhtml:pre>IPV6_AUTOCONF=no</xhtml:pre>
</description>
            <Value id="sysconfig_network_IPV6_AUTOCONF_value" operator="equals" type="string">
              <title xml:lang="en-US">IPV6_AUTOCONF</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Toggle global IPv6 auto-configuration (only, if global
forwarding is disabled)</description>
              <value>no</value>
              <value selector="enabled">yes</value>
              <value selector="disabled">no</value>
            </Value>
            <Value id="sysctl_net_ipv6_conf_default_accept_ra_value" operator="equals" type="string">
              <title xml:lang="en-US">net.ipv6.conf.default.accept_ra</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Accept default router advertisements?</description>
              <value>0</value>
              <value selector="enabled">1</value>
              <value selector="disabled">0</value>
            </Value>
            <Value id="sysctl_net_ipv6_conf_default_accept_redirects_value" operator="equals" type="string">
              <title xml:lang="en-US">net.ipv6.conf.default.accept_redirects</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Toggle ICMP Redirect Acceptance</description>
              <value>0</value>
              <value selector="enabled">1</value>
              <value selector="disabled">0</value>
            </Value>
            <Rule id="set_sysctl_net_ipv6_conf_default_accept_ra" selected="false" severity="low">
              <title xml:lang="en-US">Disable Accepting IPv6 Router Advertisements</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
                
    To set the runtime status of the <xhtml:code>net.ipv6.conf.default.accept_ra</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv6.conf.default.accept_ra=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv6.conf.default.accept_ra = 0</xhtml:pre>
              </description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
An illicit router advertisement message could result in a man-in-the-middle attack.
</rationale>
              <ident system="http://cce.mitre.org">CCE-27164-3</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-export export-name="oval:ssg:var:2162" value-id="sysctl_net_ipv6_conf_default_accept_ra_value"/>
                <check-content-ref name="oval:ssg:def:838" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
                
    The status of the <xhtml:code>net.ipv6.conf.default.accept_ra</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv6.conf.default.accept_ra</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
              </check-content>
              </check>
            </Rule>
            <Rule id="set_sysctl_ipv6_default_accept_redirects" selected="false" severity="medium">
              <title xml:lang="en-US">Disable Accepting IPv6 Redirects</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
                
    To set the runtime status of the <xhtml:code>net.ipv6.conf.default.accept_redirects</xhtml:code> kernel parameter,
    run the following command:
    <xhtml:pre xml:space="preserve"># sysctl -w net.ipv6.conf.default.accept_redirects=0</xhtml:pre>
    If this is not the system's default value, add the following line to <xhtml:code>/etc/sysctl.conf</xhtml:code>:
    <xhtml:pre xml:space="preserve">net.ipv6.conf.default.accept_redirects = 0</xhtml:pre>
              </description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
              <reference href="http://iase.disa.mil/cci/index.html">1551</reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
An illicit ICMP redirect message could result in a man-in-the-middle attack.
</rationale>
              <ident system="http://cce.mitre.org">CCE-27166-8</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-export export-name="oval:ssg:var:2163" value-id="sysctl_net_ipv6_conf_default_accept_redirects_value"/>
                <check-content-ref name="oval:ssg:def:110" href="ssg-rhel6-oval.xml"/>
              </check>
              <check system="ocil-transitional">
                <check-export export-name="the correct value is not returned" value-id="conditional_clause"/>
                <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
                
    The status of the <xhtml:code>net.ipv6.conf.default.accept_redirects</xhtml:code> kernel parameter can be queried
    by running the following command:
    <xhtml:pre xml:space="preserve">$ sysctl net.ipv6.conf.default.accept_redirects</xhtml:pre>
    The output of the command should indicate a value of <xhtml:code>0</xhtml:code>.
    If this value is not the default value, investigate how it could have been
    adjusted at runtime, and verify it is not set improperly in
    <xhtml:code>/etc/sysctl.conf</xhtml:code>.
    
              </check-content>
              </check>
            </Rule>
          </Group>
          <Rule id="network_ipv6_static_address" selected="false" severity="low">
            <title xml:lang="en-US">Manually Assign Global IPv6 Address</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To manually assign an IP address for an interface, edit the
file <xhtml:code>/etc/sysconfig/network-scripts/ifcfg-<xhtml:i>interface</xhtml:i></xhtml:code>. Add or correct the
following line (substituting the correct IPv6 address):
<xhtml:pre>IPV6ADDR=2001:0DB8::ABCD/64</xhtml:pre>
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.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <ident system="http://cce.mitre.org">CCE-27233-6</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:193" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
          <Rule id="network_ipv6_privacy_extensions" selected="false" severity="low">
            <title xml:lang="en-US">Use Privacy Extensions for Address</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To introduce randomness into the automatic generation of IPv6
addresses, add or correct the following line in
<xhtml:code>/etc/sysconfig/network-scripts/ifcfg-<xhtml:i>interface</xhtml:i></xhtml:code>:
<xhtml:pre>IPV6_PRIVACY=rfc3041</xhtml:pre>
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.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <ident system="http://cce.mitre.org">CCE-27154-4</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:365" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
          <Rule id="network_ipv6_default_gateway" selected="false" severity="low">
            <title xml:lang="en-US">Manually Assign IPv6 Router Address</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Edit the file
<xhtml:code>/etc/sysconfig/network-scripts/ifcfg-<xhtml:i>interface</xhtml:i></xhtml:code>, and add or correct
the following line (substituting your gateway IP as appropriate):
<xhtml:pre>IPV6_DEFAULTGW=2001:0DB8::0001</xhtml:pre>
Router addresses should be manually set and not accepted via any
auto-configuration or router advertisement.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
            <ident system="http://cce.mitre.org">CCE-27234-4</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:316" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
          <Group id="network_ipv6_limit_requests">
            <title xml:lang="en-US">Limit Network-Transmitted Configuration if Using Static IPv6 Addresses</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To limit the configuration information requested from other
systems and accepted from the network on a system that uses
statically-configured IPv6 addresses, add the following lines to
<xhtml:code>/etc/sysctl.conf</xhtml:code>:
<xhtml:pre>net.ipv6.conf.default.router_solicitations = 0
net.ipv6.conf.default.accept_ra_rtr_pref = 0
net.ipv6.conf.default.accept_ra_pinfo = 0
net.ipv6.conf.default.accept_ra_defrtr = 0
net.ipv6.conf.default.autoconf = 0
net.ipv6.conf.default.dad_transmits = 0
net.ipv6.conf.default.max_addresses = 1</xhtml:pre>
The <xhtml:code>router_solicitations</xhtml:code> setting determines how many router
solicitations are sent when bringing up the interface. If addresses are
statically assigned, there is no need to send any solicitations.
<xhtml:br/>
The <xhtml:code>accept_ra_pinfo</xhtml:code> setting controls whether the system will accept
prefix info from the router.
<xhtml:br/>
The <xhtml:code>accept_ra_defrtr</xhtml:code> setting controls whether the system will accept
Hop Limit settings from a router advertisement. Setting it to 0 prevents a
router from changing your default IPv6 Hop Limit for outgoing packets.
<xhtml:br/>
The <xhtml:code>autoconf</xhtml:code> setting controls whether router advertisements can cause
the system to assign a global unicast address to an interface.
<xhtml:br/>
The <xhtml:code>dad_transmits</xhtml:code> setting determines how many neighbor solicitations
to send out per address (global and link-local) when bringing up an interface
to ensure the desired address is unique on the network.
<xhtml:br/>
The <xhtml:code>max_addresses</xhtml:code> setting determines how many global unicast IPv6
addresses can be assigned to each interface.  The default is 16, but it should
be set to exactly the number of statically configured global addresses
required.
</description>
          </Group>
        </Group>
      </Group>
      <Group id="network-iptables">
        <title xml:lang="en-US">iptables and ip6tables</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">A host-based firewall called Netfilter is included as
part of the Linux kernel distributed with the system. It is
activated by default. This firewall is controlled by the program
iptables, and the entire capability is frequently referred to by
this name. An analogous program called ip6tables handles filtering
for IPv6.
<xhtml:br/><xhtml:br/>
Unlike TCP Wrappers, which depends on the network server
program to support and respect the rules written, Netfilter
filtering occurs at the kernel level, before a program can even
process the data from the network packet. As such, any program on
the system is affected by the rules written.
<xhtml:br/><xhtml:br/>
This section provides basic information about strengthening
the iptables and ip6tables configurations included with the system.
For more complete information that may allow the construction of a
sophisticated ruleset tailored to your environment, please consult
the references at the end of this section.</description>
        <Group id="iptables_activation">
          <title xml:lang="en-US">Inspect and Activate Default Rules</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">View the currently-enforced iptables rules by running
the command:
<xhtml:pre># iptables -nL --line-numbers</xhtml:pre>
The command is analogous for the ip6tables program.
<xhtml:br/><xhtml:br/>
If the firewall does not appear to be active (i.e., no rules
appear), activate it and ensure that it starts at boot by issuing
the following commands (and analogously for ip6tables):
<xhtml:pre># service iptables restart</xhtml:pre>
The default iptables rules are:
<xhtml:pre>Chain INPUT (policy ACCEPT)
num  target     prot opt source       destination
1    ACCEPT     all  --  0.0.0.0/0    0.0.0.0/0    state RELATED,ESTABLISHED 
2    ACCEPT     icmp --  0.0.0.0/0    0.0.0.0/0
3    ACCEPT     all  --  0.0.0.0/0    0.0.0.0/0
4    ACCEPT     tcp  --  0.0.0.0/0    0.0.0.0/0    state NEW tcp dpt:22 
5    REJECT     all  --  0.0.0.0/0    0.0.0.0/0    reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
num  target     prot opt source       destination
1    REJECT     all  --  0.0.0.0/0    0.0.0.0/0    reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source       destination</xhtml:pre>
The <xhtml:code>ip6tables</xhtml:code> default rules are essentially the same.</description>
          <Rule id="enable_ip6tables" selected="false" severity="medium">
            <title xml:lang="en-US">Verify ip6tables Enabled if Using IPv6</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    The <xhtml:code>ip6tables</xhtml:code> service can be enabled with the following command:
    <xhtml:pre># chkconfig --level 2345 ip6tables on</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CA-3(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">32</reference>
            <reference href="http://iase.disa.mil/cci/index.html">66</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1115</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1118</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1092</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1117</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1098</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1100</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1097</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1414</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>ip6tables</xhtml:code> service provides the system's host-based firewalling
capability for IPv6 and ICMPv6.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27006-6</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:386" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the service is not running" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
If IPv6 is disabled, this is not applicable.
<xhtml:br/><xhtml:br/>

    Run the following command to determine the current status of the
<xhtml:code>ip6tables</xhtml:code> service:
  <xhtml:pre># service ip6tables status</xhtml:pre>
    If the service is enabled, it should return the following: <xhtml:pre>ip6tables is running...</xhtml:pre></check-content>
            </check>
          </Rule>
          <Rule id="set_ip6tables_default_rule" selected="false" severity="medium">
            <title xml:lang="en-US">Set Default ip6tables Policy for Incoming Packets</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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
<xhtml:code>/etc/sysconfig/ip6tables</xhtml:code>:
<xhtml:pre>:INPUT DROP [0:0]</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">66</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1109</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1154</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1414</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">In <xhtml:code>ip6tables</xhtml:code> the default policy is applied only after all
the applicable rules in the table are examined for a match. Setting the
default policy to <xhtml:code>DROP</xhtml:code> implements proper design for a firewall, i.e.
any packets which are not explicitly permitted should not be
accepted.</rationale>
            <ident system="http://cce.mitre.org">CCE-27317-7</ident>
            <check system="ocil-transitional">
              <check-export export-name="the default policy for the INPUT chain is not set to DROP" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
If IPv6 is disabled, this is not applicable.
<xhtml:br/><xhtml:br/>
Inspect the file <xhtml:code>/etc/sysconfig/ip6tables</xhtml:code> to determine
the default policy for the INPUT chain. It should be set to DROP:
<xhtml:pre> # grep ":INPUT" /etc/sysconfig/ip6tables</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="enable_iptables" selected="false" severity="medium">
            <title xml:lang="en-US">Verify iptables Enabled</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
    The <xhtml:code>iptables</xhtml:code> service can be enabled with the following command:
    <xhtml:pre># chkconfig --level 2345 iptables on</xhtml:pre>
            </description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CA-3(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">32</reference>
            <reference href="http://iase.disa.mil/cci/index.html">66</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1115</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1118</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1092</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1117</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1098</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1100</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1097</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1414</reference>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121024</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>iptables</xhtml:code> service provides the system's host-based firewalling
capability for IPv4 and ICMP.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27018-1</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:425" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the service is not running" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    Run the following command to determine the current status of the
<xhtml:code>iptables</xhtml:code> service:
  <xhtml:pre># service iptables status</xhtml:pre>
    If the service is enabled, it should return the following: <xhtml:pre>iptables is running...</xhtml:pre>
            </check-content>
            </check>
          </Rule>
        </Group>
        <Group id="ruleset_modifications">
          <title xml:lang="en-US">Strengthen the Default Ruleset</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The default rules can be strengthened. The system
scripts that activate the firewall rules expect them to be defined
in the configuration files iptables and ip6tables in the directory
<xhtml:code>/etc/sysconfig</xhtml:code>. Many of the lines in these files are similar
to the command line arguments that would be provided to the programs
<xhtml:code>/sbin/iptables</xhtml:code> or <xhtml:code>/sbin/ip6tables</xhtml:code> - but some are quite
different.
<xhtml:br/><xhtml:br/>
The following recommendations describe how to strengthen the
default ruleset configuration file. An alternative to editing this
configuration file is to create a shell script that makes calls to
the iptables program to load in rules, and then invokes service
iptables save to write those loaded rules to
<xhtml:code>/etc/sysconfig/iptables.</xhtml:code>
<xhtml:br/><xhtml:br/>
The following alterations can be made directly to
<xhtml:code>/etc/sysconfig/iptables</xhtml:code> and <xhtml:code>/etc/sysconfig/ip6tables</xhtml:code>.
Instructions apply to both unless otherwise noted. Language and address
conventions for regular iptables are used throughout this section;
configuration for ip6tables will be either analogous or explicitly
covered.</description>
          <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">The program <xhtml:code>system-config-securitylevel</xhtml:code>
allows additional services to penetrate the default firewall rules
and automatically adjusts <xhtml:code>/etc/sysconfig/iptables</xhtml:code>. This program
is only useful if the default ruleset meets your security
requirements. Otherwise, this program should not be used to make
changes to the firewall configuration because it re-writes the
saved configuration file.</warning>
          <Rule id="set_iptables_default_rule" selected="false" severity="medium">
            <title xml:lang="en-US">Set Default iptables Policy for Incoming Packets</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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
<xhtml:code>/etc/sysconfig/iptables</xhtml:code>:
<xhtml:pre>:INPUT DROP [0:0]</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">66</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1109</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1154</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1414</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">In <xhtml:code>iptables</xhtml:code> the default policy is applied only after all
the applicable rules in the table are examined for a match. Setting the
default policy to <xhtml:code>DROP</xhtml:code> implements proper design for a firewall, i.e.
any packets which are not explicitly permitted should not be
accepted.</rationale>
            <ident system="http://cce.mitre.org">CCE-26444-0</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:362" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the default policy for the INPUT chain is not set to DROP" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">Inspect the file <xhtml:code>/etc/sysconfig/iptables</xhtml:code> to determine
the default policy for the INPUT chain. It should be set to DROP:
<xhtml:pre> # grep ":INPUT" /etc/sysconfig/iptables</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="set_iptables_default_rule_forward" selected="false" severity="medium">
            <title xml:lang="en-US">Set Default iptables Policy for Forwarded Packets</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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
<xhtml:code>/etc/sysconfig/iptables</xhtml:code>:
<xhtml:pre>:FORWARD DROP [0:0]</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1109</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">In <xhtml:code>iptables</xhtml:code> the default policy is applied only after all
the applicable rules in the table are examined for a match. Setting the
default policy to <xhtml:code>DROP</xhtml:code> implements proper design for a firewall, i.e.
any packets which are not explicitly permitted should not be
accepted.</rationale>
            <ident system="http://cce.mitre.org">CCE-27186-6</ident>
            <check system="ocil-transitional">
              <check-export export-name="the default policy for the FORWARD chain is not set to DROP" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Run the following command to ensure the default <xhtml:code>FORWARD</xhtml:code> policy is <xhtml:code>DROP</xhtml:code>:
<xhtml:pre>grep ":FORWARD" /etc/sysconfig/iptables</xhtml:pre>
The output should be similar to the following:
<xhtml:pre># grep ":FORWARD" /etc/sysconfig/iptables
:FORWARD DROP [0:0</xhtml:pre></check-content>
            </check>
          </Rule>
          <Group id="iptables_icmp_disabled">
            <title xml:lang="en-US">Restrict ICMP Message Types</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">In <xhtml:code>/etc/sysconfig/iptables</xhtml:code>, the accepted ICMP messages
types can be restricted. To accept only ICMP echo reply, destination
unreachable, and time exceeded messages, remove the line:<xhtml:br/>
<xhtml:pre>-A INPUT -p icmp --icmp-type any -j ACCEPT</xhtml:pre>
and insert the lines:
<xhtml:pre>-A INPUT -p icmp --icmp-type echo-reply -j ACCEPT
-A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT
-A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT</xhtml:pre>
To allow the system to respond to pings, also insert the following line:
<xhtml:pre>-A INPUT -p icmp --icmp-type echo-request -j ACCEPT</xhtml:pre>
Ping responses can also be limited to certain networks or hosts by using the -s
option in the previous rule.  Because IPv6 depends so heavily on ICMPv6, it is
preferable to deny the ICMPv6 packets you know you don't need (e.g. ping
requests) in <xhtml:code>/etc/sysconfig/ip6tables</xhtml:code>, while letting everything else
through:
<xhtml:pre>-A INPUT -p icmpv6 --icmpv6-type echo-request -j DROP</xhtml:pre>
If you are going to statically configure the machine's address, it should
ignore Router Advertisements which could add another IPv6 address to the
interface or alter important network settings:
<xhtml:pre>-A INPUT -p icmpv6 --icmpv6-type router-advertisement -j DROP</xhtml:pre>
Restricting ICMPv6 message types in <xhtml:code>/etc/sysconfig/ip6tables</xhtml:code> is not
recommended because the operation of IPv6 depends heavily on ICMPv6. Thus, great
care must be taken if any other ICMPv6 types are blocked.
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Restricting ICMP messages may make a system slightly less
discoverable to an unsophisticated attacker but is not appropriate for many
general-purpose use cases and can also make troubleshooting more difficult.
</rationale>
          </Group>
          <Group id="iptables_log_and_drop_suspicious">
            <title xml:lang="en-US">Log and Drop Packets with Suspicious Source Addresses</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Packets with non-routable source addresses should be rejected, as they may indicate spoofing. Because the
modified policy will reject non-matching packets, you only need to add these rules if you are interested in also
logging these spoofing or suspicious attempts before they are dropped. If you do choose to log various suspicious
traffic, add identical rules with a target of DROP after each LOG.
To log and then drop these IPv4 packets, insert the following rules in <xhtml:code>/etc/sysconfig/iptables</xhtml:code> (excepting
any that are intentionally used):
<xhtml:pre>-A INPUT -s 10.0.0.0/8 -j LOG --log-prefix "IP DROP SPOOF A: "
-A INPUT -s 172.16.0.0/12 -j LOG --log-prefix "IP DROP SPOOF B: "
-A INPUT -s 192.168.0.0/16 -j LOG --log-prefix "IP DROP SPOOF C: "
-A INPUT -s 224.0.0.0/4 -j LOG --log-prefix "IP DROP MULTICAST D: "
-A INPUT -s 240.0.0.0/5 -j LOG --log-prefix "IP DROP SPOOF E: "
-A INPUT -d 127.0.0.0/8 -j LOG --log-prefix "IP DROP LOOPBACK: "</xhtml:pre>
Similarly, you might wish to log packets containing some IPv6 reserved addresses if they are not expected
on your network:
<xhtml:pre>-A INPUT -i eth0 -s ::1 -j LOG --log-prefix "IPv6 DROP LOOPBACK: "
-A INPUT -s 2002:E000::/20 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:7F00::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:0000::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:FF00::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:0A00::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:AC10::/28 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:C0A8::/32 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "</xhtml:pre>
If you are not expecting to see site-local multicast or auto-tunneled traffic, you can log those:
<xhtml:pre>-A INPUT -s FF05::/16 -j LOG --log-prefix "IPv6 SITE-LOCAL MULTICAST: "
-A INPUT -s ::0.0.0.0/96 -j LOG --log-prefix "IPv4 COMPATIBLE IPv6 ADDR: "</xhtml:pre>
If you wish to block multicasts to all link-local nodes (e.g. if you are not using router auto-configuration and
do not plan to have any services that multicast to the entire local network), you can block the link-local
all-nodes multicast address (before accepting incoming ICMPv6):
<xhtml:pre>-A INPUT -d FF02::1 -j LOG --log-prefix "Link-local All-Nodes Multicast: "</xhtml:pre>
However, if you're going to allow IPv4 compatible IPv6 addresses (of the form ::0.0.0.0/96), you should
then consider logging the non-routable IPv4-compatible addresses:
<xhtml:pre>-A INPUT -s ::0.0.0.0/104 -j LOG --log-prefix "IP NON-ROUTABLE ADDR: "
-A INPUT -s ::127.0.0.0/104 -j LOG --log-prefix "IP DROP LOOPBACK: "
-A INPUT -s ::224.0.0.0.0/100 -j LOG --log-prefix "IP DROP MULTICAST D: "
-A INPUT -s ::255.0.0.0/104 -j LOG --log-prefix "IP BROADCAST: "</xhtml:pre>
If you are not expecting to see any IPv4 (or IPv4-compatible) traffic on your network, consider logging it before it gets dropped:
<xhtml:pre>-A INPUT -s ::FFFF:0.0.0.0/96 -j LOG --log-prefix "IPv4 MAPPED IPv6 ADDR: "
-A INPUT -s 2002::/16 -j LOG --log-prefix "IPv6 6to4 ADDR: "</xhtml:pre>
The following rule will log all traffic originating from a site-local address, which is deprecated address space:
<xhtml:pre>-A INPUT -s FEC0::/10 -j LOG --log-prefix "SITE-LOCAL ADDRESS TRAFFIC: "</xhtml:pre>
</description>
          </Group>
        </Group>
      </Group>
      <Group id="network_ssl">
        <title xml:lang="en-US">Secure Sockets Layer Support</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The Secure Sockets Layer (SSL) protocol provides encrypted and authenticated
network communications, and many network services include support for it. Using
SSL is recommended, especially to avoid any plaintext transmission of sensitive
data, even over a local network. The SSL implementation included with the
system is called OpenSSL. Recent implementations of SSL may also be referred to
as Transport Layer Security (TLS).  SSL uses public key cryptography to provide
authentication and encryption.
<xhtml:br/><xhtml:br/>
Public key cryptography involves two keys, one called the public key and the
other called the private key. These keys are mathematically related such that
data encrypted with one key can only be decrypted by the other, and vice versa.
As their names suggest, public keys can be distributed to anyone while a
private key must remain known only to its owner.  SSL uses certificates, which
are files that hold cryptographic data: a public key, and a signature of that
public key. In SSL authentication, a server presents a client with its
certificate as a means of demonstrating that it is who it claims it is.

<xhtml:br/><xhtml:br/>
If everything goes correctly, the client can verify the server's certificate by
determining that the signature inside the certificate could only have been
generated by a third party whom the client trusts.  This third party is called
a Certificate Authority (CA). Each client system should also have certificates
from trusted CAs, and the client uses these CA certificates to verify the
authenticity of the server's certificate. After authenticating a server using
its certificate and a CA certificate, SSL provides encryption by using the
server certificate to securely negotiate a shared secret key.

<xhtml:br/><xhtml:br/>
If your server must communicate using SSL with systems that might not be able
to securely accept a new CA certificate prior to any SSL communication, then
paying an established CA (whose certificates your clients already have) to sign
your server certificates is recommended. The steps for doing this vary by
vendor. Once the signed certificates have been obtained, configuration of the
services is the same whether they were purchased from a vendor or signed by
your own CA.

<xhtml:br/><xhtml:br/>
For setting up an internal network and encrypting local traffic, creating your
own CA to sign SSL certificates can be appropriate. The major steps in this
process are:

<xhtml:ol><xhtml:li>Create a CA to sign certificates</xhtml:li><xhtml:li>Create SSL certificates for servers using that CA</xhtml:li><xhtml:li>Enable client support by distributing the CA's certificate</xhtml:li></xhtml:ol>
</description>
        <Group id="network_ssl_create_ca">
          <title xml:lang="en-US">Create a CA to Sign Certificates</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The following instructions apply to OpenSSL since it is included
with the system, but creating a CA is possible with any standards-compliant SSL
toolkit. The security of certificates depends on the security of the CA that
signed them, so performing these steps on a secure machine is critical. The
system used as a CA should be physically secure and not connected to any
network. It should receive any certificate signing requests (CSRs) via
removable media and output certificates onto removable media.
<xhtml:br/><xhtml:br/>
The script <xhtml:code>/etc/pki/tls/misc/CA</xhtml:code> is included to assist in the process
of setting up a CA. This script uses many settings in
<xhtml:code>/etc/pki/tls/openssl.cnf</xhtml:code>. The settings in this file can be changed to
suit your needs and allow easier selection of default settings, particularly in
the <xhtml:code>[req distinguished name]</xhtml:code> section.
<xhtml:br/><xhtml:br/>
To create the CA:
<xhtml:pre># cd /etc/pki/tls/misc
# ./CA -newca</xhtml:pre>
When prompted, press enter to create a new CA key with the default name <xhtml:code>cakey.pem</xhtml:code>.
When prompted, enter a password that will protect the private key, then enter the same password
again to verify it.
<xhtml:br/><xhtml:br/>
At the prompts, fill out as much of the CA information as is relevant for your site. You must specify
a common name, or generation of the CA certificate will fail.
<xhtml:br/><xhtml:br/>
Next, you will be prompted for the password, so that the script can re-open the private key in order
to write the certificate.
<xhtml:br/><xhtml:br/>
This step performs the following actions:
<xhtml:ul><xhtml:li>creates the directory <xhtml:code>/etc/pki/CA</xhtml:code> (by default), which contains files necessary for the operation of a
certificate authority. These are:
<xhtml:ul><xhtml:li><xhtml:code>serial</xhtml:code>, which contains the current serial number for certificates signed by the CA</xhtml:li><xhtml:li><xhtml:code>index.txt</xhtml:code>, which is a text database file that contains information about certificates signed</xhtml:li><xhtml:li><xhtml:code>crl</xhtml:code>, which is a directory for holding revoked certificates</xhtml:li><xhtml:li><xhtml:code>private</xhtml:code>, a directory which stores the CA's private key</xhtml:li></xhtml:ul></xhtml:li><xhtml:li>creates a public-private key pair for the CA in the file <xhtml:code>/etc/pki/CA/private/cakey.pem</xhtml:code>. The private key
must be kept private in order to ensure the security of the certificates the CA will later sign.</xhtml:li><xhtml:li>signs the public key (using the corresponding private key, in a process called self-signing) to create the CA
certificate, which is then stored in <xhtml:code>/etc/pki/CA/cacert.pem</xhtml:code>.</xhtml:li></xhtml:ul>
When the CA later signs a server certificate using its private key, it means that it is vouching for the authenticity
of that server. A client can then use the CA's certificate (which contains its public key) to verify the authenticity
of the server certificate.
</description>
        </Group>
        <Group id="network_ssl_create_ssl_certs">
          <title xml:lang="en-US">Create SSL Certificates for Servers</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Creating an SSL certificate for a server involves the following steps:
<xhtml:ol><xhtml:li>A public-private key pair for the server must be generated.</xhtml:li><xhtml:li>A certificate signing request (CSR) must be created from the key pair.</xhtml:li><xhtml:li>The CSR must be signed by a certificate authority (CA) to create the server certificate. If a CA has been
set up as described earlier, it can sign the CSR.</xhtml:li><xhtml:li>The server certificate and keys must be installed on the server.</xhtml:li></xhtml:ol>
Instructions on how to generate and sign SSL certificates are provided for the
following common services can be found in the applicable sections of this
guide:
<xhtml:ul><xhtml:li><a href="#item-postfix_configure_ssl_certs">Postfix</a></xhtml:li><xhtml:li>Dovecot</xhtml:li><xhtml:li>Apache</xhtml:li></xhtml:ul>
</description>
        </Group>
        <Group id="network_ssl_remove_certs">
          <title xml:lang="en-US">Remove Certificate Authorities, if Appropriate</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Survey the certificate authorities trusted by Firefox,
Thunderbird, Evolution, or other network clients. The list of certificate
authorities for each program can be found via GUI, as described in the previous
sections.  Remove the certificate authorities which are not appropriate for
your network connectivity needs.  This may only make sense for some
environments, and may create operational problems for a general purpose
Internet-connected system.
</description>
        </Group>
      </Group>
      <Group id="network-uncommon">
        <title xml:lang="en-US">Uncommon Network Protocols</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The system includes support for several network
protocols which are not commonly used. Although security vulnerabilities 
in kernel networking code are not frequently
discovered, the consequences can be dramatic. Ensuring uncommon
network protocols are disabled reduces the system's risk to attacks
targeted at its implementation of those protocols.</description>
        <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Although these protocols are not commonly used, avoid disruption
in your network environment by ensuring they are not needed
prior to disabling them.
</warning>
        <Rule id="disable_protocol_dccp" selected="false" severity="medium">
          <title xml:lang="en-US">Disable DCCP Support</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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 <xhtml:code>dccp</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install dccp /bin/false</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">382</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Disabling DCCP protects
the system against exploitation of any flaws in its implementation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26448-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:480" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
If the system is configured to prevent the loading of the
<xhtml:code>dccp</xhtml:code> kernel module,
it will contain lines inside any file in <xhtml:code>/etc/modprobe.d</xhtml:code> or the deprecated<xhtml:code>/etc/modprobe.conf</xhtml:code>.
These lines instruct the module loading system to run another program (such as
<xhtml:code>/bin/false</xhtml:code>) upon a module <xhtml:code>install</xhtml:code> event.
Run the following command to search for such lines in all files in <xhtml:code>/etc/modprobe.d</xhtml:code>
and the deprecated <xhtml:code>/etc/modprobe.conf</xhtml:code>:
<xhtml:pre xml:space="preserve">$ grep -r dccp /etc/modprobe.conf /etc/modprobe.d</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="disable_protocol_sctp" selected="false" severity="medium">
          <title xml:lang="en-US">Disable SCTP Support</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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 <xhtml:code>sctp</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install sctp /bin/false</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">382</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Disabling SCTP protects
the system against exploitation of any flaws in its implementation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26410-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1045" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
If the system is configured to prevent the loading of the
<xhtml:code>sctp</xhtml:code> kernel module,
it will contain lines inside any file in <xhtml:code>/etc/modprobe.d</xhtml:code> or the deprecated<xhtml:code>/etc/modprobe.conf</xhtml:code>.
These lines instruct the module loading system to run another program (such as
<xhtml:code>/bin/false</xhtml:code>) upon a module <xhtml:code>install</xhtml:code> event.
Run the following command to search for such lines in all files in <xhtml:code>/etc/modprobe.d</xhtml:code>
and the deprecated <xhtml:code>/etc/modprobe.conf</xhtml:code>:
<xhtml:pre xml:space="preserve">$ grep -r sctp /etc/modprobe.conf /etc/modprobe.d</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="disable_protocol_rds" selected="false" severity="low">
          <title xml:lang="en-US">Disable RDS Support</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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 <xhtml:code>rds</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install rds /bin/false</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">382</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Disabling RDS protects
the system against exploitation of any flaws in its implementation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26239-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:142" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
If the system is configured to prevent the loading of the
<xhtml:code>rds</xhtml:code> kernel module,
it will contain lines inside any file in <xhtml:code>/etc/modprobe.d</xhtml:code> or the deprecated<xhtml:code>/etc/modprobe.conf</xhtml:code>.
These lines instruct the module loading system to run another program (such as
<xhtml:code>/bin/false</xhtml:code>) upon a module <xhtml:code>install</xhtml:code> event.
Run the following command to search for such lines in all files in <xhtml:code>/etc/modprobe.d</xhtml:code>
and the deprecated <xhtml:code>/etc/modprobe.conf</xhtml:code>:
<xhtml:pre xml:space="preserve">$ grep -r rds /etc/modprobe.conf /etc/modprobe.d</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="disable_protocol_tipc" selected="false" severity="medium">
          <title xml:lang="en-US">Disable TIPC Support</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The Transparent Inter-Process Communication (TIPC) protocol
is designed to provide communications between nodes in a
cluster.

To configure the system to prevent the <xhtml:code>tipc</xhtml:code>
kernel module from being loaded, add the following line to a file in the directory <xhtml:code>/etc/modprobe.d</xhtml:code>:
<xhtml:pre xml:space="preserve">install tipc /bin/false</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">382</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Disabling TIPC protects
the system against exploitation of any flaws in its implementation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26696-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:994" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
If the system is configured to prevent the loading of the
<xhtml:code>tipc</xhtml:code> kernel module,
it will contain lines inside any file in <xhtml:code>/etc/modprobe.d</xhtml:code> or the deprecated<xhtml:code>/etc/modprobe.conf</xhtml:code>.
These lines instruct the module loading system to run another program (such as
<xhtml:code>/bin/false</xhtml:code>) upon a module <xhtml:code>install</xhtml:code> event.
Run the following command to search for such lines in all files in <xhtml:code>/etc/modprobe.d</xhtml:code>
and the deprecated <xhtml:code>/etc/modprobe.conf</xhtml:code>:
<xhtml:pre xml:space="preserve">$ grep -r tipc /etc/modprobe.conf /etc/modprobe.d</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="network-ipsec">
        <title xml:lang="en-US">IPSec Support</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Support for Internet Protocol Security (IPsec)
is provided in RHEL 6 with Openswan.
</description>
        <Rule id="install_openswan" selected="false" severity="low">
          <title xml:lang="en-US">Install openswan Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Openswan package provides an implementation of IPsec
and IKE, which permits the creation of secure tunnels over
untrusted networks. 
    The <xhtml:code>openswan</xhtml:code> package can be installed with the following command:
    <xhtml:pre># yum install openswan</xhtml:pre> 
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">MA-4</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">SC-9</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1130</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1131</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27626-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:202" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is not installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>openswan</xhtml:code> package is installed:
    <xhtml:pre># rpm -q openswan</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
    </Group>
    <Group id="logging">
      <title xml:lang="en-US">Configure Syslog</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The syslog service has been the default Unix logging mechanism for
many years. It has a number of downsides, including inconsistent log format,
lack of authentication for received messages, and lack of authentication,
encryption, or reliable transport for messages sent over a network. However,
due to its long history, syslog is a de facto standard which is supported by
almost all Unix applications.
<xhtml:br/>
<xhtml:br/>
In RHEL 6, rsyslog has replaced ksyslogd as the
syslog daemon of choice, and it includes some additional security features
such as reliable, connection-oriented (i.e. TCP) transmission of logs, the
option to log to database formats, and the encryption of log data en route to
a central logging server.
This section discusses how to configure rsyslog for
best effect, and how to use tools provided with the system to maintain and
monitor logs.</description>
      <Rule id="package_rsyslog_installed" selected="false" severity="medium">
        <title xml:lang="en-US">Ensure rsyslog is Installed</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Rsyslog is installed by default. 

    The <xhtml:code>rsyslog</xhtml:code> package can be installed with the following command:
    <xhtml:pre># yum install rsyslog</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9(2)</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1311</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1312</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The rsyslog package provides the rsyslog daemon, which provides
system logging services.
</rationale>
        <ident system="http://cce.mitre.org">CCE-26809-4</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:711" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the package is not installed" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    Run the following command to determine if the <xhtml:code>rsyslog</xhtml:code> package is installed:
    <xhtml:pre># rpm -q rsyslog</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_rsyslog_enabled" selected="false" severity="medium">
        <title xml:lang="en-US">Enable rsyslog Service</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rsyslog</xhtml:code> service provides syslog-style logging by default on RHEL 6.

    The <xhtml:code>rsyslog</xhtml:code> service can be enabled with the following command:
    <xhtml:pre># chkconfig --level 2345 rsyslog on</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-12</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1557</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1312</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1311</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rsyslog</xhtml:code> service must be running in order to provide
logging services, which are essential to system administration.
</rationale>
        <ident system="http://cce.mitre.org">CCE-26807-8</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:710" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is not running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    Run the following command to determine the current status of the
<xhtml:code>rsyslog</xhtml:code> service:
  <xhtml:pre># service rsyslog status</xhtml:pre>
    If the service is enabled, it should return the following: <xhtml:pre>rsyslog is running...</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Group id="ensure_rsyslog_log_file_configuration">
        <title xml:lang="en-US">Ensure Proper Configuration of Log Files</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The file <xhtml:code>/etc/rsyslog.conf</xhtml:code> controls where log message are written.
These are controlled by lines called <xhtml:i>rules</xhtml:i>, which consist of a
<xhtml:i>selector</xhtml:i> and an <xhtml:i>action</xhtml:i>.
These rules are often customized depending on the role of the system, the
requirements of the environment, and whatever may enable
the administrator to most effectively make use of log data.
The default rules in RHEL 6 are:
<xhtml:pre>*.info;mail.none;authpriv.none;cron.none                /var/log/messages
authpriv.*                                              /var/log/secure
mail.*                                                  -/var/log/maillog
cron.*                                                  /var/log/cron
*.emerg                                                 *
uucp,news.crit                                          /var/log/spooler
local7.*                                                /var/log/boot.log</xhtml:pre>
See the man page <xhtml:code>rsyslog.conf(5)</xhtml:code> for more information.
<xhtml:i>Note that the <xhtml:code>rsyslog</xhtml:code> daemon can be configured to use a timestamp format that
some log processing programs may not understand. If this occurs, 
edit the file <xhtml:code>/etc/rsyslog.conf</xhtml:code> and add or edit the following line:</xhtml:i>
<xhtml:pre>$ ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat</xhtml:pre>
</description>
        <Value id="file_owner_logfiles_value" operator="equals" type="string">
          <title xml:lang="en-US">User who owns log files</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Specify user owner of all logfiles specified in
<xhtml:code>/etc/rsyslog.conf</xhtml:code>.</description>
          <value selector="root">root</value>
        </Value>
        <Value id="file_groupowner_logfiles_value" operator="equals" type="string">
          <title xml:lang="en-US">group who owns log files</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Specify group owner of all logfiles specified in
<xhtml:code>/etc/rsyslog.conf.</xhtml:code></description>
          <value selector="root">root</value>
        </Value>
        <Rule id="userowner_rsyslog_files" selected="false" severity="medium">
          <title xml:lang="en-US">Ensure Log Files Are Owned By Appropriate User</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The owner of all log files written by
<xhtml:code>rsyslog</xhtml:code> should be root.
These log files are determined by the second part of each Rule line in
<xhtml:code>/etc/rsyslog.conf</xhtml:code> and typically all appear in <xhtml:code>/var/log</xhtml:code>. 
For each log file <xhtml:i>LOGFILE</xhtml:i> referenced in <xhtml:code>/etc/rsyslog.conf</xhtml:code>,
run the following command to inspect the file's owner:
<xhtml:pre>$ ls -l <xhtml:i>LOGFILE</xhtml:i></xhtml:pre>
If the owner is not <xhtml:code>root</xhtml:code>, run the following command to
correct this:
<xhtml:pre># chown root <xhtml:i>LOGFILE</xhtml:i></xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1314</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26812-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:851" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the owner is not root" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
The owner of all log files written by <xhtml:code>rsyslog</xhtml:code> should be root.
These log files are determined by the second part of each Rule line in
<xhtml:code>/etc/rsyslog.conf</xhtml:code> and typically all appear in <xhtml:code>/var/log</xhtml:code>. 
To see the owner of a given log file, run the following command:
<xhtml:pre>$ ls -l <xhtml:i>LOGFILE</xhtml:i></xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="groupowner_rsyslog_files" selected="false" severity="medium">
          <title xml:lang="en-US">Ensure Log Files Are Owned By Appropriate Group</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The group-owner of all log files written by
<xhtml:code>rsyslog</xhtml:code> should be root.
These log files are determined by the second part of each Rule line in
<xhtml:code>/etc/rsyslog.conf</xhtml:code> and typically all appear in <xhtml:code>/var/log</xhtml:code>. 
For each log file <xhtml:i>LOGFILE</xhtml:i> referenced in <xhtml:code>/etc/rsyslog.conf</xhtml:code>,
run the following command to inspect the file's group owner:
<xhtml:pre>$ ls -l <xhtml:i>LOGFILE</xhtml:i></xhtml:pre>
If the owner is not <xhtml:code>root</xhtml:code>, run the following command to
correct this:
<xhtml:pre># chgrp root <xhtml:i>LOGFILE</xhtml:i></xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1314</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26821-9</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:136" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the group-owner is not root" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
The group-owner of all log files written by <xhtml:code>rsyslog</xhtml:code> should be root.
These log files are determined by the second part of each Rule line in
<xhtml:code>/etc/rsyslog.conf</xhtml:code> and typically all appear in <xhtml:code>/var/log</xhtml:code>. 
To see the group-owner of a given log file, run the following command:
<xhtml:pre>$ ls -l <xhtml:i>LOGFILE</xhtml:i></xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="rsyslog_file_permissions" selected="false" severity="medium">
          <title xml:lang="en-US">Ensure System Log Files Have Correct Permissions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The file permissions for all log files written by
<xhtml:code>rsyslog</xhtml:code> should be set to 600, or more restrictive.
These log files are determined by the second part of each Rule line in
<xhtml:code>/etc/rsyslog.conf</xhtml:code> and typically all appear in <xhtml:code>/var/log</xhtml:code>. 
For each log file <xhtml:i>LOGFILE</xhtml:i> referenced in <xhtml:code>/etc/rsyslog.conf</xhtml:code>,
run the following command to inspect the file's permissions:
<xhtml:pre>$ ls -l <xhtml:i>LOGFILE</xhtml:i></xhtml:pre>
If the permissions are not 600 or more restrictive,
run the following command to correct this:
<xhtml:pre># chmod 0600 <xhtml:i>LOGFILE</xhtml:i></xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
          <reference href="http://iase.disa.mil/cci/index.html">1314</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27190-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:161" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the permissions are not correct" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
The file permissions for all log files written by <xhtml:code>rsyslog</xhtml:code> 
should be set to 600, or more restrictive.
These log files are determined by the second part of each Rule line in
<xhtml:code>/etc/rsyslog.conf</xhtml:code> and typically all appear in <xhtml:code>/var/log</xhtml:code>.
To see the permissions of a given log file, run the following command:
<xhtml:pre>$ ls -l <xhtml:i>LOGFILE</xhtml:i></xhtml:pre>
The permissions should be 600, or more restrictive.
</check-content>
          </check>
        </Rule>
      </Group>
      <Group id="rsyslog_sending_messages">
        <title xml:lang="en-US">Rsyslog Logs Sent To Remote Host</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If system logs are to be useful in detecting malicious
activities, it is necessary to send logs to a remote server. An
intruder who has compromised the root account on a machine may
delete the log entries which indicate that the system was attacked
before they are seen by an administrator.
<xhtml:br/><xhtml:br/>
However, it is recommended that logs be stored on the local
host in addition to being sent to the loghost, especially if
<xhtml:code>rsyslog</xhtml:code> has been configured to use the UDP protocol to send
messages over a network. UDP does not guarantee reliable delivery,
and moderately busy sites will lose log messages occasionally,
especially in periods of high traffic which may be the result of an
attack. In addition, remote <xhtml:code>rsyslog</xhtml:code> messages are not
authenticated in any way by default, so it is easy for an attacker to
introduce spurious messages to the central log server. Also, some
problems cause loss of network connectivity, which will prevent the
sending of messages to the central server. For all of these reasons, it is
better to store log messages both centrally and on each host, so
that they can be correlated if necessary.</description>
        <Rule id="rsyslog_send_messages_to_logserver" selected="false" severity="low">
          <title xml:lang="en-US">Ensure Logs Sent To Remote Host</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure rsyslog to send logs to a remote log server,
open <xhtml:code>/etc/rsyslog.conf</xhtml:code> 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 <xhtml:code><xhtml:i>loghost.example.com</xhtml:i></xhtml:code> 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.
<xhtml:br/>
To use UDP for log message delivery:
<xhtml:pre>*.* @<xhtml:i>loghost.example.com</xhtml:i></xhtml:pre>
<xhtml:br/>
To use TCP for log message delivery:
<xhtml:pre>*.* @@<xhtml:i>loghost.example.com</xhtml:i></xhtml:pre>
<xhtml:br/>
To use RELP for log message delivery:
<xhtml:pre>*.* :omrelp:<xhtml:i>loghost.example.com</xhtml:i></xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-3(2)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1348</reference>
          <reference href="http://iase.disa.mil/cci/index.html">136</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26801-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:324" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="none of these are present" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure logs are sent to a remote host, examine the file
<xhtml:code>/etc/rsyslog.conf</xhtml:code>.
If using UDP, a line similar to the following should be present:
<xhtml:pre> *.* @<xhtml:i>loghost.example.com</xhtml:i></xhtml:pre>
If using TCP, a line similar to the following should be present:
<xhtml:pre> *.* @@<xhtml:i>loghost.example.com</xhtml:i></xhtml:pre>
If using RELP, a line similar to the following should be present:
<xhtml:pre> *.* :omrelp:<xhtml:i>loghost.example.com</xhtml:i></xhtml:pre>
</check-content>
          </check>
        </Rule>
      </Group>
      <Group id="rsyslog_accepting_remote_messages">
        <title xml:lang="en-US">Configure rsyslogd to Accept Remote Messages If Acting as a Log Server</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
By default, <xhtml:code>rsyslog</xhtml:code> does not listen over the network
for log messages. If needed, modules can be enabled to allow
the rsyslog daemon to receive messages from other systems and for the system
thus to act as a log server.
If the machine is not a log server, then lines concerning these modules
should remain commented out.
<xhtml:br/><xhtml:br/>
</description>
        <Rule id="rsyslog_accept_remote_messages_none" selected="false" severity="low">
          <title xml:lang="en-US">Ensure rsyslog Does Not Accept Remote Messages Unless Acting As Log Server</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rsyslog</xhtml:code> 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
<xhtml:i>not</xhtml:i> found in <xhtml:code>/etc/rsyslog.conf</xhtml:code>:
<xhtml:pre>$ModLoad imtcp.so
$InputTCPServerRun <xhtml:i>port</xhtml:i>
$ModLoad imudp.so
$InputUDPServerRun <xhtml:i>port</xhtml:i>
$ModLoad imrelp.so
$InputRELPServerRun <xhtml:i>port</xhtml:i></xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9(2)</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26803-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:761" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="rsyslog_accept_remote_messages_tcp" selected="false" severity="low">
          <title xml:lang="en-US">Enable rsyslog to Accept Messages via TCP, if Acting As Log Server</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rsyslog</xhtml:code> 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
<xhtml:code>/etc/rsyslog.conf</xhtml:code> to enable reception of messages over TCP:
<xhtml:pre>$ModLoad imtcp.so
$InputTCPServerRun 514</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If the system needs to act as a log server, this ensures that it can receive
messages over a reliable TCP connection.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27235-1</ident>
        </Rule>
        <Rule id="rsyslog_accept_remote_messages_udp" selected="false" severity="low">
          <title xml:lang="en-US">Enable rsyslog to Accept Messages via UDP, if Acting As Log Server</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rsyslog</xhtml:code> 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
<xhtml:code>/etc/rsyslog.conf</xhtml:code> to enable reception of messages over UDP:
<xhtml:pre>$ModLoad imudp.so
$InputUDPServerRun 514</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27236-9</ident>
        </Rule>
      </Group>
      <Group id="log_rotation">
        <title xml:lang="en-US">Ensure All Logs are Rotated by logrotate</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Edit the file <xhtml:code>/etc/logrotate.d/syslog</xhtml:code>. Find the first
line, which should look like this (wrapped for clarity):
<xhtml:pre>/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler \
  /var/log/boot.log /var/log/cron {</xhtml:pre>
Edit this line so that it contains a one-space-separated
listing of each log file referenced in <xhtml:code>/etc/rsyslog.conf</xhtml:code>.
<xhtml:br/><xhtml:br/>
All logs in use on a system must be rotated regularly, or the
log files will consume disk space over time, eventually interfering
with system operation. The file <xhtml:code>/etc/logrotate.d/syslog</xhtml:code> is the
configuration file used by the <xhtml:code>logrotate</xhtml:code> program to maintain all
log files written by <xhtml:code>syslog</xhtml:code>. By default, it rotates logs weekly and
stores four archival copies of each log. These settings can be
modified by editing <xhtml:code>/etc/logrotate.conf</xhtml:code>, but the defaults are
sufficient for purposes of this guide.
<xhtml:br/><xhtml:br/>
Note that <xhtml:code>logrotate</xhtml:code> is run nightly by the cron job
<xhtml:code>/etc/cron.daily/logrotate</xhtml:code>. If particularly active logs need to be
rotated more often than once a day, some other mechanism must be
used.</description>
        <Rule id="ensure_logrotate_activated" selected="false" severity="low">
          <title xml:lang="en-US">Ensure Logrotate Runs Periodically</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>logrotate</xhtml:code> service should be
enabled.</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-27014-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:928" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is not running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine the current status of the
<xhtml:code>logrotate</xhtml:code> service:
  <xhtml:pre># service logrotate status</xhtml:pre>
    If the service is enabled, it should return the following: <xhtml:pre>logrotate is running...</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="configure_logwatch_on_logserver">
        <title xml:lang="en-US"> Configure Logwatch on the Central Log Server</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 
Is this machine the central log server? If so, edit the file <xhtml:code>/etc/logwatch/conf/logwatch.conf</xhtml:code> as shown below.
</description>
        <Rule id="configure_logwatch_hostlimit" selected="false" severity="low">
          <title xml:lang="en-US">Configure Logwatch HostLimit Line</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> On a central logserver, you want Logwatch to summarize all syslog entries, including those which did not originate 
on the logserver itself. The <xhtml:code>HostLimit</xhtml:code> setting tells Logwatch to report on all hosts, not just the one on which it 
is running. 
<xhtml:pre> HostLimit = no </xhtml:pre> </description>
          <ident system="http://cce.mitre.org">CCE-27197-3</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:914" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="configure_logwatch_splithosts" selected="false" severity="low">
          <title xml:lang="en-US">Configure Logwatch SplitHosts Line</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If <xhtml:code>SplitHosts</xhtml:code> 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
<xhtml:pre> SplitHosts = yes </xhtml:pre> </description>
          <ident system="http://cce.mitre.org">CCE-27069-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:571" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
      </Group>
      <Rule id="disable_logwatch_for_logserver" selected="false" severity="low">
        <title xml:lang="en-US"> Disable Logwatch on Clients if a Logserver Exists</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 
Does your site have a central logserver which has been configured to report on logs received from all systems? 
If so:
<xhtml:pre> 
# rm /etc/cron.daily/0logwatch 
</xhtml:pre>
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.</description>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:2164" href="ssg-rhel6-oval.xml"/>
        </check>
      </Rule>
    </Group>
    <Group id="auditing">
      <title xml:lang="en-US">System Accounting with auditd</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The audit service provides substantial capabilities
for recording system activities. By default, the service audits about
SELinux AVC denials and certain types of security-relevant events
such as system logins, account modifications, and authentication
events performed by programs such as sudo.
Under its default configuration, <xhtml:code>auditd</xhtml:code> has modest disk space
requirements, and should not noticeably impact system performance.
<xhtml:br/><xhtml:br/>
Government networks often have substantial auditing
requirements and <xhtml:code>auditd</xhtml:code> can be configured to meet these
requirements.
Examining some example audit records demonstrates how the Linux audit system
satisfies common requirements.  
The following example from Fedora Documentation available at 
<xhtml:code>http://docs.fedoraproject.org/en-US/Fedora/13/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Fixing_Problems-Raw_Audit_Messages.html</xhtml:code>
shows the substantial amount of information captured in a
two typical "raw" audit messages, followed by a breakdown of the most important
fields. In this example the message is SELinux-related and reports an AVC
denial (and the associated system call) that occurred when the Apache HTTP
Server attempted to access the <xhtml:code>/var/www/html/file1</xhtml:code> file (labeled with
the <xhtml:code>samba_share_t</xhtml:code> type):
<xhtml:pre>type=AVC msg=audit(1226874073.147:96): avc:  denied  { getattr } for pid=2465 comm="httpd"
path="/var/www/html/file1" dev=dm-0 ino=284133 scontext=unconfined_u:system_r:httpd_t:s0 
tcontext=unconfined_u:object_r:samba_share_t:s0 tclass=file

type=SYSCALL msg=audit(1226874073.147:96): arch=40000003 syscall=196 success=no exit=-13 
a0=b98df198 a1=bfec85dc a2=54dff4 a3=2008171 items=0 ppid=2463 pid=2465 auid=502 uid=48
gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=6 comm="httpd"
exe="/usr/sbin/httpd" subj=unconfined_u:system_r:httpd_t:s0 key=(null)
</xhtml:pre>
<xhtml:ul><xhtml:li><xhtml:code>msg=audit(1226874073.147:96)</xhtml:code><xhtml:ul><xhtml:li>The number in parentheses is the unformatted time stamp (Epoch time)
for the event, which can be converted to standard time by using the
<xhtml:code>date</xhtml:code> command.
</xhtml:li></xhtml:ul></xhtml:li><xhtml:li><xhtml:code>{ getattr }</xhtml:code><xhtml:ul><xhtml:li>The item in braces indicates the permission that was denied. <xhtml:code>getattr</xhtml:code>
indicates the source process was trying to read the target file's status information.
This occurs before reading files. This action is denied due to the file being
accessed having the wrong label. Commonly seen permissions include <xhtml:code>getattr</xhtml:code>,
<xhtml:code>read</xhtml:code>, and <xhtml:code>write</xhtml:code>.</xhtml:li></xhtml:ul></xhtml:li><xhtml:li><xhtml:code>comm="httpd"</xhtml:code><xhtml:ul><xhtml:li>The executable that launched the process. The full path of the executable is
found in the <xhtml:code>exe=</xhtml:code> section of the system call (<xhtml:code>SYSCALL</xhtml:code>) message,
which in this case, is <xhtml:code>exe="/usr/sbin/httpd"</xhtml:code>.
</xhtml:li></xhtml:ul></xhtml:li><xhtml:li><xhtml:code>path="/var/www/html/file1"</xhtml:code><xhtml:ul><xhtml:li>The path to the object (target) the process attempted to access.
</xhtml:li></xhtml:ul></xhtml:li><xhtml:li><xhtml:code>scontext="unconfined_u:system_r:httpd_t:s0"</xhtml:code><xhtml:ul><xhtml:li>The SELinux context of the process that attempted the denied action. In
this case, it is the SELinux context of the Apache HTTP Server, which is running
in the <xhtml:code>httpd_t</xhtml:code> domain.
</xhtml:li></xhtml:ul></xhtml:li><xhtml:li><xhtml:code>tcontext="unconfined_u:object_r:samba_share_t:s0"</xhtml:code><xhtml:ul><xhtml:li>The SELinux context of the object (target) the process attempted to access.
In this case, it is the SELinux context of <xhtml:code>file1</xhtml:code>. Note: the <xhtml:code>samba_share_t</xhtml:code>
type is not accessible to processes running in the <xhtml:code>httpd_t</xhtml:code> domain.</xhtml:li></xhtml:ul></xhtml:li><xhtml:li> From the system call (<xhtml:code>SYSCALL</xhtml:code>) message, two items are of interest:
<xhtml:ul><xhtml:li><xhtml:code>success=no</xhtml:code>: indicates whether the denial (AVC) was enforced or not.
<xhtml:code>success=no</xhtml:code> indicates the system call was not successful (SELinux denied
access). <xhtml:code>success=yes</xhtml:code> indicates the system call was successful - this can
be seen for permissive domains or unconfined domains, such as <xhtml:code>initrc_t</xhtml:code>
and <xhtml:code>kernel_t</xhtml:code>.
</xhtml:li><xhtml:li><xhtml:code>exe="/usr/sbin/httpd"</xhtml:code>: the full path to the executable that launched
the process, which in this case, is <xhtml:code>exe="/usr/sbin/httpd"</xhtml:code>.
</xhtml:li></xhtml:ul>
</xhtml:li></xhtml:ul>
</description>
      <Rule id="enable_auditd_service" selected="false" severity="medium">
        <title xml:lang="en-US">Enable auditd Service</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>auditd</xhtml:code> service is an essential userspace component of
the Linux Auditing System, as it is responsible for writing audit records to
disk.

    The <xhtml:code>auditd</xhtml:code> service can be enabled with the following command:
    <xhtml:pre># chkconfig --level 2345 auditd on</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(1)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-10</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-12(a)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-12(c)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
        <reference href="http://iase.disa.mil/cci/index.html">347</reference>
        <reference href="http://iase.disa.mil/cci/index.html">157</reference>
        <reference href="http://iase.disa.mil/cci/index.html">172</reference>
        <reference href="http://iase.disa.mil/cci/index.html">880</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1353</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1462</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1487</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1115</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1454</reference>
        <reference href="http://iase.disa.mil/cci/index.html">067</reference>
        <reference href="http://iase.disa.mil/cci/index.html">158</reference>
        <reference href="http://iase.disa.mil/cci/index.html">831</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1190</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1312</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1263</reference>
        <reference href="http://iase.disa.mil/cci/index.html">130</reference>
        <reference href="http://iase.disa.mil/cci/index.html">120</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1589</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Ensuring the <xhtml:code>auditd</xhtml:code> 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.
</rationale>
        <ident system="http://cce.mitre.org">CCE-27058-7</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:742" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is not running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    Run the following command to determine the current status of the
<xhtml:code>auditd</xhtml:code> service:
  <xhtml:pre># service auditd status</xhtml:pre>
    If the service is enabled, it should return the following: <xhtml:pre>auditd is running...</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="enable_auditd_bootloader" selected="false" severity="medium">
        <title xml:lang="en-US">Enable Auditing for Processes Which Start Prior to the Audit Daemon</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To ensure all processes can be audited, even
those which start prior to the audit daemon, add the argument
<xhtml:code>audit=1</xhtml:code> to the kernel line in <xhtml:code>/etc/grub.conf</xhtml:code>, in the manner below:
<xhtml:pre>kernel /vmlinuz-version ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet audit=1</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(1)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-10</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
        <reference href="http://iase.disa.mil/cci/index.html">1464</reference>
        <reference href="http://iase.disa.mil/cci/index.html">130</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Each process on the system carries an "auditable" flag which
indicates whether its activities can be audited. Although <xhtml:code>auditd</xhtml:code>
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.
</rationale>
        <ident system="http://cce.mitre.org">CCE-26785-6</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:421" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="auditing is not enabled at boot time" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect the kernel boot arguments (which follow the word <xhtml:code>kernel</xhtml:code>) in
<xhtml:code>/etc/grub.conf</xhtml:code>. If they include <xhtml:code>audit=1</xhtml:code>, then
auditing is enabled at boot time.
</check-content>
        </check>
      </Rule>
      <Group id="configure_auditd_data_retention">
        <title xml:lang="en-US">Configure auditd Data Retention</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The audit system writes data to <xhtml:code>/var/log/audit/audit.log</xhtml:code>. By default,
<xhtml:code>auditd</xhtml:code> rotates 5 logs by size (6MB), retaining a maximum of 30MB of
data in total, and refuses to write entries when the disk is too
full. This minimizes the risk of audit data filling its partition
and impacting other services. This also minimizes the risk of the audit
daemon temporarily disabling the system if it cannot write audit log (which
it can be configured to do).

For a busy
system or a system which is thoroughly auditing system activity, the default settings
for data retention may be
 insufficient. The log file size needed will depend heavily on what types
of events are being audited. First configure auditing to log all the events of
interest. Then monitor the log size manually for awhile to determine what file
size will allow you to keep the required data for the correct time period.
<xhtml:br/><xhtml:br/>
Using a dedicated partition for <xhtml:code>/var/log/audit</xhtml:code> prevents the
<xhtml:code>auditd</xhtml:code> logs from disrupting system functionality if they fill, and,
more importantly, prevents other activity in <xhtml:code>/var</xhtml:code> from filling the
partition and stopping the audit trail. (The audit logs are size-limited and
therefore unlikely to grow without bound unless configured to do so.) Some
machines may have requirements that no actions occur which cannot be audited.
If this is the case, then <xhtml:code>auditd</xhtml:code> can be configured to halt the machine
if it runs out of space. <xhtml:b>Note:</xhtml:b> Since older logs are rotated,
configuring <xhtml:code>auditd</xhtml:code> this way does not prevent older logs from being
rotated away before they can be viewed.

<xhtml:i>If your system is configured to halt when logging cannot be performed, make
sure this can never happen under normal circumstances! Ensure that
<xhtml:code>/var/log/audit</xhtml:code> is on its own partition, and that this partition is
larger than the maximum amount of data <xhtml:code>auditd</xhtml:code> will retain
normally.</xhtml:i>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-11</reference>
        <reference href="http://iase.disa.mil/cci/index.html">138</reference>
        <Value id="var_auditd_num_logs" type="number">
          <title xml:lang="en-US">Number of log files for auditd to retain</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The setting for num_logs in /etc/audit/auditd.conf</description>
          <value>5</value>
          <value selector="5">5</value>
          <value selector="4">4</value>
          <value selector="3">3</value>
          <value selector="2">2</value>
          <value selector="1">1</value>
          <value selector="0">0</value>
        </Value>
        <Value id="var_auditd_max_log_file" type="number">
          <title xml:lang="en-US">Maximum audit log file size for auditd</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The setting for max_log_size in /etc/audit/auditd.conf</description>
          <value>6</value>
          <value selector="20">20</value>
          <value selector="10">10</value>
          <value selector="6">6</value>
          <value selector="5">5</value>
          <value selector="1">1</value>
        </Value>
        <Value id="var_auditd_max_log_file_action" type="string">
          <title xml:lang="en-US">Action for auditd to take when log files reach their maximum size</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The setting for max_log_file_action in /etc/audit/auditd.conf</description>
          <value>rotate</value>
          <value selector="ignore">ignore</value>
          <value selector="syslog">syslog</value>
          <value selector="suspend">suspend</value>
          <value selector="rotate">rotate</value>
          <value selector="keep_logs">keep_logs</value>
        </Value>
        <Value id="var_auditd_space_left_action" type="string">
          <title xml:lang="en-US">Action for auditd to take when disk space just starts to run low</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The setting for space_left_action in /etc/audit/auditd.conf</description>
          <value>email</value>
          <value selector="ignore">ignore</value>
          <value selector="syslog">syslog</value>
          <value selector="email">email</value>
          <value selector="exec">exec</value>
          <value selector="suspend">suspend</value>
          <value selector="single">single</value>
          <value selector="halt">halt</value>
        </Value>
        <Value id="var_auditd_admin_space_left_action" type="string">
          <title xml:lang="en-US">Action for auditd to take when disk space just starts to run low</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The setting for space_left_action in /etc/audit/auditd.conf</description>
          <value>single</value>
          <value selector="ignore">ignore</value>
          <value selector="syslog">syslog</value>
          <value selector="email">email</value>
          <value selector="exec">exec</value>
          <value selector="suspend">suspend</value>
          <value selector="single">single</value>
          <value selector="halt">halt</value>
        </Value>
        <Value id="var_auditd_action_mail_acct" type="string">
          <title xml:lang="en-US">Account for auditd to send email when actions occurs</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The setting for action_mail_acct in /etc/audit/auditd.conf</description>
          <value>root</value>
          <value selector="root">root</value>
          <value selector="admin">admin</value>
        </Value>
        <Rule id="configure_auditd_num_logs" selected="false" severity="medium">
          <title xml:lang="en-US">Configure auditd Number of Logs Retained</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Determine how many log files
<xhtml:code>auditd</xhtml:code> should retain when it rotates logs.
Edit the file <xhtml:code>/etc/audit/auditd.conf</xhtml:code>. Add or modify the following
line, substituting <xhtml:i>NUMLOGS</xhtml:i> with the correct value:
<xhtml:pre>num_logs = <xhtml:i>NUMLOGS</xhtml:i></xhtml:pre>
Set the value to 5 for general-purpose systems. 
Note that values less than 2 result in no log rotation.</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-11</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2143" value-id="var_auditd_num_logs"/>
            <check-content-ref name="oval:ssg:def:1157" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the system log file retention has not been properly configured" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect <xhtml:code>/etc/audit/auditd.conf</xhtml:code> and locate the following line to
determine how many logs the system is configured to retain after rotation:
<xhtml:code># grep num_logs /etc/audit/auditd.conf</xhtml:code>
<xhtml:pre>num_logs = 5</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="configure_auditd_max_log_file" selected="false" severity="medium">
          <title xml:lang="en-US">Configure auditd Max Log File Size</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Determine the amount of audit data (in megabytes)
which should be retained in each log file. Edit the file
<xhtml:code>/etc/audit/auditd.conf</xhtml:code>. Add or modify the following line, substituting
the correct value for <xhtml:i>STOREMB</xhtml:i>:
<xhtml:pre>max_log_file = <xhtml:i>STOREMB</xhtml:i></xhtml:pre>
Set the value to <xhtml:code>6</xhtml:code> (MB) or higher for general-purpose systems.
Larger values, of course,
support retention of even more audit data.</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-11</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2135" value-id="var_auditd_max_log_file"/>
            <check-content-ref name="oval:ssg:def:823" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the system audit data threshold has not been properly configured" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect <xhtml:code>/etc/audit/auditd.conf</xhtml:code> and locate the following line to
determine how much data the system will retain in each audit log file:
<xhtml:code># grep max_log_file /etc/audit/auditd.conf</xhtml:code>
<xhtml:pre>max_log_file = 6</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="configure_auditd_max_log_file_action" selected="false" severity="medium">
          <title xml:lang="en-US">Configure auditd max_log_file_action Upon Reaching Maximum Log Size</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 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 <xhtml:code>auditd</xhtml:code>, add or correct the line in <xhtml:code>/etc/audit/auditd.conf</xhtml:code>:
<xhtml:pre>max_log_file_action = <xhtml:i>ACTION</xhtml:i></xhtml:pre>
Possible values for <xhtml:i>ACTION</xhtml:i> are described in the <xhtml:code>auditd.conf</xhtml:code> man
page. These include:
<xhtml:ul><xhtml:li><xhtml:code>ignore</xhtml:code></xhtml:li><xhtml:li><xhtml:code>syslog</xhtml:code></xhtml:li><xhtml:li><xhtml:code>suspend</xhtml:code></xhtml:li><xhtml:li><xhtml:code>rotate</xhtml:code></xhtml:li><xhtml:li><xhtml:code>keep_logs</xhtml:code></xhtml:li></xhtml:ul>
Set the <xhtml:code><xhtml:i>ACTION</xhtml:i></xhtml:code> to <xhtml:code>rotate</xhtml:code> to ensure log rotation
occurs.  This is the default.  The setting is case-insensitive.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-4</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-11</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Automatically rotating logs (by setting this to <xhtml:code>rotate</xhtml:code>)
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,
<xhtml:code>keep_logs</xhtml:code> can be employed.</rationale>
          <ident system="http://cce.mitre.org">CCE-27237-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2139" value-id="var_auditd_max_log_file_action"/>
            <check-content-ref name="oval:ssg:def:1081" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the system has not been properly configured to rotate audit logs" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect <xhtml:code>/etc/audit/auditd.conf</xhtml:code> and locate the following line to
determine if the system is configured to rotate logs when they reach their
maximum size: 
<xhtml:code># grep max_log_file_action /etc/audit/auditd.conf</xhtml:code>
<xhtml:pre>max_log_file_action <xhtml:code>rotate</xhtml:code></xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="configure_auditd_space_left_action" selected="false" severity="medium">
          <title xml:lang="en-US">Configure auditd space_left Action on Low Disk Space</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>auditd</xhtml:code> service can be configured to take an action
when disk space <xhtml:i>starts</xhtml:i> to run low. 
Edit the file <xhtml:code>/etc/audit/auditd.conf</xhtml:code>. Modify the following line,
substituting <xhtml:i>ACTION</xhtml:i> appropriately:
<xhtml:pre>space_left_action = <xhtml:i>ACTION</xhtml:i></xhtml:pre>
Possible values for <xhtml:i>ACTION</xhtml:i> are described in the <xhtml:code>auditd.conf</xhtml:code> man page.
These include:
<xhtml:ul><xhtml:li><xhtml:code>ignore</xhtml:code></xhtml:li><xhtml:li><xhtml:code>syslog</xhtml:code></xhtml:li><xhtml:li><xhtml:code>email</xhtml:code></xhtml:li><xhtml:li><xhtml:code>exec</xhtml:code></xhtml:li><xhtml:li><xhtml:code>suspend</xhtml:code></xhtml:li><xhtml:li><xhtml:code>single</xhtml:code></xhtml:li><xhtml:li><xhtml:code>halt</xhtml:code></xhtml:li></xhtml:ul>
Set this to <xhtml:code>email</xhtml:code> (instead of the default,
which is <xhtml:code>suspend</xhtml:code>) as it is more likely to get prompt attention. Acceptable values
also include <xhtml:code>suspend</xhtml:code>, <xhtml:code>single</xhtml:code>, and <xhtml:code>halt</xhtml:code>.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-4</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-5(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">140</reference>
          <reference href="http://iase.disa.mil/cci/index.html">143</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Notifying administrators of an impending disk space problem may
allow them to take corrective action prior to any disruption.</rationale>
          <ident system="http://cce.mitre.org">CCE-27238-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2131" value-id="var_auditd_space_left_action"/>
            <check-content-ref name="oval:ssg:def:740" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the system is not configured to send an email to the system administrator when disk space is starting to run low" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect <xhtml:code>/etc/audit/auditd.conf</xhtml:code> and locate the following line to
determine if the system is configured to email the administrator when
disk space is starting to run low:
<xhtml:code># grep space_left_action /etc/audit/auditd.conf</xhtml:code>
<xhtml:pre>space_left_action</xhtml:pre>
Acceptable values are <xhtml:code>email</xhtml:code>, <xhtml:code>suspend</xhtml:code>, <xhtml:code>single</xhtml:code>, and <xhtml:code>halt</xhtml:code>.
</check-content>
          </check>
        </Rule>
        <Rule id="configure_auditd_admin_space_left_action" selected="false" severity="medium">
          <title xml:lang="en-US">Configure auditd admin_space_left Action on Low Disk Space</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>auditd</xhtml:code> 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 <xhtml:code>/etc/audit/auditd.conf</xhtml:code>. Add or modify the following line,
substituting <xhtml:i>ACTION</xhtml:i> appropriately:
<xhtml:pre>admin_space_left_action = <xhtml:i>ACTION</xhtml:i></xhtml:pre>
Possible values for <xhtml:i>ACTION</xhtml:i> are described in the <xhtml:code>auditd.conf</xhtml:code> man page.
These include:
<xhtml:ul><xhtml:li><xhtml:code>ignore</xhtml:code></xhtml:li><xhtml:li><xhtml:code>syslog</xhtml:code></xhtml:li><xhtml:li><xhtml:code>email</xhtml:code></xhtml:li><xhtml:li><xhtml:code>exec</xhtml:code></xhtml:li><xhtml:li><xhtml:code>suspend</xhtml:code></xhtml:li><xhtml:li><xhtml:code>single</xhtml:code></xhtml:li><xhtml:li><xhtml:code>halt</xhtml:code></xhtml:li></xhtml:ul>
Set this value to <xhtml:code>single</xhtml:code> to cause the system to switch to single user
mode for corrective action. Acceptable values also include <xhtml:code>suspend</xhtml:code> and
<xhtml:code>halt</xhtml:code>. For certain systems, the need for availability
outweighs the need to log all actions, and a different setting should be
determined.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-4</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-5(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">140</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1343</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27239-3</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2134" value-id="var_auditd_admin_space_left_action"/>
            <check-content-ref name="oval:ssg:def:818" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the system is not configured to switch to single user mode for corrective action" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect <xhtml:code>/etc/audit/auditd.conf</xhtml:code> and locate the following line to
determine if the system is configured to either suspend, switch to single user mode,
or halt when disk space has run low:
<xhtml:pre>admin_space_left_action single</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="configure_auditd_action_mail_acct" selected="false" severity="medium">
          <title xml:lang="en-US">Configure auditd mail_acct Action on Low Disk Space</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>auditd</xhtml:code> service can be configured to send email to
a designated account in certain situations. Add or correct the following line
in <xhtml:code>/etc/audit/auditd.conf</xhtml:code> to ensure that administrators are notified
via email for those situations:
<xhtml:pre>action_mail_acct = root</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-4</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-5(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">139</reference>
          <reference href="http://iase.disa.mil/cci/index.html">144</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Email sent to the root account is typically aliased to the
administrators of the system, who can take appropriate action.</rationale>
          <ident system="http://cce.mitre.org">CCE-27241-9</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2117" value-id="var_auditd_action_mail_acct"/>
            <check-content-ref name="oval:ssg:def:189" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="auditd is not configured to send emails per identified actions" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Inspect <xhtml:code>/etc/audit/auditd.conf</xhtml:code> and locate the following line to
determine if the system is configured to send email to an
account when it needs to notify an administrator:
<xhtml:pre>action_mail_acct = root</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="configure_auditd_audispd" selected="false" severity="medium">
          <title xml:lang="en-US">Configure auditd to use audispd plugin</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To configure the <xhtml:code>auditd</xhtml:code> service to use the 
<xhtml:code>audispd</xhtml:code> plugin, set the <xhtml:code>active</xhtml:code> line in 
<xhtml:code>/etc/audisp/plugins.d/syslog.conf</xhtml:code> to <xhtml:code>yes</xhtml:code>.
Restart the <xhtml:code>auditd</xhtml:code>service:
<xhtml:pre># service auditd restart</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-3(2)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">136</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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</rationale>
          <check system="ocil-transitional">
            <check-export export-name="it is not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify the audispd plugin is active, run the following command:
<xhtml:pre># grep active /etc/audisp/plugins.d/syslog.conf</xhtml:pre>
If the plugin is active, the output will show <xhtml:code>yes</xhtml:code>.
</check-content>
          </check>
        </Rule>
      </Group>
      <Group id="auditd_configure_rules">
        <title xml:lang="en-US">Configure auditd Rules for Comprehensive Auditing</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>auditd</xhtml:code> program can perform comprehensive
monitoring of system activity. This section describes recommended
configuration settings for comprehensive auditing, but a full
description of the auditing system's capabilities is beyond the
scope of this guide. The mailing list <xhtml:i>linux-audit@redhat.com</xhtml:i> exists
to facilitate community discussion of the auditing system.
<xhtml:br/><xhtml:br/>
The audit subsystem supports extensive collection of events, including:
<xhtml:br/>
<xhtml:ul><xhtml:li>Tracing of arbitrary system calls (identified by name or number)
on entry or exit.</xhtml:li><xhtml:li>Filtering by PID, UID, call success, system call argument (with
some limitations), etc.</xhtml:li><xhtml:li>Monitoring of specific files for modifications to the file's
contents or metadata.</xhtml:li></xhtml:ul>
<xhtml:br/>
Auditing rules at startup are controlled by the file <xhtml:code>/etc/audit/audit.rules</xhtml:code>.
Add rules to it to meet the auditing requirements for your organization.
Each line in <xhtml:code>/etc/audit/audit.rules</xhtml:code> represents a series of arguments
that can be passed to <xhtml:code>auditctl</xhtml:code> and can be individually tested
during runtime. See documentation in <xhtml:code>/usr/share/doc/audit-<xhtml:i>VERSION</xhtml:i></xhtml:code> and
in the related man pages for more details.
<xhtml:br/><xhtml:br/>
If copying any example audit rulesets from <xhtml:code>/usr/share/doc/audit-VERSION</xhtml:code>,
be sure to comment out the
lines containing <xhtml:code>arch=</xhtml:code> which are not appropriate for your system's
architecture. Then review and understand the following rules,
ensuring rules are activated as needed for the appropriate
architecture.
<xhtml:br/><xhtml:br/>
After reviewing all the rules, reading the following sections, and
editing as needed, the new rules can be activated as follows:
<xhtml:pre># service auditd restart</xhtml:pre>
</description>
        <Group id="audit_time_rules">
          <title xml:lang="en-US">Records Events that Modify Date and Time Information</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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. All changes to the system 
time should be audited.</description>
          <Rule id="audit_rules_time_adjtimex" selected="false" severity="low">
            <title xml:lang="en-US">Record attempts to alter time through adjtimex</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">On a 32-bit system, add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre># audit_time_rules
-a always,exit -F arch=b32 -S adjtimex -k audit_time_rules</xhtml:pre>
On a 64-bit system, add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre># audit_time_rules
-a always,exit -F arch=b64 -S adjtimex -k audit_time_rules</xhtml:pre>
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:
<xhtml:pre>-a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime 
-k audit_time_rules</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1487</reference>
            <reference href="http://iase.disa.mil/cci/index.html">169</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26242-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:719" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the system is not configured to audit time changes" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>adjtimex</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep adjtimex</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_time_settimeofday" selected="false" severity="low">
            <title xml:lang="en-US">Record attempts to alter time through settimeofday</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">On a 32-bit system, add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre># audit_time_rules
-a always,exit -F arch=b32 -S settimeofday -k audit_time_rules</xhtml:pre>
On a 64-bit system, add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre># audit_time_rules
-a always,exit -F arch=b64 -S settimeofday -k audit_time_rules</xhtml:pre>
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:
<xhtml:pre>-a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime 
-k audit_time_rules</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1487</reference>
            <reference href="http://iase.disa.mil/cci/index.html">169</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27203-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:573" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the system is not configured to audit time changes" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>settimeofday</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep settimeofday</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_time_stime" selected="false" severity="low">
            <title xml:lang="en-US">Record Attempts to Alter Time Through stime</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">On a 32-bit system, add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre># audit_time_rules
-a always,exit -F arch=b32 -S stime -k audit_time_rules</xhtml:pre>
On a 64-bit system, the "-S time" 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:
<xhtml:pre>-a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime 
-k audit_time_rules</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1487</reference>
            <reference href="http://iase.disa.mil/cci/index.html">169</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27169-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:704" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the system is not configured to audit time changes" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>stime</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep stime</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_time_clock_settime" selected="false" severity="low">
            <title xml:lang="en-US">Record Attempts to Alter Time Through clock_settime</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">On a 32-bit system, add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre># audit_time_rules
-a always,exit -F arch=b32 -S clock_settime -k audit_time_rules</xhtml:pre>
On a 64-bit system, add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre># audit_time_rules
-a always,exit -F arch=b64 -S clock_settime -k audit_time_rules</xhtml:pre>
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:
<xhtml:pre>-a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime 
-k audit_time_rules</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1487</reference>
            <reference href="http://iase.disa.mil/cci/index.html">169</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27170-0</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1115" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the system is not configured to audit time changes" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>clock_settime</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep clock_settime</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_time_watch_localtime" selected="false" severity="low">
            <title xml:lang="en-US">Record Attempts to Alter the localtime File</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-w /etc/localtime -p wa -k audit_time_rules</xhtml:pre>
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.
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">1487</reference>
            <reference href="http://iase.disa.mil/cci/index.html">169</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27172-6</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1049" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the system is not configured to audit time changes" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To determine if the system is configured to audit attempts to
alter time via the /etc/localtime file, run the following
command:
<xhtml:pre># auditctl -l | grep "watch=/etc/localtime"</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
</check-content>
            </check>
          </Rule>
        </Group>
        <Rule id="audit_account_changes" selected="false" severity="low">
          <title xml:lang="en-US">Record Events that Modify User/Group Information</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>, in order
to capture events that modify account changes:
<xhtml:pre># audit_account_changes
-w /etc/group -p wa -k audit_account_changes
-w /etc/passwd -p wa -k audit_account_changes
-w /etc/gshadow -p wa -k audit_account_changes
-w /etc/shadow -p wa -k audit_account_changes
-w /etc/security/opasswd -p wa -k audit_account_changes</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-2(4)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">18</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1403</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1404</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1405</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1684</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1683</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1685</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1686</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">In addition to auditing new user and group accounts, these watches
will alert the system administrator(s) to any modifications. Any
unexpected users, groups, or modifications should be investigated for
legitimacy.</rationale>
          <ident system="http://cce.mitre.org">CCE-26664-3</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1138" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the system is not configured to audit account changes" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To determine if the system is configured to audit account changes,
run the following command:
<xhtml:pre>auditctl -l | egrep '(/etc/passwd|/etc/shadow|/etc/group|/etc/gshadow|/etc/security/opasswd)'</xhtml:pre>
If the system is configured to watch for account changes, lines should be returned for
each file specified (and with <xhtml:code>perm=wa</xhtml:code> for each).
</check-content>
          </check>
        </Rule>
        <Rule id="audit_network_modifications" selected="false" severity="low">
          <title xml:lang="en-US">Record Events that Modify the System's Network Environment</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>, setting
ARCH to either b32 or b64 as appropriate for your system:
<xhtml:pre># audit_network_modifications
-a exit,always -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</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The network environment should not be modified by anything other
than administrator action. Any change to network parameters should be
audited.</rationale>
          <ident system="http://cce.mitre.org">CCE-26648-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:945" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the system is not configured to audit changes of the network configuration" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To determine if the system is configured to audit changes to its network configuration,
run the following command:
<xhtml:pre>auditctl -l | egrep '(/etc/issue|/etc/issue.net|/etc/hosts|/etc/sysconfig/network)'</xhtml:pre>
If the system is configured to watch for network configuration changes, a line should be returned for
each file specified (and <xhtml:code>perm=wa</xhtml:code> should be indicated for each).
</check-content>
          </check>
        </Rule>
        <Rule id="audit_logs_permissions" selected="false" severity="low">
          <title xml:lang="en-US">System Audit Logs Must Have Mode 0640 or Less Permissive</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Change the mode of the audit log files with the following command:
<xhtml:pre># chmod 0640 <xhtml:i>audit_file</xhtml:i></xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">166</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If users can write to audit logs, audit trails can be modified or destroyed.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27243-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1019" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="any are more permissive" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Run the following command to check the mode of the system audit logs:
<xhtml:pre>ls -l /var/log/audit</xhtml:pre>
Audit logs must be mode 0640 or less permissive.
</check-content>
          </check>
        </Rule>
        <Rule id="audit_logs_rootowner" selected="false" severity="low">
          <title xml:lang="en-US">System Audit Logs Must Be Owned By Root</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    To properly set the owner of <xhtml:code>/var/log</xhtml:code>, run the command:
    <xhtml:pre xml:space="preserve"># chown root /var/log </xhtml:pre>
          </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-9</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">166</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Failure to give ownership of the audit log files to root allows the designated 
owner, and unauthorized users, potential access to sensitive information.</rationale>
          <ident system="http://cce.mitre.org">CCE-27244-3</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:199" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it does not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check the ownership of <xhtml:code>/var/log</xhtml:code>, run the command:
    <xhtml:pre>$ ls -lL /var/log</xhtml:pre>
    If properly configured, the output should indicate the following owner:
    <xhtml:code>root</xhtml:code>
          </check-content>
          </check>
        </Rule>
        <Rule id="audit_mac_changes" selected="false" severity="low">
          <title xml:lang="en-US">Record Events that Modify the System's Mandatory Access Controls</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-w /etc/selinux/ -p wa -k MAC-policy</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26657-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:456" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the system is not configured to audit attempts to change the MAC policy" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To determine if the system is configured to audit changes to its SELinux
configuration files, run the following command:
<xhtml:pre># auditctl -l | grep "dir=/etc/selinux"</xhtml:pre>
If the system is configured to watch for changes to its SELinux
configuration, a line should be returned (including
<xhtml:code>perm=wa</xhtml:code> indicating permissions that are watched).
</check-content>
          </check>
        </Rule>
        <Group id="audit_dac_actions">
          <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file permission 
changes for all users and root.  Note that the "-F arch=b32" lines should be 
present even on a 64 bit system.  These commands identify system calls for 
auditing.  Even if the system is 64 bit it can still execute 32 bit system 
calls.  Additionally, these rules can be configured in a number of ways while 
still achieving the desired effect.  An example of this is that the "-S" calls 
could be split up and placed on separate lines, however, this is less efficient.
Add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S chmod -S fchmod -S fchmodat \
    -F auid&gt;=500 -F auid!=4294967295 -k perm_mod
    -a always,exit -F arch=b32 -S chown -S fchown -S fchownat \
    -S lchown -F auid&gt;=500 -F auid!=4294967295 -k perm_mod
    -a always,exit -F arch=b32 -S setxattr -S lsetxattr \
    -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr \
    -F auid&gt;=500 -F auid!=4294967295 -k perm_mod</xhtml:pre>
If your system is 64 bit then these lines should be duplicated and the 
arch=b32 replaced with arch=b64 as follows:
<xhtml:pre>-a always,exit -F arch=b64 -S chmod -S fchmod -S fchmodat \
    -F auid&gt;=500 -F auid!=4294967295 -k perm_mod
    -a always,exit -F arch=b64 -S chown -S fchown -S fchownat \
    -S lchown -F auid&gt;=500 -F auid!=4294967295 -k perm_mod
    -a always,exit -F arch=b64 -S setxattr -S lsetxattr \
    -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr \
    -F auid&gt;=500 -F auid!=4294967295 -k perm_mod</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <Rule id="audit_rules_dac_modification_chmod" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - chmod</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S chmod -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S chmod  -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26280-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:443" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the system is not configured to audit permission changes" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>chmod</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep chmod</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_chown" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - chown</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S chown -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S chown -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27173-4</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:957" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>chown</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep chown</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_fchmod" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fchmod</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S fchmod -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S fchmod -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27174-2</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1164" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>fchmod</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep fchmod</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_fchmodat" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fchmodat</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S fchmodat -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S fchmodat -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27175-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:348" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>fchmodat</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep fchmodat</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_fchown" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fchown</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S fchown -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S fchown -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27177-5</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:777" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>fchown</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep fchown</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_fchownat" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fchownat</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S fchownat -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S fchownat -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27178-3</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:964" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>fchownat</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep fchownat</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_fremovexattr" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fremovexattr</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S fremovexattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S fremovexattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27179-1</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:332" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>fremovexattr</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep fremovexattr</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_fsetxattr" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fsetxattr</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S fsetxattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S fsetxattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27180-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1112" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>fsetxattr</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep fsetxattr</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_lchown" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - lchown</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file 
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S lchown -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S lchown -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27181-7</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1016" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>lchown</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep lchown</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_lremovexattr" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - lremovexattr</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S lremovexattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S lremovexattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27182-5</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1130" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>lremovexattr</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep lremovexattr</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_lsetxattr" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - lsetxattr</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S lsetxattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S lsetxattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27183-3</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:672" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>lsetxattr</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep lsetxattr</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_removexattr" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - removexattr</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S removexattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S removexattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27184-1</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:758" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>removexattr</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep removexattr</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
          <Rule id="audit_rules_dac_modification_setxattr" selected="false" severity="low">
            <title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - setxattr</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-a always,exit -F arch=b32 -S setxattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
If the system is 64 bit then also add the following:
<xhtml:pre>-a always,exit -F arch=b64 -S setxattr -F auid&gt;=500 -F auid!=4294967295 \
    -k perm_mod</xhtml:pre>
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.
</warning>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
            <reference href="http://iase.disa.mil/cci/index.html">126</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-27185-8</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:781" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="no line is returned" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
To determine if the system is configured to audit calls to
the <xhtml:code>setxattr</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep setxattr</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            </check-content>
            </check>
          </Rule>
        </Group>
        <Rule id="audit_manual_logon_edits" selected="false" severity="low">
          <title xml:lang="en-US">Record Attempts to Alter Logon and Logout Events</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 
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 <xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-w /var/log/faillog -p wa -k logins 
-w /var/log/lastlog -p wa -k logins</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Manual editing of these files may indicate nefarious activity, such
as an attacker attempting to remove evidence of an intrusion.</rationale>
          <ident system="http://cce.mitre.org">CCE-26691-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1076" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="audit_manual_session_edits" selected="false" severity="low">
          <title xml:lang="en-US"> Record Attempts to Alter Process and Session Initiation Information</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 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
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-w /var/run/utmp -p wa -k session
-w /var/log/btmp -p wa -k session
-w /var/log/wtmp -p wa -k session</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Manual editing of these files may indicate nefarious activity, such
as an attacker attempting to remove evidence of an intrusion.</rationale>
          <ident system="http://cce.mitre.org">CCE-26610-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1051" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="audit_file_access" selected="false" severity="low">
          <title xml:lang="en-US">Ensure auditd Collects Unauthorized Access Attempts to Files (unsuccessful)</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect
unauthorized file accesses for all users and root. Add the following
to <xhtml:code>/etc/audit/audit.rules</xhtml:code>, setting ARCH to either b32 or b64 as
appropriate for your system:
<xhtml:pre>-a always,exit -F arch=ARCH -S creat -S open -S openat -S truncate \
    -S ftruncate -F exit=-EACCES -F auid&gt;=500 -F auid!=4294967295 -k access
-a always,exit -F arch=ARCH -S creat -S open -S openat -S truncate \
    -S ftruncate -F exit=-EPERM -F auid&gt;=500 -F auid!=4294967295 -k access</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">126</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26712-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:825" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="either command lacks output" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify that the audit system collects unauthorized file accesses, run the following commands:
<xhtml:pre># grep EACCES /etc/audit/audit.rules</xhtml:pre>
<xhtml:pre># grep EPERM /etc/audit/audit.rules</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="audit_privileged_commands" selected="false" severity="low">
          <title xml:lang="en-US">Ensure auditd Collects Information on the Use of Privileged Commands</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect the
execution of privileged commands for all users and root. 
To find the relevant setuid programs:
<xhtml:pre># find / -xdev -type f -perm -4000 -o -perm -2000 2&gt;/dev/null</xhtml:pre>
Then, for each setuid program on the system, add a line of the following form to 
<xhtml:code>/etc/audit/audit.rules</xhtml:code>, where <xhtml:i>SETUID_PROG_PATH</xhtml:i> is the full path to each setuid program
in the list:
<xhtml:pre>-a always,exit -F path=<xhtml:i>SETUID_PROG_PATH</xhtml:i> -F perm=x -F auid&gt;=500 -F auid!=4294967295 -k privileged</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(4)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">40</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26457-2</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:159" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it is not the case" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify that auditing of privileged command use is configured, run the following command to find relevant setuid programs:
<xhtml:pre># find / -xdev -type f -perm -4000 -o -perm -2000 2&gt;/dev/null</xhtml:pre>
Run the following command to verify entries in the audit rules for all programs found with the previous command:
<xhtml:pre># grep path /etc/audit/audit.rules</xhtml:pre>
It should be the case that all relevant setuid programs have a line in the audit rules.
</check-content>
          </check>
        </Rule>
        <Rule id="audit_media_exports" selected="false" severity="low">
          <title xml:lang="en-US">Ensure auditd Collects Information on Exporting to Media (successful)</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect media
exportation events for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>, setting ARCH to either b32 or b64 as
appropriate for your system:
<xhtml:pre>-a always,exit -F arch=ARCH -S mount -F auid&gt;=500 -F auid!=4294967295 -k export</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">126</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26573-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:434" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="there is not output" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify that auditing is configured for all media exportation events, run the following command:
<xhtml:pre># auditctl -l | grep syscall | grep mount</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="audit_file_deletions" selected="false" severity="low">
          <title xml:lang="en-US">Ensure auditd Collects File Deletion Events by User</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect file
deletion events for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>, setting ARCH to either b32 or b64 as
appropriate for your system:
<xhtml:pre>-a always,exit -F arch=ARCH -S unlink -S unlinkat -S rename -S renameat \
    -F auid&gt;=500 -F auid!=4294967295 -k delete</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">126</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26651-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:294" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
To determine if the system is configured to audit calls to
the <xhtml:code>unlink</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep unlink</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            
To determine if the system is configured to audit calls to
the <xhtml:code>rename</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep rename</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
          </check-content>
          </check>
        </Rule>
        <Rule id="audit_sysadmin_actions" selected="false" severity="low">
          <title xml:lang="en-US">Ensure auditd Collects System Administrator Actions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">At a minimum the audit system should collect
administrator actions for all users and root. Add the following to
<xhtml:code>/etc/audit/audit.rules</xhtml:code>:
<xhtml:pre>-w /etc/sudoers -p wa -k actions</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-2(7)(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">126</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26662-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:738" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="there is not output" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify that auditing is configured for system administrator actions, run the following command:
<xhtml:pre># auditctl -l | grep "watch=/etc/sudoers"</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="audit_kernel_module_loading" selected="false" severity="low">
          <title xml:lang="en-US">Ensure auditd Collects Information on Kernel Module Loading and Unloading</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code> in order
to capture kernel module loading and unloading events, setting ARCH to either b32 or b64 as appropriate for your system:
<xhtml:pre>-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=<xhtml:i>ARCH</xhtml:i> -S init_module -S delete_module -k modules</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <reference href="http://iase.disa.mil/cci/index.html">126</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26611-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:808" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no line is returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
To determine if the system is configured to audit calls to
the <xhtml:code>init_module</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep init_module</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
            
To determine if the system is configured to audit calls to
the <xhtml:code>delete_module</xhtml:code>
system call, run the following command:
<xhtml:pre xml:space="preserve"># auditctl -l | grep syscall | grep delete_module</xhtml:pre>
If the system is configured to audit this activity, it will return a line.
  
          </check-content>
          </check>
        </Rule>
        <Rule id="audit_config_immutable" selected="false" severity="low">
          <title xml:lang="en-US">Make the auditd Configuration Immutable</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Add the following to <xhtml:code>/etc/audit/audit.rules</xhtml:code> in order
to make the configuration immutable:
<xhtml:pre>-e 2</xhtml:pre>
With this setting, a reboot will be required to change any
audit rules.</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-1(b)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(a)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-2(d)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IR-5</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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</rationale>
          <ident system="http://cce.mitre.org">CCE-26612-2</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:955" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
      </Group>
    </Group>
  </Group>
  <Group id="services">
    <title xml:lang="en-US">Services</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The best protection against vulnerable software is running less software. This section describes how to review
the software which Red Hat Enterprise Linux 6 installs on a system and disable software which is not needed. It
then enumerates the software packages installed on a default RHEL 6 system and provides guidance about which
ones can be safely disabled.
<xhtml:br/><xhtml:br/>
RHEL 6 provides a convenient minimal install option that essentially installs the bare necessities for a functional
system. When building RHEL 6 servers, it is highly recommended to select the minimal packages and then build up
the system from there.
</description>
    <Group id="obsolete">
      <title xml:lang="en-US">Obsolete Services</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This section discusses a number of network-visible
services which have historically caused problems for system
security, and for which disabling or severely limiting the service
has been the best available guidance for some time. As a result of
this, many of these services are not installed as part of RHEL 6
by default.
<xhtml:br/><xhtml:br/>
Organizations which are running these services should
switch to more secure equivalents as soon as possible.
If it remains absolutely necessary to run one of
these services for legacy reasons, care should be taken to restrict
the service as much as possible, for instance by configuring host
firewall software such as <xhtml:code>iptables</xhtml:code> to restrict access to the
vulnerable service to only those remote hosts which have a known
need to use it.</description>
      <Group id="inetd_and_xinetd">
        <title xml:lang="en-US">Xinetd</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>xinetd</xhtml:code> service acts as a dedicated listener for some
network services (mostly, obsolete ones) and can be used to provide access
controls and perform some logging. It has been largely obsoleted by other
features, and it is not installed by default. The older Inetd service
is not even available as part of RHEL 6.</description>
        <Rule id="disable_xinetd" selected="false" severity="medium">
          <title xml:lang="en-US">Disable xinetd Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>xinetd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig xinetd off</xhtml:pre>
          </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">305</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27046-2</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:688" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
If network services are using the xinetd service, this is not applicable.
<xhtml:br/><xhtml:br/>

    To check that the <xhtml:code>xinetd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>xinetd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>xinetd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>xinetd</xhtml:code> --list
<xhtml:code>xinetd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>xinetd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service xinetd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>xinetd is stopped</xhtml:pre></check-content>
          </check>
        </Rule>
        <Rule id="uninstall_xinetd" selected="false" severity="low">
          <title xml:lang="en-US">Uninstall xinetd Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>xinetd</xhtml:code> package can be uninstalled with the following command:
<xhtml:pre># yum erase xinetd</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">305</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Removing the <xhtml:code>xinetd</xhtml:code> package decreases the risk of the
xinetd service's accidental (or intentional) activation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27005-8</ident>
          <fix system="urn:xccdf:fix:script:sh">if rpm -qa | grep -q xinetd; then
	yum -y remove xinetd
fi
</fix>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:272" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
If network services are using the xinetd service, this is not applicable.
<xhtml:br/><xhtml:br/>

    Run the following command to determine if the <xhtml:code>xinetd</xhtml:code> package is installed:
    <xhtml:pre># rpm -q xinetd</xhtml:pre> </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="telnet">
        <title xml:lang="en-US">Telnet</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The telnet protocol does not provide confidentiality or integrity
for information transmitted on the network. This includes authentication
information such as passwords. Organizations which use telnet should be
actively working to migrate to a more secure protocol.</description>
        <Rule id="disable_telnet_service" selected="false" severity="high">
          <title xml:lang="en-US">Disable telnet Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>telnet</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig telnet off</xhtml:pre>
          </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(c)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">68</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1436</reference>
          <reference href="http://iase.disa.mil/cci/index.html">197</reference>
          <reference href="http://iase.disa.mil/cci/index.html">877</reference>
          <reference href="http://iase.disa.mil/cci/index.html">888</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26836-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:230" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>telnet</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>telnet</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>telnet</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>telnet</xhtml:code> --list
<xhtml:code>telnet</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>telnet</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service telnet status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>telnet is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="uninstall_telnet_server" selected="false" severity="high">
          <title xml:lang="en-US">Uninstall telnet-server Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>telnet-server</xhtml:code> package can be uninstalled with
the following command:
<xhtml:pre># yum erase telnet-server</xhtml:pre></description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">305</reference>
          <reference href="http://iase.disa.mil/cci/index.html">381</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Removing the <xhtml:code>telnet-server</xhtml:code> package decreases the risk of the
telnet service's accidental (or intentional) activation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27073-6</ident>
          <fix system="urn:xccdf:fix:script:sh">if rpm -qa | grep -q telnet-server; then
	yum -y remove telnet-server
fi
</fix>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:634" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>telnet-server</xhtml:code> package is installed:
    <xhtml:pre># rpm -q telnet-server</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="r_services">
        <title xml:lang="en-US">Rlogin, Rsh, and Rexec</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Berkeley r-commands are legacy services which
allow cleartext remote access and have an insecure trust
model.</description>
        <Rule id="uninstall_rsh-server" selected="false" severity="high">
          <title xml:lang="en-US">Uninstall rsh-server Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rsh-server</xhtml:code> package can be uninstalled with
the following command:
<xhtml:pre># yum erase rsh-server</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">305</reference>
          <reference href="http://iase.disa.mil/cci/index.html">381</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rsh-server</xhtml:code> package provides several obsolete and insecure
network services. Removing it
decreases the risk of those services' accidental (or intentional)
activation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27062-9</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:233" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>rsh-server</xhtml:code> package is installed:
    <xhtml:pre># rpm -q rsh-server</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="disable_rexec" selected="false" severity="high">
          <title xml:lang="en-US">Disable rexec Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rexec</xhtml:code> service, which is available with
the <xhtml:code>rsh-server</xhtml:code> package and runs as a service through xinetd,
should be disabled.

    The <xhtml:code>rexec</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig rexec off</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">68</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1436</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27208-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:532" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>rexec</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>rexec</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>rexec</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>rexec</xhtml:code> --list
<xhtml:code>rexec</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>rexec</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service rexec status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>rexec is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="disable_rsh" selected="false" severity="high">
          <title xml:lang="en-US">Disable rsh Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rsh</xhtml:code> service, which is available with
the <xhtml:code>rsh-server</xhtml:code> package and runs as a service through xinetd,
should be disabled.

    The <xhtml:code>rsh</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig rsh off</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(c)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">68</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1436</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26994-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:423" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>rsh</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>rsh</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>rsh</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>rsh</xhtml:code> --list
<xhtml:code>rsh</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>rsh</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service rsh status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>rsh is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="disable_rlogin" selected="false" severity="high">
          <title xml:lang="en-US">Disable rlogin Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rlogin</xhtml:code> service, which is available with
the <xhtml:code>rsh-server</xhtml:code> package and runs as a service through xinetd,
should be disabled.

    The <xhtml:code>rlogin</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig rlogin off</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(c)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1436</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26865-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:232" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>rlogin</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>rlogin</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>rlogin</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>rlogin</xhtml:code> --list
<xhtml:code>rlogin</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>rlogin</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service rlogin status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>rlogin is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="no_rsh_trust_files" selected="false" severity="high">
          <title xml:lang="en-US">Remove Rsh Trust Files</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The files <xhtml:code>/etc/hosts.equiv</xhtml:code> and <xhtml:code>~/.rhosts</xhtml:code> (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:
<xhtml:pre># rm /etc/hosts.equiv</xhtml:pre>
<xhtml:pre>$ rm ~/.rhosts</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1436</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Trust files are convenient, but when
used in conjunction with the R-services, they can allow
unauthenticated access to a system.</rationale>
          <ident system="http://cce.mitre.org">CCE-27270-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:237" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="these files exist" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
The existence of the file <xhtml:code>/etc/hosts.equiv</xhtml:code> or a file named
<xhtml:code>.rhosts</xhtml:code> inside a user home directory indicates the presence
of an Rsh trust relationship.
</check-content>
          </check>
        </Rule>
      </Group>
      <Group id="nis">
        <title xml:lang="en-US">NIS</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Network Information Service (NIS), also known as 'Yellow
Pages' (YP), and its successor NIS+ have been made obsolete by
Kerberos, LDAP, and other modern centralized authentication
services. NIS should not be used because it suffers from security
problems inherent in its design, such as inadequate protection of
important authentication information.</description>
        <Rule id="uninstall_ypserv" selected="false" severity="medium">
          <title xml:lang="en-US">Uninstall ypserv Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>ypserv</xhtml:code> package can be uninstalled with
the following command:
<xhtml:pre># yum erase ypserv</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">305</reference>
          <reference href="http://iase.disa.mil/cci/index.html">381</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Removing the <xhtml:code>ypserv</xhtml:code> package decreases the risk of the
accidental (or intentional) activation of NIS or NIS+ services.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27079-3</ident>
          <fix system="urn:xccdf:fix:script:sh">if rpm -qa | grep -q ypserv; then
	yum -y remove ypserv
fi
</fix>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1135" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>ypserv</xhtml:code> package is installed:
    <xhtml:pre># rpm -q ypserv</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="disable_ypbind" selected="false" severity="medium">
          <title xml:lang="en-US">Disable ypbind Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>ypbind</xhtml:code> service, which allows the system to act as a client in
a NIS or NIS+ domain, should be disabled.

    The <xhtml:code>ypbind</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig ypbind off</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">305</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Disabling the <xhtml:code>ypbind</xhtml:code> service ensures the system is not acting
as a client in a NIS or NIS+ domain.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26894-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:918" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>ypbind</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>ypbind</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>ypbind</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>ypbind</xhtml:code> --list
<xhtml:code>ypbind</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>ypbind</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service ypbind status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>ypbind is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="tftp">
        <title xml:lang="en-US">TFTP Server</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
TFTP is a lightweight version of the FTP protocol which has
traditionally been used to configure networking equipment. However,
TFTP provides little security, and modern versions of networking
operating systems frequently support configuration via SSH or other
more secure protocols. A TFTP server should be run only if no more
secure method of supporting existing equipment can be
found.</description>
        <Rule id="disable_tftp" selected="false" severity="medium">
          <title xml:lang="en-US">Disable tftp Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>tftp</xhtml:code> service should be disabled.

    The <xhtml:code>tftp</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig tftp off</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1436</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Disabling the <xhtml:code>tftp</xhtml:code> service ensures the system is not acting
as a tftp server, which does not provide encryption or authentication.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27055-3</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:853" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>tftp</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>tftp</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>tftp</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>tftp</xhtml:code> --list
<xhtml:code>tftp</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>tftp</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service tftp status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>tftp is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="uninstall_tftp-server" selected="false" severity="medium">
          <title xml:lang="en-US">Uninstall tftp-server Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>tftp-server</xhtml:code> package can be removed with the following command:
    <xhtml:pre># yum erase tftp-server</xhtml:pre>
          </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">305</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121026</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Removing the <xhtml:code>tftp-server</xhtml:code> package decreases the risk of the
accidental (or intentional) activation of tftp services.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26946-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:179" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>tftp-server</xhtml:code> package is installed:
    <xhtml:pre># rpm -q tftp-server</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="tftpd_uses_secure_mode" selected="false" severity="high">
          <title xml:lang="en-US">Ensure tftp Daemon Uses Secure Mode</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If running the <xhtml:code>tftp</xhtml:code> service is necessary, it should be configured
to change its root directory at startup. To do so, ensure
<xhtml:code>/etc/xinetd.d/tftp</xhtml:code> includes <xhtml:code>-s</xhtml:code> as a command line argument, as shown in
the following example (which is also the default):
<xhtml:pre>server_args = -s /var/lib/tftpboot</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Using the <xhtml:code>-s</xhtml:code> 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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27272-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:328" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="this flag is missing" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
If TFTP is not installed, this is not applicable.  To determine if TFTP is installed, 
run the following command:
<xhtml:pre># rpm -qa | grep tftp</xhtml:pre>
<xhtml:br/><xhtml:br/>
Verify <xhtml:code>tftp</xhtml:code> is configured by with the <xhtml:code>-s</xhtml:code> option by running the
following command:
<xhtml:pre>grep "server_args" /etc/xinetd.d/tftp</xhtml:pre>
The output should indicate the <xhtml:code>server_args</xhtml:code> variable is configured with the <xhtml:code>-s</xhtml:code>
flag, matching the example below:
<xhtml:pre> # grep "server_args" /etc/xinetd.d/tftp
server_args = -s /var/lib/tftpboot</xhtml:pre>
</check-content>
          </check>
        </Rule>
      </Group>
    </Group>
    <Group id="base">
      <title xml:lang="en-US">Base Services</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This section addresses the base services that are installed on a
RHEL 6 default installation which are not covered in other
sections. Some of these services listen on the network and
should be treated with particular discretion. Other services are local
system utilities that may or may not be extraneous. In general, system services
should be disabled if not required.</description>
      <Rule id="service_abrtd_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Automatic Bug Reporting Tool (abrtd)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Automatic Bug Reporting Tool (<xhtml:code>abrtd</xhtml:code>) 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 <xhtml:code>abrtd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig abrtd off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference href="http://iase.disa.mil/cci/index.html">381</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 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.</rationale>
        <ident system="http://cce.mitre.org">CCE-27247-6</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:410" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>abrtd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>abrtd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>abrtd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>abrtd</xhtml:code> --list
<xhtml:code>abrtd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>abrtd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service abrtd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>abrtd is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_acpid_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Advanced Configuration and Power Interface (acpid)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Advanced Configuration and Power Interface Daemon (<xhtml:code>acpid</xhtml:code>)
dispatches ACPI events (such as power/reset button depressed) to userspace
programs.

    The <xhtml:code>acpid</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig acpid off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
        <ident system="http://cce.mitre.org">CCE-27061-1</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:400" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>acpid</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>acpid</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>acpid</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>acpid</xhtml:code> --list
<xhtml:code>acpid</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>acpid</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service acpid status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>acpid is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_certmonger_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Certmonger Service (certmonger)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>certmonger</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig certmonger off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
        <ident system="http://cce.mitre.org">CCE-27267-4</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:472" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>certmonger</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>certmonger</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>certmonger</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>certmonger</xhtml:code> --list
<xhtml:code>certmonger</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>certmonger</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service certmonger status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>certmonger is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_cgconfig_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Control Group Config (cgconfig)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>cgconfig</xhtml:code> daemon starts at boot and establishes the predefined control groups.

    The <xhtml:code>cgconfig</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig cgconfig off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Unless control groups are used to manage system resources, running the cgconfig
service is not necessary.
</rationale>
        <ident system="http://cce.mitre.org">CCE-27250-0</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:251" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>cgconfig</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>cgconfig</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>cgconfig</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>cgconfig</xhtml:code> --list
<xhtml:code>cgconfig</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>cgconfig</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service cgconfig status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>cgconfig is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_cgred_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Control Group Rules Engine (cgred)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>cgred</xhtml:code> service moves tasks into control groups according to
parameters set in the <xhtml:code>/etc/cgrules.conf</xhtml:code> configuration file.

    The <xhtml:code>cgred</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig cgred off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Unless control groups are used to manage system resources, running the cgred service
service is not necessary.
</rationale>
        <ident system="http://cce.mitre.org">CCE-27252-6</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:726" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>cgred</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>cgred</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>cgred</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>cgred</xhtml:code> --list
<xhtml:code>cgred</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>cgred</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service cgred status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>cgred is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_cpuspeed_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable CPU Speed (cpuspeed)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>cpuspeed</xhtml:code> service can adjust the clock speed of supported CPUs based upon
the current processing load thereby conserving power and reducing heat.

    The <xhtml:code>cpuspeed</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig cpuspeed off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>cpuspeed</xhtml:code> 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.
</rationale>
        <ident system="http://cce.mitre.org">CCE-26973-8</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:647" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>cpuspeed</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>cpuspeed</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>cpuspeed</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>cpuspeed</xhtml:code> --list
<xhtml:code>cpuspeed</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>cpuspeed</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service cpuspeed status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>cpuspeed is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_haldaemon_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Hardware Abstraction Layer Service (haldaemon)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Hardware Abstraction Layer Daemon (<xhtml:code>haldaemon</xhtml:code>) 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 <xhtml:code>haldaemon</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig haldaemon off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The haldaemon provides essential functionality on systems
that use removable media or devices, but can be disabled for systems
that do not require these.
</rationale>
        <ident system="http://cce.mitre.org">CCE-27086-8</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:545" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>haldaemon</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>haldaemon</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>haldaemon</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>haldaemon</xhtml:code> --list
<xhtml:code>haldaemon</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>haldaemon</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service haldaemon status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>haldaemon is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_irqbalance_enabled" selected="false" severity="low">
        <title xml:lang="en-US">Enable IRQ Balance (irqbalance)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>irqbalance</xhtml:code> service optimizes the balance between
power savings and performance through distribution of hardware interrupts across
multiple processors.

    The <xhtml:code>irqbalance</xhtml:code> service can be enabled with the following command:
    <xhtml:pre># chkconfig --level 2345 irqbalance on</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">In an environment with multiple processors (now common), the irqbalance service
provides potential speedups for handling interrupt requests.</rationale>
        <ident system="http://cce.mitre.org">CCE-26990-2</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:116" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>irqbalance</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>irqbalance</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>irqbalance</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>irqbalance</xhtml:code> --list
<xhtml:code>irqbalance</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>irqbalance</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service irqbalance status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>irqbalance is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_kdump_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable KDump Kernel Crash Analyzer (kdump)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>kdump</xhtml:code> service provides a kernel crash dump analyzer. It uses the <xhtml:code>kexec</xhtml:code>
system call to boot a secondary kernel ("capture" kernel) following a system
crash, which can load information from the crashed kernel for analysis.

    The <xhtml:code>kdump</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig kdump off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Unless the system is used for kernel development or testing, there
is little need to run the kdump service.</rationale>
        <ident system="http://cce.mitre.org">CCE-26850-8</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:1021" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>kdump</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>kdump</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>kdump</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>kdump</xhtml:code> --list
<xhtml:code>kdump</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>kdump</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service kdump status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>kdump is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_mdmonitor_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Software RAID Monitor (mdmonitor)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The mdmonitor service is used for monitoring a software RAID (hardware
RAID setups do not use this service).

    The <xhtml:code>mdmonitor</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig mdmonitor off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If software RAID monitoring is not required (and it is uncommon),
there is no need to run the service.</rationale>
        <ident system="http://cce.mitre.org">CCE-27193-2</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:514" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>mdmonitor</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>mdmonitor</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>mdmonitor</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>mdmonitor</xhtml:code> --list
<xhtml:code>mdmonitor</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>mdmonitor</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service mdmonitor status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>mdmonitor is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_messagebus_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable D-Bus IPC Service (messagebus)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>messagebus</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig messagebus off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
        <ident system="http://cce.mitre.org">CCE-26913-4</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:932" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>messagebus</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>messagebus</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>messagebus</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>messagebus</xhtml:code> --list
<xhtml:code>messagebus</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>messagebus</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service messagebus status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>messagebus is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_netconsole_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Network Console (netconsole)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>netconsole</xhtml:code> 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 <xhtml:code>netconsole</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig netconsole off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference href="http://iase.disa.mil/cci/index.html">381</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>netconsole</xhtml:code> service is not necessary unless there is a need to debug
kernel panics, which is not common.
</rationale>
        <ident system="http://cce.mitre.org">CCE-27254-2</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:656" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>netconsole</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>netconsole</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>netconsole</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>netconsole</xhtml:code> --list
<xhtml:code>netconsole</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>netconsole</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service netconsole status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>netconsole is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_ntpdate_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable ntpdate Service (ntpdate)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The ntpdate service sets the local hardware clock by polling NTP servers
when the system boots. It synchronizes to the NTP servers listed in
<xhtml:code>/etc/ntp/step-tickers</xhtml:code> or <xhtml:code>/etc/ntp.conf</xhtml:code>
and then sets the local hardware clock to the newly synchronized
system time.

    The <xhtml:code>ntpdate</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig ntpdate off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference href="http://iase.disa.mil/cci/index.html">382</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>ntpdate</xhtml:code> 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.</rationale>
        <ident system="http://cce.mitre.org">CCE-27256-7</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:351" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>ntpdate</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>ntpdate</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>ntpdate</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>ntpdate</xhtml:code> --list
<xhtml:code>ntpdate</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>ntpdate</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service ntpdate status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>ntpdate is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_oddjobd_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Odd Job Daemon (oddjobd)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>oddjobd</xhtml:code> service exists to provide an interface and
access control mechanism through which
specified privileged tasks can run tasks for unprivileged client
applications. Communication with <xhtml:code>oddjobd</xhtml:code> through the system message bus.

    The <xhtml:code>oddjobd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig oddjobd off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference href="http://iase.disa.mil/cci/index.html">381</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>oddjobd</xhtml:code> service may provide necessary functionality in
some environments but it 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.</rationale>
        <ident system="http://cce.mitre.org">CCE-27257-5</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:485" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>oddjobd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>oddjobd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>oddjobd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>oddjobd</xhtml:code> --list
<xhtml:code>oddjobd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>oddjobd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service oddjobd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>oddjobd is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_portreserve_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Portreserve (portreserve)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>portreserve</xhtml:code> 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 <xhtml:code>portreserve</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig portreserve off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>portreserve</xhtml:code> service provides helpful functionality by
preventing conflicting usage of ports in the reserved port range, but it can be
disabled if not needed.</rationale>
        <ident system="http://cce.mitre.org">CCE-27258-3</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:562" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>portreserve</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>portreserve</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>portreserve</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>portreserve</xhtml:code> --list
<xhtml:code>portreserve</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>portreserve</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service portreserve status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>portreserve is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_psacct_enabled" selected="false" severity="low">
        <title xml:lang="en-US">Enable Process Accounting (psacct)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The process accounting service (<xhtml:code>psacct</xhtml:code>) works with programs
including <xhtml:code>acct</xhtml:code> and <xhtml:code>ac</xhtml:code> to allow system administrators to view
user activity, such as commands issued by users of the system.

    The <xhtml:code>psacct</xhtml:code> service can be enabled with the following command:
    <xhtml:pre># chkconfig --level 2345 psacct on</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-12</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>psacct</xhtml:code> 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.</rationale>
        <ident system="http://cce.mitre.org">CCE-27259-1</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:986" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>psacct</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>psacct</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>psacct</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>psacct</xhtml:code> --list
<xhtml:code>psacct</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>psacct</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service psacct status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>psacct is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_qpidd_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Apache Qpid (qpidd)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>qpidd</xhtml:code> 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 <xhtml:code>qpidd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig qpidd off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference href="http://iase.disa.mil/cci/index.html">382</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>qpidd</xhtml:code> 
service is not needed and should be disabled or removed.</rationale>
        <ident system="http://cce.mitre.org">CCE-26928-2</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:840" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>qpidd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>qpidd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>qpidd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>qpidd</xhtml:code> --list
<xhtml:code>qpidd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>qpidd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service qpidd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>qpidd is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_quota_nld_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Quota Netlink (quota_nld)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>quota_nld</xhtml:code> 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 <xhtml:code>quota_nld</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig quota_nld off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If disk quotas are enforced on the local system, then the
<xhtml:code>quota_nld</xhtml:code> 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.</rationale>
        <ident system="http://cce.mitre.org">CCE-27260-9</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:296" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>quota_nld</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>quota_nld</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>quota_nld</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>quota_nld</xhtml:code> --list
<xhtml:code>quota_nld</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>quota_nld</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service quota_nld status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>quota_nld is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_rdisc_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Network Router Discovery Daemon (rdisc)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rdisc</xhtml:code> 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 <xhtml:code>rdisc</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig rdisc off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-4</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference href="http://iase.disa.mil/cci/index.html">382</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
        <ident system="http://cce.mitre.org">CCE-27261-7</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:553" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>rdisc</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>rdisc</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>rdisc</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>rdisc</xhtml:code> --list
<xhtml:code>rdisc</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>rdisc</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service rdisc status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>rdisc is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_rhnsd_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Red Hat Network Service (rhnsd)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>rhnsd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig rhnsd off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference href="http://iase.disa.mil/cci/index.html">382</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>rhnsd</xhtml:code> daemon can remain on. </rationale>
        <ident system="http://cce.mitre.org">CCE-26846-6</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:1104" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>rhnsd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>rhnsd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>rhnsd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>rhnsd</xhtml:code> --list
<xhtml:code>rhnsd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>rhnsd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service rhnsd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>rhnsd is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_rhsmcertd_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Red Hat Subscription Manager Daemon (rhsmcertd)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Red Hat Subscription Manager (rhsmcertd) periodically checks for
changes in the entitlement certificates for a registered system and updates it
accordingly.

    The <xhtml:code>rhsmcertd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig rhsmcertd off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>rhsmcertd</xhtml:code> 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.</rationale>
        <ident system="http://cce.mitre.org">CCE-27262-5</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:902" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>rhsmcertd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>rhsmcertd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>rhsmcertd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>rhsmcertd</xhtml:code> --list
<xhtml:code>rhsmcertd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>rhsmcertd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service rhsmcertd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>rhsmcertd is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_saslauthd_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable Cyrus SASL Authentication Daemon (saslauthd)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>saslauthd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig saslauthd off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(8)</reference>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>saslauthd</xhtml:code> 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.</rationale>
        <ident system="http://cce.mitre.org">CCE-27263-3</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:598" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>saslauthd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>saslauthd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>saslauthd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>saslauthd</xhtml:code> --list
<xhtml:code>saslauthd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>saslauthd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service saslauthd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>saslauthd is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_smartd_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable SMART Disk Monitoring Service (smartd)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>smartd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig smartd off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
        <ident system="http://cce.mitre.org">CCE-26853-2</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:867" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>smartd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>smartd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>smartd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>smartd</xhtml:code> --list
<xhtml:code>smartd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>smartd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service smartd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>smartd is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="service_sysstat_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable System Statistics Reset Service (sysstat)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>sysstat</xhtml:code> service resets various I/O and CPU
performance statistics to zero in order to begin counting from a fresh state
at boot time.

    The <xhtml:code>sysstat</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig sysstat off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">By default the <xhtml:code>sysstat</xhtml:code> service merely runs a program at
boot to reset the statistics, which can be retrieved using programs such as
<xhtml:code>sar</xhtml:code> and <xhtml:code>sadc</xhtml:code>. These may provide useful insight into system
operation, but unless used this service can be disabled.</rationale>
        <ident system="http://cce.mitre.org">CCE-27265-8</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:1170" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>sysstat</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>sysstat</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>sysstat</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>sysstat</xhtml:code> --list
<xhtml:code>sysstat</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>sysstat</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service sysstat status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>sysstat is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
    </Group>
    <Group id="cron_and_at">
      <title xml:lang="en-US">Cron and At Daemons</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The cron and at services are used to allow commands to
be executed at a later time. The cron service is required by almost
all systems to perform necessary maintenance tasks, while at may or
may not be required on a given system. Both daemons should be
configured defensively.</description>
      <Rule id="enable_cron" selected="false" severity="medium">
        <title xml:lang="en-US">Enable cron Service</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>crond</xhtml:code> 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 <xhtml:code>crond</xhtml:code> service can be enabled with the following command:
    <xhtml:pre># chkconfig --level 2345 crond on</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Due to its usage for maintenance and security-supporting tasks,
enabling the cron daemon is essential.
</rationale>
        <ident system="http://cce.mitre.org">CCE-27070-2</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:534" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is not running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    Run the following command to determine the current status of the
<xhtml:code>crond</xhtml:code> service:
  <xhtml:pre># service crond status</xhtml:pre>
    If the service is enabled, it should return the following: <xhtml:pre>crond is running...</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="disable_anacron" selected="false" severity="low">
        <title xml:lang="en-US">Disable anacron Service</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>cronie-anacron</xhtml:code> package which provides anacron
functionality is installed by default. To disable <xhtml:code>anacron</xhtml:code> support,
run the following commands:
<xhtml:pre># yum install cronie-noanacron
# yum erase cronie-anacron</xhtml:pre>
The <xhtml:code>anacron</xhtml:code> service provides <xhtml:code>cron</xhtml:code> functionality for systems
such as laptops and workstations that may be shut down during the normal times
that <xhtml:code>cron</xhtml:code> jobs are scheduled to run. On systems which do not require this
additional functionality, <xhtml:code>anacron</xhtml:code> could needlessly increase the possible
attack surface for an intruder.</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
      </Rule>
      <Rule id="service_atd_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable At Service (atd)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>at</xhtml:code> and <xhtml:code>batch</xhtml:code> 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 <xhtml:code>atd</xhtml:code> keeps track of tasks scheduled via
<xhtml:code>at</xhtml:code> and <xhtml:code>batch</xhtml:code>, and executes them at the specified time.

    The <xhtml:code>atd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig atd off</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference href="http://iase.disa.mil/cci/index.html">381</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>atd</xhtml:code> 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 <xhtml:code>at</xhtml:code> or
<xhtml:code>batch</xhtml:code> is not common.
</rationale>
        <ident system="http://cce.mitre.org">CCE-27249-2</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:765" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>atd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>atd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>atd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>atd</xhtml:code> --list
<xhtml:code>atd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>atd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service atd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>atd is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Group id="restrict_at_cron_users">
        <title xml:lang="en-US">Restrict at and cron to Authorized Users if Necessary</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>/etc/cron.allow</xhtml:code> and <xhtml:code>/etc/at.allow</xhtml:code> files contain lists of users who are allowed
to use cron and at to delay execution of processes. If these files exist and
if the corresponding files <xhtml:code>/etc/cron.deny</xhtml:code> and <xhtml:code>/etc/at.deny</xhtml:code> do not exist,
then only users listed in the relevant allow files can run the crontab and at
commands to submit jobs to be run at scheduled intervals.
On many systems, only the system administrator needs the ability to schedule
jobs. Note that even if a given user is not listed in <xhtml:code>cron.allow</xhtml:code>, cron jobs can
still be run as that user. The <xhtml:code>cron.allow</xhtml:code> file controls only administrative access
to the crontab command for scheduling and modifying cron jobs.
<xhtml:br/>
<xhtml:br/>
To restrict at and cron to only authorized users:
<xhtml:ul><xhtml:li>Remove the cron.deny file:<xhtml:pre># rm /etc/cron.deny</xhtml:pre></xhtml:li><xhtml:li>Edit <xhtml:code>/etc/cron.allow</xhtml:code>, adding one line for each user allowed to use the crontab command to create cron jobs.</xhtml:li><xhtml:li>Remove the <xhtml:code>at.deny</xhtml:code> file:<xhtml:pre># rm /etc/at.deny</xhtml:pre></xhtml:li><xhtml:li>Edit <xhtml:code>/etc/at.allow</xhtml:code>, adding one line for each user allowed to use the at command to create at jobs.</xhtml:li></xhtml:ul>
</description>
      </Group>
    </Group>
    <Group id="ssh">
      <title xml:lang="en-US">SSH Server</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The SSH protocol is recommended for remote login and
remote file transfer. SSH provides confidentiality and integrity
for data exchanged between two systems, as well as server
authentication, through the use of public key cryptography. The
implementation included with the system is called OpenSSH, and more
detailed documentation is available from its website,
http://www.openssh.org. Its server program is called <xhtml:code>sshd</xhtml:code> and
provided by the RPM package <xhtml:code>openssh-server</xhtml:code>.</description>
      <Value id="sshd_idle_timeout_value" operator="equals" type="number">
        <title xml:lang="en-US">SSH session Idle time</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Specify duration of allowed idle time.</description>
        <value>300</value>
        <value selector="5_minutes">300</value>
        <value selector="10_minutes">600</value>
      </Value>
      <Rule id="ssh_server_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable SSH Server If Possible (Unusual)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The SSH server service, sshd, is commonly needed.
However, if it can be disabled, do so.

    The <xhtml:code>sshd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig sshd off</xhtml:pre>
This is unusual, as SSH is a common method for encrypted and authenticated
remote access.
</description>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <ident system="http://cce.mitre.org">CCE-27054-6</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:371" href="ssg-rhel6-oval.xml"/>
        </check>
      </Rule>
      <Rule id="ssh_server_iptables_exception" selected="false" severity="low">
        <title xml:lang="en-US">Remove SSH Server iptables Firewall exception (Unusual)</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
<xhtml:br/><xhtml:br/>
Edit the files <xhtml:code>/etc/sysconfig/iptables</xhtml:code> and <xhtml:code>/etc/sysconfig/ip6tables</xhtml:code>
(if IPv6 is in use). In each file, locate and delete the line:
<xhtml:pre>-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT</xhtml:pre>
This is unusual, as SSH is a common method for encrypted and authenticated
remote access.
</description>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If inbound SSH connections are not expected, disallowing access to the SSH port will 
avoid possible exploitation of the port by an attacker.
</rationale>
        <ident system="http://cce.mitre.org">CCE-27060-3</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:113" href="ssg-rhel6-oval.xml"/>
        </check>
      </Rule>
      <Group id="ssh_server">
        <title xml:lang="en-US">Configure OpenSSH Server if Necessary</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If the system needs to act as an SSH server, then
certain changes should be made to the OpenSSH daemon configuration
file <xhtml:code>/etc/ssh/sshd_config</xhtml:code>. The following recommendations can be
applied to this file. See the <xhtml:code>sshd_config(5)</xhtml:code> man page for more
detailed information.</description>
        <Rule id="sshd_allow_only_protocol2" selected="false" severity="high">
          <title xml:lang="en-US">Allow Only SSH Protocol 2</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Only SSH protocol version 2 connections should be
permitted. The default setting in
<xhtml:code>/etc/ssh/sshd_config</xhtml:code> is correct, and can be
verified by ensuring that the following
line appears:
<xhtml:pre>Protocol 2</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(7)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(c)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">776</reference>
          <reference href="http://iase.disa.mil/cci/index.html">774</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1436</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
SSH protocol version 1 suffers from design flaws that
result in security vulnerabilities and
should not be used.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27072-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:287" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it is not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To check which SSH protocol version is allowed, run the following command:
<xhtml:pre># grep Protocol /etc/ssh/sshd_config</xhtml:pre>
If configured properly, output should be <xhtml:pre>Protocol 2</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="sshd_limit_user_access" selected="false" severity="low">
          <title xml:lang="en-US">Limit Users' SSH Access</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 
<xhtml:code>/etc/ssh/sshd_config</xhtml:code> file:
<xhtml:pre>DenyUsers USER1 USER2</xhtml:pre>
Where <xhtml:code>USER1</xhtml:code> and <xhtml:code>USER2</xhtml:code> are valid user names.
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Specifying which accounts are allowed SSH access into the system reduces the 
possibility of unauthorized access to the system.
</rationale>
        </Rule>
        <Rule id="sshd_set_idle_timeout" selected="false" severity="low">
          <title xml:lang="en-US">Set SSH Idle Timeout Interval</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">SSH allows administrators to set an idle timeout
interval.
After this interval has passed, the idle user will be
automatically logged out.
<xhtml:br/><xhtml:br/>
To set an idle timeout interval, edit the following line in <xhtml:code>/etc/ssh/sshd_config</xhtml:code> as
follows:
<xhtml:pre>ClientAliveInterval <xhtml:b>interval</xhtml:b></xhtml:pre>
The timeout <xhtml:b>interval</xhtml:b> is given in seconds. To have a timeout
of 15 minutes, set <xhtml:b>interval</xhtml:b> to 900.
<xhtml:br/><xhtml:br/>
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.
</description>
          <reference href="http://iase.disa.mil/cci/index.html">879</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1133</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Causing idle users to be automatically logged out
guards against compromises one system leading trivially
to compromises on another.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26919-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:ssg:var:2128" value-id="sshd_idle_timeout_value"/>
            <check-content-ref name="oval:ssg:def:682" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it is not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Run the following command to see what the timeout interval is:
<xhtml:pre># grep ClientAliveInterval /etc/ssh/sshd_config</xhtml:pre>
If properly configured, the output should be:
<xhtml:pre>ClientAliveInterval 900</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="sshd_set_keepalive" selected="false" severity="low">
          <title xml:lang="en-US">Set SSH Client Alive Count</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To ensure the SSH idle timeout occurs precisely when the <xhtml:code>ClientAliveCountMax</xhtml:code> is set,
edit <xhtml:code>/etc/ssh/sshd_config</xhtml:code> as
follows:
<xhtml:pre>ClientAliveCountMax 0</xhtml:pre>
</description>
          <reference href="http://iase.disa.mil/cci/index.html">879</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1133</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
This ensures a user login will be terminated as soon as the <xhtml:code>ClientAliveCountMax</xhtml:code>
is reached.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26282-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:943" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it is not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the SSH idle timeout will occur when the <xhtml:code>ClientAliveCountMax</xhtml:code> is set, run the following command:
<xhtml:pre># grep ClientAliveCountMax /etc/ssh/sshd_config</xhtml:pre>
If properly configured, output should be:
<xhtml:pre>ClientAliveCountMax 0</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="sshd_disable_rhosts" selected="false" severity="medium">
          <title xml:lang="en-US">Disable SSH Support for .rhosts Files</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">SSH can emulate the behavior of the obsolete rsh
command in allowing users to enable insecure access to their
accounts via <xhtml:code>.rhosts</xhtml:code> files.
<xhtml:br/><xhtml:br/>
To ensure this behavior is disabled, add or correct the
following line in <xhtml:code>/etc/ssh/sshd_config</xhtml:code>:
<xhtml:pre>IgnoreRhosts yes</xhtml:pre>
</description>
          <reference href="http://iase.disa.mil/cci/index.html">765</reference>
          <reference href="http://iase.disa.mil/cci/index.html">766</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
SSH trust relationships mean a compromise on one host
can allow an attacker to move trivially to other hosts.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27124-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1133" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the required value is not set" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To determine how the SSH daemon's
    <xhtml:code>IgnoreRhosts</xhtml:code>
    option is set, run the following command:
    <xhtml:pre xml:space="preserve"># grep -i IgnoreRhosts /etc/ssh/sshd_config</xhtml:pre>
      If no line, a commented line, or a line indicating the value
      <xhtml:code>yes</xhtml:code> is returned, then the required value is set.
    
          </check-content>
          </check>
        </Rule>
        <Rule id="disable_host_auth" selected="false" severity="medium">
          <title xml:lang="en-US">Disable Host-Based Authentication</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">SSH's cryptographic host-based authentication is
more secure than <xhtml:code>.rhosts</xhtml:code> authentication,
since hosts are cryptographically authenticated. However, it is
not recommended that hosts unilaterally trust one another, even
within an organization.
<xhtml:br/><xhtml:br/>
To disable host-based authentication, add or correct the
following line in <xhtml:code>/etc/ssh/sshd_config</xhtml:code>:
<xhtml:pre>HostbasedAuthentication no</xhtml:pre>
</description>
          <reference href="http://iase.disa.mil/cci/index.html">765</reference>
          <reference href="http://iase.disa.mil/cci/index.html">766</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
SSH trust relationships mean a compromise on one host
can allow an attacker to move trivially to other hosts.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27091-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:953" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the required value is not set" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To determine how the SSH daemon's
    <xhtml:code>HostbasedAuthentication</xhtml:code>
    option is set, run the following command:
    <xhtml:pre xml:space="preserve"># grep -i HostbasedAuthentication /etc/ssh/sshd_config</xhtml:pre>
      If no line, a commented line, or a line indicating the value
      <xhtml:code>no</xhtml:code> is returned, then the required value is set.
    
          </check-content>
          </check>
        </Rule>
        <Rule id="sshd_disable_root_login" selected="false" severity="medium">
          <title xml:lang="en-US">Disable SSH Root Login</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The root user should never be allowed to login to a
system directly over a network.
To disable root login via SSH, add or correct the following line
in <xhtml:code>/etc/ssh/sshd_config</xhtml:code>:
<xhtml:pre>PermitRootLogin no</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6(2)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-2(1)</reference>
          <reference href="http://iase.disa.mil/cci/index.html">770</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Permitting direct root login reduces auditable information about who ran
privileged commands on the system
and also allows direct attack attempts on root's password.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27100-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:773" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the required value is not set" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To determine how the SSH daemon's
    <xhtml:code>PermitRootLogin</xhtml:code>
    option is set, run the following command:
    <xhtml:pre xml:space="preserve"># grep -i PermitRootLogin /etc/ssh/sshd_config</xhtml:pre>
      If a line indicating no is returned, then the required value is set.
    
          </check-content>
          </check>
        </Rule>
        <Rule id="sshd_disable_empty_passwords" selected="false" severity="high">
          <title xml:lang="en-US">Disable SSH Access via Empty Passwords</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To explicitly disallow remote login from accounts with
empty passwords, add or correct the following line in
<xhtml:code>/etc/ssh/sshd_config</xhtml:code>:
<xhtml:pre>PermitEmptyPasswords no</xhtml:pre>
Any accounts with empty passwords should be disabled immediately, and PAM configuration
should prevent users from being able to assign themselves empty passwords.
</description>
          <reference href="http://iase.disa.mil/cci/index.html">765</reference>
          <reference href="http://iase.disa.mil/cci/index.html">766</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26887-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1122" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the required value is not set" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To determine how the SSH daemon's
    <xhtml:code>PermitEmptyPasswords</xhtml:code>
    option is set, run the following command:
    <xhtml:pre xml:space="preserve"># grep -i PermitEmptyPasswords /etc/ssh/sshd_config</xhtml:pre>
      If no line, a commented line, or a line indicating the value
      <xhtml:code>no</xhtml:code> is returned, then the required value is set.
    
          </check-content>
          </check>
        </Rule>
        <Rule id="sshd_enable_warning_banner" selected="false" severity="medium">
          <title xml:lang="en-US">Enable SSH Warning Banner</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To enable the warning banner and ensure it is consistent
across the system, add or correct the following line in <xhtml:code>/etc/ssh/sshd_config</xhtml:code>:
<xhtml:pre>Banner /etc/issue</xhtml:pre>
Another section contains information on how to create an
appropriate system-wide warning banner.
</description>
          <reference href="http://iase.disa.mil/cci/index.html">48</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27112-2</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1102" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the required value is not set" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To determine how the SSH daemon's
    <xhtml:code>Banner</xhtml:code>
    option is set, run the following command:
    <xhtml:pre xml:space="preserve"># grep -i Banner /etc/ssh/sshd_config</xhtml:pre>
      If a line indicating /etc/issue is returned, then the required value is set.
    
          </check-content>
          </check>
        </Rule>
        <Rule id="sshd_do_not_permit_user_env" selected="false" severity="low">
          <title xml:lang="en-US">Do Not Allow SSH Environment Options</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To ensure users are not able to present
environment options to the SSH daemon, add or correct the following line
in <xhtml:code>/etc/ssh/sshd_config</xhtml:code>:
<xhtml:pre>PermitUserEnvironment no</xhtml:pre>
</description>
          <reference href="http://iase.disa.mil/cci/index.html">1414</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
SSH environment options potentially allow users to bypass
access restriction in some configurations.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27201-3</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:370" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it is not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure users are not able to present environment daemons, run the following command:
<xhtml:pre># grep PermitUserEnvironment /etc/ssh/sshd_config</xhtml:pre>
If properly configured, output should be:
<xhtml:pre>PermitUserEnvironment no</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="sshd_use_approved_ciphers" selected="false" severity="medium">
          <title xml:lang="en-US">Use Only Approved Ciphers</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>/etc/ssh/sshd_config</xhtml:code>
demonstrates use of FIPS-approved ciphers:
<xhtml:pre>Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc</xhtml:pre>
The man page <xhtml:code>sshd_config(5)</xhtml:code> contains a list of supported ciphers.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-3</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-17(2)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-10(5)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-5(1)(c)</reference>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">IA-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">803</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1144</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1145</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1146</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Approved algorithms should impart some level of confidence in their
implementation. These are also required for compliance.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26555-3</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:266" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="that is not the case" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Only FIPS-approved ciphers should be used.  To verify that only FIPS-approved 
ciphers are in use, run the following command:
<xhtml:pre># grep Ciphers /etc/ssh/sshd_config</xhtml:pre>
The output should contain only those ciphers which are FIPS-approved, namely, the 
AES and 3DES ciphers.
</check-content>
          </check>
        </Rule>
        <Group id="sshd_strengthen_firewall">
          <title xml:lang="en-US">Strengthen Firewall Configuration if Possible</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If the SSH server is expected to only receive connections from 
the local network, then strengthen the default firewall rule for the SSH service
to only accept connections from the appropriate network segment(s).
<xhtml:br/><xhtml:br/>
Determine an appropriate network block, <xhtml:code>netwk</xhtml:code>, and network mask, <xhtml:code>mask</xhtml:code>, 
representing the machines on your network which will be allowed to access this SSH server.
<xhtml:br/><xhtml:br/>
Edit the files <xhtml:code>etc/sysconfig/iptables</xhtml:code> and <xhtml:code>/etc/sysconfig/ip6tables</xhtml:code>
(if IPv6 is in use). In each file, locate the line:
<xhtml:pre>-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT</xhtml:pre>
and replace it with:
<xhtml:pre>-A INPUT -s netwk/mask -m state --state NEW -p tcp --dport 22 -j ACCEPT</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Restricting SSH access to only trusted network segments reduces exposure of the SSH 
server to attacks from unauthorized networks.</rationale>
        </Group>
      </Group>
    </Group>
    <Group id="xwindows">
      <title xml:lang="en-US">X Window System</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The X Window System implementation included with the
system is called X.org.</description>
      <Group id="disabling_xwindows">
        <title xml:lang="en-US">Disable X Windows</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Unless there is a mission-critical reason for the
system to run a graphical user interface, ensure X is not set to start
automatically at boot and remove the X Windows software packages.
There is usually no reason to run X Windows
on a dedicated server machine, as it increases the system's attack surface and consumes
system resources. Administrators of server systems should instead login via
SSH or on the text console.</description>
        <Rule id="disable_xwindows_with_runlevel" selected="false" severity="low">
          <title xml:lang="en-US">Disable X Windows Startup By Setting Runlevel</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Setting the system's runlevel to 3 will prevent automatic startup
of the X server. To do so, ensure the following line in <xhtml:code>/etc/inittab</xhtml:code>
features a <xhtml:code>3</xhtml:code> as shown:
<xhtml:pre>id:3:initdefault:</xhtml:pre>
</description>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121025</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Unnecessary services should be disabled to decrease the attack surface of the system.</rationale>
          <ident system="http://cce.mitre.org">CCE-27119-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:260" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it does not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify the default runlevel is 3, run the following command:
<xhtml:pre># grep initdefault /etc/inittab</xhtml:pre>
The output should show the following:
<xhtml:pre>id:3:initdefault:</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="packagegroup_xwindows_remove" selected="false" severity="low">
          <title xml:lang="en-US">Remove the X Windows Package Group</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Removing all packages which constitute the X Window System
ensures users or malicious software cannot start X.
To do so, run the following command:
<xhtml:pre># yum groupremove "X Window System"</xhtml:pre>
</description>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121025</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Unnecessary packages should not be installed to decrease the attack surface of the system.</rationale>
          <ident system="http://cce.mitre.org">CCE-27198-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:885" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it is not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the X Windows package group is removed, run the following command:
<xhtml:pre>$ rpm -qi xorg-x11-server-common</xhtml:pre>
The output should be:
<xhtml:pre>package xorg-x11-server-common is not installed</xhtml:pre>
</check-content>
          </check>
        </Rule>
      </Group>
    </Group>
    <Group id="avahi">
      <title xml:lang="en-US">Avahi Server</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Avahi daemon implements the DNS Service Discovery
and Multicast DNS protocols, which provide service and host
discovery on a network. It allows a system to automatically
identify resources on the network, such as printers or web servers.
This capability is also known as mDNSresponder and is a major part
of Zeroconf networking. </description>
      <Group id="disable_avahi_group">
        <title xml:lang="en-US">Disable Avahi Server if Possible</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Because the Avahi daemon service keeps an open network
port, it is subject to network attacks.
Disabling it can reduce the system's vulnerability to such attacks.
</description>
        <Rule id="disable_avahi" selected="false" severity="low">
          <title xml:lang="en-US">Disable Avahi Server Software</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>avahi-daemon</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig avahi-daemon off</xhtml:pre>
          </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27087-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:146" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>avahi-daemon</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>avahi-daemon</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>avahi-daemon</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>avahi-daemon</xhtml:code> --list
<xhtml:code>avahi-daemon</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>avahi-daemon</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service avahi-daemon status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>avahi-daemon is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="avahi_configuration">
        <title xml:lang="en-US">Configure Avahi if Necessary</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If your system requires the Avahi daemon, its configuration can be restricted
to improve security. The Avahi daemon configuration file is
<xhtml:code>/etc/avahi/avahi-daemon.conf</xhtml:code>. The following security recommendations
should be applied to this file:
See the <xhtml:code>avahi-daemon.conf(5)</xhtml:code> man page, or documentation at
http://www.avahi.org, for more detailed information about the configuration options.
</description>
        <Rule id="avahi_ip_only" selected="false" severity="low">
          <title xml:lang="en-US">Serve Avahi Only via Required Protocol</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If you are using only IPv4, edit <xhtml:code>/etc/avahi/avahi-daemon.conf</xhtml:code> and ensure
the following line exists in the <xhtml:code>[server]</xhtml:code> section:
<xhtml:pre>use-ipv6=no</xhtml:pre>
Similarly, if you are using only IPv6, disable IPv4 sockets with the line:
<xhtml:pre>use-ipv4=no</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        </Rule>
        <Rule id="avahi_check_ttl" selected="false" severity="low">
          <title xml:lang="en-US">Check Avahi Responses' TTL Field</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To make Avahi ignore packets unless the TTL field is 255, edit
<xhtml:code>/etc/avahi/avahi-daemon.conf</xhtml:code> and ensure the following line
appears in the <xhtml:code>[server]</xhtml:code> section:
<xhtml:pre>check-response-ttl=yes</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
        </Rule>
        <Rule id="avahi_prevent_port_sharing" selected="false" severity="low">
          <title xml:lang="en-US">Prevent Other Programs from Using Avahi's Port</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To prevent other mDNS stacks from running, edit <xhtml:code>/etc/avahi/avahi-daemon.conf</xhtml:code>
and ensure the following line appears in the <xhtml:code>[server]</xhtml:code> section:
<xhtml:pre>disallow-other-stacks=yes</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
This helps ensure that only Avahi is responsible for mDNS traffic coming from
that port on the system.
</rationale>
        </Rule>
        <Rule id="avahi_disable_publishing" selected="false" severity="low">
          <title xml:lang="en-US">Disable Avahi Publishing</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To prevent other mDNS stacks from running, edit <xhtml:code>/etc/avahi/avahi-daemon.conf</xhtml:code>
and ensure the following line appears in the <xhtml:code>[server]</xhtml:code> section:
<xhtml:pre>disallow-other-stacks=yes</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
This helps ensure that only Avahi is responsible for mDNS traffic coming from
that port on the system.
</rationale>
        </Rule>
        <Group id="avahi_restrict_published_information">
          <title xml:lang="en-US">Restrict Information Published by Avahi</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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 <xhtml:code>[publish]</xhtml:code> section:
<xhtml:pre>disable-user-service-publishing=yes</xhtml:pre>
Implement as many of the following lines as possible, to restrict the information
published by Avahi.
<xhtml:pre>publish-addresses=no
publish-hinfo=no
publish-workstation=no
publish-domain=no</xhtml:pre>
Inspect the files in the directory <xhtml:code>/etc/avahi/services/</xhtml:code>. Unless there
is an operational need to publish information about each of these services,
delete the corresponding file.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
        </Group>
      </Group>
    </Group>
    <Group id="printing">
      <title xml:lang="en-US">Print Support</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Common Unix Printing System (CUPS) service provides both local
and network printing support. A system running the CUPS service can accept
print jobs from other systems, process them, and send them to the appropriate
printer. It also provides an interface for remote administration through a web
browser. The CUPS service is installed and activated by default. The project
homepage and more detailed documentation are available at http://www.cups.org.
<xhtml:br/><xhtml:br/> </description>
      <Rule id="service_cups_disabled" selected="false" severity="low">
        <title xml:lang="en-US">Disable the CUPS Service</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
          
    The <xhtml:code>cups</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig cups off</xhtml:pre>
        </description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Turn off unneeded services to reduce attack surface.
</rationale>
        <ident system="http://cce.mitre.org">CCE-26899-5</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:624" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    To check that the <xhtml:code>cups</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>cups</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>cups</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>cups</xhtml:code> --list
<xhtml:code>cups</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>cups</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service cups status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>cups is stopped</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Group id="configure_printing">
        <title xml:lang="en-US">Configure the CUPS Service if Necessary</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">CUPS provides the ability to easily share local printers with
other machines over the network. It does this by allowing machines to share
lists of available printers. Additionally, each machine that runs the CUPS
service can potentially act as a print server. Whenever possible, the printer
sharing and print server capabilities of CUPS should be limited or disabled.
The following recommendations should demonstrate how to do just that.
</description>
        <Rule id="cups_disable_browsing" selected="false" severity="low">
          <title xml:lang="en-US">Disable Printer Browsing Entirely if Possible</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>/etc/cups/cupsd.conf</xhtml:code>, to include the following:
<xhtml:pre>Browsing Off</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27108-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1152" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
        <Rule id="cups_disable_printserver" selected="false" severity="low">
          <title xml:lang="en-US">Disable Print Server Capabilities</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre>Port 631</xhtml:pre>
and replacing it with the <xhtml:code>Listen</xhtml:code> directive:
<xhtml:pre>Listen localhost:631</xhtml:pre>
This will prevent remote users from printing to locally configured printers
while still allowing local users on the machine to print normally.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27107-2</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:436" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
      </Group>
    </Group>
    <Group id="dhcp">
      <title xml:lang="en-US">DHCP</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Dynamic Host Configuration Protocol (DHCP) allows
systems to request and obtain an IP address and other configuration
parameters from a server.
<xhtml:br/><xhtml:br/>
In general, sites use DHCP either to allow a large pool of
mobile or unknown machines to share a limited number of IP
addresses, or to standardize installations by avoiding static,
individual IP address configuration on hosts. It is recommended
that sites avoid DHCP as much as possible. Since DHCP
authentication is not well-supported, DHCP clients are open to
attacks from rogue DHCP servers. Such servers can give clients
incorrect information (e.g. malicious DNS server addresses) which
could lead to their compromise.
<xhtml:br/><xhtml:br/>
If a machine must act as a DHCP client or server, configure
it defensively using the guidance in this section. This guide
recommends configuring networking on clients by manually editing
the appropriate files under <xhtml:code>/etc/sysconfig</xhtml:code>. It is also possible to
use the graphical front-end programs system-config-network and
system-config-network-tui, but these programs rewrite configuration
files from scratch based on their defaults - destroying any manual
changes - and should therefore be used with caution.</description>
      <Group id="disabling_dhcp_server">
        <title xml:lang="en-US">Disable DHCP Server</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The DHCP server <xhtml:code>dhcpd</xhtml:code> is not installed or activated by
default. If the software was installed and activated, but the
system does not need to act as a DHCP server, it should be disabled
and removed.
</description>
        <Rule id="disable_dhcp_server" selected="false" severity="medium">
          <title xml:lang="en-US">Disable DHCP Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>dhcpd</xhtml:code> service should be disabled on
any system that does not need to act as a DHCP server.

    The <xhtml:code>dhcpd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig dhcpd off</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27074-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1066" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>dhcpd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>dhcpd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>dhcpd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>dhcpd</xhtml:code> --list
<xhtml:code>dhcpd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>dhcpd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service dhcpd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>dhcpd is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="uninstall_dhcp_server" selected="false" severity="medium">
          <title xml:lang="en-US">Uninstall DHCP Server Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If the system does not need to act as a DHCP server,
the dhcp package can be uninstalled.

    The <xhtml:code>dhcp</xhtml:code> package can be removed with the following command:
    <xhtml:pre># yum erase dhcp</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Removing the DHCP server ensures that it cannot be easily or
accidentally reactivated and disrupt network operation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27120-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:645" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>dhcp</xhtml:code> package is installed:
    <xhtml:pre># rpm -q dhcp</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="dhcp_server_configuration">
        <title xml:lang="en-US">Disable DHCP Server</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If the system must act as a DHCP server, the configuration
information it serves should be minimized. Also, support for other protocols
and DNS-updating schemes should be explicitly disabled unless needed. The
configuration file for dhcpd is called <xhtml:code>/etc/dhcpd.conf</xhtml:code>. The file
begins with a number of global configuration options. The remainder of the file
is divided into sections, one for each block of addresses offered by dhcpd,
each of which contains configuration options specific to that address
block.</description>
        <Rule id="dhcp_server_disable_ddns" selected="false" severity="low">
          <title xml:lang="en-US">Do Not Use Dynamic DNS</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To prevent the DHCP server from receiving DNS information from
clients, edit <xhtml:code>/etc/dhcpd.conf</xhtml:code>, and add or correct the following global
option: <xhtml:pre>ddns-update-style none;</xhtml:pre>
</description>
          <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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).</warning>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.  </rationale>
          <ident system="http://cce.mitre.org">CCE-27049-6</ident>
        </Rule>
        <Rule id="dhcp_server_deny_decline" selected="false" severity="low">
          <title xml:lang="en-US">Deny Decline Messages</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Edit <xhtml:code>/etc/dhcpd.conf</xhtml:code> and add or correct the following
global option to prevent the DHCP server from responding the DHCPDECLINE
messages, if possible: <xhtml:pre>deny declines;</xhtml:pre> </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-27106-4</ident>
        </Rule>
        <Rule id="dhcp_server_deny_bootp" selected="false" severity="low">
          <title xml:lang="en-US">Deny BOOTP Queries</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Unless your network needs to support older BOOTP clients, disable
support for the bootp protocol by adding or correcting the global option:
<xhtml:pre>deny bootp;</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27077-7</ident>
        </Rule>
        <Group id="dhcp_server_minimize_served_info">
          <title xml:lang="en-US">Minimize Served Information</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Edit /etc/dhcpd.conf. Examine each address range section within
the file, and ensure that the following options are not defined unless there is
an operational need to provide this information via DHCP:
<xhtml:pre>option domain-name
option domain-name-servers
option nis-domain
option nis-servers
option ntp-servers
option routers
option time-offset</xhtml:pre>
</description>
          <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">By default, the RHEL client installation uses DHCP
to request much of the above information from the DHCP server. In particular,
domain-name, domain-name-servers, and routers are configured via DHCP.  These
settings are typically necessary for proper network functionality, but are also
usually static across machines at a given site.</warning>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Because the configuration information provided by the DHCP server
could be maliciously provided to clients by a rogue DHCP server, the amount of
information provided via DHCP should be minimized. Remove these definitions
from the DHCP server configuration to ensure that legitimate clients do not
unnecessarily rely on DHCP for this information.
</rationale>
        </Group>
        <Rule id="dhcp_server_configure_logging" selected="false" severity="low">
          <title xml:lang="en-US">Configure Logging</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Ensure that the following line exists in
<xhtml:code>/etc/syslog.conf</xhtml:code>:
<xhtml:pre>daemon.*           /var/log/daemon.log</xhtml:pre>
Configure logwatch or other log monitoring tools to summarize error conditions
reported by the dhcpd process.</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf"/>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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</rationale>
          <ident system="http://cce.mitre.org">CCE-26898-7</ident>
        </Rule>
      </Group>
      <Group id="disabling_dhcp_client">
        <title xml:lang="en-US">Disable DHCP Client</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
DHCP is the default network configuration method provided by the system
installer, and common on many networks. Nevertheless, manual management
of IP addresses for systems implies a greater degree of management and
accountability for network activity.
</description>
        <Rule id="disable_dhcp_client" selected="false" severity="low">
          <title xml:lang="en-US">Disable DHCP Client</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
For each interface on the system (e.g. eth0), edit
<xhtml:code>/etc/sysconfig/network-scripts/ifcfg-<xhtml:i>interface</xhtml:i></xhtml:code> and make the
following changes:
<xhtml:ul><xhtml:li> Correct the BOOTPROTO line to read:
<xhtml:pre>BOOTPROTO=static</xhtml:pre>
</xhtml:li><xhtml:li> Add or correct the following lines, substituting the appropriate
values based on your site's addressing scheme:
<xhtml:pre>NETMASK=255.255.255.0
IPADDR=192.168.1.2
GATEWAY=192.168.1.1</xhtml:pre>
</xhtml:li></xhtml:ul>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.</rationale>
          <ident system="http://cce.mitre.org">CCE-27021-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:792" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it does not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify that DHCP is not being used, examine the following file for each interface:
<xhtml:pre># /etc/sysconfig/network-scripts/ifcfg-<xhtml:i>interface</xhtml:i></xhtml:pre>
Look for the following:
<xhtml:pre>BOOTPROTO=static</xhtml:pre>
and the following, substituting the appropriate values based on your site's addressing scheme:
<xhtml:pre>NETMASK=255.255.255.0
IPADDR=192.168.1.2
GATEWAY=192.168.1.1</xhtml:pre>
</check-content>
          </check>
        </Rule>
      </Group>
      <Group id="dhcp_client_configuration">
        <title xml:lang="en-US">Configure DHCP Client if Necessary</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If DHCP must be used, then certain configuration changes can
minimize the amount of information it receives and applies from the network,
and thus the amount of incorrect information a rogue DHCP server could
successfully distribute.  For more information on configuring dhclient, see the
<xhtml:code>dhclient(8)</xhtml:code> and <xhtml:code>dhclient.conf(5)</xhtml:code> man pages.  </description>
        <Group id="dhcp_client_restrict_options">
          <title xml:lang="en-US">Minimize the DHCP-Configured Options</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Create the file <xhtml:code>/etc/dhclient.conf</xhtml:code>, and add an
appropriate setting for each of the ten configuration settings which can be
obtained via DHCP. For each setting, do one of the following:
<xhtml:br/>
If the setting should <xhtml:i>not</xhtml:i> be configured remotely by the DHCP server,
select an appropriate static value, and add the line:
<xhtml:pre>supersede <xhtml:code>setting value</xhtml:code>;</xhtml:pre>
If the setting should be configured remotely by the DHCP server, add the lines:
<xhtml:pre>request <xhtml:code>setting</xhtml:code>;
require <xhtml:code>setting</xhtml:code>;</xhtml:pre>
For example, suppose the DHCP server should provide only the IP address itself
and the subnet mask. Then the entire file should look like:
<xhtml:pre>supersede domain-name "example.com";
supersede domain-name-servers 192.168.1.2;
supersede nis-domain "";
supersede nis-servers "";
supersede ntp-servers "ntp.example.com ";
supersede routers 192.168.1.1;
supersede time-offset -18000;
request subnet-mask;
require subnet-mask;</xhtml:pre>
</description>
          <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">In this example, the options nis-servers and
nis-domain are set to empty strings, on the assumption that the deprecated NIS
protocol is not in use. It is necessary to supersede settings for unused
services so that they cannot be set by a hostile DHCP server. If an option is
set to an empty string, dhclient will typically not attempt to configure the
service.</warning>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">By default, the DHCP client program, dhclient, requests and applies
ten configuration options (in addition to the IP address) from the DHCP server.
subnet-mask, broadcast-address, time-offset, routers, domain-name,
domain-name-servers, host-name, nis-domain, nis-servers, and ntp-servers.  Many
of the options requested and applied by dhclient may be the same for every
system on a network. It is recommended that almost all configuration options be
assigned statically, and only options which must vary on a host-by-host basis
be assigned via DHCP. This limits the damage which can be done by a rogue DHCP
server.  If appropriate for your site, it is also possible to supersede the
host-name directive in <xhtml:code>/etc/dhclient.conf</xhtml:code>, establishing a static
hostname for the machine. However, dhclient does not use the host name option
provided by the DHCP server (instead using the value provided by a reverse DNS
lookup).</rationale>
        </Group>
      </Group>
    </Group>
    <Group id="ntp">
      <title xml:lang="en-US">Network Time Protocol</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Network Time Protocol is used to manage the system
clock over a network. Computer clocks are not very accurate, so
time will drift unpredictably on unmanaged systems. Central time
protocols can be used both to ensure that time is consistent among
a network of machines, and that their time is consistent with the
outside world.
<xhtml:br/><xhtml:br/>
Local time synchronization is recommended for all networks.
If every machine on your network reliably reports the same time as
every other machine, then it is much easier to correlate log
messages in case of an attack. In addition, a number of
cryptographic protocols (such as Kerberos) use timestamps to
prevent certain types of attacks. If your network does not have
synchronized time, these protocols may be unreliable or even
unusable.
<xhtml:br/><xhtml:br/>
Depending on the specifics of the network, global time accuracy may be just as
important as local synchronization, or not very important at all. If your
network is connected to the Internet, it is recommended that you make use of a
public timeserver or one provided by your enterprise or agency, since globally
accurate timestamps may be necessary if you need to investigate or respond to
an attack which originated outside of your network.
<xhtml:br/><xhtml:br/>
A typical network setup involves a small number of internal systems operating as NTP
servers, and the remainder obtaining time information from those
internal servers.
<xhtml:br/><xhtml:br/>
More information on how to configure the NTP server software,
including configuration of cryptographic authentication for
time data, is available at http://www.ntp.org.
</description>
      <Rule id="enable_ntpd" selected="false" severity="medium">
        <title xml:lang="en-US">Enable the NTP Daemon</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
          
    The <xhtml:code>ntpd</xhtml:code> service can be enabled with the following command:
    <xhtml:pre># chkconfig --level 2345 ntpd on</xhtml:pre>
        </description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-8(1)</reference>
        <reference href="http://iase.disa.mil/cci/index.html">160</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Enabling the <xhtml:code>ntpd</xhtml:code> service ensures that the <xhtml:code>ntpd</xhtml:code>
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.  
<xhtml:br/><xhtml:br/>
The NTP daemon offers all of the functionality of <xhtml:code>ntpdate</xhtml:code>, which is now 
deprecated.  Additional information on this is available at 
http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate</rationale>
        <ident system="http://cce.mitre.org">CCE-27093-4</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:339" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the service is not running" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    Run the following command to determine the current status of the
<xhtml:code>ntpd</xhtml:code> service:
  <xhtml:pre># service ntpd status</xhtml:pre>
    If the service is enabled, it should return the following: <xhtml:pre>ntpd is running...</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="ntpd_specify_remote_server" selected="false" severity="medium">
        <title xml:lang="en-US">Specify a Remote NTP Server</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To specify a remote NTP server for time synchronization, edit
the file <xhtml:code>/etc/ntp.conf</xhtml:code>. Add or correct the following lines,
substituting the IP or hostname of a remote NTP server for <xhtml:em>ntpserver</xhtml:em>:
<xhtml:pre>server <xhtml:i>ntpserver</xhtml:i></xhtml:pre>
This instructs the NTP software to contact that remote server to obtain time
data.
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-8(1)</reference>
        <reference href="http://iase.disa.mil/cci/index.html">160</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> Synchronizing with an NTP server makes it possible
to collate system logs from multiple sources or correlate computer events with
real time events. Using a trusted NTP server provided by your organization is
recommended.</rationale>
        <ident system="http://cce.mitre.org">CCE-27098-3</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:1043" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="this is not the case" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
A remote NTP server should be configured for time synchronization.  To verify
one is configured, open the following file:
<xhtml:pre>/etc/ntp.conf</xhtml:pre>
In the file, there should be a section similar to the following:
<xhtml:pre># --- OUR TIMESERVERS -----
server <xhtml:i>ntpserver</xhtml:i></xhtml:pre>
</check-content>
        </check>
      </Rule>
      <Rule id="ntpd_specify_multiple_servers" selected="false" severity="low">
        <title xml:lang="en-US">Specify Additional Remote NTP Servers</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Additional NTP servers can be specified for time synchronization
in the file <xhtml:code>/etc/ntp.conf</xhtml:code>.  To do so, add additional lines of the
following form, substituting the IP address or hostname of a remote NTP server for
<xhtml:em>ntpserver</xhtml:em>:
<xhtml:pre>server <xhtml:i>ntpserver</xhtml:i></xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-8(1)</reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
      </Rule>
    </Group>
    <Group id="mail">
      <title xml:lang="en-US">Mail Server Software</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Mail servers are used to send and receive email over the network.
Mail is a very common service, and Mail Transfer Agents (MTAs) are obvious
targets of network attack.
Ensure that machines are not running MTAs unnecessarily,
and configure needed MTAs as defensively as possible.
<xhtml:br/><xhtml:br/>
Very few systems at any site should be configured to directly receive email over the
network. Users should instead use mail client programs to retrieve email
from a central server that supports protocols such as IMAP or POP3.
However, it is normal for most systems to be independently capable of sending email,
for instance so that cron jobs can report output to an administrator.
Most MTAs, including Postfix, support a submission-only mode in which mail can be sent from
the local system to a central site MTA (or directly delivered to a local account),
but the system still cannot receive mail directly over a network.
<xhtml:br/><xhtml:br/>
The <xhtml:code>alternatives</xhtml:code> program in RHEL permits selection of other mail server software
(such as Sendmail), but Postfix is the default and is preferred.
Postfix was coded with security in mind and can also be more effectively contained by
SELinux as its modular design has resulted in separate processes performing specific actions.
More information is available on its website, http://www.postfix.org.
</description>
      <Rule id="service_postfix_enable" selected="false" severity="low">
        <title xml:lang="en-US">Enable Postfix Service</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>postfix</xhtml:code> service can be enabled with the following command:
    <xhtml:pre># chkconfig --level 2345 postfix on</xhtml:pre>
</description>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Local mail delivery is essential to some system maintenance and
notification tasks.
</rationale>
        <ident system="http://cce.mitre.org">CCE-26325-1</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:215" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the system is not a cross domain solution and the service is not enabled" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    Run the following command to determine the current status of the
<xhtml:code>postfix</xhtml:code> service:
  <xhtml:pre># service postfix status</xhtml:pre>
    If the service is enabled, it should return the following: <xhtml:pre>postfix is running...</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Rule id="package_sendmail_removed" selected="false" severity="medium">
        <title xml:lang="en-US">Uninstall Sendmail Package</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Sendmail is not the default mail transfer agent and is
not installed by default.

    The <xhtml:code>sendmail</xhtml:code> package can be removed with the following command:
    <xhtml:pre># yum erase sendmail</xhtml:pre>
</description>
        <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
        <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
          <dc:contributor>DS</dc:contributor>
          <dc:date>20121024</dc:date>
        </reference>
        <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.  
</rationale>
        <ident system="http://cce.mitre.org">CCE-27515-6</ident>
        <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
          <check-content-ref name="oval:ssg:def:181" href="ssg-rhel6-oval.xml"/>
        </check>
        <check system="ocil-transitional">
          <check-export export-name="the package is installed" value-id="conditional_clause"/>
          <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
          
    Run the following command to determine if the <xhtml:code>sendmail</xhtml:code> package is installed:
    <xhtml:pre># rpm -q sendmail</xhtml:pre>
        </check-content>
        </check>
      </Rule>
      <Group id="postfix_client">
        <title xml:lang="en-US">Configure SMTP For Mail Clients</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This section discusses settings for Postfix in a submission-only
e-mail configuration.</description>
        <Rule id="postfix_network_listening" selected="false" severity="medium">
          <title xml:lang="en-US">Disable Postfix Network Listening</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Edit the file <xhtml:code>/etc/postfix/main.cf</xhtml:code> to ensure that only the following
<xhtml:code>inet_interfaces</xhtml:code> line appears:
<xhtml:pre>inet_interfaces = localhost</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">382</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
This ensures <xhtml:code>postfix</xhtml:code> accepts mail messages
(such as cron job reports) from the local system only,
and not from the network, which protects it from network attack.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26780-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:318" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it does not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Run the following command to ensure postfix accepts mail messages from only the local system:
<xhtml:pre>$ grep inet_interfaces /etc/postfix/main.cf</xhtml:pre>
If properly configured, the output should show only <xhtml:code>localhost</xhtml:code>.
</check-content>
          </check>
        </Rule>
      </Group>
      <Group id="postfix_harden_os">
        <title xml:lang="en-US">Configure Operating System to Protect Mail Server
</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The guidance in this section is appropriate for any host which is
operating as a site MTA, whether the mail server runs using Sendmail, Postfix,
or some other software.
</description>
        <Group id="postfix_configure_ssl_certs">
          <title xml:lang="en-US">Configure SSL Certificates for Use with SMTP AUTH</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If SMTP AUTH is to be used, the use of SSL to protect credentials in transit is strongly recommended.
There are also configurations for which it may be desirable to encrypt all mail in transit from one MTA to another,
though such configurations are beyond the scope of this guide. In either event, the steps for creating and installing
an SSL certificate are independent of the MTA in use, and are described here.
</description>
          <Group id="postfix_install_ssl_cert">
            <title xml:lang="en-US">Ensure Security of Postfix SSL Certificate</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Create the PKI directory for mail certificates, if it does not already exist:
<xhtml:pre># mkdir /etc/pki/tls/mail
# chown root:root /etc/pki/tls/mail
# chmod 755 /etc/pki/tls/mail</xhtml:pre>
Using removable media or some other secure transmission format, install the files generated in the previous
step onto the mail server:
<xhtml:pre>/etc/pki/tls/mail/serverkey.pem: the private key mailserverkey.pem
/etc/pki/tls/mail/servercert.pem: the certificate file mailservercert.pem</xhtml:pre>
Verify the ownership and permissions of these files:
<xhtml:pre># chown root:root /etc/pki/tls/mail/serverkey.pem
# chown root:root /etc/pki/tls/mail/servercert.pem
# chmod 600 /etc/pki/tls/mail/serverkey.pem
# chmod 644 /etc/pki/tls/mail/servercert.pem</xhtml:pre>
Verify that the CA's public certificate file has been installed as <xhtml:code>/etc/pki/tls/CA/cacert.pem</xhtml:code>, and has the
correct permissions:
<xhtml:pre># chown root:root /etc/pki/tls/CA/cacert.pem
# chmod 644 /etc/pki/tls/CA/cacert.pem</xhtml:pre>
</description>
          </Group>
        </Group>
        <Group id="postfix_server_configuration">
          <title xml:lang="en-US">Configure Postfix if Necessary</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Postfix stores its configuration files in the directory
/etc/postfix by default. The primary configuration file is
<xhtml:code>/etc/postfix/main.cf</xhtml:code>.
</description>
          <Rule id="postfix_server_banner" selected="false" severity="medium">
            <title xml:lang="en-US">Configure SMTP Greeting Banner</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Edit <xhtml:code>/etc/postfix/main.cf</xhtml:code>, and add or correct the
following line, substituting some other wording for the banner information if
you prefer:
<xhtml:pre>smtpd_banner = $myhostname ESMTP</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-22</reference>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AU-13</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:191" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
          <Group id="postfix_server_denial_of_service">
            <title xml:lang="en-US">Configure Postfix Resource Usage to Limit Denial of Service Attacks</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Edit <xhtml:code>/etc/postfix/main.cf</xhtml:code>. Edit the following lines to
configure the amount of system resources Postfix can consume:
<xhtml:pre>default_process_limit = 100
smtpd_client_connection_count_limit = 10
smtpd_client_connection_rate_limit = 30
queue_minfree = 20971520
header_size_limit = 51200
message_size_limit = 10485760
smtpd_recipient_limit = 100</xhtml:pre>
The values here are examples.
</description>
            <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">Note: The values given here are examples, and may
need to be modified for any particular site. By default, the Postfix anvil
process gathers mail receipt statistics. To get information about about what
connection rates are typical at your site, look in <xhtml:code>/var/log/maillog</xhtml:code>
for lines with the daemon name postfix/anvil.
</warning>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">These configuration options serve to make it more difficult for
attackers to consume resources on the MTA host.  The
<xhtml:code>default_process_limit</xhtml:code> parameter controls how many <xhtml:code>smtpd</xhtml:code>
processes can exist at a time, while
<xhtml:code>smtpd_client_connection_count_limit</xhtml:code> controls the number of those which
can be occupied by any one remote sender, and
<xhtml:code>smtpd_client_connection_rate_limit</xhtml:code> controls the number of connections
any one client can make per minute. By default, local hosts (those in
<xhtml:code>mynetworks</xhtml:code>) are exempted from per-client rate limiting.  The
<xhtml:code>queue_minfree</xhtml:code> parameter establishes a free space threshold, in order
to stop e-mail receipt before the queue filesystem is entirely full. The
<xhtml:code>header_size_limit</xhtml:code>, <xhtml:code>message_size_limit</xhtml:code>, and
<xhtml:code>smtpd_recipient_limit</xhtml:code> parameters place bounds on the legal sizes of
messages received via SMTP.
</rationale>
          </Group>
          <Group id="postfix_server_mail_relay">
            <title xml:lang="en-US">Control Mail Relaying</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Postfix's mail relay controls are implemented with the help of the
smtpd recipient restrictions option, which controls the restrictions placed on
the SMTP dialogue once the sender and recipient envelope addresses are known.
The guidance in the following sections should be applied to all machines. If
there are machines which must be allowed to relay mail, but which cannot be
trusted to relay unconditionally, configure SMTP AUTH with SSL support.
</description>
            <Group id="postfix_server_mail_relay_set_trusted_networks">
              <title xml:lang="en-US">Configure Trusted Networks and Hosts</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Edit <xhtml:code>/etc/postfix/main.cf</xhtml:code>, and configure the contents of
the <xhtml:code>mynetworks</xhtml:code> variable in one of the following ways:
<xhtml:ul><xhtml:li>If any machine in the subnet containing the MTA may be trusted to relay
messages, add or correct the following line:
<xhtml:pre>mynetworks_style = subnet</xhtml:pre>
This is also the default setting, and is in effect if all
<xhtml:code>my_networks_style</xhtml:code> directives are commented.</xhtml:li><xhtml:li>If only the MTA host itself is trusted to relay messages, add or correct
the following line:
<xhtml:pre>mynetworks_style = host</xhtml:pre></xhtml:li><xhtml:li>If the set of machines which can relay is more complicated, manually
specify an entry for each netblock or IP address which is trusted to relay by
setting the <xhtml:code>mynetworks</xhtml:code> variable directly:
<xhtml:pre>mynetworks = 10.0.0.0/16, 192.168.1.0/24, 127.0.0.1</xhtml:pre></xhtml:li></xhtml:ul>
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>mynetworks</xhtml:code> variable must contain only the set of
machines for which this MTA should unconditionally relay mail. This is a trust
relationship - if spammers gain access to these machines, your site will
effectively become an open relay. It is recommended that only machines which
are managed by you or by another trusted organization be placed in mynetworks,
and users of all other machines be required to use SMTP AUTH to send mail.
</rationale>
            </Group>
            <Group id="postfix_server_mail_smtpd_relay_restrictions">
              <title xml:lang="en-US">Enact SMTP Relay Restrictions</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure Postfix to restrict addresses to which it
will send mail, see:
http://www.postfix.org/SMTPD_ACCESS_README.html#danger
<xhtml:br/>
The full contents of <xhtml:code>smtpd_recipient_restrictions</xhtml:code> will
vary by site, since this is a common place to put spam restrictions and other
site-specific options. The <xhtml:code>permit_mynetworks</xhtml:code> option allows all mail to
be relayed from the machines in <xhtml:code>mynetworks</xhtml:code>. Then, the
<xhtml:code>reject_unauth_destination</xhtml:code> option denies all mail whose destination
address is not local, preventing any other machines from relaying. These two
options should always appear in this order, and should usually follow one
another immediately unless SMTP AUTH is used.
</description>
            </Group>
            <Group id="postfix_server_mail_smtpd_recipient_restrictions">
              <title xml:lang="en-US">Enact SMTP Recipient Restrictions</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To configure Postfix to restrict addresses to which it
will send mail, see:
http://www.postfix.org/SMTPD_ACCESS_README.html#danger
<xhtml:br/>
The full contents of <xhtml:code>smtpd_recipient_restrictions</xhtml:code> will
vary by site, since this is a common place to put spam restrictions and other
site-specific options. The <xhtml:code>permit_mynetworks</xhtml:code> option allows all mail to
be relayed from the machines in <xhtml:code>mynetworks</xhtml:code>. Then, the
<xhtml:code>reject_unauth_destination</xhtml:code> option denies all mail whose destination
address is not local, preventing any other machines from relaying. These two
options should always appear in this order, and should usually follow one
another immediately unless SMTP AUTH is used.
</description>
            </Group>
            <Group id="postfix_server_mail_relay_smtp_auth_for_untrusted_networks">
              <title xml:lang="en-US">Require SMTP AUTH Before Relaying from Untrusted Clients</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">SMTP authentication allows remote clients to relay mail safely by
requiring them to authenticate before submitting mail. Postfix's SMTP AUTH uses
an authentication library called SASL, which is not part of Postfix itself.  To
enable the use of SASL authentication, see
http://www.postfix.org/SASL_README.html
</description>
            </Group>
            <Group id="postfix_server_mail_relay_require_tls_for_smtp_auth">
              <title xml:lang="en-US">Use TLS for SMTP AUTH</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Postfix provides options to use TLS for certificate-based
authentication and encrypted sessions. An encrypted session protects the
information that is transmitted with SMTP mail or with SASL authentication.
To configure Postfix to protect all SMTP AUTH transactions
using TLS, see http://www.postfix.org/TLS_README.html.
</description>
            </Group>
          </Group>
        </Group>
      </Group>
    </Group>
    <Group id="ldap">
      <title xml:lang="en-US">LDAP</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">LDAP is a popular directory service, that is, a
standardized way of looking up information from a central database.
RHEL 6 includes software that enables a system to act as both
an LDAP client and server.
</description>
      <Group id="openldap_client">
        <title xml:lang="en-US">Configure OpenLDAP Clients</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This section provides information on which security settings are
important to configure in OpenLDAP clients by manually editing the appropriate
configuration files.  RHEL 6 provides an automated configuration tool called
authconfig and a graphical wrapper for authconfig called
<xhtml:code>system-config-authentication</xhtml:code>. However, these tools do not provide as
much control over configuration as manual editing of configuration files. The
authconfig tools do not allow you to specify locations of SSL certificate
files, which is useful when trying to use SSL cleanly across several protocols.
Installation and configuration of OpenLDAP on RHEL 6 is available at
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Directory_Servers.html.
</description>
        <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">Before configuring any system to be an
LDAP client, ensure that a working LDAP server is present on the
network.</warning>
        <Rule id="ldap_client_start_tls" selected="false" severity="medium">
          <title xml:lang="en-US">Configure LDAP Client to Use TLS For All Transactions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Configure LDAP to enforce TLS use. First, edit the file 
<xhtml:code>/etc/pam_ldap.conf</xhtml:code>, and add or correct the following lines:
<xhtml:pre>ssl start_tls</xhtml:pre>
Then review the LDAP server and ensure TLS has been configured.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">776</reference>
          <reference href="http://iase.disa.mil/cci/index.html">778</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1453</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-26690-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:697" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="no lines are returned" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure LDAP is configured to use TLS for all transactions, run the following command:
<xhtml:pre>$ grep start_tls /etc/pam_ldap.conf</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="ldap_client_tls_cacertpath" selected="false" severity="medium">
          <title xml:lang="en-US">Configure Certificate Directives for LDAP Use of TLS</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Ensure a copy of a trusted CA certificate has been placed in
the file <xhtml:code>/etc/pki/tls/CA/cacert.pem</xhtml:code>. Configure LDAP to enforce TLS 
use and to trust certificates signed by that CA. First, edit the file 
<xhtml:code>/etc/pam_ldap.conf</xhtml:code>, and add or correct either of the following lines:
<xhtml:pre>tls_cacertdir /etc/pki/tls/CA</xhtml:pre>
or
<xhtml:pre>tls_cacertfile /etc/pki/tls/CA/cacert.pem</xhtml:pre>
Then review the LDAP server and ensure TLS has been configured.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">776</reference>
          <reference href="http://iase.disa.mil/cci/index.html">778</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1453</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-27189-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1159" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="there is no output, or the lines are commented out" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure TLS is configured with trust certificates, run the following command:
<xhtml:pre># grep cert /etc/pam_ldap.conf</xhtml:pre>
</check-content>
          </check>
        </Rule>
      </Group>
      <Group id="openldap_server">
        <title xml:lang="en-US">Configure OpenLDAP Server</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This section details some security-relevant settings
for an OpenLDAP server.  Installation and configuration of OpenLDAP on RHEL 6 is available at:
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Directory_Servers.html.
</description>
        <Rule id="package_openldap-servers_removed" selected="false" severity="low">
          <title xml:lang="en-US">Uninstall openldap-servers Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>openldap-servers</xhtml:code> package should be removed if not in use.
Is this machine the OpenLDAP server? If not, remove the package.
<xhtml:pre># yum erase openldap-servers</xhtml:pre>
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.
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>DS</dc:contributor>
            <dc:date>20121024</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26858-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:962" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it does not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify the <xhtml:code>openldap-servers</xhtml:code> package is not installed, 
run the following command:
<xhtml:pre>$ rpm -q openldap-servers</xhtml:pre>
The output should show the following:
<xhtml:pre>package openldap-servers is not installed</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Group id="ldap_server_config_certificate_files">
          <title xml:lang="en-US">Install and Protect LDAP Certificate Files</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Create the PKI directory for LDAP certificates if it does not already exist:
<xhtml:pre># mkdir /etc/pki/tls/ldap
# chown root:root /etc/pki/tls/ldap
# chmod 755 /etc/pki/tls/ldap</xhtml:pre>
Using removable media or some other secure transmission format, install the certificate files
onto the LDAP server:
<xhtml:ul><xhtml:li><xhtml:code>/etc/pki/tls/ldap/serverkey.pem</xhtml:code>: the private key <xhtml:code>ldapserverkey.pem</xhtml:code></xhtml:li><xhtml:li><xhtml:code>/etc/pki/tls/ldap/servercert.pem</xhtml:code>: the certificate file <xhtml:code>ldapservercert.pem</xhtml:code></xhtml:li></xhtml:ul>
Verify the ownership and permissions of these files:
<xhtml:pre># chown root:ldap /etc/pki/tls/ldap/serverkey.pem
# chown root:ldap /etc/pki/tls/ldap/servercert.pem
# chmod 640 /etc/pki/tls/ldap/serverkey.pem
# chmod 640 /etc/pki/tls/ldap/servercert.pem</xhtml:pre>
Verify that the CA's public certificate file has been installed as
<xhtml:code>/etc/pki/tls/CA/cacert.pem</xhtml:code>, and has the correct permissions:
<xhtml:pre># mkdir /etc/pki/tls/CA
# chown root:root /etc/pki/tls/CA/cacert.pem
# chmod 644 /etc/pki/tls/CA/cacert.pem</xhtml:pre>

As a result of these steps, the LDAP server will have access to its own private
certificate and the key with which that certificate is encrypted, and to the
public certificate file belonging to the CA. Note that it would be possible for
the key to be protected further, so that processes running as ldap could not
read it. If this were done, the LDAP server process would need to be restarted
manually whenever the server rebooted.
</description>
        </Group>
      </Group>
    </Group>
    <Group id="nfs_and_rpc">
      <title xml:lang="en-US">NFS and RPC</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Network File System is a popular distributed filesystem for
the Unix environment, and is very widely deployed.  This section discusses the
circumstances under which it is possible to disable NFS and its dependencies,
and then details steps which should be taken to secure
NFS's configuration. This section is relevant to machines operating as NFS
clients, as well as to those operating as NFS servers.
</description>
      <Group id="disabling_nfs">
        <title xml:lang="en-US">Disable All NFS Services if Possible</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If there is not a reason for the system to operate as either an
NFS client or an NFS server, follow all instructions in this section to disable
subsystems required by NFS.
</description>
        <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">The steps in this section will prevent a machine
from operating as either an NFS client or an NFS server. Only perform these
steps on machines which do not need NFS at all.</warning>
        <Group id="disabling_nfs_services">
          <title xml:lang="en-US">Disable Services Used Only by NFS</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If NFS is not needed, disable the NFS client daemons nfslock, rpcgssd, and rpcidmapd.
<xhtml:br/><xhtml:br/>
All of these daemons run with elevated privileges, and many listen for network
connections. If they are not needed, they should be disabled to improve system
security posture.</description>
          <Rule id="service_nfslock_disabled" selected="false" severity="low">
            <title xml:lang="en-US">Disable Network File System Lock Service (nfslock)</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>nfslock</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig nfslock off</xhtml:pre>
</description>
            <ident system="http://cce.mitre.org">CCE-27104-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1032" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
          <Rule id="service_rpcgssd_disabled" selected="false" severity="low">
            <title xml:lang="en-US">Disable Secure RPC Client Service (rpcgssd)</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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 <xhtml:code>rpcgssd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig rpcgssd off</xhtml:pre>
</description>
            <ident system="http://cce.mitre.org">CCE-26864-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:784" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
          <Rule id="service_rpcidmapd_disabled" selected="false" severity="low">
            <title xml:lang="en-US">Disable RPC ID Mapping Service (rpcidmapd)</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>rpcidmapd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig rpcidmapd off</xhtml:pre>
</description>
            <ident system="http://cce.mitre.org">CCE-26870-6</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:664" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
        </Group>
        <Group id="disabling_netfs">
          <title xml:lang="en-US">Disable netfs if Possible</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To determine if any network filesystems handled by netfs are
currently mounted on the system execute the following command:
<xhtml:pre># mount -t nfs,nfs4,smbfs,cifs,ncpfs</xhtml:pre>
If the command did not return any output then disable netfs.
</description>
          <Rule id="service_netfs_disabled" selected="false" severity="low">
            <title xml:lang="en-US">Disable Network File Systems (netfs)</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>/etc/fstab</xhtml:code>
and against flaws in the netfs script itself.

    The <xhtml:code>netfs</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig netfs off</xhtml:pre>
</description>
            <ident system="http://cce.mitre.org">CCE-27137-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:976" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
        </Group>
      </Group>
      <Group id="nfs_configuring_all_machines">
        <title xml:lang="en-US">Configure All Machines which Use NFS</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The steps in this section are appropriate for all machines which
run NFS, whether they operate as clients or as servers.</description>
        <Group id="nfs_client_or_server_not_both">
          <title xml:lang="en-US">Make Each Machine a Client or a Server, not Both</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If NFS must be used, it should be deployed in the simplest
configuration possible to avoid maintainability problems which may lead to
unnecessary security exposure. Due to the reliability and security problems
caused by NFS (specially NFSv3 and NFSv2), it is not a good idea for machines
which act as NFS servers to also mount filesystems via NFS. At the least,
crossed mounts (the situation in which each of two servers mounts a filesystem
from the other) should never be used.
</description>
        </Group>
        <Group id="nfs_configure_fixed_ports">
          <title xml:lang="en-US">Configure NFS Services to Use Fixed Ports (NFSv3 and NFSv2)</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Firewalling should be done at each host and at the border
firewalls to protect the NFS daemons from remote access, since NFS servers
should never be accessible from outside the organization. However, by default
for NFSv3 and NFSv2, the RPC Bind service assigns each NFS service to a port
dynamically at service startup time. Dynamic ports cannot be protected by port
filtering firewalls such as iptables.
<xhtml:br/><xhtml:br/>
Therefore, restrict each service to always use a given port, so that
firewalling can be done effectively. Note that, because of the way RPC is
implemented, it is not possible to disable the RPC Bind service even if ports
are assigned statically to all RPC services.
<xhtml:br/><xhtml:br/>
In NFSv4, the mounting and locking protocols have been incorporated into the
protocol, and the server listens on the the well-known TCP port 2049. As such,
NFSv4 does not need to interact with the <xhtml:code>rpcbind, lockd, and rpc.statd</xhtml:code>
daemons, which can and should be disabled in a pure NFSv4 environment. The
<xhtml:code>rpc.mountd</xhtml:code> daemon is still required on the NFS server to setup
exports, but is not involved in any over-the-wire operations.
</description>
          <Rule id="nfs_fixed_lockd_tcp_port" selected="false" severity="low">
            <title xml:lang="en-US">Configure lockd to use static TCP port</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Configure the <xhtml:code>lockd</xhtml:code> daemon to use a static TCP port as
opposed to letting the RPC Bind service dynamically assign a port. Edit the
file <xhtml:code>/etc/sysconfig/nfs</xhtml:code>. Add or correct the following line:
<xhtml:pre>LOCKD_TCPPORT=lockd-port</xhtml:pre>
Where <xhtml:code>lockd-port</xhtml:code> is a port which is not used by any other service on
your network. 
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Restrict service to always use a given port, so that firewalling can be done
effectively.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27149-4</ident>
          </Rule>
          <Rule id="nfs_fixed_lockd_udp_port" selected="false" severity="low">
            <title xml:lang="en-US">Configure lockd to use static UDP port</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Configure the <xhtml:code>lockd</xhtml:code> daemon to use a static UDP port as
opposed to letting the RPC Bind service dynamically assign a port. Edit the
file <xhtml:code>/etc/sysconfig/nfs</xhtml:code>. Add or correct the following line:
<xhtml:pre>LOCKD_UDPPORT=lockd-port</xhtml:pre>
Where <xhtml:code>lockd-port</xhtml:code> is a port which is not used by any other service on
your network.
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> Restricting services to always use a given port enables firewalling
to be done more effectively.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27063-7</ident>
          </Rule>
          <Rule id="nfs_fixed_statd_port" selected="false" severity="low">
            <title xml:lang="en-US">Configure statd to use static port</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Configure the <xhtml:code>statd</xhtml:code> daemon to use a static port as
opposed to letting the RPC Bind service dynamically assign a port. Edit the
file <xhtml:code>/etc/sysconfig/nfs</xhtml:code>. Add or correct the following line:
<xhtml:pre>STATD_PORT=statd-port</xhtml:pre>
Where <xhtml:code>statd-port</xhtml:code> is a port which is not used by any other service on your network. 
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> Restricting services to always use a given port enables firewalling
to be done more effectively.
</rationale>
            <ident system="http://cce.mitre.org">CCE-26889-6</ident>
          </Rule>
          <Rule id="nfs_fixed_mountd_port" selected="false" severity="low">
            <title xml:lang="en-US">Configure mountd to use static port</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Configure the <xhtml:code>mountd</xhtml:code> daemon to use a static port as
opposed to letting the RPC Bind service dynamically assign a port. Edit the
file <xhtml:code>/etc/sysconfig/nfs</xhtml:code>. Add or correct the following line:
<xhtml:pre>MOUNTD_PORT=statd-port</xhtml:pre>
Where <xhtml:code>mountd-port</xhtml:code> is a port which is not used by any other service on your network. 
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> Restricting services to always use a given port enables firewalling
to be done more effectively.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27114-8</ident>
          </Rule>
        </Group>
      </Group>
      <Group id="nfs_configuring_clients">
        <title xml:lang="en-US">Configure NFS Clients</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The steps in this section are appropriate for machines which operate as NFS clients.</description>
        <Group id="disabling_nfsd">
          <title xml:lang="en-US">Disable NFS Server Daemons</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
There is no need to run the NFS server daemons <xhtml:code>nfs</xhtml:code> and
<xhtml:code>rpcsvcgssd</xhtml:code> except on a small number of properly secured machines
designated as NFS servers. Ensure that these daemons are turned off on
clients.</description>
          <Rule id="service_nfs_disabled" selected="false" severity="low">
            <title xml:lang="en-US">Disable Network File System (nfs)</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>nfs</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig nfs off</xhtml:pre>
</description>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121025</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Unnecessary services should be disabled to decrease the attack surface of the system.</rationale>
            <ident system="http://cce.mitre.org">CCE-27199-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:446" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="it does not" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
It is prudent to ensure the <xhtml:code>nfs</xhtml:code> service is disabled in system boot, as well as 
not currently running.  First, run the following to verify the service is stopped:
<xhtml:pre>$ service nfs status</xhtml:pre>
If the service is stopped or disabled, it will return the following:
<xhtml:pre>rpc.svcgssd is stopped
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped</xhtml:pre>
To verify that the <xhtml:code>nfs</xhtml:code> service is disabled, run the following command:
<xhtml:pre>$ chkconfig --list nfs</xhtml:pre>
If properly configured, the output should look like:
<xhtml:pre>nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off</xhtml:pre>
</check-content>
            </check>
          </Rule>
          <Rule id="service_rpcsvcgssd_disabled" selected="false" severity="low">
            <title xml:lang="en-US">Disable Secure RPC Server Service (rpcsvcgssd)</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>rpcsvcgssd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig rpcsvcgssd off</xhtml:pre>
</description>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121025</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Unnecessary services should be disabled to decrease the attack surface of the system.</rationale>
            <ident system="http://cce.mitre.org">CCE-27122-1</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1144" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the service is running" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
              
    To check that the <xhtml:code>rpcsvcgssd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>rpcsvcgssd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>rpcsvcgssd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>rpcsvcgssd</xhtml:code> --list
<xhtml:code>rpcsvcgssd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>rpcsvcgssd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service rpcsvcgssd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>rpcsvcgssd is stopped</xhtml:pre>
            </check-content>
            </check>
          </Rule>
        </Group>
        <Group id="mounting_remote_filesystems">
          <title xml:lang="en-US">Mount Remote Filesystems with Restrictive Options</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Edit the file <xhtml:code>/etc/fstab</xhtml:code>. For each filesystem whose type
(column 3) is <xhtml:code>nfs</xhtml:code> or <xhtml:code>nfs4</xhtml:code>, add the text
<xhtml:code>,nodev,nosuid</xhtml:code> to the list of mount options in column 4. If
appropriate, also add <xhtml:code>,noexec</xhtml:code>.
<xhtml:br/><xhtml:br/>
See the section titled "Restrict Partition Mount Options" for a description of
the effects of these options. In general, execution of files mounted via NFS
should be considered risky because of the possibility that an adversary could
intercept the request and substitute a malicious file. Allowing setuid files to
be executed from remote servers is particularly risky, both for this reason and
because it requires the clients to extend root-level trust to the NFS
server.</description>
          <Rule id="use_nodev_option_on_nfs_mounts" selected="false" severity="medium">
            <title xml:lang="en-US">Mount Remote Filesystems with nodev</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
	Add the <xhtml:code>nodev</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	any NFS mounts.
	
            </description>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121025</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Legitimate device files should only exist in the /dev directory. NFS mounts
should not present device files to users.</rationale>
            <ident system="http://cce.mitre.org">CCE-27090-0</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:998" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the setting does not show" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify the <xhtml:code>nodev</xhtml:code> option is configured for all NFS mounts, run the following command:
<xhtml:pre>$ mount  | grep nfs</xhtml:pre>
All NFS mounts should show the <xhtml:code>nodev</xhtml:code> setting in parentheses.  This is not applicable if NFS is 
not implemented.
</check-content>
            </check>
          </Rule>
          <Rule id="use_nosuid_option_on_nfs_mounts" selected="false" severity="medium">
            <title xml:lang="en-US">Mount Remote Filesystems with nosuid</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
              
	Add the <xhtml:code>nosuid</xhtml:code> option to the fourth column of
	<xhtml:code>/etc/fstab</xhtml:code> for the line which controls mounting of
	any NFS mounts.
	
            </description>
            <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
              <dc:contributor>DS</dc:contributor>
              <dc:date>20121025</dc:date>
            </reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
            <ident system="http://cce.mitre.org">CCE-26972-0</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:1184" href="ssg-rhel6-oval.xml"/>
            </check>
            <check system="ocil-transitional">
              <check-export export-name="the setting does not show" value-id="conditional_clause"/>
              <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify the <xhtml:code>nosuid</xhtml:code> option is configured for all NFS mounts, run the following command:
<xhtml:pre>$ mount  | grep nfs</xhtml:pre>
All NFS mounts should show the <xhtml:code>nosuid</xhtml:code> setting in parentheses.  This is not applicable if NFS is 
not implemented.
</check-content>
            </check>
          </Rule>
        </Group>
      </Group>
      <Group id="nfs_configuring_servers">
        <title xml:lang="en-US">Configure NFS Servers</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The steps in this section are appropriate for machines which operate as NFS servers.</description>
        <Group id="configure_exports_restrictively">
          <title xml:lang="en-US">Configure the Exports File Restrictively</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Linux's NFS implementation uses the file <xhtml:code>/etc/exports</xhtml:code> to control what filesystems
and directories may be accessed via NFS. (See the <xhtml:code>exports(5)</xhtml:code> manpage for more information about the
format of this file.)
<xhtml:br/><xhtml:br/>
The syntax of the <xhtml:code>exports</xhtml:code> file is not necessarily checked fully on reload, and syntax errors
can leave your NFS configuration more open than intended. Therefore, exercise caution when modifying
the file.
<xhtml:br/><xhtml:br/>
The syntax of each line in <xhtml:code>/etc/exports</xhtml:code> is:
<xhtml:pre>/DIR	host1(opt1,opt2) host2(opt3)</xhtml:pre>
where <xhtml:code>/DIR</xhtml:code> is a directory or filesystem to export, <xhtml:code>hostN</xhtml:code> is an IP address, netblock,
hostname, domain, or netgroup to which to export, and <xhtml:code>optN</xhtml:code> is an option.
</description>
        </Group>
        <Group id="use_acl_enforce_auth_restrictions">
          <title xml:lang="en-US">Use Access Lists to Enforce Authorization Restrictions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">When configuring NFS exports, ensure that each export line in <xhtml:code>/etc/exports</xhtml:code> contains
a list of hosts which are allowed to access that export. If no hosts are specified on an export line,
then that export is available to any remote host which requests it. All lines of the exports file should
specify the hosts (or subnets, if needed) which are allowed to access the exported directory, so that
unknown or remote hosts will be denied.
<xhtml:br/><xhtml:br/>
Authorized hosts can be specified in several different formats:
<xhtml:ul><xhtml:li>Name or alias that is recognized by the resolver</xhtml:li><xhtml:li>Fully qualified domain name</xhtml:li><xhtml:li>IP address</xhtml:li><xhtml:li>IP subnets in the format <xhtml:code>address/netmask</xhtml:code> or <xhtml:code>address/CIDR</xhtml:code></xhtml:li></xhtml:ul>
</description>
        </Group>
        <Group id="export_filesystems_read_only">
          <title xml:lang="en-US">Export Filesystems Read-Only if Possible</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If a filesystem is being exported so that users can view the files in a convenient
fashion, but there is no need for users to edit those files, exporting the filesystem read-only
removes an attack vector against the server. The default filesystem export mode is <xhtml:code>ro</xhtml:code>,
so do not specify <xhtml:code>rw</xhtml:code> without a good reason.
</description>
        </Group>
        <Rule id="use_root_squashing_all_exports" selected="false" severity="low">
          <title xml:lang="en-US">Use Root-Squashing on All Exports</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
<xhtml:br/><xhtml:br/>
Ensure that no line in <xhtml:code>/etc/exports</xhtml:code> contains the option <xhtml:code>no_root_squash</xhtml:code>.
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If the NFS server allows root access to local file systems from remote hosts, this
access could be used to compromise the system.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27138-7</ident>
        </Rule>
        <Rule id="restrict_nfs_clients_to_privileged_ports" selected="false" severity="low">
          <title xml:lang="en-US">Restrict NFS Clients to Privileged Ports</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
<xhtml:br/><xhtml:br/>
To ensure that the default has not been changed, ensure no line in
<xhtml:code>/etc/exports</xhtml:code> contains the option <xhtml:code>insecure</xhtml:code>.
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-27121-3</ident>
        </Rule>
        <Rule id="no_insecure_locks_exports" selected="false" severity="medium">
          <title xml:lang="en-US">Ensure Insecure File Locking is Not Allowed</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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
<xhtml:code>insecure_locks</xhtml:code> 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 
<xhtml:code>insecure_locks</xhtml:code> option from the file <xhtml:code>/etc/exports</xhtml:code>.
</description>
          <reference href="http://iase.disa.mil/cci/index.html">764</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Allowing insecure file locking could allow for sensitive data to be
viewed or edited by an unauthorized user.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27167-6</ident>
          <check system="ocil-transitional">
            <check-export export-name="there is output" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify insecure file locking has been disabled, run the following command:
<xhtml:pre># grep insecure_locks /etc/exports</xhtml:pre>
</check-content>
          </check>
        </Rule>
      </Group>
    </Group>
    <Group id="dns">
      <title xml:lang="en-US">DNS Server</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Most organizations have an operational need to run at
least one nameserver. However, there are many common attacks
involving DNS server software, and this server software should
be disabled on any system
on which it is not needed.</description>
      <Group id="disabling_dns_server">
        <title xml:lang="en-US">Disable DNS Server</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
DNS software should be disabled on any machine which does not
need to be a nameserver. Note that the BIND DNS server software is
not installed on RHEL 6 by default. The remainder of this section
discusses secure configuration of machines which must be
nameservers.
</description>
        <Rule id="disable_dns_server" selected="false" severity="low">
          <title xml:lang="en-US">Disable DNS Server</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>named</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig named off</xhtml:pre>
          </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
All network services involve some risk of compromise due to
implementation flaws and should be disabled if possible.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26873-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1005" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>named</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>named</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>named</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>named</xhtml:code> --list
<xhtml:code>named</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>named</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service named status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>named is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="uninstall_bind" selected="false" severity="low">
          <title xml:lang="en-US">Uninstall bind Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To remove the <xhtml:code>bind</xhtml:code> package, which contains the
<xhtml:code>named</xhtml:code> service, run the following command:
<xhtml:pre># yum erase bind</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">366</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If there is no need to make DNS server software available,
removing it provides a safeguard against its activation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27030-6</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:493" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>bind</xhtml:code> package is installed:
    <xhtml:pre># rpm -q bind</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="dns_server_isolation">
        <title xml:lang="en-US">Isolate DNS from Other Services</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This section discusses mechanisms for preventing the DNS server
from interfering with other services. This is done both to protect the
remainder of the network should a nameserver be compromised, and to make direct
attacks on nameservers more difficult.</description>
        <Group id="dns_server_dedicated">
          <title xml:lang="en-US">Run DNS Software on Dedicated Servers</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Since DNS is
a high-risk service which must frequently be made available to the entire
Internet, it is strongly recommended that no other services be offered by
machines which act as organizational DNS servers.</description>
        </Group>
        <Group id="dns_server_chroot">
          <title xml:lang="en-US">Run DNS Software in a chroot Jail</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Install the <xhtml:code>bind-chroot</xhtml:code> package:
<xhtml:pre># yum install bind-chroot</xhtml:pre>
Place a valid named.conf file inside the chroot jail:
<xhtml:pre># cp /etc/named.conf /var/named/chroot/etc/named.conf
# chown root:root /var/named/chroot/etc/named.conf
# chmod 644 /var/named/chroot/etc/named.conf</xhtml:pre>
Create and populate an appropriate zone directory within the jail, based on the
options directive. If your <xhtml:code>named.conf</xhtml:code> includes:
<xhtml:pre>options {
directory "/path/to/DIRNAME ";
...
}</xhtml:pre>
then copy that directory and its contents from the original zone directory:
<xhtml:pre># cp -r /path/to/DIRNAME /var/named/chroot/DIRNAME</xhtml:pre>
Add or correct the following line within <xhtml:code>/etc/sysconfig/named</xhtml:code>:
<xhtml:pre>ROOTDIR=/var/named/chroot</xhtml:pre>
</description>
          <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">If you are running BIND in a chroot jail, then you
should use the jailed <xhtml:code>named.conf</xhtml:code> as the primary nameserver
configuration file. That is, when this guide recommends editing
<xhtml:code>/etc/named.conf</xhtml:code>, you should instead edit
<xhtml:code>/var/named/chroot/etc/named.conf</xhtml:code>.
</warning>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Chroot jails are not foolproof. However, they serve to make it more
difficult for a compromised program to be used to attack the entire host. They
do this by restricting a program's ability to traverse the directory upward, so
that files outside the jail are not visible to the chrooted process. Since RHEL
supports a standard mechanism for placing BIND in a chroot jail, you should
take advantage of this feature.</rationale>
        </Group>
      </Group>
      <Group id="dns_server_protection">
        <title xml:lang="en-US">Protect DNS Data from Tampering or Attack</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This section discusses DNS configuration options which make it
more difficult for attackers to gain access to private DNS data or to modify
DNS data.</description>
        <Group id="dns_server_separate_internal_external">
          <title xml:lang="en-US">Run Separate DNS Servers for External and Internal Queries</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Is it possible to run external and internal nameservers on
separate machines? If so, follow the configuration guidance in this section. On
the external nameserver, edit <xhtml:code>/etc/named.conf</xhtml:code> to add or correct the
following directives:
<xhtml:pre>options {
  allow-query { any; };
  recursion no;
  ...
};
zone "example.com " IN {
  ...
};</xhtml:pre>
On the internal nameserver, edit <xhtml:code>/etc/named.conf</xhtml:code>. Add or correct the
following directives, where SUBNET is the numerical IP representation of your
organization in the form xxx.xxx.xxx.xxx/xx:
<xhtml:pre>acl internal {
  SUBNET ;
  localhost;
};
options {
  allow-query { internal; };
  ...
};
zone "internal.example.com " IN {
  ...
};</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Enterprise nameservers generally serve two functions. One is to
provide public information about the machines in a domain for the benefit of
outside users who wish to contact those machines, for instance in order to send
mail to users in the enterprise, or to visit the enterprise's external web
page. The other is to provide nameservice to client machines within the
enterprise. Client machines require both private information about enterprise
machines (which may be different from the public information served to the rest
of the world) and public information about machines outside the enterprise,
which is used to send mail or visit websites outside of the organization.
<xhtml:br/>
In order to provide the public nameservice function, it is necessary to share
data with untrusted machines which request it - otherwise, the enterprise
cannot be conveniently contacted by outside users. However, internal data
should be protected from disclosure, and serving irrelevant public name queries
for outside domains leaves the DNS server open to cache poisoning and other
attacks. Therefore, local network nameservice functions should not be provided
to untrusted machines.
<xhtml:br/>
Separate machines should be used to fill these two functions whenever possible.
</rationale>
        </Group>
        <Group id="dns_server_partition_with_views">
          <title xml:lang="en-US">Use Views to Partition External and Internal Information</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If it is not possible to run external and internal nameservers on
separate physical machines, run BIND9 and simulate this feature using views.
Edit <xhtml:code>/etc/named.conf</xhtml:code>. Add or correct the following directives (where
SUBNET is the numerical IP representation of your organization in the form
xxx.xxx.xxx.xxx/xx):
<xhtml:pre>acl internal {
  SUBNET ;
  localhost;
};
view "internal-view" {
  match-clients { internal; };
  zone "." IN {
    type hint;
    file "db.cache";
  };
  zone "internal.example.com " IN {
    ...
  };
};

view "external-view" {
  match-clients { any; };
  recursion no;
  zone "example.com " IN {
    ...
  };
};</xhtml:pre>
</description>
          <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">As shown in the example, database files which are
required for recursion, such as the root hints file, must be available to any
clients which are allowed to make recursive queries. Under typical
circumstances, this includes only the internal clients which are allowed to use
this server as a general-purpose nameserver.</warning>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The view feature is provided by BIND9 as a way to allow a single
nameserver to make different sets of data available to different sets of
clients. If possible, it is always better to run external and internal
nameservers on separate machines, so that even complete compromise of the
external server cannot be used to obtain internal data or confuse internal DNS
clients. However, this is not always feasible, and use of a feature like views
is preferable to leaving internal DNS data entirely unprotected.</rationale>
        </Group>
        <Rule id="dns_server_disable_zone_transfers" selected="false" severity="low">
          <title xml:lang="en-US">Disable Zone Transfers from the Nameserver</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>/etc/named.conf</xhtml:code>:
<xhtml:pre>options {
  allow-transfer { none; };
  ...
}</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
        </Rule>
        <Rule id="dns_server_authenticate_zone_transfers" selected="false" severity="low">
          <title xml:lang="en-US">Authenticate Zone Transfers</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre># cd /tmp
# dnssec-keygen -a HMAC-MD5 -b 128 -n HOST dns.example.com
Kdns.example.com .+aaa +iiiii</xhtml:pre>
This output is the name of a file containing the new key. Read the file to find
the base64-encoded key string:
<xhtml:pre># cat Kdns.example.com .+NNN +MMMMM .key
dns.example.com IN KEY 512 3 157 base64-key-string</xhtml:pre>
Add the directives to <xhtml:code>/etc/named.conf</xhtml:code> on the primary server:
<xhtml:pre>key zone-transfer-key {
  algorithm hmac-md5;
  secret "base64-key-string ";
};
zone "example.com " IN {
  type master;
  allow-transfer { key zone-transfer-key; };
  ...
};</xhtml:pre>
Add the directives below to <xhtml:code>/etc/named.conf</xhtml:code> on the secondary nameserver:
<xhtml:pre>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 ; };
  ...
};</xhtml:pre>
</description>
          <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">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.</warning>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
        </Rule>
        <Rule id="dns_server_disable_dynamic_updates" selected="false" severity="low">
          <title xml:lang="en-US">Disable Dynamic Updates</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Is there a mission-critical reason to enable the risky dynamic
update functionality? If not, edit <xhtml:code>/etc/named.conf</xhtml:code>. For each zone
specification, correct the following directive if necessary:
<xhtml:pre>zone "example.com " IN {
  allow-update { none; };
  ...
};</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-27105-6</ident>
        </Rule>
      </Group>
    </Group>
    <Group id="ftp">
      <title xml:lang="en-US">FTP Server</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">FTP is a common method for allowing remote access to
files. Like telnet, the FTP protocol is unencrypted, which means
that passwords and other data transmitted during the session can be
captured and that the session is vulnerable to hijacking.
Therefore, running the FTP server software is not recommended.
<xhtml:br/><xhtml:br/>
However, there are some FTP server configurations which may
be appropriate for some environments, particularly those which
allow only read-only anonymous access as a means of downloading
data available to the public.</description>
      <Group id="disabling_vsftpd">
        <title xml:lang="en-US">Disable vsftpd if Possible</title>
        <Rule id="disable_vsftpd" selected="false" severity="low">
          <title xml:lang="en-US">Disable vsftpd Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>vsftpd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig vsftpd off</xhtml:pre>
          </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1436</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26948-0</ident>
          <fix system="urn:xccdf:fix:script:sh">if service vsftpd status &gt;/dev/null; then
	service vsftpd stop
fi
</fix>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:892" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>vsftpd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>vsftpd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>vsftpd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>vsftpd</xhtml:code> --list
<xhtml:code>vsftpd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>vsftpd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service vsftpd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>vsftpd is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="uninstall_vsftpd" selected="false" severity="low">
          <title xml:lang="en-US">Uninstall vsftpd Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>vsftpd</xhtml:code> package can be removed with the following command:
    <xhtml:pre># yum erase vsftpd</xhtml:pre>
          </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <reference href="http://iase.disa.mil/cci/index.html">1436</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Removing the vsftpd package decreases the risk of its
accidental activation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26687-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:616" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>vsftpd</xhtml:code> package is installed:
    <xhtml:pre># rpm -q vsftpd</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="ftp_use_vsftpd">
        <title xml:lang="en-US">Use vsftpd to Provide FTP Service if Necessary</title>
        <Rule id="install_vsftpd" selected="false" severity="low">
          <title xml:lang="en-US">Install vsftpd Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If this machine must operate as an FTP server, install the <xhtml:code>vsftpd</xhtml:code> package via the standard channels.
<xhtml:pre># yum install vsftpd</xhtml:pre>
</description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
          <ident system="http://cce.mitre.org">CCE-27187-4</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:863" href="ssg-rhel6-oval.xml"/>
          </check>
        </Rule>
      </Group>
      <Group id="ftp_configure_vsftpd">
        <title xml:lang="en-US">Use vsftpd to Provide FTP Service if Necessary</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The primary vsftpd configuration file is
<xhtml:code>/etc/vsftpd.conf</xhtml:code>, if that file exists, or
<xhtml:code>/etc/vsftpd/vsftpd.conf</xhtml:code> if it does not. 
</description>
        <Rule id="ftp_log_transactions" selected="false" severity="low">
          <title xml:lang="en-US">Enable Logging of All FTP Transactions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Add or correct the following configuration options within the <xhtml:code>vsftpd</xhtml:code>
configuration file, located at <xhtml:code>/etc/vsftpd/vsftpd.conf</xhtml:code>:
<xhtml:pre>xferlog_enable=YES
xferlog_std_format=NO
log_ftp_protocol=YES</xhtml:pre>
</description>
          <warning xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US" override="false" category="general">If verbose logging to <xhtml:code>vsftpd.log</xhtml:code> is done, sparse logging of downloads to <xhtml:code>/var/log/xferlog</xhtml:code> will not also occur. However, the information about what files were downloaded is included in the information logged to <xhtml:code>vsftpd.log</xhtml:code></warning>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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 <xhtml:code>/var/log/vsftpd.log</xhtml:code>.</rationale>
          <ident system="http://cce.mitre.org">CCE-27142-9</ident>
          <check system="ocil-transitional">
            <check-export export-name="xferlog_enable is missing, or is not set to yes" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Find if logging is applied to the FTP daemon.
<xhtml:br/><xhtml:br/>
Procedures:
<xhtml:br/><xhtml:br/>
If vsftpd is started by xinetd the following command will indicate the xinetd.d startup file:
<xhtml:pre># grep vsftpd /etc/xinetd.d/*</xhtml:pre>
<xhtml:pre># grep server_args <xhtml:i>vsftpd xinetd.d startup file</xhtml:i></xhtml:pre>
This will indicate the vsftpd config file used when starting through xinetd.
If the <xhtml:i>server_args</xhtml:i> line is missing or does not include the vsftpd configuration file, then the default config file (/etc/vsftpd/vsftpd.conf) is used.
<xhtml:pre># grep xferlog_enable <xhtml:i>vsftpd config file</xhtml:i></xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="ftp_present_banner" selected="false" severity="medium">
          <title xml:lang="en-US">Create Warning Banners for All FTP Users</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Edit the vsftpd configuration file, which resides at <xhtml:code>/etc/vsftpd/vsftpd.conf</xhtml:code>
by default. Add or correct the following configuration options:
<xhtml:pre>banner_file=/etc/issue</xhtml:pre>
</description>
          <reference href="http://iase.disa.mil/cci/index.html">48</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This setting will cause the system greeting banner to be used for FTP connections as well.</rationale>
          <ident system="http://cce.mitre.org">CCE-27145-2</ident>
          <check system="ocil-transitional">
            <check-export export-name="it does not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
If FTP services are not installed, this is not applicable.
<xhtml:br/><xhtml:br/>
To verify this configuration, run the following command:
<xhtml:pre>grep "banner_file" /etc/vsftpd/vsftpd.conf</xhtml:pre>

The output should show the value of <xhtml:code>banner_file</xhtml:code> is set to <xhtml:code>/etc/issue</xhtml:code>, an example of which is shown below:
<xhtml:pre># grep "banner_file" /etc/vsftpd/vsftpd.conf
banner_file=/etc/issue</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Group id="ftp_restrict_users">
          <title xml:lang="en-US">Restrict the Set of Users Allowed to Access FTP</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This section describes how to disable non-anonymous (password-based) FTP logins, or, if it is not possible to
do this entirely due to legacy applications, how to restrict insecure FTP login to only those users who have an
identified need for this access.</description>
          <Rule id="ftp_restrict_to_anon" selected="false" severity="low">
            <title xml:lang="en-US">Restrict Access to Anonymous Users if Possible</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre>local_enable=NO</xhtml:pre>
If non-anonymous FTP logins are necessary, follow the guidance in the remainder of this section to secure
these logins as much as possible.</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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. </rationale>
            <ident system="http://cce.mitre.org">CCE-27115-5</ident>
          </Rule>
          <Group id="ftp_limit_users">
            <title xml:lang="en-US">Limit Users Allowed FTP Access if Necessary</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If there is a mission-critical reason for users to access their accounts via the insecure FTP protocol, limit the set of users who are allowed this access. Edit the vsftpd configuration file. Add or correct the following configuration options:
<xhtml:pre>userlist_enable=YES
userlist_file=/etc/vsftp.ftpusers
userlist_deny=NO</xhtml:pre>
Edit the file <xhtml:code>/etc/vsftp.ftpusers</xhtml:code>. For each user USERNAME who should be allowed to access the system via FTP, add a line containing that user's name:
<xhtml:pre>USERNAME</xhtml:pre>
If anonymous access is also required, add the anonymous usernames to <xhtml:code>/etc/vsftp.ftpusers</xhtml:code> as well.
<xhtml:pre>anonymous
ftp</xhtml:pre>
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Historically, the file <xhtml:code>/etc/ftpusers</xhtml:code> contained a list of users who were not allowed to access the system via FTP. It was used to prevent system users such as the root user from logging in via the insecure FTP protocol. However, when the configuration option <xhtml:code>userlist deny=NO</xhtml:code> is set, vsftpd interprets ftpusers as the set of users who are allowed to login via FTP. Since it should be possible for most users to access their accounts via secure protocols, it is recommended that this setting be used, so that non-anonymous FTP access can be limited to legacy users who have been explicitly identified.</rationale>
          </Group>
        </Group>
        <Rule id="ftp_disable_uploads" selected="false" severity="low">
          <title xml:lang="en-US">Disable FTP Uploads if Possible</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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:
<xhtml:pre>write_enable=NO</xhtml:pre>
If FTP uploads are necessary, follow the guidance in the remainder of this section to secure these transactions
as much as possible.</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27117-1</ident>
        </Rule>
        <Rule id="ftp_home_partition" selected="false" severity="low">
          <title xml:lang="en-US">Place the FTP Home Directory on its Own Partition</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">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.</rationale>
        </Rule>
        <Group id="ftp_configure_firewall">
          <title xml:lang="en-US">Configure Firewalls to Protect the FTP Server</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">By default, <xhtml:code>iptables</xhtml:code>
blocks access to the ports used by the web server.

        To configure <xhtml:code>iptables</xhtml:code> to allow port 
        21 traffic one must edit 
        <xhtml:code>/etc/sysconfig/iptables</xhtml:code>  and 
        <xhtml:code>/etc/sysconfig/ip6tables</xhtml:code> (if IPv6 is in use).
        Add the following line, ensuring that it appears before the final LOG 
        and DROP lines for the INPUT chain:
        <xhtml:pre xml:space="preserve">-A INPUT -m state --state NEW -p tcp --dport 21 -j ACCEPT</xhtml:pre>
Edit the file <xhtml:code>/etc/sysconfig/iptables-config</xhtml:code>. Ensure that the space-separated list of modules contains
the FTP connection tracking module:
<xhtml:pre>IPTABLES_MODULES="ip_conntrack_ftp"</xhtml:pre></description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">These settings configure iptables to allow connections to an FTP server. The first line allows initial connections
to the FTP server port.
FTP is an older protocol which is not very compatible with firewalls. During the initial FTP dialogue, the client
and server negotiate an arbitrary port to be used for data transfer. The <xhtml:code>ip_conntrack_ftp</xhtml:code>  module is used by
iptables to listen to that dialogue and allow connections to the data ports which FTP negotiates. This allows an
FTP server to operate on a machine which is running a firewall.</rationale>
        </Group>
      </Group>
    </Group>
    <Group id="http">
      <title xml:lang="en-US">Web Server</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The web server is responsible for providing access to
content via the HTTP protocol. Web servers represent a significant
security risk because:
<xhtml:br/><xhtml:br/>
<xhtml:ul><xhtml:li>The HTTP port is commonly probed by malicious sources</xhtml:li><xhtml:li>Web server software is very complex, and includes a long
history of vulnerabilities</xhtml:li><xhtml:li>The HTTP protocol is unencrypted and vulnerable to passive
monitoring</xhtml:li></xhtml:ul>
<xhtml:br/><xhtml:br/>
The system's default web server software is Apache 2 and is
provided in the RPM package <xhtml:code>httpd</xhtml:code>.</description>
      <Group id="disabling_httpd">
        <title xml:lang="en-US">Disable Apache if Possible</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If Apache was installed and activated, but the system
does not need to act as a web server, then it should be disabled
and removed from the system.
</description>
        <Rule id="disable_httpd" selected="false" severity="low">
          <title xml:lang="en-US">Disable httpd Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>httpd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig httpd off</xhtml:pre>
          </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Running web server software provides a network-based avenue
of attack, and should be disabled if not needed.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27075-1</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:125" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>httpd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>httpd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>httpd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>httpd</xhtml:code> --list
<xhtml:code>httpd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>httpd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service httpd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>httpd is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="uninstall_httpd" selected="false" severity="low">
          <title xml:lang="en-US">Uninstall httpd Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>httpd</xhtml:code> package can be removed with the following command:
    <xhtml:pre># yum erase httpd</xhtml:pre>
          </description>
          <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If there is no need to make the web server software available,
removing it provides a safeguard against its activation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27133-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:126" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>httpd</xhtml:code> package is installed:
    <xhtml:pre># rpm -q httpd</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="installing_httpd">
        <title xml:lang="en-US">Install Apache if Necessary</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If <xhtml:code>httpd</xhtml:code> was not installed and activated, but the system
needs to act as a web server, then it should be installed on the system. Follow these
guidelines to install it defensively. The <xhtml:code>httpd</xhtml:code> package can be installed with
the following command:
<xhtml:pre># yum install httpd</xhtml:pre>
This method of installation is recommended over installing the "Web Server"
package group during the system installation process. The Web Server package
group includes many packages which are likely extraneous, while the
command-line method installs only the required <xhtml:code>httpd</xhtml:code> package itself.
</description>
        <Group id="httpd_minimal_modules_installed">
          <title xml:lang="en-US">Confirm Minimal Built-in Modules Installed</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The default <xhtml:code>httpd</xhtml:code> installation minimizes the number of
modules that are compiled directly into the binary (<xhtml:code>core prefork http_core
mod_so</xhtml:code>). This minimizes risk by limiting the capabilities allowed by the
web server.

Query the set of compiled-in modules using the following command:
<xhtml:pre>$ httpd -l</xhtml:pre>
If the number of compiled-in modules is significantly larger than the
aforementioned set, this guide recommends re-installing <xhtml:code>httpd</xhtml:code> with a
reduced configuration. Minimizing the number of modules that are compiled into
the <xhtml:code>httpd</xhtml:code> binary, reduces risk by limiting the capabilities allowed by
the webserver.
</description>
        </Group>
      </Group>
      <Group id="securing_httpd">
        <title xml:lang="en-US">Secure Apache Configuration</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>httpd</xhtml:code> configuration file is
<xhtml:code>/etc/httpd/conf/httpd.conf</xhtml:code>. Apply the recommendations in the remainder
of this section to this file.</description>
        <Group id="httpd_restrict_info_leakage">
          <title xml:lang="en-US">Restrict Web Server Information Leakage</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>ServerTokens</xhtml:code> and <xhtml:code>ServerSignature</xhtml:code> directives determine how
much information the web server discloses about the configuration of the
system.</description>
          <Rule id="httpd_servertokens_prod" selected="false" severity="low">
            <title xml:lang="en-US">Set httpd ServerTokens Directive to Prod</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"><xhtml:code>ServerTokens Prod</xhtml:code> restricts information in page headers, returning only the word "Apache."
<xhtml:br/><xhtml:br/>
Add or correct the following directive in <xhtml:code>/etc/httpd/conf/httpd.conf</xhtml:code>:
<xhtml:pre>ServerTokens Prod</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          </Rule>
          <Rule id="httpd_serversignature_off" selected="false" severity="low">
            <title xml:lang="en-US">Set httpd ServerSignature Directive to Off</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"><xhtml:code>ServerSignature Off</xhtml:code> restricts <xhtml:code>httpd</xhtml:code> from displaying server version number
on error pages.
<xhtml:br/><xhtml:br/>
Add or correct the following directive in <xhtml:code>/etc/httpd/conf/httpd.conf</xhtml:code>:
<xhtml:pre>ServerSignature Off</xhtml:pre>
</description>
            <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          </Rule>
        </Group>
        <Group id="httpd_minimize_loadable_modules">
          <title xml:lang="en-US">Minimize Web Server Loadable Modules</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
A default installation of <xhtml:code>httpd</xhtml:code> includes a plethora of dynamically shared objects (DSO)
that are loaded at run-time. Unlike the aforementioned compiled-in modules, a DSO can be
disabled in the configuration file by removing the corresponding LoadModule directive.
<xhtml:br/><xhtml:br/>
Note: A DSO only provides additional functionality if associated directives are included
in the <xhtml:code>httpd</xhtml:code> configuration file. It should also be noted that removing a DSO will produce
errors on <xhtml:code>httpd</xhtml:code> startup if the configuration file contains directives that apply to that
module. Refer to <xhtml:code>http://httpd.apache.org/docs/</xhtml:code> for details on which directives
are associated with each DSO.
<xhtml:br/><xhtml:br/>
Following each DSO removal, the configuration can be tested with the following command
to check if everything still works:
<xhtml:pre># service httpd configtest</xhtml:pre>
The purpose of each of the modules loaded by default will now be addressed one at a time.
If none of a module's directives are being used, remove it.
</description>
          <Group id="httpd_core_modules">
            <title xml:lang="en-US">httpd Core Modules</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
These modules comprise a basic subset of modules that are likely needed for base <xhtml:code>httpd</xhtml:code>
functionality; ensure they are not commented out in <xhtml:code>/etc/httpd/conf/httpd.conf</xhtml:code>:
<xhtml:pre>LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mome.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so</xhtml:pre>
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</description>
            <Group id="httpd_basic_authentication">
              <title xml:lang="en-US">Minimize Modules for HTTP Basic Authentication</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The following modules are necessary if this web server will provide content that will
be restricted by a password.
<xhtml:br/><xhtml:br/>
Authentication can be performed using local plain text password files (<xhtml:code>authn_file</xhtml:code>),
local DBM password files (<xhtml:code>authn_dbm</xhtml:code>) or an LDAP directory. The only module required by
the web server depends on your choice of authentication. Comment out the modules you don't
need from the following:
<xhtml:pre>LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so</xhtml:pre>
<xhtml:code>authn_alias</xhtml:code> allows for authentication based on aliases. <xhtml:code>authn_anon</xhtml:code>
allows anonymous authentication similar to that of anonymous ftp sites. <xhtml:code>authz_owner</xhtml:code>
allows authorization based on file ownership. <xhtml:code>authz_dbm</xhtml:code> allows for authorization
based on group membership if the web server is using DBM authentication.
<xhtml:br/><xhtml:br/>
If the above functionality is unnecessary, comment out the related module:
<xhtml:pre>#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so</xhtml:pre>
</description>
            </Group>
            <Rule id="httpd_digest_authentication" selected="false" severity="low">
              <title xml:lang="en-US">Disable HTTP Digest Authentication</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>auth_digest</xhtml:code> module provides encrypted authentication sessions.
If this functionality is unnecessary, comment out the related module:
<xhtml:pre>#LoadModule auth_digest_module modules/mod_auth_digest.so</xhtml:pre>
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_mod_rewrite" selected="false" severity="low">
              <title xml:lang="en-US">Disable HTTP mod_rewrite</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>mod_rewrite</xhtml:code> 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:
<xhtml:pre>#LoadModule rewrite_module modules/mod_rewrite.so</xhtml:pre>
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_ldap_support" selected="false" severity="low">
              <title xml:lang="en-US">Disable LDAP Support</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>ldap</xhtml:code> module provides HTTP authentication via an LDAP directory.
If its functionality is unnecessary, comment out the related modules:
<xhtml:pre>#LoadModule ldap_module modules/mod_ldap.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so</xhtml:pre>
If LDAP is to be used, SSL encryption should be used as well.
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_server_side_includes" selected="false" severity="low">
              <title xml:lang="en-US">Disable Server Side Includes</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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:
<xhtml:pre>#LoadModule include_module modules/mod_include.so</xhtml:pre>
If there is a critical need for Server Side Includes, they should be enabled with the
option <xhtml:code>IncludesNoExec</xhtml:code> to prevent arbitrary code execution. Additionally, user
supplied data should be encoded to prevent cross-site scripting vulnerabilities.
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_mime_magic" selected="false" severity="low">
              <title xml:lang="en-US">Disable MIME Magic</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>mime_magic</xhtml:code> 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:
<xhtml:pre>#LoadModule mime_magic_module modules/mod_mime_magic.so</xhtml:pre>
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_webdav" selected="false" severity="low">
              <title xml:lang="en-US">Disable WebDAV (Distributed Authoring and Versioning)</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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:
<xhtml:pre>#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so</xhtml:pre>
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.
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server, reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_server_activity_status" selected="false" severity="low">
              <title xml:lang="en-US">Disable Server Activity Status</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>status</xhtml:code> 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:
<xhtml:pre>#LoadModule status_module modules/mod_status.so</xhtml:pre>
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.
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_server_configuration_display" selected="false" severity="low">
              <title xml:lang="en-US">Disable Web Server Configuration Display</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>info</xhtml:code> 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:
<xhtml:pre>#LoadModule info_module modules/mod_info.so</xhtml:pre>
If there is a critical need for this module, use the <xhtml:code>Location</xhtml:code> directive to provide
an access control list to restrict access to the information.
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_url_correction" selected="false" severity="low">
              <title xml:lang="en-US">Disable URL Correction on Misspelled Entries</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>speling</xhtml:code> 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:
<xhtml:pre>#LoadModule speling_module modules/mod_speling.so</xhtml:pre>
This functionality weakens server security by making site enumeration easier.
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_proxy_support" selected="false" severity="low">
              <title xml:lang="en-US">Disable Proxy Support</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>proxy</xhtml:code> module provides proxying support, allowing <xhtml:code>httpd</xhtml:code> to forward requests and
serve as a gateway for other servers. If its functionality is unnecessary, comment out the module:
<xhtml:pre>#LoadModule proxy_module modules/mod_proxy.so</xhtml:pre>
<!-- dependencies: #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so-->
If proxy support is needed, load <xhtml:code>mod_proxy</xhtml:code> and the appropriate proxy protocol handler
module (one of <xhtml:code>mod_proxy_http</xhtml:code>, <xhtml:code>mod_proxy_ftp</xhtml:code>, or <xhtml:code>mod_proxy_connect</xhtml:code>). Additionally,
make certain that a server is secure before enabling proxying, as open proxy servers
are a security risk. <xhtml:code>mod_proxy_balancer</xhtml:code> enables load balancing, but requires that
<xhtml:code>mod status</xhtml:code> be enabled.
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_cache_support" selected="false" severity="low">
              <title xml:lang="en-US">Disable Cache Support</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>cache</xhtml:code> module allows <xhtml:code>httpd</xhtml:code> to cache data, optimizing access to
frequently accessed content. However, it introduces potential security flaws
such as the possibility of circumventing <xhtml:code>Allow</xhtml:code> and
<xhtml:code>Deny</xhtml:code> directives.
<xhtml:br/><xhtml:br/> If this functionality is
unnecessary, comment out the module:
<xhtml:pre>#LoadModule cache_module modules/mod_cache.so</xhtml:pre>
If caching is required, it should not be enabled for any limited-access content.
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Rule id="httpd_cgi_support" selected="false" severity="low">
              <title xml:lang="en-US">Disable CGI Support</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>cgi</xhtml:code> module allows HTML to interact with the CGI web programming language.
<xhtml:br/><xhtml:br/>
If this functionality is unnecessary, comment out the module:
<xhtml:pre>#LoadModule cgi_module modules/mod_cgi.so</xhtml:pre>
<!--#LoadModule env_module modules/mod_env.so
#LoadModule actions_module modules/mod_actions.so
#LoadModule suexec_module modules/mod_suexec.so -->
If the web server requires the use of CGI, enable <xhtml:code>mod_cgi</xhtml:code>.
<!-- If extended
CGI functionality is required, include the appropriate modules. <tt>env</tt> allows for
control of the environment passed to CGI scripts. <tt>actions</tt> allows CGI events
to be triggered when files of a certain type are requested. <tt>su exec</tt> allows
CGI scripts to run as a specified user/group instead of as the server's user/group. -->
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
            </Rule>
            <Group id="httpd_optional_components">
              <title xml:lang="en-US">Minimize Various Optional Components</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The following modules perform very specific tasks, sometimes providing access to
just a few additional directives. If such functionality is not required (or if you
are not using these directives), comment out the associated module:
<xhtml:ul><xhtml:li>External filtering (response passed through external program prior to client delivery)
<xhtml:pre>#LoadModule ext_filter_module modules/mod_ext_filter.so</xhtml:pre></xhtml:li><xhtml:li>User-specified Cache Control and Expiration
<xhtml:pre>#LoadModule expires_module modules/mod_expires.so</xhtml:pre></xhtml:li><xhtml:li>Compression Output Filter (provides content compression prior to client delivery)
<xhtml:pre>#LoadModule deflate_module modules/mod_deflate.so</xhtml:pre></xhtml:li><xhtml:li>HTTP Response/Request Header Customization
<xhtml:pre>#LoadModule headers_module modules/mod_headers.so</xhtml:pre></xhtml:li><xhtml:li>User activity monitoring via cookies
<xhtml:pre>#LoadModule usertrack_module modules/mod_usertrack.so</xhtml:pre></xhtml:li><xhtml:li>Dynamically configured mass virtual hosting
<xhtml:pre>#LoadModule vhost_alias_module modules/mod_vhost_alias.so</xhtml:pre></xhtml:li></xhtml:ul>
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</description>
            </Group>
            <Group id="httpd_minimize_config_files_included">
              <title xml:lang="en-US">Minimize Configuration Files Included</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>Include</xhtml:code> directive directs <xhtml:code>httpd</xhtml:code> to load supplementary configuration files
from a provided path. The default configuration loads all files that end in <xhtml:code>.conf</xhtml:code>
from the <xhtml:code>/etc/httpd/conf.d</xhtml:code> directory.
<xhtml:br/><xhtml:br/>
To restrict excess configuration, the following line should be commented out and
replaced with <xhtml:code>Include</xhtml:code> directives that only reference required configuration files:
<xhtml:pre>#Include conf.d/*.conf</xhtml:pre>
If the above change was made, ensure that the SSL encryption remains loaded by
explicitly including the corresponding configuration file:
<xhtml:pre>Include conf.d/ssl.conf</xhtml:pre>
If PHP is necessary, a similar alteration must be made:
<xhtml:pre>Include conf.d/php.conf</xhtml:pre>
<!--<rationale>-->
Explicitly listing the configuration files to be loaded during web server start-up avoids
the possibility of unwanted or malicious configuration files to be automatically included as
part of the server's running configuration.
<!--</rationale>-->
</description>
            </Group>
          </Group>
        </Group>
        <Group id="httpd_directory_restrictions">
          <title xml:lang="en-US">Directory Restrictions</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The Directory tags in the web server configuration file allow finer grained access
control for a specified directory. All web directories should be configured on a
case-by-case basis, allowing access only where needed.
</description>
          <Rule id="httpd_restrict_root_directory" selected="false" severity="low">
            <title xml:lang="en-US">Restrict Root Directory</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>httpd</xhtml:code> root directory should always have the most restrictive configuration enabled.
<xhtml:pre>&lt;Directory / &gt;
   Options None
   AllowOverride None
   Order allow,deny
&lt;/Directory&gt;</xhtml:pre>
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The Web Server's root directory content should be protected from unauthorized access
by web clients.
</rationale>
          </Rule>
          <Rule id="httpd_restrict_web_directory" selected="false" severity="low">
            <title xml:lang="en-US">Restrict Web Directory</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The default configuration for the web (<xhtml:code>/var/www/html</xhtml:code>) Directory allows directory
indexing (<xhtml:code>Indexes</xhtml:code>) and the following of symbolic links (<xhtml:code>FollowSymLinks</xhtml:code>).
Neither of these is recommended.
<xhtml:br/><xhtml:br/>
The <xhtml:code>/var/www/html</xhtml:code> 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.
<xhtml:br/><xhtml:br/>
Ensure that this policy is adhered to by altering the related section of the configuration:
<xhtml:pre>&lt;Directory "/var/www/html"&gt;
#  ...
   Options SymLinksIfOwnerMatch
#  ...
&lt;/Directory&gt;</xhtml:pre>
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          </Rule>
          <Rule id="httpd_restrict_critical_directories" selected="false" severity="low">
            <title xml:lang="en-US">Restrict Other Critical Directories</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
All accessible web directories should be configured with similarly restrictive settings.
The <xhtml:code>Options</xhtml:code> directive should be limited to necessary functionality and the <xhtml:code>AllowOverride</xhtml:code>
directive should be used only if needed. The <xhtml:code>Order</xhtml:code> and <xhtml:code>Deny</xhtml:code> access control tags
should be used to deny access by default, allowing access only where necessary.
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
          </Rule>
          <Rule id="httpd_limit_available_methods" selected="false" severity="low">
            <title xml:lang="en-US">Limit Available Methods</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
<xhtml:br/><xhtml:br/>
Note: <xhtml:code>GET</xhtml:code> and <xhtml:code>POST</xhtml:code> are the most common methods. A majority of the others
are limited to the WebDAV protocol.
<xhtml:pre>&lt;Directory /var/www/html&gt;
# ...
   # Only allow specific methods (this command is case-sensitive!)
   &lt;LimitExcept GET POST&gt;
      Order allow,deny
   &lt;/LimitExcept&gt;
# ...
&lt;/Directory&gt;</xhtml:pre>
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimizing the number of available methods to the web client reduces risk
by limiting the capabilities allowed by the web server.
</rationale>
          </Rule>
        </Group>
        <Group id="httpd_modules_improve_security">
          <title xml:lang="en-US">Use Appropriate Modules to Improve httpd's Security</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Among the modules available for <xhtml:code>httpd</xhtml:code> are several whose use may improve the
security of the web server installation. This section recommends and discusses
the deployment of security-relevant modules.
</description>
          <Group id="httpd_deploy_mod_ssl">
            <title xml:lang="en-US">Deploy mod_ssl</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Because HTTP is a plain text protocol, all traffic is susceptible to passive
monitoring. If there is a need for confidentiality, SSL should be configured
and enabled to encrypt content.
<xhtml:br/><xhtml:br/>
Note: <xhtml:code>mod_nss</xhtml:code> is a FIPS 140-2 certified alternative to <xhtml:code>mod_ssl</xhtml:code>.
The modules share a considerable amount of code and should be nearly identical
in functionality. If FIPS 140-2 validation is required, then <xhtml:code>mod_nss</xhtml:code> should
be used. If it provides some feature or its greater compatibility is required,
then <xhtml:code>mod_ssl</xhtml:code> should be used.
</description>
            <Rule id="httpd_install_mod_ssl" selected="false" severity="low">
              <title xml:lang="en-US">Install mod_ssl</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Install the <xhtml:code>mod_ssl</xhtml:code> module:
<xhtml:pre># yum install mod_ssl</xhtml:pre>
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"><xhtml:code>mod_ssl</xhtml:code> provides encryption capabilities for the <xhtml:code>httpd</xhtml:code> Web server. Unencrypted
content is transmitted in plain text which could be passively monitored and accessed by
unauthorized parties.
</rationale>
              <ident system="http://cce.mitre.org">CCE-27403-5</ident>
            </Rule>
          </Group>
          <Group id="httpd_deploy_mod_security">
            <title xml:lang="en-US">Deploy mod_security</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The <xhtml:code>security</xhtml:code> module provides an application level firewall for <xhtml:code>httpd</xhtml:code>.
Following its installation with the base ruleset, specific configuration advice can be found at
http://www.modsecurity.org/ to design a policy that best matches the security needs of
the web applications. Usage of <xhtml:code>mod_security</xhtml:code> is highly recommended for some environments,
but it should be noted this module does not ship with Red Hat Enterprise Linux itself,
and instead is provided via Extra Packages for Enterprise Linux (EPEL).
For more information on EPEL please refer to http://fedoraproject.org/wiki/EPEL.
</description>
            <Rule id="httpd_install_mod_security" selected="false" severity="low">
              <title xml:lang="en-US">Install mod_security</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Install the <xhtml:code>security</xhtml:code> module:
<xhtml:pre># yum install mod_security</xhtml:pre>
<!-- this is in EPEL and this rule should not be included in any RHEL-only baselines -->
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"><xhtml:code>mod_security</xhtml:code> 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.
</rationale>
              <ident system="http://cce.mitre.org">CCE-27525-5</ident>
            </Rule>
          </Group>
        </Group>
        <Group id="httpd_use_dos_protection_modules">
          <title xml:lang="en-US">Use Denial-of-Service Protection Modules</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Denial-of-service attacks are difficult to detect and prevent while maintaining
acceptable access to authorized users. However, some traffic-shaping
modules can be used to address the problem. Well-known DoS protection modules include:
<xhtml:pre>mod_cband mod_bwshare mod_limitipconn mod_evasive</xhtml:pre>
Denial-of-service prevention should be implemented for a web server if such a threat exists.
However, specific configuration details are very dependent on the environment and often best left
at the discretion of the administrator.
</description>
        </Group>
        <Group id="httpd_configure_php_securely">
          <title xml:lang="en-US">Configure PHP Securely</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
PHP is a widely-used and often misconfigured server-side scripting language. It should
be used with caution, but configured appropriately when needed.
<xhtml:br/><xhtml:br/>
Review <xhtml:code>/etc/php.ini</xhtml:code> and make the following changes if possible:
<xhtml:pre># Do not expose PHP error messages to external users
display_errors = Off

# Enable safe mode
safe_mode = On

# Only allow access to executables in isolated directory
safe_mode_exec_dir = php-required-executables-path

# Limit external access to PHP environment
safe_mode_allowed_env_vars = PHP_

# Restrict PHP information leakage
expose_php = Off

# Log all errors
log_errors = On

# Do not register globals for input data
register_globals = Off

# Minimize allowable PHP post size
post_max_size = 1K

# Ensure PHP redirects appropriately
cgi.force_redirect = 0

# Disallow uploading unless necessary
file_uploads = Off

# Disallow treatment of file requests as fopen calls
allow_url_fopen = Off

# Enable SQL safe mode
sql.safe_mode = On
</xhtml:pre>
</description>
        </Group>
        <Group id="httpd_configure_os_protect_web_server">
          <title xml:lang="en-US">Configure Operating System to Protect Web Server</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The following configuration steps should be taken on the machine which hosts the
web server, in order to provide as safe an environment as possible for the web server.
</description>
          <Group id="httpd_restrict_file_dir_access">
            <title xml:lang="en-US">Restrict File and Directory Access</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Minimize access to critical <xhtml:code>httpd</xhtml:code> files and directories.
</description>
            <Rule id="httpd_logs_permissions" selected="false" severity="low">
              <title xml:lang="en-US">Set Permissions on the /var/log/httpd/ Directory</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Ensure that the permissions on the web server log directory is set to 700:
<xhtml:pre># chmod 700 /var/log/httpd/</xhtml:pre>
This is its default setting.
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
              <ident system="http://cce.mitre.org">CCE-27150-2</ident>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-content-ref name="oval:ssg:def:375" href="ssg-rhel6-oval.xml"/>
              </check>
            </Rule>
            <Rule id="httpd_conf_dir_permissions" selected="false" severity="low">
              <title xml:lang="en-US">Set Permissions on the /etc/httpd/conf/ Directory</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Set permissions on the web server configuration directory to 750:
<xhtml:pre># chmod 750 /etc/httpd/conf/</xhtml:pre>
</description>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-content-ref name="oval:ssg:def:849" href="ssg-rhel6-oval.xml"/>
              </check>
            </Rule>
            <Rule id="httpd_conf_files_permissions" selected="false" severity="low">
              <title xml:lang="en-US">Set Permissions on All Configuration Files Inside /etc/httpd/conf/</title>
              <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Set permissions on the web server configuration files to 640:
<xhtml:pre># chmod 640 /etc/httpd/conf/*</xhtml:pre>
</description>
              <reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">CM-7</reference>
              <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
              <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                <check-content-ref name="oval:ssg:def:916" href="ssg-rhel6-oval.xml"/>
              </check>
            </Rule>
          </Group>
          <Group id="httpd_configure_iptables">
            <title xml:lang="en-US">Configure iptables to Allow Access to the Web Server</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
By default, <xhtml:code>iptables</xhtml:code>
blocks access to the ports used by the web server.

        To configure <xhtml:code>iptables</xhtml:code> to allow port 
        80 traffic one must edit 
        <xhtml:code>/etc/sysconfig/iptables</xhtml:code>  and 
        <xhtml:code>/etc/sysconfig/ip6tables</xhtml:code> (if IPv6 is in use).
        Add the following line, ensuring that it appears before the final LOG 
        and DROP lines for the INPUT chain:
        <xhtml:pre xml:space="preserve">-A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT</xhtml:pre>

        To configure <xhtml:code>iptables</xhtml:code> to allow port 
        443 traffic one must edit 
        <xhtml:code>/etc/sysconfig/iptables</xhtml:code>  and 
        <xhtml:code>/etc/sysconfig/ip6tables</xhtml:code> (if IPv6 is in use).
        Add the following line, ensuring that it appears before the final LOG 
        and DROP lines for the INPUT chain:
        <xhtml:pre xml:space="preserve">-A INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT</xhtml:pre>
</description>
          </Group>
          <Group id="httpd_chroot">
            <title xml:lang="en-US">Run httpd in a chroot Jail if Practical</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Running <xhtml:code>httpd</xhtml:code> inside a <xhtml:code>chroot</xhtml:code> jail is designed to isolate the
web server process to a small section of the filesystem, limiting the damage if
it is compromised. Versions of Apache greater than 2.2.10 (such as the one
included with RHEL 6) provide the <xhtml:code>ChrootDir</xhtml:code> directive. To run Apache
inside a chroot jail in <xhtml:code>/chroot/apache</xhtml:code>, add the following line to
<xhtml:code>/etc/httpd/conf/httpd.conf</xhtml:code>: <xhtml:pre>ChrootDir /chroot/apache</xhtml:pre> This
necessitates placing all files required by <xhtml:code>httpd</xhtml:code> inside
<xhtml:code>/chroot/apache</xhtml:code> , including <xhtml:code>httpd</xhtml:code>'s binaries, modules,
configuration files, and served web pages. The details of this configuration
are beyond the scope of this guide. This may also require additional SELinux
configuration.
</description>
          </Group>
        </Group>
      </Group>
    </Group>
    <Group id="imap">
      <title xml:lang="en-US">IMAP and POP3 Server</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Dovecot provides IMAP and POP3 services. It is not
installed by default. The project page at http://www.dovecot.org
contains more detailed information about Dovecot
configuration.</description>
      <Group id="disabling_dovecot">
        <title xml:lang="en-US">Disable Dovecot</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If the system does not need to operate as an IMAP or
POP3 server, the dovecot software should be disabled and removed.
</description>
        <Rule id="disable_dovecot" selected="false" severity="low">
          <title xml:lang="en-US">Disable Dovecot Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>dovecot</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig dovecot off</xhtml:pre>
          </description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Running an IMAP or POP3 server provides a network-based
avenue of attack, and should be disabled if not needed.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26922-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:458" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>dovecot</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>dovecot</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>dovecot</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>dovecot</xhtml:code> --list
<xhtml:code>dovecot</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>dovecot</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service dovecot status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>dovecot is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="uninstall_dovecot" selected="false" severity="low">
          <title xml:lang="en-US">Uninstall dovecot Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>dovecot</xhtml:code> package can be uninstalled
with the following command:
<xhtml:pre># yum erase dovecot</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If there is no need to make the Dovecot software available,
removing it provides a safeguard against its activation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27039-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:243" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>dovecot</xhtml:code> package is installed:
    <xhtml:pre># rpm -q dovecot</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="configure_dovecot">
        <title xml:lang="en-US">Configure Dovecot if Necessary</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If the system will operate as an IMAP or
POP3 server, the dovecot software should be configured securely by following
the recommendations below.
</description>
        <Group id="dovecot_support_necessary_protocols">
          <title xml:lang="en-US">Support Only the Necessary Protocols</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Dovecot supports the IMAP and POP3 protocols, as well as 
SSL-protected versions of those protocols. Configure the Dovecot server 
to support only the protocols needed by your site. Edit <xhtml:code>/etc/dovecot/dovecot.conf</xhtml:code>. 
Add or correct the following lines, replacing <xhtml:code>PROTOCOL</xhtml:code> with 
only the subset of protocols (<xhtml:code>imap</xhtml:code>, <xhtml:code>imaps</xhtml:code>, 
<xhtml:code>pop3</xhtml:code>, <xhtml:code>pop3s</xhtml:code>) required:
<xhtml:pre>protocols = PROTOCOL</xhtml:pre>
If possible, require SSL protection for all transactions. The SSL 
protocol variants listen on alternate ports (995 instead of 110 for 
pop3s, and 993 instead of 143 for imaps), and require SSL-aware clients. 
An alternate approach is to listen on the standard port and require the 
client to use the STARTTLS command before authenticating.
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Configuring Dovecot to only support the protocols the protocols needed by
your site reduces the risk of an attacker using one of the unused protocols
to base an attack.</rationale>
        </Group>
        <Group id="dovecot_enabling_ssl">
          <title xml:lang="en-US">Enable SSL Support</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">SSL should be used to encrypt network traffic between the 
Dovecot server and its clients. Users must authenticate to the Dovecot 
server in order to read their mail, and passwords should never be 
transmitted in clear text. In addition, protecting mail as it is 
downloaded is a privacy measure, and clients may use SSL certificates 
to authenticate the server, preventing another system from impersonating 
the server.
</description>
          <Rule id="dovecot_enable_ssl" selected="false" severity="low">
            <title xml:lang="en-US">Enable the SSL flag in /etc/dovecot.conf</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To allow clients to make encrypted connections the <xhtml:code>ssl</xhtml:code>
flag in Dovecot's configuration file needs to be set to <xhtml:code>yes</xhtml:code>.
<xhtml:br/><xhtml:br/>
Edit <xhtml:code>/etc/dovecot/conf.d/10-ssl.conf</xhtml:code> and add or correct the following line:
<xhtml:pre>ssl = yes</xhtml:pre>
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27571-9</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:270" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
          <Rule id="dovecot_configure_ssl_cert" selected="false" severity="low">
            <title xml:lang="en-US">Configure Dovecot to Use the SSL Certificate file</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This option tells Dovecot where to find the the mail 
server's SSL Certificate.
<xhtml:br/><xhtml:br/>
Edit <xhtml:code>/etc/dovecot/conf.d/10-ssl.conf</xhtml:code> and add or correct the following 
line (<xhtml:i>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</xhtml:i>):
<xhtml:pre>ssl_cert = &lt;/etc/pki/dovecot/certs/dovecot.pem</xhtml:pre>
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27459-7</ident>
          </Rule>
          <Rule id="dovecot_configure_ssl_key" selected="false" severity="low">
            <title xml:lang="en-US">Configure Dovecot to Use the SSL Key file</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">This option tells Dovecot where to find the the mail 
server's SSL Key.
<xhtml:br/><xhtml:br/>
Edit <xhtml:code>/etc/dovecot/conf.d/10-ssl.conf</xhtml:code> and add or correct the following 
line (<xhtml:i>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</xhtml:i>):
<xhtml:pre>ssl_key = &lt;/etc/pki/dovecot/private/dovecot.pem</xhtml:pre>
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27633-7</ident>
          </Rule>
          <Rule id="dovecot_disable_plaintext_auth" selected="false" severity="low">
            <title xml:lang="en-US">Disable Plaintext Authentication</title>
            <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">To prevent Dovecot from attempting plaintext 
authentication of clients, edit <xhtml:code>/etc/dovecot/conf.d/10-auth.conf</xhtml:code> and add
or correct the following line:
<xhtml:pre>disable_plaintext_auth = yes</xhtml:pre>
</description>
            <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Using plain text authentication to the mail server could allow an 
attacker access to credentials by monitoring network traffic.
</rationale>
            <ident system="http://cce.mitre.org">CCE-27144-5</ident>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
              <check-content-ref name="oval:ssg:def:706" href="ssg-rhel6-oval.xml"/>
            </check>
          </Rule>
        </Group>
        <Group id="dovecot_allow_imap_access">
          <title xml:lang="en-US">Allow IMAP Clients to Access the Server</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The default iptables configuration does not allow inbound 
access to any services. This modification will allow remote hosts to 
initiate connections to the IMAP daemon, while keeping all other ports 
on the server in their default protected state. 

        To configure <xhtml:code>iptables</xhtml:code> to allow port 
        143 traffic one must edit 
        <xhtml:code>/etc/sysconfig/iptables</xhtml:code>  and 
        <xhtml:code>/etc/sysconfig/ip6tables</xhtml:code> (if IPv6 is in use).
        Add the following line, ensuring that it appears before the final LOG 
        and DROP lines for the INPUT chain:
        <xhtml:pre xml:space="preserve">-A INPUT -m state --state NEW -p tcp --dport 143 -j ACCEPT</xhtml:pre>
</description>
        </Group>
      </Group>
    </Group>
    <Group id="smb">
      <title xml:lang="en-US">Samba(SMB) Microsoft Windows File Sharing Server</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">When properly configured, the Samba service allows
Linux machines to provide file and print sharing to Microsoft
Windows machines. There are two software packages that provide
Samba support. The first, <xhtml:code>samba-client</xhtml:code>, provides a series of
command line tools that enable a client machine to access Samba
shares. The second, simply labeled <xhtml:code>samba</xhtml:code>, provides the Samba
service. It is this second package that allows a Linux machine to
act as an Active Directory server, a domain controller, or as a
domain member. Only the <xhtml:code>samba-client</xhtml:code> package is installed by
default.</description>
      <Group id="disabling_samba">
        <title xml:lang="en-US">Disable Samba if Possible</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Even after the Samba server package has been installed, it
will remain disabled. Do not enable this service unless it is
absolutely necessary to provide Microsoft Windows file and print
sharing functionality.
</description>
        <Rule id="disable_smb_server" selected="false" severity="low">
          <title xml:lang="en-US">Disable Samba</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>smb</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig smb off</xhtml:pre>
          </description>
          <reference href="http://iase.disa.mil/cci/index.html">1436</reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Running a Samba server provides a network-based avenue of attack, and
should be disabled if not needed.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27143-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:830" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>smb</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>smb</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>smb</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>smb</xhtml:code> --list
<xhtml:code>smb</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>smb</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service smb status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>smb is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="configuring_samba">
        <title xml:lang="en-US">Configure Samba if Necessary</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">All settings for the Samba daemon can be found in
<xhtml:code>/etc/samba/smb.conf</xhtml:code>. Settings are divided between a
<xhtml:code>[global]</xhtml:code> configuration section and a series of user
created share definition sections meant to describe file or print
shares on the system. By default, Samba will operate in user mode
and allow client machines to access local home directories and
printers. It is recommended that these settings be changed or that
additional limitations be set in place.</description>
        <Group id="smb_restrict_file_sharing">
          <title xml:lang="en-US">Restrict SMB File Sharing to Configured Networks</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Only users with local user accounts will be able to log in to
Samba shares by default. Shares can be limited to particular users or network
addresses. Use the <xhtml:code>hosts allow</xhtml:code> and <xhtml:code>hosts deny</xhtml:code> directives
accordingly, and consider setting the valid users directive to a limited subset
of users or to a group of users. Separate each address, user, or user group
with a space as follows for a particular <xhtml:i>share</xhtml:i> or global:
<xhtml:pre>[<xhtml:i>share</xhtml:i>]
  hosts allow = 192.168.1. 127.0.0.1
  valid users = userone usertwo @usergroup</xhtml:pre>
It is also possible to limit read and write access to particular users with the
read list and write list options, though the permissions set by the system
itself will override these settings. Set the read only attribute for each share
to ensure that global settings will not accidentally override the individual
share settings. Then, as with the valid users directive, separate each user or
group of users with a space:
<xhtml:pre>[<xhtml:i>share</xhtml:i>]
  read only = yes
  write list = userone usertwo @usergroup</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Samba service is only required for sharing files and printers
with Microsoft Windows workstations, and even then, other options may exist. 
</rationale>
        </Group>
        <Rule id="smb_server_disable_root" selected="false" severity="low">
          <title xml:lang="en-US">Disable Root Access to SMB Shares</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Administrators should not use administrator accounts to access
Samba file and printer shares. Disable the root user and the wheel
administrator group:
<xhtml:pre>[<xhtml:i>share</xhtml:i>]
  invalid users = root @wheel</xhtml:pre>
If administrator accounts cannot be disabled, ensure that local machine
passwords and Samba service passwords do not match.</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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 <xhtml:code>[global]</xhtml:code> instead.
</rationale>
        </Rule>
        <Rule id="require_smb_client_signing" selected="false" severity="low">
          <title xml:lang="en-US">Require Client SMB Packet Signing, if using smbclient</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To require samba clients running <xhtml:code>smbclient</xhtml:code> to use
packet signing, add the following to the <xhtml:code>[global]</xhtml:code> section
of the Samba configuration file, <xhtml:code>/etc/samba/smb.conf</xhtml:code>:
<xhtml:pre>client signing = mandatory</xhtml:pre>
Requiring samba clients such as <xhtml:code>smbclient</xhtml:code> to use packet
signing ensures they can
only communicate with servers that support packet signing.
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Packet signing can prevent
man-in-the-middle attacks which modify SMB packets in
transit.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26328-5</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:820" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it is not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify that Samba clients running smbclient must use packet signing, run the following command:
<xhtml:pre># grep signing /etc/samba/smb.conf</xhtml:pre>
The output should show:
<xhtml:pre>client signing = mandatory</xhtml:pre>
</check-content>
          </check>
        </Rule>
        <Rule id="require_smb_client_signing_mount.cifs" selected="false" severity="low">
          <title xml:lang="en-US">Require Client SMB Packet Signing, if using mount.cifs</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">Require packet signing of clients who mount Samba
shares using the <xhtml:code>mount.cifs</xhtml:code> program (e.g., those who specify shares
in <xhtml:code>/etc/fstab</xhtml:code>). To do so, ensure signing options (either
<xhtml:code>sec=krb5i</xhtml:code> or <xhtml:code>sec=ntlmv2i</xhtml:code>) are used.
<xhtml:br/><xhtml:br/>
See the <xhtml:code>mount.cifs(8)</xhtml:code> man page for more information. A Samba
client should only communicate with servers who can support SMB
packet signing.
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Packet signing can prevent man-in-the-middle
attacks which modify SMB packets in transit.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26792-2</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:1055" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="it does not" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To verify that Samba clients using mount.cifs must use packet signing, run the following command:
<xhtml:pre># grep sec /etc/fstab</xhtml:pre>
The output should show either <xhtml:code>krb5i</xhtml:code> or <xhtml:code>ntlmv2i</xhtml:code> in use.
</check-content>
          </check>
        </Rule>
        <Group id="smb_disable_printing">
          <title xml:lang="en-US">Restrict Printer Sharing</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">By default, Samba utilizes the CUPS printing service to enable
printer sharing with Microsoft Windows workstations. If there are no printers
on the local machine, or if printer sharing with Microsoft Windows is not
required, disable the printer sharing capability by commenting out the
following lines, found in <xhtml:code>/etc/samba/smb.conf</xhtml:code>:
<xhtml:pre>[global]
  load printers = yes
  cups options = raw
[printers]
  comment = All Printers
  path = /usr/spool/samba
  browseable = no
  guest ok = no
  writable = no
  printable = yes</xhtml:pre>
There may be other options present, but these are the only options enabled and
uncommented by default. Removing the <xhtml:code>[printers]</xhtml:code> share should be enough
for most users.  If the Samba printer sharing capability is needed, consider
disabling the Samba network browsing capability or restricting access to a
particular set of users or network addresses. Set the <xhtml:code>valid users</xhtml:code>
parameter to a small subset of users or restrict it to a particular group of
users with the shorthand <xhtml:code>@</xhtml:code>. Separate each user or group of users with
a space. For example, under the <xhtml:code>[printers]</xhtml:code> share:
<xhtml:pre>[printers]
  valid users = user @printerusers</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Samba service is only required for sharing files and printers
with Microsoft Windows workstations, and even then, other options may exist. Do
not use the Samba service to share files between Unix or Linux machines.
</rationale>
        </Group>
      </Group>
    </Group>
    <Group id="proxy">
      <title xml:lang="en-US">Proxy Server</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">A proxy server is a very desirable target for a
potential adversary because much (or all) sensitive data for a
given infrastructure may flow through it. Therefore, if one is
required, the machine acting as a proxy server should be dedicated
to that purpose alone and be stored in a physically secure
location. The system's default proxy server software is Squid, and
provided in an RPM package of the same name.</description>
      <Group id="disabling_squid">
        <title xml:lang="en-US">Disable Squid if Possible</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If Squid was installed and activated, but the system
does not need to act as a proxy server, then it should be disabled
and removed.
</description>
        <Rule id="disable_squid" selected="false" severity="low">
          <title xml:lang="en-US">Disable Squid</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>squid</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig squid off</xhtml:pre>
          </description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Running proxy server software provides a network-based avenue
of attack, and should be removed if not needed.
</rationale>
          <ident system="http://cce.mitre.org">CCE-27146-0</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:587" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>squid</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>squid</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>squid</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>squid</xhtml:code> --list
<xhtml:code>squid</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>squid</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service squid status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>squid is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="uninstall_squid" selected="false" severity="low">
          <title xml:lang="en-US">Uninstall squid Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>squid</xhtml:code> package can be removed with the following command:
    <xhtml:pre># yum erase squid</xhtml:pre>
          </description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If there is no need to make the proxy server software available,
removing it provides a safeguard against its activation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26977-9</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:419" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>squid</xhtml:code> package is installed:
    <xhtml:pre># rpm -q squid</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
    </Group>
    <Group id="snmp">
      <title xml:lang="en-US">SNMP Server</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The Simple Network Management Protocol allows
administrators to monitor the state of network devices, including
computers. Older versions of SNMP were well-known for weak
security, such as plaintext transmission of the community string
(used for authentication) and usage of easily-guessable
choices for the community string.</description>
      <Group id="disabling_snmp_service">
        <title xml:lang="en-US">Disable SNMP Server if Possible</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The system includes an SNMP daemon that allows for its remote
monitoring, though it not installed by default. If it was installed and
activated but is not needed, the software should be disabled and removed.
</description>
        <Rule id="disable_snmpd" selected="false" severity="low">
          <title xml:lang="en-US">Disable snmpd Service</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
            
    The <xhtml:code>snmpd</xhtml:code> service can be disabled with the following command:
    <xhtml:pre># chkconfig snmpd off</xhtml:pre>
          </description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Running SNMP software provides a network-based avenue of attack, and
should be disabled if not needed.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26906-8</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:875" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the service is running" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    To check that the <xhtml:code>snmpd</xhtml:code> service is disabled in system boot configuration, run the following command: 
    <xhtml:pre># chkconfig <xhtml:code>snmpd</xhtml:code> --list</xhtml:pre>
    Output should indicate the <xhtml:code>snmpd</xhtml:code> service has either not been installed, 
    or has been disabled at all runlevels, as shown in the example below:
    <xhtml:pre># chkconfig <xhtml:code>snmpd</xhtml:code> --list
<xhtml:code>snmpd</xhtml:code>       0:off   1:off   2:off   3:off   4:off   5:off   6:off</xhtml:pre>

    Run the following command to verify <xhtml:code>snmpd</xhtml:code> is disabled through current runtime configuration:
    <xhtml:pre># service snmpd status</xhtml:pre>

    If the service is disabled the command will return the following output:
    <xhtml:pre>snmpd is stopped</xhtml:pre>
          </check-content>
          </check>
        </Rule>
        <Rule id="uninstall_net-snmp" selected="false" severity="low">
          <title xml:lang="en-US">Uninstall net-snmp Package</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">The <xhtml:code>net-snmp</xhtml:code> package provides the snmpd service.

    The <xhtml:code>net-snmpd</xhtml:code> package can be removed with the following command:
    <xhtml:pre># yum erase net-snmpd</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
If there is no need to run SNMP server software,
removing the package provides a safeguard against its
activation.
</rationale>
          <ident system="http://cce.mitre.org">CCE-26332-7</ident>
          <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref name="oval:ssg:def:454" href="ssg-rhel6-oval.xml"/>
          </check>
          <check system="ocil-transitional">
            <check-export export-name="the package is installed" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
            
    Run the following command to determine if the <xhtml:code>net-snmpd</xhtml:code> package is installed:
    <xhtml:pre># rpm -q net-snmpd</xhtml:pre>
          </check-content>
          </check>
        </Rule>
      </Group>
      <Group id="snmp_configure_server">
        <title xml:lang="en-US">Configure SNMP Server if Necessary</title>
        <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">If it is necessary to run the snmpd agent on the system, some best
practices should be followed to minimize the security risk from the
installation. The multiple security models implemented by SNMP cannot be fully
covered here so only the following general configuration advice can be offered:
<xhtml:ul><xhtml:li>use only SNMP version 3 security models and enable the use of authentication and encryption</xhtml:li><xhtml:li>write access to the MIB (Management Information Base) should be allowed only if necessary</xhtml:li><xhtml:li>all access to the MIB should be restricted following a principle of least privilege</xhtml:li><xhtml:li>network access should be limited to the maximum extent possible including restricting to expected network
addresses both in the configuration files and in the system firewall rules</xhtml:li><xhtml:li>ensure SNMP agents send traps only to, and accept SNMP queries only from, authorized management
stations</xhtml:li><xhtml:li>ensure that permissions on the <xhtml:code>snmpd.conf</xhtml:code> configuration file (by default, in <xhtml:code>/etc/snmp</xhtml:code>) are 640 or more restrictive</xhtml:li><xhtml:li>ensure that any MIB files' permissions are also 640 or more restrictive</xhtml:li></xhtml:ul>
</description>
        <Rule id="snmpd_use_newer_protocol" selected="false" severity="medium">
          <title xml:lang="en-US">Configure SNMP Service to Use Only SNMPv3 or Newer </title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Edit <xhtml:code>/etc/snmp/snmpd.conf</xhtml:code>, removing any references to <xhtml:code>v1</xhtml:code>, <xhtml:code>v2c</xhtml:code>, or <xhtml:code>com2sec</xhtml:code>.  
Upon doing that, restart the SNMP service:
<xhtml:pre># service snmpd restart</xhtml:pre>
</description>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Earlier versions of SNMP are considered insecure, as they potentially allow 
unauthorized access to detailed system management information.
</rationale>
          <check system="ocil-transitional">
            <check-export export-name="there is output" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure only SNMPv3 or newer is used, run the following command:
<xhtml:pre># grep 'v1\|v2c\|com2sec' /etc/snmp/snmpd.conf | grep -v "^#"</xhtml:pre>
There should be no output.
</check-content>
          </check>
        </Rule>
        <Rule id="snmpd_not_default_password" selected="false" severity="medium">
          <title xml:lang="en-US">Ensure Default Password Is Not Used</title>
          <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Edit <xhtml:code>/etc/snmp/snmpd.conf</xhtml:code>, remove default community string <xhtml:code>public</xhtml:code>.  
Upon doing that, restart the SNMP service:
<xhtml:pre># service snmpd restart</xhtml:pre>
</description>
          <reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
            <dc:contributor>MAN</dc:contributor>
            <dc:date>20121214</dc:date>
          </reference>
          <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Presence of the default SNMP password enables querying of different system
aspects and could result in unauthorized knowledge of the system.
</rationale>
          <check system="ocil-transitional">
            <check-export export-name="there is output" value-id="conditional_clause"/>
            <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
To ensure the default password is not set, run the following command:
<xhtml:pre># grep -v "^#" /etc/snmp/snmpd.conf| grep public</xhtml:pre>
There should be no output.
</check-content>
          </check>
        </Rule>
      </Group>
    </Group>
  </Group>
  <Group id="srg_support" hidden="true">
    <title xml:lang="en-US">Documentation to Support DISA OS SRG Mapping</title>
    <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">These groups exist to document how the Red Hat Enterprise Linux
product meets (or does not meet) requirements listed in the DISA OS SRG, for
those cases where Groups or Rules elsewhere in scap-security-guide do
not clearly relate.
</description>
    <Rule id="met_inherently_generic" selected="false" severity="low">
      <title xml:lang="en-US">Product Meets this Requirement</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 
This requirement is a permanent not a finding. No fix is required.
</description>
      <reference href="http://iase.disa.mil/cci/index.html">42</reference>
      <reference href="http://iase.disa.mil/cci/index.html">56</reference>
      <reference href="http://iase.disa.mil/cci/index.html">206</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1084</reference>
      <reference href="http://iase.disa.mil/cci/index.html">66</reference>
      <reference href="http://iase.disa.mil/cci/index.html">85</reference>
      <reference href="http://iase.disa.mil/cci/index.html">86</reference>
      <reference href="http://iase.disa.mil/cci/index.html">185</reference>
      <reference href="http://iase.disa.mil/cci/index.html">223</reference>
      <reference href="http://iase.disa.mil/cci/index.html">171</reference>
      <reference href="http://iase.disa.mil/cci/index.html">172</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1694</reference>
      <reference href="http://iase.disa.mil/cci/index.html">770</reference>
      <reference href="http://iase.disa.mil/cci/index.html">804</reference>
      <reference href="http://iase.disa.mil/cci/index.html">162</reference>
      <reference href="http://iase.disa.mil/cci/index.html">163</reference>
      <reference href="http://iase.disa.mil/cci/index.html">164</reference>
      <reference href="http://iase.disa.mil/cci/index.html">345</reference>
      <reference href="http://iase.disa.mil/cci/index.html">346</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1096</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1111</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1291</reference>
      <reference href="http://iase.disa.mil/cci/index.html">386</reference>
      <reference href="http://iase.disa.mil/cci/index.html">156</reference>
      <reference href="http://iase.disa.mil/cci/index.html">186</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1083</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1082</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1090</reference>
      <reference href="http://iase.disa.mil/cci/index.html">804</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1127</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1128</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1129</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1248</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1265</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1314</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1362</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1368</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1310</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1311</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1328</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1399</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1400</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1427</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1499</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1632</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1693</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1665</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1674</reference>
      <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Red Hat Enterprise Linux meets this requirement through design and implementation.
</rationale>
      <check system="ocil-transitional">
        <check-export export-name="" value-id="conditional_clause"/>
        <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">RHEL6 supports this requirement and cannot be configured to be out of 
compliance. This is a permanent not a finding. 
</check-content>
      </check>
    </Rule>
    <Rule id="met_inherently_auditing" selected="false" severity="low">
      <title xml:lang="en-US">Product Meets this Requirement</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 
This requirement is a permanent not a finding. No fix is required.
</description>
      <reference href="http://iase.disa.mil/cci/index.html">130</reference>
      <reference href="http://iase.disa.mil/cci/index.html">157</reference>
      <reference href="http://iase.disa.mil/cci/index.html">131</reference>
      <reference href="http://iase.disa.mil/cci/index.html">132</reference>
      <reference href="http://iase.disa.mil/cci/index.html">133</reference>
      <reference href="http://iase.disa.mil/cci/index.html">134</reference>
      <reference href="http://iase.disa.mil/cci/index.html">135</reference>
      <reference href="http://iase.disa.mil/cci/index.html">159</reference>
      <reference href="http://iase.disa.mil/cci/index.html">174</reference>
      <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The Red Hat Enterprise Linux audit system meets this requirement through design and implementation.
</rationale>
      <check system="ocil-transitional">
        <check-export export-name="" value-id="conditional_clause"/>
        <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">The RHEL6 auditing system supports this requirement and cannot be configured to be out of 
compliance. Every audit record in RHEL includes a timestamp, the operation attempted,
success or failure of the operation, the subject involved (executable/process),
the object involved (file/path), and security labels for the subject and object.
It also includes the ability to label events with custom key labels.  The auditing system
centralizes the recording of audit events for the entire system and includes
reduction (<xhtml:code>ausearch</xhtml:code>), reporting (<xhtml:code>aureport</xhtml:code>), and real-time
response (<xhtml:code>audispd</xhtml:code>) facilities.
This is a permanent not a finding. 
</check-content>
      </check>
    </Rule>
    <Rule id="met_inherently_nonselected" selected="false" severity="low">
      <title xml:lang="en-US">Product Meets this Requirement</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 
This requirement is a permanent not a finding. No fix is required.
</description>
      <reference href="http://iase.disa.mil/cci/index.html">34</reference>
      <reference href="http://iase.disa.mil/cci/index.html">35</reference>
      <reference href="http://iase.disa.mil/cci/index.html">99</reference>
      <reference href="http://iase.disa.mil/cci/index.html">154</reference>
      <reference href="http://iase.disa.mil/cci/index.html">226</reference>
      <reference href="http://iase.disa.mil/cci/index.html">802</reference>
      <reference href="http://iase.disa.mil/cci/index.html">872</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1086</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1087</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1089</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1091</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1424</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1426</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1428</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1209</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1214</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1237</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1269</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1338</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1425</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1670</reference>
      <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
Red Hat Enterprise Linux meets this requirement through design and implementation.
</rationale>
      <check system="ocil-transitional">
        <check-export export-name="" value-id="conditional_clause"/>
        <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">RHEL6 supports this requirement and cannot be configured to be out of 
compliance. This is a permanent not a finding. 
</check-content>
      </check>
    </Rule>
    <Rule id="unmet_nonfinding_nonselected_scope" selected="false" severity="low">
      <title xml:lang="en-US">Guidance Does Not Meet this Requirement Due to Impracticality or Scope</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 
This requirement is NA. No fix is required.
</description>
      <reference href="http://iase.disa.mil/cci/index.html">21</reference>
      <reference href="http://iase.disa.mil/cci/index.html">25</reference>
      <reference href="http://iase.disa.mil/cci/index.html">28</reference>
      <reference href="http://iase.disa.mil/cci/index.html">29</reference>
      <reference href="http://iase.disa.mil/cci/index.html">30</reference>
      <reference href="http://iase.disa.mil/cci/index.html">165</reference>
      <reference href="http://iase.disa.mil/cci/index.html">221</reference>
      <reference href="http://iase.disa.mil/cci/index.html">354</reference>
      <reference href="http://iase.disa.mil/cci/index.html">553</reference>
      <reference href="http://iase.disa.mil/cci/index.html">779</reference>
      <reference href="http://iase.disa.mil/cci/index.html">780</reference>
      <reference href="http://iase.disa.mil/cci/index.html">781</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1009</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1094</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1123</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1124</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1125</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1132</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1135</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1140</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1141</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1142</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1143</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1145</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1147</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1148</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1166</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1339</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1340</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1341</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1350</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1356</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1373</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1374</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1383</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1391</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1392</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1395</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1662</reference>
      <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The guidance does not meet this requirement.
The requirement is impractical or out of scope.
</rationale>
      <check system="ocil-transitional">
        <check-export export-name="" value-id="conditional_clause"/>
        <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml"> 
RHEL6 cannot support this requirement without assistance from an external 
application, policy, or service. This requirement is NA. 
</check-content>
      </check>
    </Rule>
    <Rule id="unmet_finding_nonselected" selected="false" severity="low">
      <title xml:lang="en-US">Implementation of the Requirement is Not Supported</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</description>
      <reference href="http://iase.disa.mil/cci/index.html">20</reference>
      <reference href="http://iase.disa.mil/cci/index.html">31</reference>
      <reference href="http://iase.disa.mil/cci/index.html">52</reference>
      <reference href="http://iase.disa.mil/cci/index.html">144</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1158</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1294</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1295</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1500</reference>
      <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
RHEL6 does not support this requirement.
</rationale>
      <check system="ocil-transitional">
        <check-export export-name="" value-id="conditional_clause"/>
        <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
This is a permanent finding.
</check-content>
      </check>
    </Rule>
    <Rule id="unmet_nonfinding_scope" selected="false" severity="low">
      <title xml:lang="en-US">Guidance Does Not Meet this Requirement Due to Impracticality or Scope</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US"> 
This requirement is NA. No fix is required.
</description>
      <reference href="http://iase.disa.mil/cci/index.html">15</reference>
      <reference href="http://iase.disa.mil/cci/index.html">27</reference>
      <reference href="http://iase.disa.mil/cci/index.html">218</reference>
      <reference href="http://iase.disa.mil/cci/index.html">219</reference>
      <reference href="http://iase.disa.mil/cci/index.html">371</reference>
      <reference href="http://iase.disa.mil/cci/index.html">372</reference>
      <reference href="http://iase.disa.mil/cci/index.html">535</reference>
      <reference href="http://iase.disa.mil/cci/index.html">537</reference>
      <reference href="http://iase.disa.mil/cci/index.html">539</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1682</reference>
      <reference href="http://iase.disa.mil/cci/index.html">370</reference>
      <reference href="http://iase.disa.mil/cci/index.html">37</reference>
      <reference href="http://iase.disa.mil/cci/index.html">24</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1112</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1126</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1143</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1149</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1157</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1159</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1210</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1211</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1274</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1372</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1376</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1377</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1352</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1401</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1555</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1556</reference>
      <reference href="http://iase.disa.mil/cci/index.html">1150</reference>
      <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
The guidance does not meet this requirement.
The requirement is impractical or out of scope.
</rationale>
      <check system="ocil-transitional">
        <check-export export-name="" value-id="conditional_clause"/>
        <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml"> 
RHEL6 cannot support this requirement without assistance from an external 
application, policy, or service. This requirement is NA. 
</check-content>
      </check>
    </Rule>
    <Rule id="update_process" selected="false" severity="low">
      <title xml:lang="en-US">A process for prompt installation of OS updates must exist.</title>
      <description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
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.
</description>
      <reference href="http://iase.disa.mil/cci/index.html">1232</reference>
      <rationale xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
This is a manual inquiry about update procedure.
</rationale>
      <check system="ocil-transitional">
        <check-export export-name="" value-id="conditional_clause"/>
        <check-content xmlns:xhtml="http://www.w3.org/1999/xhtml">
Ask an administrator if a process exists to promptly and automatically apply OS
software updates.  If such a process does not exist, this is a finding.
<xhtml:br/><xhtml:br/>
If the OS update process limits automatic updates of software packages, where 
such updates would impede normal system operation, to scheduled maintenance 
windows, but still within IAVM-dictated timeframes, this is not a finding.
</check-content>
      </check>
    </Rule>
  </Group>
</Benchmark>
