Red Hat Enterprise Linux 6 Security Technical Implementation Guide
Pick two releases to diff their requirements.
Open a previous version of this STIG.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000526
- Vuln IDs
-
- V-38437
- Rule IDs
-
- SV-50237r1_rule
Checks: C-45991r1_chk
To verify the "autofs" service is disabled, run the following command: chkconfig --list autofs If properly configured, the output should be the following: autofs 0:off 1:off 2:off 3:off 4:off 5:off 6:off Verify the "autofs" service is not running: # service autofs status If the autofs service is enabled or running, this is a finding.
Fix: F-43381r1_fix
If the "autofs" service is not needed to dynamically mount NFS filesystems or removable media, disable the service for all runlevels: # chkconfig --level 0123456 autofs off Stop the service if it is already running: # service autofs stop
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000169
- Version
- RHEL-06-000525
- Vuln IDs
-
- V-38438
- Rule IDs
-
- SV-50238r1_rule
Checks: C-45992r1_chk
Inspect the kernel boot arguments (which follow the word "kernel") in "/etc/grub.conf". If they include "audit=1", then auditing is enabled at boot time. If auditing is not enabled at boot time, this is a finding.
Fix: F-43382r1_fix
To ensure all processes can be audited, even those which start prior to the audit daemon, add the argument "audit=1" to the kernel line in "/etc/grub.conf", in the manner below: kernel /vmlinuz-version ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet audit=1
- RMF Control
- AC-2
- Severity
- M
- CCI
- CCI-000015
- Version
- RHEL-06-000524
- Vuln IDs
-
- V-38439
- Rule IDs
-
- SV-50239r1_rule
Checks: C-45994r1_chk
Interview the SA to determine if there is an automated system for managing user accounts, preferably integrated with an existing enterprise user management system. If there is not, this is a finding.
Fix: F-43384r1_fix
Implement an automated system for managing user accounts that minimizes the risk of errors, either intentional or deliberate. If possible, this system should integrate with an existing enterprise user management system, such as, one based Active Directory or Kerberos.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000036
- Vuln IDs
-
- V-38443
- Rule IDs
-
- SV-50243r1_rule
Checks: C-45998r1_chk
To check the ownership of "/etc/gshadow", run the command: $ ls -l /etc/gshadow If properly configured, the output should indicate the following owner: "root" If it does not, this is a finding.
Fix: F-43388r1_fix
To properly set the owner of "/etc/gshadow", run the command: # chown root /etc/gshadow
- RMF Control
- AC-17
- Severity
- M
- CCI
- CCI-000066
- Version
- RHEL-06-000523
- Vuln IDs
-
- V-38444
- Rule IDs
-
- SV-50244r2_rule
Checks: C-45999r2_chk
If IPv6 is disabled, this is not applicable. Inspect the file "/etc/sysconfig/ip6tables" to determine the default policy for the INPUT chain. It should be set to DROP: # grep ":INPUT" /etc/sysconfig/ip6tables If the default policy for the INPUT chain is not set to DROP, this is a finding.
Fix: F-43389r3_fix
To set the default policy to DROP (instead of ACCEPT) for the built-in INPUT chain which processes incoming packets, add or correct the following line in "/etc/sysconfig/ip6tables": :INPUT DROP [0:0] Restart the IPv6 firewall: # service ip6tables restart
- RMF Control
- Severity
- M
- CCI
- Version
- RHEL-06-000522
- Vuln IDs
-
- V-38445
- Rule IDs
-
- SV-50245r1_rule
Checks: C-46000r1_chk
Run the following command to check the group owner of the system audit logs: grep "^log_file" /etc/audit/auditd.conf|sed s/^[^\/]*//|xargs stat -c %G:%n Audit logs must be group-owned by root. If they are not, this is a finding.
Fix: F-43390r1_fix
Change the group owner of the audit log files with the following command: # chgrp root [audit_file]
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000521
- Vuln IDs
-
- V-38446
- Rule IDs
-
- SV-50246r1_rule
Checks: C-46001r1_chk
Find the list of alias maps used by the Postfix mail server: # postconf alias_maps Query the Postfix alias maps for an alias for "root": # postmap -q root <alias_map> If there are no aliases configured for root that forward to a monitored email address, this is a finding.
Fix: F-43391r1_fix
Set up an alias for root that forwards to a monitored email address: # echo "root: <system.administrator>@mail.mil" >> /etc/aliases # newaliases
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000519
- Vuln IDs
-
- V-38447
- Rule IDs
-
- SV-50247r2_rule
Checks: C-46002r3_chk
The following command will list which files on the system have file hashes different from what is expected by the RPM database. # rpm -Va | awk '$1 ~ /..5/ && $2 != "c"' If there is output, this is a finding.
Fix: F-43392r1_fix
The RPM package management system can check the hashes of installed software packages, including many that are important to system security. Run the following command to list which files on the system have hashes that differ from what is expected by the RPM database: # rpm -Va | grep '^..5' A "c" in the second column indicates that a file is a configuration file, which may appropriately be expected to change. If the file that has changed was not expected to then refresh from distribution media or online repositories. rpm -Uvh [affected_package] OR yum reinstall [affected_package]
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000037
- Vuln IDs
-
- V-38448
- Rule IDs
-
- SV-50248r1_rule
Checks: C-46003r1_chk
To check the group ownership of "/etc/gshadow", run the command: $ ls -l /etc/gshadow If properly configured, the output should indicate the following group-owner. "root" If it does not, this is a finding.
Fix: F-43393r1_fix
To properly set the group owner of "/etc/gshadow", run the command: # chgrp root /etc/gshadow
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000038
- Vuln IDs
-
- V-38449
- Rule IDs
-
- SV-50249r1_rule
Checks: C-46004r1_chk
To check the permissions of "/etc/gshadow", run the command: $ ls -l /etc/gshadow If properly configured, the output should indicate the following permissions: "----------" If it does not, this is a finding.
Fix: F-43394r1_fix
To properly set the permissions of "/etc/gshadow", run the command: # chmod 0000 /etc/gshadow
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000039
- Vuln IDs
-
- V-38450
- Rule IDs
-
- SV-50250r1_rule
Checks: C-46005r1_chk
To check the ownership of "/etc/passwd", run the command: $ ls -l /etc/passwd If properly configured, the output should indicate the following owner: "root" If it does not, this is a finding.
Fix: F-43395r1_fix
To properly set the owner of "/etc/passwd", run the command: # chown root /etc/passwd
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000040
- Vuln IDs
-
- V-38451
- Rule IDs
-
- SV-50251r1_rule
Checks: C-46006r1_chk
To check the group ownership of "/etc/passwd", run the command: $ ls -l /etc/passwd If properly configured, the output should indicate the following group-owner. "root" If it does not, this is a finding.
Fix: F-43396r1_fix
To properly set the group owner of "/etc/passwd", run the command: # chgrp root /etc/passwd
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000518
- Vuln IDs
-
- V-38452
- Rule IDs
-
- SV-50252r1_rule
Checks: C-46008r1_chk
The following command will list which files and directories on the system have permissions different from what is expected by the RPM database: # rpm -Va | grep '^.M' If there is any output, for each file or directory found, find the associated RPM package and compare the RPM-expected permissions with the actual permissions on the file or directory: # rpm -qf [file or directory name] # rpm -q --queryformat "[%{FILENAMES} %{FILEMODES:perms}\n]" [package] | grep [filename] # ls -lL [filename] If the existing permissions are more permissive than those expected by RPM, this is a finding.
Fix: F-43398r1_fix
The RPM package management system can restore file access permissions of package files and directories. The following command will update permissions on files and directories with permissions different from what is expected by the RPM database: # rpm --setperms [package]
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000517
- Vuln IDs
-
- V-38453
- Rule IDs
-
- SV-50253r1_rule
Checks: C-46009r1_chk
The following command will list which files on the system have group-ownership different from what is expected by the RPM database: # rpm -Va | grep '^......G' If there is output, this is a finding.
Fix: F-43399r1_fix
The RPM package management system can restore group-ownership of the package files and directories. The following command will update files and directories with group-ownership different from what is expected by the RPM database: # rpm -qf [file or directory name] # rpm --setugids [package]
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000516
- Vuln IDs
-
- V-38454
- Rule IDs
-
- SV-50254r1_rule
Checks: C-46010r1_chk
The following command will list which files on the system have ownership different from what is expected by the RPM database: # rpm -Va | grep '^.....U' If there is output, this is a finding.
Fix: F-43400r1_fix
The RPM package management system can restore ownership of package files and directories. The following command will update files and directories with ownership different from what is expected by the RPM database: # rpm -qf [file or directory name] # rpm --setugids [package]
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000001
- Vuln IDs
-
- V-38455
- Rule IDs
-
- SV-50255r1_rule
Checks: C-45997r1_chk
Run the following command to determine if "/tmp" is on its own partition or logical volume: $ mount | grep "on /tmp " If "/tmp" has its own partition or volume group, a line will be returned. If no line is returned, this is a finding.
Fix: F-43387r1_fix
The "/tmp" directory is a world-writable directory used for temporary file storage. Ensure it has its own partition or logical volume at installation time, or migrate it using LVM.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000002
- Vuln IDs
-
- V-38456
- Rule IDs
-
- SV-50256r1_rule
Checks: C-46011r2_chk
Run the following command to determine if "/var" is on its own partition or logical volume: $ mount | grep "on /var " If "/var" has its own partition or volume group, a line will be returned. If no line is returned, this is a finding.
Fix: F-43401r2_fix
The "/var" directory is used by daemons and other system services to store frequently-changing data. Ensure that "/var" has its own partition or logical volume at installation time, or migrate it using LVM.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000041
- Vuln IDs
-
- V-38457
- Rule IDs
-
- SV-50257r1_rule
Checks: C-46007r1_chk
To check the permissions of "/etc/passwd", run the command: $ ls -l /etc/passwd If properly configured, the output should indicate the following permissions: "-rw-r--r--" If it does not, this is a finding.
Fix: F-43397r1_fix
To properly set the permissions of "/etc/passwd", run the command: # chmod 0644 /etc/passwd
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000042
- Vuln IDs
-
- V-38458
- Rule IDs
-
- SV-50258r1_rule
Checks: C-46013r1_chk
To check the ownership of "/etc/group", run the command: $ ls -l /etc/group If properly configured, the output should indicate the following owner: "root" If it does not, this is a finding.
Fix: F-43403r1_fix
To properly set the owner of "/etc/group", run the command: # chown root /etc/group
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000043
- Vuln IDs
-
- V-38459
- Rule IDs
-
- SV-50259r1_rule
Checks: C-46014r1_chk
To check the group ownership of "/etc/group", run the command: $ ls -l /etc/group If properly configured, the output should indicate the following group-owner. "root" If it does not, this is a finding.
Fix: F-43404r1_fix
To properly set the group owner of "/etc/group", run the command: # chgrp root /etc/group
- RMF Control
- IA-2
- Severity
- L
- CCI
- CCI-000764
- Version
- RHEL-06-000515
- Vuln IDs
-
- V-38460
- Rule IDs
-
- SV-50260r1_rule
Checks: C-46016r1_chk
If the NFS server is read-only, in support of unrestricted access to organizational content, this is not applicable. The related "root_squash" option provides protection against remote administrator-level access to NFS server content. Its use is not a finding. To verify the "all_squash" option has been disabled, run the following command: # grep all_squash /etc/exports If there is output, this is a finding.
Fix: F-43405r1_fix
Remove any instances of the "all_squash" option from the file "/etc/exports". Restart the NFS daemon for the changes to take effect. # service nfs restart
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000044
- Vuln IDs
-
- V-38461
- Rule IDs
-
- SV-50261r1_rule
Checks: C-46015r1_chk
To check the permissions of "/etc/group", run the command: $ ls -l /etc/group If properly configured, the output should indicate the following permissions: "-rw-r--r--" If it does not, this is a finding.
Fix: F-43406r1_fix
To properly set the permissions of "/etc/group", run the command: # chmod 644 /etc/group
- RMF Control
- CM-5
- Severity
- H
- CCI
- CCI-000352
- Version
- RHEL-06-000514
- Vuln IDs
-
- V-38462
- Rule IDs
-
- SV-50262r1_rule
Checks: C-46017r1_chk
Verify RPM signature validation is not disabled: # grep nosignature /etc/rpmrc /usr/lib/rpm/rpmrc /usr/lib/rpm/redhat/rpmrc ~root/.rpmrc If any configuration is found, this is a finding.
Fix: F-43407r1_fix
Edit the RPM configuration files containing the "nosignature" option and remove the option.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000003
- Vuln IDs
-
- V-38463
- Rule IDs
-
- SV-50263r1_rule
Checks: C-46018r1_chk
Run the following command to determine if "/var/log" is on its own partition or logical volume: $ mount | grep "on /var/log " If "/var/log" has its own partition or volume group, a line will be returned. If no line is returned, this is a finding.
Fix: F-43408r1_fix
System logs are stored in the "/var/log" directory. Ensure that it has its own partition or logical volume at installation time, or migrate it using LVM.
- RMF Control
- AU-5
- Severity
- M
- CCI
- CCI-000140
- Version
- RHEL-06-000511
- Vuln IDs
-
- V-38464
- Rule IDs
-
- SV-50264r1_rule
Checks: C-46020r1_chk
Inspect "/etc/audit/auditd.conf" and locate the following line to determine if the system is configured to take appropriate action when disk errors occur: # grep disk_error_action /etc/audit/auditd.conf disk_error_action = [ACTION] If the system is configured to "suspend" when disk errors occur or "ignore" them, this is a finding.
Fix: F-43410r1_fix
Edit the file "/etc/audit/auditd.conf". Modify the following line, substituting [ACTION] appropriately: disk_error_action = [ACTION] Possible values for [ACTION] are described in the "auditd.conf" man page. These include: "ignore" "syslog" "exec" "suspend" "single" "halt" Set this to "syslog", "exec", "single", or "halt".
- RMF Control
- CM-5
- Severity
- M
- CCI
- CCI-001499
- Version
- RHEL-06-000045
- Vuln IDs
-
- V-38465
- Rule IDs
-
- SV-50265r3_rule
Checks: C-46019r4_chk
System-wide shared library files, which are linked to executables during process load time or run time, are stored in the following directories by default: /lib /lib64 /usr/lib /usr/lib64 Kernel modules, which can be added to the kernel during runtime, are stored in "/lib/modules". All files in these directories should not be group-writable or world-writable. To find shared libraries that are group-writable or world-writable, run the following command for each directory [DIR] which contains shared libraries: $ find -L [DIR] -perm /022 -type f If any of these files (excluding broken symlinks) are group-writable or world-writable, this is a finding.
Fix: F-43409r2_fix
System-wide shared library files, which are linked to executables during process load time or run time, are stored in the following directories by default: /lib /lib64 /usr/lib /usr/lib64 If any file in these directories is found to be group-writable or world-writable, correct its permission with the following command: # chmod go-w [FILE]
- RMF Control
- CM-5
- Severity
- M
- CCI
- CCI-001499
- Version
- RHEL-06-000046
- Vuln IDs
-
- V-38466
- Rule IDs
-
- SV-50266r1_rule
Checks: C-46021r1_chk
System-wide shared library files, which are linked to executables during process load time or run time, are stored in the following directories by default: /lib /lib64 /usr/lib /usr/lib64 Kernel modules, which can be added to the kernel during runtime, are stored in "/lib/modules". All files in these directories should not be group-writable or world-writable. To find shared libraries that are not owned by "root", run the following command for each directory [DIR] which contains shared libraries: $ find -L [DIR] \! -user root If any of these files are not owned by root, this is a finding.
Fix: F-43411r1_fix
System-wide shared library files, which are linked to executables during process load time or run time, are stored in the following directories by default: /lib /lib64 /usr/lib /usr/lib64 If any file in these directories is found to be owned by a user other than root, correct its ownership with the following command: # chown root [FILE]
- RMF Control
- AU-4
- Severity
- L
- CCI
- CCI-000137
- Version
- RHEL-06-000004
- Vuln IDs
-
- V-38467
- Rule IDs
-
- SV-50267r1_rule
Checks: C-46022r1_chk
Run the following command to determine if "/var/log/audit" is on its own partition or logical volume: $ mount | grep "on /var/log/audit " If "/var/log/audit" has its own partition or volume group, a line will be returned. If no line is returned, this is a finding.
Fix: F-43412r1_fix
Audit logs are stored in the "/var/log/audit" directory. Ensure that it has its own partition or logical volume at installation time, or migrate it later using LVM. Make absolutely certain that it is large enough to store all audit logs that will be created by the auditing daemon.
- RMF Control
- AU-5
- Severity
- M
- CCI
- CCI-000140
- Version
- RHEL-06-000510
- Vuln IDs
-
- V-38468
- Rule IDs
-
- SV-50268r1_rule
Checks: C-46023r1_chk
Inspect "/etc/audit/auditd.conf" and locate the following line to determine if the system is configured to take appropriate action when the audit storage volume is full: # grep disk_full_action /etc/audit/auditd.conf disk_full_action = [ACTION] If the system is configured to "suspend" when the volume is full or "ignore" that it is full, this is a finding.
Fix: F-43413r1_fix
The "auditd" service can be configured to take an action when disk space starts to run low. Edit the file "/etc/audit/auditd.conf". Modify the following line, substituting [ACTION] appropriately: disk_full_action = [ACTION] Possible values for [ACTION] are described in the "auditd.conf" man page. These include: "ignore" "syslog" "exec" "suspend" "single" "halt" Set this to "syslog", "exec", "single", or "halt".
- RMF Control
- CM-5
- Severity
- M
- CCI
- CCI-001499
- Version
- RHEL-06-000047
- Vuln IDs
-
- V-38469
- Rule IDs
-
- SV-50269r2_rule
Checks: C-46024r2_chk
System executables are stored in the following directories by default: /bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin All files in these directories should not be group-writable or world-writable. To find system executables that are group-writable or world-writable, run the following command for each directory [DIR] which contains system executables: $ find -L [DIR] -perm /022 -type f If any system executables are found to be group-writable or world-writable, this is a finding.
Fix: F-43414r1_fix
System executables are stored in the following directories by default: /bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin If any file in these directories is found to be group-writable or world-writable, correct its permission with the following command: # chmod go-w [FILE]
- RMF Control
- AU-4
- Severity
- M
- CCI
- CCI-000138
- Version
- RHEL-06-000005
- Vuln IDs
-
- V-38470
- Rule IDs
-
- SV-50270r1_rule
Checks: C-46025r1_chk
Inspect "/etc/audit/auditd.conf" and locate the following line to determine if the system is configured to email the administrator when disk space is starting to run low: # grep space_left_action /etc/audit/auditd.conf space_left_action = email If the system is not configured to send an email to the system administrator when disk space is starting to run low, this is a finding.
Fix: F-43415r1_fix
The "auditd" service can be configured to take an action when disk space starts to run low. Edit the file "/etc/audit/auditd.conf". Modify the following line, substituting [ACTION] appropriately: space_left_action = [ACTION] Possible values for [ACTION] are described in the "auditd.conf" man page. These include: "ignore" "syslog" "email" "exec" "suspend" "single" "halt" Set this to "email" (instead of the default, which is "suspend") as it is more likely to get prompt attention. RHEL-06-000521 ensures that the email generated through the operation "space_left_action" will be sent to an administrator.
- RMF Control
- AU-3
- Severity
- L
- CCI
- CCI-000136
- Version
- RHEL-06-000509
- Vuln IDs
-
- V-38471
- Rule IDs
-
- SV-50271r1_rule
Checks: C-46026r1_chk
Verify the audispd plugin is active: # grep active /etc/audisp/plugins.d/syslog.conf If the "active" setting is missing or set to "no", this is a finding.
Fix: F-43416r1_fix
Set the "active" line in "/etc/audisp/plugins.d/syslog.conf" to "yes". Restart the auditd process. # service auditd restart
- RMF Control
- CM-5
- Severity
- M
- CCI
- CCI-001499
- Version
- RHEL-06-000048
- Vuln IDs
-
- V-38472
- Rule IDs
-
- SV-50272r1_rule
Checks: C-46027r1_chk
System executables are stored in the following directories by default: /bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin All files in these directories should not be group-writable or world-writable. To find system executables that are not owned by "root", run the following command for each directory [DIR] which contains system executables: $ find -L [DIR] \! -user root If any system executables are found to not be owned by root, this is a finding.
Fix: F-43417r1_fix
System executables are stored in the following directories by default: /bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin If any file [FILE] in these directories is found to be owned by a user other than root, correct its ownership with the following command: # chown root [FILE]
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000007
- Vuln IDs
-
- V-38473
- Rule IDs
-
- SV-50273r1_rule
Checks: C-46028r1_chk
Run the following command to determine if "/home" is on its own partition or logical volume: $ mount | grep "on /home " If "/home" has its own partition or volume group, a line will be returned. If no line is returned, this is a finding.
Fix: F-43418r1_fix
If user home directories will be stored locally, create a separate partition for "/home" at installation time (or migrate it later using LVM). If "/home" will be mounted from another system such as an NFS server, then creating a separate partition is not necessary at installation time, and the mountpoint can instead be configured later.
- RMF Control
- AC-11
- Severity
- L
- CCI
- CCI-000058
- Version
- RHEL-06-000508
- Vuln IDs
-
- V-38474
- Rule IDs
-
- SV-50274r1_rule
Checks: C-46030r1_chk
Verify the keybindings for the Gnome screensaver: # gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gnome_settings_daemon/keybindings/screensaver If no output is visible, this is a finding.
Fix: F-43420r1_fix
Run the following command to set the Gnome desktop keybinding for locking the screen: # gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type string \ --set /apps/gnome_settings_daemon/keybindings/screensaver "<Control><Alt>l" Another keyboard sequence may be substituted for "<Control><Alt>l", which is the default for the Gnome desktop.
- RMF Control
- IA-5
- Severity
- M
- CCI
- CCI-000205
- Version
- RHEL-06-000050
- Vuln IDs
-
- V-38475
- Rule IDs
-
- SV-50275r1_rule
Checks: C-46029r1_chk
To check the minimum password length, run the command: $ grep PASS_MIN_LEN /etc/login.defs The DoD requirement is "14". If it is not set to the required value, this is a finding.
Fix: F-43419r1_fix
To specify password length requirements for new accounts, edit the file "/etc/login.defs" and add or correct the following lines: PASS_MIN_LEN 14 The DoD requirement is "14". If a program consults "/etc/login.defs" and also another PAM module (such as "pam_cracklib") during a password change operation, then the most restrictive must be satisfied.
- RMF Control
- CM-5
- Severity
- H
- CCI
- CCI-000352
- Version
- RHEL-06-000008
- Vuln IDs
-
- V-38476
- Rule IDs
-
- SV-50276r2_rule
Checks: C-46031r2_chk
To ensure that the GPG key is installed, run: $ rpm -q --queryformat "%{SUMMARY}\n" gpg-pubkey The command should return the string below: gpg(Red Hat, Inc. (release key 2) <security@redhat.com> If the Red Hat GPG Key is not installed, this is a finding.
Fix: F-43421r2_fix
To ensure the system can cryptographically verify base software packages come from Red Hat (and to connect to the Red Hat Network to receive them), the Red Hat GPG key must properly be installed. To install the Red Hat GPG key, run: # rhn_register If the system is not connected to the Internet or an RHN Satellite, then install the Red Hat GPG key from trusted media such as the Red Hat installation CD-ROM or DVD. Assuming the disc is mounted in "/media/cdrom", use the following command as the root user to import it into the keyring: # rpm --import /media/cdrom/RPM-GPG-KEY
- RMF Control
- IA-5
- Severity
- M
- CCI
- CCI-000198
- Version
- RHEL-06-000051
- Vuln IDs
-
- V-38477
- Rule IDs
-
- SV-50277r1_rule
Checks: C-46032r1_chk
To check the minimum password age, run the command: $ grep PASS_MIN_DAYS /etc/login.defs The DoD requirement is 1. If it is not set to the required value, this is a finding.
Fix: F-43422r1_fix
To specify password minimum age for new accounts, edit the file "/etc/login.defs" and add or correct the following line, replacing [DAYS] appropriately: PASS_MIN_DAYS [DAYS] A value of 1 day is considered sufficient for many environments. The DoD requirement is 1.
- RMF Control
- CM-7
- Severity
- L
- CCI
- CCI-000382
- Version
- RHEL-06-000009
- Vuln IDs
-
- V-38478
- Rule IDs
-
- SV-50278r2_rule
Checks: C-46033r2_chk
If the system uses RHN or an RHN Satellite, this is not applicable. To check that the "rhnsd" service is disabled in system boot configuration, run the following command: # chkconfig "rhnsd" --list Output should indicate the "rhnsd" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "rhnsd" --list "rhnsd" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "rhnsd" is disabled through current runtime configuration: # service rhnsd status If the service is disabled the command will return the following output: rhnsd is stopped If the service is running, this is a finding.
Fix: F-43423r2_fix
The Red Hat Network service automatically queries Red Hat Network servers to determine whether there are any actions that should be executed, such as package updates. This only occurs if the system was registered to an RHN server or satellite and managed as such. The "rhnsd" service can be disabled with the following commands: # chkconfig rhnsd off # service rhnsd stop
- RMF Control
- IA-5
- Severity
- M
- CCI
- CCI-000199
- Version
- RHEL-06-000053
- Vuln IDs
-
- V-38479
- Rule IDs
-
- SV-50279r1_rule
Checks: C-46034r1_chk
To check the maximum password age, run the command: $ grep PASS_MAX_DAYS /etc/login.defs The DoD requirement is 60. If it is not set to the required value, this is a finding.
Fix: F-43424r1_fix
To specify password maximum age for new accounts, edit the file "/etc/login.defs" and add or correct the following line, replacing [DAYS] appropriately: PASS_MAX_DAYS [DAYS] The DoD requirement is 60.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000054
- Vuln IDs
-
- V-38480
- Rule IDs
-
- SV-50280r1_rule
Checks: C-46035r1_chk
To check the password warning age, run the command: $ grep PASS_WARN_AGE /etc/login.defs The DoD requirement is 7. If it is not set to the required value, this is a finding.
Fix: F-43425r1_fix
To specify how many days prior to password expiration that a warning will be issued to users, edit the file "/etc/login.defs" and add or correct the following line, replacing [DAYS] appropriately: PASS_WARN_AGE [DAYS] The DoD requirement is 7.
- RMF Control
- SI-2
- Severity
- M
- CCI
- CCI-001233
- Version
- RHEL-06-000011
- Vuln IDs
-
- V-38481
- Rule IDs
-
- SV-50281r1_rule
Checks: C-46036r1_chk
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: # yum check-update 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: $ rpm -qa -last Compare this to Red Hat Security Advisories (RHSA) listed at https://access.redhat.com/security/updates/active/ to determine whether the system is missing applicable security and bugfix updates. If updates are not installed, this is a finding.
Fix: F-43426r1_fix
If the system is joined to the Red Hat Network, a Red Hat Satellite Server, or a yum server, run the following command to install updates: # yum update If the system is not configured to use one of these sources, updates (in the form of RPM packages) can be manually downloaded from the Red Hat Network and installed using "rpm".
- RMF Control
- IA-5
- Severity
- L
- CCI
- CCI-000194
- Version
- RHEL-06-000056
- Vuln IDs
-
- V-38482
- Rule IDs
-
- SV-50282r1_rule
Checks: C-46037r1_chk
To check how many digits are required in a password, run the following command: $ grep pam_cracklib /etc/pam.d/system-auth The "dcredit" 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 "dcredit=-1". If dcredit is not found or not set to the required value, this is a finding.
Fix: F-43427r1_fix
The pam_cracklib module's "dcredit" parameter controls requirements for usage of digits in a password. When set to a negative number, any password will be required to contain that many digits. When set to a positive number, pam_cracklib will grant +1 additional length credit for each digit. Add "dcredit=-1" after pam_cracklib.so to require use of a digit in passwords.
- RMF Control
- SA-7
- Severity
- M
- CCI
- CCI-000663
- Version
- RHEL-06-000013
- Vuln IDs
-
- V-38483
- Rule IDs
-
- SV-50283r1_rule
Checks: C-46039r1_chk
To determine whether "yum" is configured to use "gpgcheck", inspect "/etc/yum.conf" and ensure the following appears in the "[main]" section: gpgcheck=1 A value of "1" indicates that "gpgcheck" is enabled. Absence of a "gpgcheck" line or a setting of "0" indicates that it is disabled. If GPG checking is not enabled, this is a finding. If the "yum" system package management tool is not used to update the system, verify with the SA that installed packages are cryptographically signed.
Fix: F-43429r1_fix
The "gpgcheck" 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 "/etc/yum.conf" in the "[main]" section: gpgcheck=1
- RMF Control
- AC-9
- Severity
- M
- CCI
- CCI-000052
- Version
- RHEL-06-000507
- Vuln IDs
-
- V-38484
- Rule IDs
-
- SV-50285r1_rule
Checks: C-46041r1_chk
Verify the value associated with the "PrintLastLog" keyword in /etc/ssh/sshd_config: # grep -i PrintLastLog /etc/ssh/sshd_config If the value is not set to "yes", this is a finding. If the "PrintLastLog" keyword is not present, this is not a finding.
Fix: F-43431r1_fix
Update the "PrintLastLog" keyword to "yes" in /etc/ssh/sshd_config: PrintLastLog yes While it is acceptable to remove the keyword entirely since the default action for the SSH daemon is to print the last login date and time, it is preferred to have the value explicitly documented.
- RMF Control
- CP-9
- Severity
- M
- CCI
- CCI-000537
- Version
- RHEL-06-000505
- Vuln IDs
-
- V-38486
- Rule IDs
-
- SV-50287r1_rule
Checks: C-46044r1_chk
Ask an administrator if a process exists to back up OS data from the system, including configuration data. If such a process does not exist, this is a finding.
Fix: F-43434r1_fix
Procedures to back up OS data from the system must be established and executed. The Red Hat operating system provides utilities for automating such a process. Commercial and open-source products are also available. Implement a process whereby OS data is backed up from the system in accordance with local policies.
- RMF Control
- SA-7
- Severity
- L
- CCI
- CCI-000663
- Version
- RHEL-06-000015
- Vuln IDs
-
- V-38487
- Rule IDs
-
- SV-50288r1_rule
Checks: C-46043r1_chk
To determine whether "yum" has been configured to disable "gpgcheck" for any repos, inspect all files in "/etc/yum.repos.d" and ensure the following does not appear in any sections: gpgcheck=0 A value of "0" indicates that "gpgcheck" has been disabled for that repo. If GPG checking is disabled, this is a finding. If the "yum" system package management tool is not used to update the system, verify with the SA that installed packages are cryptographically signed.
Fix: F-43433r1_fix
To ensure signature checking is not disabled for any repos, remove any lines from files in "/etc/yum.repos.d" of the form: gpgcheck=0
- RMF Control
- CP-9
- Severity
- M
- CCI
- CCI-000535
- Version
- RHEL-06-000504
- Vuln IDs
-
- V-38488
- Rule IDs
-
- SV-50289r1_rule
Checks: C-46045r1_chk
Ask an administrator if a process exists to back up user data from the system. If such a process does not exist, this is a finding.
Fix: F-43435r1_fix
Procedures to back up user data from the system must be established and executed. The Red Hat operating system provides utilities for automating such a process. Commercial and open-source products are also available. Implement a process whereby user data is backed up from the system in accordance with local policies.
- RMF Control
- RA-5
- Severity
- M
- CCI
- CCI-001069
- Version
- RHEL-06-000016
- Vuln IDs
-
- V-38489
- Rule IDs
-
- SV-50290r1_rule
Checks: C-46046r1_chk
If another file integrity tool is installed, this is not a finding. Run the following command to determine if the "aide" package is installed: # rpm -q aide If the package is not installed, this is a finding.
Fix: F-43436r1_fix
Install the AIDE package with the command: # yum install aide
- RMF Control
- Severity
- M
- CCI
- Version
- RHEL-06-000503
- Vuln IDs
-
- V-38490
- Rule IDs
-
- SV-50291r2_rule
Checks: C-46047r2_chk
If the system is configured to prevent the loading of the "usb-storage" kernel module, it will contain lines inside any file in "/etc/modprobe.d" or the deprecated"/etc/modprobe.conf". These lines instruct the module loading system to run another program (such as "/bin/false") upon a module "install" event. Run the following command to search for such lines in all files in "/etc/modprobe.d" and the deprecated "/etc/modprobe.conf": $ grep -r usb-storage /etc/modprobe.conf /etc/modprobe.d If no line is returned, this is a finding.
Fix: F-43437r2_fix
To prevent USB storage devices from being used, configure the kernel module loading system to prevent automatic loading of the USB storage driver. To configure the system to prevent the "usb-storage" kernel module from being loaded, add the following line to a file in the directory "/etc/modprobe.d": install usb-storage /bin/false This will prevent the "modprobe" program from loading the "usb-storage" module, but will not prevent an administrator (or another program) from using the "insmod" program to load the module manually.
- RMF Control
- AC-17
- Severity
- H
- CCI
- CCI-001436
- Version
- RHEL-06-000019
- Vuln IDs
-
- V-38491
- Rule IDs
-
- SV-50292r1_rule
Checks: C-46048r1_chk
The existence of the file "/etc/hosts.equiv" or a file named ".rhosts" inside a user home directory indicates the presence of an Rsh trust relationship. If these files exist, this is a finding.
Fix: F-43438r1_fix
The files "/etc/hosts.equiv" and "~/.rhosts" (in each user's home directory) list remote hosts and users that are trusted by the local system when using the rshd daemon. To remove these files, run the following command to delete them from any location. # rm /etc/hosts.equiv $ rm ~/.rhosts
- RMF Control
- IA-2
- Severity
- M
- CCI
- CCI-000770
- Version
- RHEL-06-000027
- Vuln IDs
-
- V-38492
- Rule IDs
-
- SV-50293r1_rule
Checks: C-46049r1_chk
To check for virtual console entries which permit root login, run the following command: # grep '^vc/[0-9]' /etc/securetty If any output is returned, then root logins over virtual console devices is permitted. If root login over virtual console devices is permitted, this is a finding.
Fix: F-43439r2_fix
To restrict root logins through the (deprecated) virtual console devices, ensure lines of this form do not appear in "/etc/securetty": vc/1 vc/2 vc/3 vc/4 Note: Virtual console entries are not limited to those listed above. Any lines starting with "vc/" followed by numerals should be removed.
- RMF Control
- AU-9
- Severity
- M
- CCI
- CCI-000164
- Version
- RHEL-06-000385
- Vuln IDs
-
- V-38493
- Rule IDs
-
- SV-50294r1_rule
Checks: C-46050r1_chk
Run the following command to check the mode of the system audit directories: grep "^log_file" /etc/audit/auditd.conf|sed 's/^[^/]*//; s/[^/]*$//'|xargs stat -c %a:%n Audit directories must be mode 0755 or less permissive. If any are more permissive, this is a finding.
Fix: F-43440r1_fix
Change the mode of the audit log directories with the following command: # chmod go-w [audit_directory]
- RMF Control
- IA-2
- Severity
- L
- CCI
- CCI-000770
- Version
- RHEL-06-000028
- Vuln IDs
-
- V-38494
- Rule IDs
-
- SV-50295r1_rule
Checks: C-46051r1_chk
To check for serial port entries which permit root login, run the following command: # grep '^ttyS[0-9]' /etc/securetty If any output is returned, then root login over serial ports is permitted. If root login over serial ports is permitted, this is a finding.
Fix: F-43441r1_fix
To restrict root logins on serial ports, ensure lines of this form do not appear in "/etc/securetty": ttyS0 ttyS1 Note: Serial port entries are not limited to those listed above. Any lines starting with "ttyS" followed by numerals should be removed
- RMF Control
- AU-9
- Severity
- M
- CCI
- CCI-000162
- Version
- RHEL-06-000384
- Vuln IDs
-
- V-38495
- Rule IDs
-
- SV-50296r1_rule
Checks: C-46053r1_chk
Run the following command to check the owner of the system audit logs: grep "^log_file" /etc/audit/auditd.conf|sed s/^[^\/]*//|xargs stat -c %U:%n Audit logs must be owned by root. If they are not, this is a finding.
Fix: F-43443r1_fix
Change the owner of the audit log files with the following command: # chown root [audit_file]
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000029
- Vuln IDs
-
- V-38496
- Rule IDs
-
- SV-50297r2_rule
Checks: C-46052r1_chk
To obtain a listing of all users and the contents of their shadow password field, run the command: $ awk -F: '{print $1 ":" $2}' /etc/shadow Identify the system accounts from this listing. These will primarily be the accounts with UID numbers less than 500, other than root. If any system account (other than root) has a valid password hash, this is a finding.
Fix: F-43442r1_fix
Some accounts are not associated with a human user of the system, and exist to perform some administrative function. An attacker should not be able to log into these accounts. Disable login access to these accounts with the command: # passwd -l [SYSACCT]
- RMF Control
- CM-6
- Severity
- H
- CCI
- CCI-000366
- Version
- RHEL-06-000030
- Vuln IDs
-
- V-38497
- Rule IDs
-
- SV-50298r1_rule
Checks: C-46054r1_chk
To verify that null passwords cannot be used, run the following command: # grep nullok /etc/pam.d/system-auth /etc/pam.d/system-auth-ac If this produces any output, it may be possible to log into accounts with empty passwords. If NULL passwords can be used, this is a finding.
Fix: F-43444r1_fix
If an account is configured for password authentication but does not have an assigned password, it may be possible to log into the account without authentication. Remove any instances of the "nullok" option in "/etc/pam.d/system-auth-ac" to prevent logins with empty passwords.
- RMF Control
- AU-9
- Severity
- M
- CCI
- CCI-000163
- Version
- RHEL-06-000383
- Vuln IDs
-
- V-38498
- Rule IDs
-
- SV-50299r1_rule
Checks: C-46055r1_chk
Run the following command to check the mode of the system audit logs: grep "^log_file" /etc/audit/auditd.conf|sed s/^[^\/]*//|xargs stat -c %a:%n Audit logs must be mode 0640 or less permissive. If any are more permissive, this is a finding.
Fix: F-43445r1_fix
Change the mode of the audit log files with the following command: # chmod 0640 [audit_file]
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000031
- Vuln IDs
-
- V-38499
- Rule IDs
-
- SV-50300r1_rule
Checks: C-46056r1_chk
To check that no password hashes are stored in "/etc/passwd", run the following command: # awk -F: '($2 != "x") {print}' /etc/passwd If it produces any output, then a password hash is stored in "/etc/passwd". If any stored hashes are found in /etc/passwd, this is a finding.
Fix: F-43446r1_fix
If any password hashes are stored in "/etc/passwd" (in the second field, instead of an "x"), the cause of this misconfiguration should be investigated. The account should have its password reset and the hash should be properly stored, or the account should be deleted entirely.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000032
- Vuln IDs
-
- V-38500
- Rule IDs
-
- SV-50301r1_rule
Checks: C-46057r1_chk
To list all password file entries for accounts with UID 0, run the following command: # awk -F: '($3 == "0") {print}' /etc/passwd This should print only one line, for the user root. If any account other than root has a UID of 0, this is a finding.
Fix: F-43447r1_fix
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.
- RMF Control
- AC-7
- Severity
- M
- CCI
- CCI-001452
- Version
- RHEL-06-000357
- Vuln IDs
-
- V-38501
- Rule IDs
-
- SV-50302r2_rule
Checks: C-46058r1_chk
To ensure the failed password attempt policy is configured correctly, run the following command: # grep pam_faillock /etc/pam.d/system-auth-ac The output should show "fail_interval=<interval-in-seconds>" where "interval-in-seconds" is 900 (15 minutes) or greater. If the "fail_interval" parameter is not set, the default setting of 900 seconds is acceptable. If that is not the case, this is a finding.
Fix: F-43448r2_fix
To configure the system to lock out accounts after a number of incorrect login attempts within a 15-minute interval using "pam_faillock.so": Add the following lines immediately below the "pam_unix.so" statement in the AUTH section of "/etc/pam.d/system-auth-ac": auth [default=die] pam_faillock.so authfail deny=3 unlock_time=604800 fail_interval=900 auth required pam_faillock.so authsucc deny=3 unlock_time=604800 fail_interval=900 Note that any updates made to "/etc/pam.d/system-auth-ac" will be overwritten by the "authconfig" program. The "authconfig" program should not be used.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000033
- Vuln IDs
-
- V-38502
- Rule IDs
-
- SV-50303r1_rule
Checks: C-46059r1_chk
To check the ownership of "/etc/shadow", run the command: $ ls -l /etc/shadow If properly configured, the output should indicate the following owner: "root" If it does not, this is a finding.
Fix: F-43449r1_fix
To properly set the owner of "/etc/shadow", run the command: # chown root /etc/shadow
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000034
- Vuln IDs
-
- V-38503
- Rule IDs
-
- SV-50304r1_rule
Checks: C-46060r1_chk
To check the group ownership of "/etc/shadow", run the command: $ ls -l /etc/shadow If properly configured, the output should indicate the following group-owner. "root" If it does not, this is a finding.
Fix: F-43450r1_fix
To properly set the group owner of "/etc/shadow", run the command: # chgrp root /etc/shadow
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000035
- Vuln IDs
-
- V-38504
- Rule IDs
-
- SV-50305r1_rule
Checks: C-46061r2_chk
To check the permissions of "/etc/shadow", run the command: $ ls -l /etc/shadow If properly configured, the output should indicate the following permissions: "----------" If it does not, this is a finding.
Fix: F-43451r1_fix
To properly set the permissions of "/etc/shadow", run the command: # chmod 0000 /etc/shadow
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000082
- Vuln IDs
-
- V-38511
- Rule IDs
-
- SV-50312r1_rule
Checks: C-46068r2_chk
If the system serves as a router, this is not applicable. The status of the "net.ipv4.ip_forward" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.ip_forward The output of the command should indicate a value of "0". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43458r2_fix
To set the runtime status of the "net.ipv4.ip_forward" kernel parameter, run the following command: # sysctl -w net.ipv4.ip_forward=0 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.ip_forward = 0
- RMF Control
- SC-7
- Severity
- M
- CCI
- CCI-001100
- Version
- RHEL-06-000117
- Vuln IDs
-
- V-38512
- Rule IDs
-
- SV-50313r2_rule
Checks: C-46069r2_chk
If the system is a cross-domain system, this is not applicable. Run the following command to determine the current status of the "iptables" service: # service iptables status If the service is not running, it should return the following: iptables: Firewall is not running. If the service is not running, this is a finding.
Fix: F-43459r2_fix
The "iptables" service can be enabled with the following commands: # chkconfig iptables on # service iptables start
- RMF Control
- AC-17
- Severity
- M
- CCI
- CCI-000066
- Version
- RHEL-06-000120
- Vuln IDs
-
- V-38513
- Rule IDs
-
- SV-50314r1_rule
Checks: C-46070r1_chk
Inspect the file "/etc/sysconfig/iptables" to determine the default policy for the INPUT chain. It should be set to DROP. # grep ":INPUT" /etc/sysconfig/iptables If the default policy for the INPUT chain is not set to DROP, this is a finding.
Fix: F-43460r1_fix
To set the default policy to DROP (instead of ACCEPT) for the built-in INPUT chain which processes incoming packets, add or correct the following line in "/etc/sysconfig/iptables": :INPUT DROP [0:0]
- RMF Control
- CM-7
- Severity
- M
- CCI
- CCI-000382
- Version
- RHEL-06-000124
- Vuln IDs
-
- V-38514
- Rule IDs
-
- SV-50315r2_rule
Checks: C-46071r2_chk
If the system is configured to prevent the loading of the "dccp" kernel module, it will contain lines inside any file in "/etc/modprobe.d" or the deprecated"/etc/modprobe.conf". These lines instruct the module loading system to run another program (such as "/bin/false") upon a module "install" event. Run the following command to search for such lines in all files in "/etc/modprobe.d" and the deprecated "/etc/modprobe.conf": $ grep -r dccp /etc/modprobe.conf /etc/modprobe.d If no line is returned, this is a finding.
Fix: F-43461r2_fix
The Datagram Congestion Control Protocol (DCCP) is a relatively new transport layer protocol, designed to support streaming media and telephony. To configure the system to prevent the "dccp" kernel module from being loaded, add the following line to a file in the directory "/etc/modprobe.d": install dccp /bin/false
- RMF Control
- CM-7
- Severity
- M
- CCI
- CCI-000382
- Version
- RHEL-06-000125
- Vuln IDs
-
- V-38515
- Rule IDs
-
- SV-50316r2_rule
Checks: C-46072r2_chk
If the system is configured to prevent the loading of the "sctp" kernel module, it will contain lines inside any file in "/etc/modprobe.d" or the deprecated"/etc/modprobe.conf". These lines instruct the module loading system to run another program (such as "/bin/false") upon a module "install" event. Run the following command to search for such lines in all files in "/etc/modprobe.d" and the deprecated "/etc/modprobe.conf": $ grep -r sctp /etc/modprobe.conf /etc/modprobe.d If no line is returned, this is a finding.
Fix: F-43462r2_fix
The Stream Control Transmission Protocol (SCTP) is a transport layer protocol, designed to support the idea of message-oriented communication, with several streams of messages within one connection. To configure the system to prevent the "sctp" kernel module from being loaded, add the following line to a file in the directory "/etc/modprobe.d": install sctp /bin/false
- RMF Control
- CM-7
- Severity
- L
- CCI
- CCI-000382
- Version
- RHEL-06-000126
- Vuln IDs
-
- V-38516
- Rule IDs
-
- SV-50317r2_rule
Checks: C-46073r2_chk
If the system is configured to prevent the loading of the "rds" kernel module, it will contain lines inside any file in "/etc/modprobe.d" or the deprecated "/etc/modprobe.conf". These lines instruct the module loading system to run another program (such as "/bin/false") upon a module "install" event. Run the following command to search for such lines in all files in "/etc/modprobe.d" and the deprecated "/etc/modprobe.conf": $ grep -r rds /etc/modprobe.conf /etc/modprobe.d If no line is returned, this is a finding.
Fix: F-43463r2_fix
The Reliable Datagram Sockets (RDS) protocol is a transport layer protocol designed to provide reliable high- bandwidth, low-latency communications between nodes in a cluster. To configure the system to prevent the "rds" kernel module from being loaded, add the following line to a file in the directory "/etc/modprobe.d": install rds /bin/false
- RMF Control
- CM-7
- Severity
- M
- CCI
- CCI-000382
- Version
- RHEL-06-000127
- Vuln IDs
-
- V-38517
- Rule IDs
-
- SV-50318r2_rule
Checks: C-46074r2_chk
If the system is configured to prevent the loading of the "tipc" kernel module, it will contain lines inside any file in "/etc/modprobe.d" or the deprecated"/etc/modprobe.conf". These lines instruct the module loading system to run another program (such as "/bin/false") upon a module "install" event. Run the following command to search for such lines in all files in "/etc/modprobe.d" and the deprecated "/etc/modprobe.conf": $ grep -r tipc /etc/modprobe.conf /etc/modprobe.d If no line is returned, this is a finding.
Fix: F-43464r2_fix
The Transparent Inter-Process Communication (TIPC) protocol is designed to provide communications between nodes in a cluster. To configure the system to prevent the "tipc" kernel module from being loaded, add the following line to a file in the directory "/etc/modprobe.d": install tipc /bin/false
- RMF Control
- SI-11
- Severity
- M
- CCI
- CCI-001314
- Version
- RHEL-06-000133
- Vuln IDs
-
- V-38518
- Rule IDs
-
- SV-50319r1_rule
Checks: C-46075r1_chk
The owner of all log files written by "rsyslog" should be root. These log files are determined by the second part of each Rule line in "/etc/rsyslog.conf" and typically all appear in "/var/log". For each log file [LOGFILE] referenced in "/etc/rsyslog.conf", run the following command to inspect the file's owner: $ ls -l [LOGFILE] If the owner is not root, this is a finding.
Fix: F-43465r1_fix
The owner of all log files written by "rsyslog" should be root. These log files are determined by the second part of each Rule line in "/etc/rsyslog.conf" typically all appear in "/var/log". For each log file [LOGFILE] referenced in "/etc/rsyslog.conf", run the following command to inspect the file's owner: $ ls -l [LOGFILE] If the owner is not "root", run the following command to correct this: # chown root [LOGFILE]
- RMF Control
- SI-11
- Severity
- M
- CCI
- CCI-001314
- Version
- RHEL-06-000134
- Vuln IDs
-
- V-38519
- Rule IDs
-
- SV-50320r1_rule
Checks: C-46076r1_chk
The group-owner of all log files written by "rsyslog" should be root. These log files are determined by the second part of each Rule line in "/etc/rsyslog.conf" and typically all appear in "/var/log". For each log file [LOGFILE] referenced in "/etc/rsyslog.conf", run the following command to inspect the file's group owner: $ ls -l [LOGFILE] If the group-owner is not root, this is a finding.
Fix: F-43466r1_fix
The group-owner of all log files written by "rsyslog" should be root. These log files are determined by the second part of each Rule line in "/etc/rsyslog.conf" and typically all appear in "/var/log". For each log file [LOGFILE] referenced in "/etc/rsyslog.conf", run the following command to inspect the file's group owner: $ ls -l [LOGFILE] If the owner is not "root", run the following command to correct this: # chgrp root [LOGFILE]
- RMF Control
- AU-9
- Severity
- M
- CCI
- CCI-001348
- Version
- RHEL-06-000136
- Vuln IDs
-
- V-38520
- Rule IDs
-
- SV-50321r1_rule
Checks: C-46078r1_chk
To ensure logs are sent to a remote host, examine the file "/etc/rsyslog.conf". If using UDP, a line similar to the following should be present: *.* @[loghost.example.com] If using TCP, a line similar to the following should be present: *.* @@[loghost.example.com] If using RELP, a line similar to the following should be present: *.* :omrelp:[loghost.example.com] If none of these are present, this is a finding.
Fix: F-43468r1_fix
To configure rsyslog to send logs to a remote log server, open "/etc/rsyslog.conf" and read and understand the last section of the file, which describes the multiple directives necessary to activate remote logging. Along with these other directives, the system can be configured to forward its logs to a particular log server by adding or correcting one of the following lines, substituting "[loghost.example.com]" appropriately. The choice of protocol depends on the environment of the system; although TCP and RELP provide more reliable message delivery, they may not be supported in all environments. To use UDP for log message delivery: *.* @[loghost.example.com] To use TCP for log message delivery: *.* @@[loghost.example.com] To use RELP for log message delivery: *.* :omrelp:[loghost.example.com]
- RMF Control
- AU-12
- Severity
- M
- CCI
- CCI-000169
- Version
- RHEL-06-000137
- Vuln IDs
-
- V-38521
- Rule IDs
-
- SV-50322r1_rule
Checks: C-46269r1_chk
To ensure logs are sent to a remote host, examine the file "/etc/rsyslog.conf". If using UDP, a line similar to the following should be present: *.* @[loghost.example.com] If using TCP, a line similar to the following should be present: *.* @@[loghost.example.com] If using RELP, a line similar to the following should be present: *.* :omrelp:[loghost.example.com] If none of these are present, this is a finding.
Fix: F-43656r1_fix
To configure rsyslog to send logs to a remote log server, open "/etc/rsyslog.conf" and read and understand the last section of the file, which describes the multiple directives necessary to activate remote logging. Along with these other directives, the system can be configured to forward its logs to a particular log server by adding or correcting one of the following lines, substituting "[loghost.example.com]" appropriately. The choice of protocol depends on the environment of the system; although TCP and RELP provide more reliable message delivery, they may not be supported in all environments. To use UDP for log message delivery: *.* @[loghost.example.com] To use TCP for log message delivery: *.* @@[loghost.example.com] To use RELP for log message delivery: *.* :omrelp:[loghost.example.com]
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000169
- Version
- RHEL-06-000167
- Vuln IDs
-
- V-38522
- Rule IDs
-
- SV-50323r2_rule
Checks: C-46080r1_chk
To determine if the system is configured to audit calls to the "settimeofday" system call, run the following command: # auditctl -l | grep syscall | grep settimeofday If the system is configured to audit this activity, it will return a line. If the system is not configured to audit time changes, this is a finding.
Fix: F-43470r2_fix
On a 32-bit system, add the following to "/etc/audit/audit.rules": # audit_time_rules -a always,exit -F arch=b32 -S settimeofday -k audit_time_rules On a 64-bit system, add the following to "/etc/audit/audit.rules": # audit_time_rules -a always,exit -F arch=b64 -S settimeofday -k audit_time_rules The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport. Multiple system calls can be defined on the same line to save space if desired, but is not required. See an example of multiple combined syscalls: -a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime -k audit_time_rules
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000083
- Vuln IDs
-
- V-38523
- Rule IDs
-
- SV-50324r1_rule
Checks: C-46081r2_chk
The status of the "net.ipv4.conf.all.accept_source_route" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.all.accept_source_route The output of the command should indicate a value of "0". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43471r1_fix
To set the runtime status of the "net.ipv4.conf.all.accept_source_route" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.accept_source_route=0 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.all.accept_source_route = 0
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000084
- Vuln IDs
-
- V-38524
- Rule IDs
-
- SV-50325r1_rule
Checks: C-46082r1_chk
The status of the "net.ipv4.conf.all.accept_redirects" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.all.accept_redirects The output of the command should indicate a value of "0". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43472r1_fix
To set the runtime status of the "net.ipv4.conf.all.accept_redirects" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.accept_redirects=0 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.all.accept_redirects = 0
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000169
- Version
- RHEL-06-000169
- Vuln IDs
-
- V-38525
- Rule IDs
-
- SV-50326r3_rule
Checks: C-46083r2_chk
If the system is 64-bit only, this is not applicable. To determine if the system is configured to audit calls to the "stime" system call, run the following command: # auditctl -l | grep syscall | grep stime If the system is configured to audit this activity, it will return a line. If the system is not configured to audit time changes, this is a finding.
Fix: F-43473r4_fix
On a 32-bit system, add the following to "/etc/audit/audit.rules": # audit_time_rules -a always,exit -F arch=b32 -S stime -k audit_time_rules On a 64-bit system, the "-S stime" is not necessary. The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport. Multiple system calls can be defined on the same line to save space if desired, but is not required. See an example of multiple combined syscalls: -a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime -k audit_time_rules
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000086
- Vuln IDs
-
- V-38526
- Rule IDs
-
- SV-50327r1_rule
Checks: C-46084r1_chk
The status of the "net.ipv4.conf.all.secure_redirects" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.all.secure_redirects The output of the command should indicate a value of "0". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43474r1_fix
To set the runtime status of the "net.ipv4.conf.all.secure_redirects" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.secure_redirects=0 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.all.secure_redirects = 0
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000169
- Version
- RHEL-06-000171
- Vuln IDs
-
- V-38527
- Rule IDs
-
- SV-50328r2_rule
Checks: C-46085r1_chk
To determine if the system is configured to audit calls to the "clock_settime" system call, run the following command: # auditctl -l | grep syscall | grep clock_settime If the system is configured to audit this activity, it will return a line. If the system is not configured to audit time changes, this is a finding.
Fix: F-43475r2_fix
On a 32-bit system, add the following to "/etc/audit/audit.rules": # audit_time_rules -a always,exit -F arch=b32 -S clock_settime -k audit_time_rules On a 64-bit system, add the following to "/etc/audit/audit.rules": # audit_time_rules -a always,exit -F arch=b64 -S clock_settime -k audit_time_rules The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport. Multiple system calls can be defined on the same line to save space if desired, but is not required. See an example of multiple combined syscalls: -a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime -k audit_time_rules
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000088
- Vuln IDs
-
- V-38528
- Rule IDs
-
- SV-50329r1_rule
Checks: C-46086r2_chk
The status of the "net.ipv4.conf.all.log_martians" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.all.log_martians The output of the command should indicate a value of "1". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43476r1_fix
To set the runtime status of the "net.ipv4.conf.all.log_martians" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.log_martians=1 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.all.log_martians = 1
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000089
- Vuln IDs
-
- V-38529
- Rule IDs
-
- SV-50330r1_rule
Checks: C-46088r1_chk
The status of the "net.ipv4.conf.default.accept_source_route" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.default.accept_source_route The output of the command should indicate a value of "0". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43478r1_fix
To set the runtime status of the "net.ipv4.conf.default.accept_source_route" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.default.accept_source_route=0 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.default.accept_source_route = 0
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000169
- Version
- RHEL-06-000173
- Vuln IDs
-
- V-38530
- Rule IDs
-
- SV-50331r1_rule
Checks: C-46087r1_chk
To determine if the system is configured to audit attempts to alter time via the /etc/localtime file, run the following command: # auditctl -l | grep "watch=/etc/localtime" If the system is configured to audit this activity, it will return a line. If the system is not configured to audit time changes, this is a finding.
Fix: F-43477r1_fix
Add the following to "/etc/audit/audit.rules": -w /etc/localtime -p wa -k audit_time_rules The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport and should always be used.
- RMF Control
- AC-2
- Severity
- L
- CCI
- CCI-000018
- Version
- RHEL-06-000174
- Vuln IDs
-
- V-38531
- Rule IDs
-
- SV-50332r1_rule
Checks: C-46090r1_chk
To determine if the system is configured to audit account changes, run the following command: auditctl -l | egrep '(/etc/passwd|/etc/shadow|/etc/group|/etc/gshadow|/etc/security/opasswd)' If the system is configured to watch for account changes, lines should be returned for each file specified (and with "perm=wa" for each). If the system is not configured to audit account changes, this is a finding.
Fix: F-43480r1_fix
Add the following to "/etc/audit/audit.rules", in order to capture events that modify account changes: # audit_account_changes -w /etc/group -p wa -k audit_account_changes -w /etc/passwd -p wa -k audit_account_changes -w /etc/gshadow -p wa -k audit_account_changes -w /etc/shadow -p wa -k audit_account_changes -w /etc/security/opasswd -p wa -k audit_account_changes
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000090
- Vuln IDs
-
- V-38532
- Rule IDs
-
- SV-50333r1_rule
Checks: C-46089r1_chk
The status of the "net.ipv4.conf.default.secure_redirects" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.default.secure_redirects The output of the command should indicate a value of "0". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43479r1_fix
To set the runtime status of the "net.ipv4.conf.default.secure_redirects" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.default.secure_redirects=0 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.default.secure_redirects = 0
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000091
- Vuln IDs
-
- V-38533
- Rule IDs
-
- SV-50334r2_rule
Checks: C-46091r1_chk
The status of the "net.ipv4.conf.default.accept_redirects" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.default.accept_redirects The output of the command should indicate a value of "0". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43481r1_fix
To set the runtime status of the "net.ipv4.conf.default.accept_redirects" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.default.accept_redirects=0 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.default.accept_redirects = 0
- RMF Control
- AC-2
- Severity
- L
- CCI
- CCI-001403
- Version
- RHEL-06-000175
- Vuln IDs
-
- V-38534
- Rule IDs
-
- SV-50335r1_rule
Checks: C-46092r1_chk
To determine if the system is configured to audit account changes, run the following command: auditctl -l | egrep '(/etc/passwd|/etc/shadow|/etc/group|/etc/gshadow|/etc/security/opasswd)' If the system is configured to watch for account changes, lines should be returned for each file specified (and with "perm=wa" for each). If the system is not configured to audit account changes, this is a finding.
Fix: F-43482r1_fix
Add the following to "/etc/audit/audit.rules", in order to capture events that modify account changes: # audit_account_changes -w /etc/group -p wa -k audit_account_changes -w /etc/passwd -p wa -k audit_account_changes -w /etc/gshadow -p wa -k audit_account_changes -w /etc/shadow -p wa -k audit_account_changes -w /etc/security/opasswd -p wa -k audit_account_changes
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000092
- Vuln IDs
-
- V-38535
- Rule IDs
-
- SV-50336r1_rule
Checks: C-46093r1_chk
The status of the "net.ipv4.icmp_echo_ignore_broadcasts" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.icmp_echo_ignore_broadcasts The output of the command should indicate a value of "1". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43483r1_fix
To set the runtime status of the "net.ipv4.icmp_echo_ignore_broadcasts" kernel parameter, run the following command: # sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=1 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.icmp_echo_ignore_broadcasts = 1
- RMF Control
- AC-2
- Severity
- L
- CCI
- CCI-001404
- Version
- RHEL-06-000176
- Vuln IDs
-
- V-38536
- Rule IDs
-
- SV-50337r1_rule
Checks: C-46094r1_chk
To determine if the system is configured to audit account changes, run the following command: auditctl -l | egrep '(/etc/passwd|/etc/shadow|/etc/group|/etc/gshadow|/etc/security/opasswd)' If the system is configured to watch for account changes, lines should be returned for each file specified (and with "perm=wa" for each). If the system is not configured to audit account changes, this is a finding.
Fix: F-43484r1_fix
Add the following to "/etc/audit/audit.rules", in order to capture events that modify account changes: # audit_account_changes -w /etc/group -p wa -k audit_account_changes -w /etc/passwd -p wa -k audit_account_changes -w /etc/gshadow -p wa -k audit_account_changes -w /etc/shadow -p wa -k audit_account_changes -w /etc/security/opasswd -p wa -k audit_account_changes
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000093
- Vuln IDs
-
- V-38537
- Rule IDs
-
- SV-50338r1_rule
Checks: C-46095r1_chk
The status of the "net.ipv4.icmp_ignore_bogus_error_responses" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.icmp_ignore_bogus_error_responses The output of the command should indicate a value of "1". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43485r1_fix
To set the runtime status of the "net.ipv4.icmp_ignore_bogus_error_responses" kernel parameter, run the following command: # sysctl -w net.ipv4.icmp_ignore_bogus_error_responses=1 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.icmp_ignore_bogus_error_responses = 1
- RMF Control
- AC-2
- Severity
- L
- CCI
- CCI-001405
- Version
- RHEL-06-000177
- Vuln IDs
-
- V-38538
- Rule IDs
-
- SV-50339r1_rule
Checks: C-46096r1_chk
To determine if the system is configured to audit account changes, run the following command: auditctl -l | egrep '(/etc/passwd|/etc/shadow|/etc/group|/etc/gshadow|/etc/security/opasswd)' If the system is configured to watch for account changes, lines should be returned for each file specified (and with "perm=wa" for each). If the system is not configured to audit account changes, this is a finding.
Fix: F-43486r1_fix
Add the following to "/etc/audit/audit.rules", in order to capture events that modify account changes: # audit_account_changes -w /etc/group -p wa -k audit_account_changes -w /etc/passwd -p wa -k audit_account_changes -w /etc/gshadow -p wa -k audit_account_changes -w /etc/shadow -p wa -k audit_account_changes -w /etc/security/opasswd -p wa -k audit_account_changes
- RMF Control
- SC-5
- Severity
- M
- CCI
- CCI-001095
- Version
- RHEL-06-000095
- Vuln IDs
-
- V-38539
- Rule IDs
-
- SV-50340r1_rule
Checks: C-46097r1_chk
The status of the "net.ipv4.tcp_syncookies" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.tcp_syncookies The output of the command should indicate a value of "1". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43487r1_fix
To set the runtime status of the "net.ipv4.tcp_syncookies" kernel parameter, run the following command: # sysctl -w net.ipv4.tcp_syncookies=1 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.tcp_syncookies = 1
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000182
- Vuln IDs
-
- V-38540
- Rule IDs
-
- SV-50341r2_rule
Checks: C-46098r1_chk
To determine if the system is configured to audit changes to its network configuration, run the following command: auditctl -l | egrep '(sethostname|setdomainname|/etc/issue|/etc/issue.net|/etc/hosts|/etc/sysconfig/network)' If the system is configured to watch for network configuration changes, a line should be returned for each file specified (and "perm=wa" should be indicated for each). If the system is not configured to audit changes of the network configuration, this is a finding.
Fix: F-43488r2_fix
Add the following to "/etc/audit/audit.rules", setting ARCH to either b32 or b64 as appropriate for your system: # audit_network_modifications -a always,exit -F arch=ARCH -S sethostname -S setdomainname -k audit_network_modifications -w /etc/issue -p wa -k audit_network_modifications -w /etc/issue.net -p wa -k audit_network_modifications -w /etc/hosts -p wa -k audit_network_modifications -w /etc/sysconfig/network -p wa -k audit_network_modifications
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000183
- Vuln IDs
-
- V-38541
- Rule IDs
-
- SV-50342r1_rule
Checks: C-46099r1_chk
To determine if the system is configured to audit changes to its SELinux configuration files, run the following command: # auditctl -l | grep "dir=/etc/selinux" If the system is configured to watch for changes to its SELinux configuration, a line should be returned (including "perm=wa" indicating permissions that are watched). If the system is not configured to audit attempts to change the MAC policy, this is a finding.
Fix: F-43489r1_fix
Add the following to "/etc/audit/audit.rules": -w /etc/selinux/ -p wa -k MAC-policy
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000096
- Vuln IDs
-
- V-38542
- Rule IDs
-
- SV-50343r1_rule
Checks: C-46100r1_chk
The status of the "net.ipv4.conf.all.rp_filter" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.all.rp_filter The output of the command should indicate a value of "1". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43490r1_fix
To set the runtime status of the "net.ipv4.conf.all.rp_filter" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.rp_filter=1 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.all.rp_filter = 1
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000184
- Vuln IDs
-
- V-38543
- Rule IDs
-
- SV-50344r2_rule
Checks: C-46101r1_chk
To determine if the system is configured to audit calls to the "chmod" system call, run the following command: # auditctl -l | grep syscall | grep chmod If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43491r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S chmod -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S chmod -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S chmod -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S chmod -F auid=0 -k perm_mod
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000097
- Vuln IDs
-
- V-38544
- Rule IDs
-
- SV-50345r1_rule
Checks: C-46102r1_chk
The status of the "net.ipv4.conf.default.rp_filter" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.default.rp_filter The output of the command should indicate a value of "1". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43492r1_fix
To set the runtime status of the "net.ipv4.conf.default.rp_filter" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.default.rp_filter=1 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.default.rp_filter = 1
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000185
- Vuln IDs
-
- V-38545
- Rule IDs
-
- SV-50346r2_rule
Checks: C-46103r1_chk
To determine if the system is configured to audit calls to the "chown" system call, run the following command: # auditctl -l | grep syscall | grep chown If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43493r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S chown -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S chown -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S chown -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S chown -F auid=0 -k perm_mod
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000098
- Vuln IDs
-
- V-38546
- Rule IDs
-
- SV-50347r1_rule
Checks: C-46104r1_chk
If the system uses IPv6, this is not applicable. If the system is configured to prevent the loading of the "ipv6" kernel module, it will contain a line of the form: options ipv6 disable=1 Such lines may be inside any file in "/etc/modprobe.d" or the deprecated "/etc/modprobe.conf". 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 "/etc/modprobe.d" and the deprecated "/etc/modprobe.conf": $ grep -r ipv6 /etc/modprobe.conf /etc/modprobe.d If the IPv6 kernel module is loaded, this is a finding.
Fix: F-43494r1_fix
To prevent the IPv6 kernel module ("ipv6") from loading the IPv6 networking stack, add the following line to "/etc/modprobe.d/disabled.conf" (or another file in "/etc/modprobe.d"): options ipv6 disable=1 This permits the IPv6 module to be loaded (and thus satisfy other modules that depend on it), while disabling support for the IPv6 protocol.
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000186
- Vuln IDs
-
- V-38547
- Rule IDs
-
- SV-50348r2_rule
Checks: C-46105r1_chk
To determine if the system is configured to audit calls to the "fchmod" system call, run the following command: # auditctl -l | grep syscall | grep fchmod If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43495r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S fchmod -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S fchmod -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S fchmod -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S fchmod -F auid=0 -k perm_mod
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000099
- Vuln IDs
-
- V-38548
- Rule IDs
-
- SV-50349r2_rule
Checks: C-46106r2_chk
If IPv6 is disabled, this is not applicable. The status of the "net.ipv6.conf.default.accept_redirects" kernel parameter can be queried by running the following command: $ sysctl net.ipv6.conf.default.accept_redirects The output of the command should indicate a value of "0". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43496r1_fix
To set the runtime status of the "net.ipv6.conf.default.accept_redirects" kernel parameter, run the following command: # sysctl -w net.ipv6.conf.default.accept_redirects=0 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv6.conf.default.accept_redirects = 0
- RMF Control
- SC-7
- Severity
- M
- CCI
- CCI-001118
- Version
- RHEL-06-000103
- Vuln IDs
-
- V-38549
- Rule IDs
-
- SV-50350r2_rule
Checks: C-46107r2_chk
If the system is a cross-domain system, this is not applicable. Run the following command to determine the current status of the "ip6tables" service: # service ip6tables status If the service is not running, it should return the following: ip6tables: Firewall is not running. If the service is not running, this is a finding.
Fix: F-43497r3_fix
The "ip6tables" service can be enabled with the following commands: # chkconfig ip6tables on # service ip6tables start
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000187
- Vuln IDs
-
- V-38550
- Rule IDs
-
- SV-50351r2_rule
Checks: C-46108r1_chk
To determine if the system is configured to audit calls to the "fchmodat" system call, run the following command: # auditctl -l | grep syscall | grep fchmodat If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43498r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S fchmodat -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S fchmodat -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S fchmodat -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S fchmodat -F auid=0 -k perm_mod
- RMF Control
- SC-7
- Severity
- M
- CCI
- CCI-001098
- Version
- RHEL-06-000106
- Vuln IDs
-
- V-38551
- Rule IDs
-
- SV-50352r2_rule
Checks: C-46109r2_chk
If the system is a cross-domain system, this is not applicable. Run the following command to determine the current status of the "ip6tables" service: # service ip6tables status If the service is not running, it should return the following: ip6tables: Firewall is not running. If the service is not running, this is a finding.
Fix: F-43499r2_fix
The "ip6tables" service can be enabled with the following commands: # chkconfig ip6tables on # service ip6tables start
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000188
- Vuln IDs
-
- V-38552
- Rule IDs
-
- SV-50353r2_rule
Checks: C-46110r1_chk
To determine if the system is configured to audit calls to the "fchown" system call, run the following command: # auditctl -l | grep syscall | grep fchown If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43500r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S fchown -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S fchown -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S fchown -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S fchown -F auid=0 -k perm_mod
- RMF Control
- SC-7
- Severity
- M
- CCI
- CCI-001100
- Version
- RHEL-06-000107
- Vuln IDs
-
- V-38553
- Rule IDs
-
- SV-50354r2_rule
Checks: C-46111r2_chk
If the system is a cross-domain system, this is not applicable. Run the following command to determine the current status of the "ip6tables" service: # service ip6tables status If the service is not running, it should return the following: ip6tables: Firewall is not running. If the service is not running, this is a finding.
Fix: F-43501r2_fix
The "ip6tables" service can be enabled with the following commands: # chkconfig ip6tables on # service ip6tables start
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000189
- Vuln IDs
-
- V-38554
- Rule IDs
-
- SV-50355r2_rule
Checks: C-46112r1_chk
To determine if the system is configured to audit calls to the "fchownat" system call, run the following command: # auditctl -l | grep syscall | grep fchownat If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43502r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S fchownat -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S fchownat -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S fchownat -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S fchownat -F auid=0 -k perm_mod
- RMF Control
- SC-7
- Severity
- M
- CCI
- CCI-001118
- Version
- RHEL-06-000113
- Vuln IDs
-
- V-38555
- Rule IDs
-
- SV-50356r2_rule
Checks: C-46113r2_chk
If the system is a cross-domain system, this is not applicable. Run the following command to determine the current status of the "iptables" service: # service iptables status If the service is not running, it should return the following: iptables: Firewall is not running. If the service is not running, this is a finding.
Fix: F-43503r2_fix
The "iptables" service can be enabled with the following commands: # chkconfig iptables on # service iptables start
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000190
- Vuln IDs
-
- V-38556
- Rule IDs
-
- SV-50357r2_rule
Checks: C-46114r1_chk
To determine if the system is configured to audit calls to the "fremovexattr" system call, run the following command: # auditctl -l | grep syscall | grep fremovexattr If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43504r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S fremovexattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S fremovexattr -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S fremovexattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S fremovexattr -F auid=0 -k perm_mod
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000191
- Vuln IDs
-
- V-38557
- Rule IDs
-
- SV-50358r2_rule
Checks: C-46115r1_chk
To determine if the system is configured to audit calls to the "fsetxattr" system call, run the following command: # auditctl -l | grep syscall | grep fsetxattr If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43505r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S fsetxattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S fsetxattr -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S fsetxattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S fsetxattr -F auid=0 -k perm_mod
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000192
- Vuln IDs
-
- V-38558
- Rule IDs
-
- SV-50359r2_rule
Checks: C-46116r1_chk
To determine if the system is configured to audit calls to the "lchown" system call, run the following command: # auditctl -l | grep syscall | grep lchown If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43506r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S lchown -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S lchown -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S lchown -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S lchown -F auid=0 -k perm_mod
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000193
- Vuln IDs
-
- V-38559
- Rule IDs
-
- SV-50360r2_rule
Checks: C-46117r1_chk
To determine if the system is configured to audit calls to the "lremovexattr" system call, run the following command: # auditctl -l | grep syscall | grep lremovexattr If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43507r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S lremovexattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S lremovexattr -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S lremovexattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S lremovexattr -F auid=0 -k perm_mod
- RMF Control
- SC-7
- Severity
- M
- CCI
- CCI-001098
- Version
- RHEL-06-000116
- Vuln IDs
-
- V-38560
- Rule IDs
-
- SV-50361r2_rule
Checks: C-46118r2_chk
If the system is a cross-domain system, this is not applicable. Run the following command to determine the current status of the "iptables" service: # service iptables status If the service is not running, it should return the following: iptables: Firewall is not running. If the service is not running, this is a finding.
Fix: F-43508r2_fix
The "iptables" service can be enabled with the following commands: # chkconfig iptables on # service iptables start
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000194
- Vuln IDs
-
- V-38561
- Rule IDs
-
- SV-50362r2_rule
Checks: C-46119r1_chk
To determine if the system is configured to audit calls to the "lsetxattr" system call, run the following command: # auditctl -l | grep syscall | grep lsetxattr If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43509r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S lsetxattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S lsetxattr -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S lsetxattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S lsetxattr -F auid=0 -k perm_mod
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000195
- Vuln IDs
-
- V-38563
- Rule IDs
-
- SV-50364r2_rule
Checks: C-46121r1_chk
To determine if the system is configured to audit calls to the "removexattr" system call, run the following command: # auditctl -l | grep syscall | grep removexattr If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43511r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S removexattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S removexattr -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S removexattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S removexattr -F auid=0 -k perm_mod
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000196
- Vuln IDs
-
- V-38565
- Rule IDs
-
- SV-50366r2_rule
Checks: C-46123r1_chk
To determine if the system is configured to audit calls to the "setxattr" system call, run the following command: # auditctl -l | grep syscall | grep setxattr If the system is configured to audit this activity, it will return several lines. If no lines are returned, this is a finding.
Fix: F-43513r2_fix
At a minimum, the audit system should collect file permission changes for all users and root. Add the following to "/etc/audit/audit.rules": -a always,exit -F arch=b32 -S setxattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b32 -S setxattr -F auid=0 -k perm_mod If the system is 64-bit, then also add the following: -a always,exit -F arch=b64 -S setxattr -F auid>=500 -F auid!=4294967295 \ -k perm_mod -a always,exit -F arch=b64 -S setxattr -F auid=0 -k perm_mod
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000197
- Vuln IDs
-
- V-38566
- Rule IDs
-
- SV-50367r2_rule
Checks: C-46124r1_chk
To verify that the audit system collects unauthorized file accesses, run the following commands: # grep EACCES /etc/audit/audit.rules # grep EPERM /etc/audit/audit.rules If either command lacks output, this is a finding.
Fix: F-43514r2_fix
At a minimum, the audit system should collect unauthorized file accesses for all users and root. Add the following to "/etc/audit/audit.rules", setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S creat -S open -S openat -S truncate \ -S ftruncate -F exit=-EACCES -F auid>=500 -F auid!=4294967295 -k access -a always,exit -F arch=ARCH -S creat -S open -S openat -S truncate \ -S ftruncate -F exit=-EPERM -F auid>=500 -F auid!=4294967295 -k access -a always,exit -F arch=ARCH -S creat -S open -S openat -S truncate \ -S ftruncate -F exit=-EACCES -F auid=0 -k access -a always,exit -F arch=ARCH -S creat -S open -S openat -S truncate \ -S ftruncate -F exit=-EPERM -F auid=0 -k access
- RMF Control
- AC-6
- Severity
- L
- CCI
- CCI-000040
- Version
- RHEL-06-000198
- Vuln IDs
-
- V-38567
- Rule IDs
-
- SV-50368r2_rule
Checks: C-46125r4_chk
To verify that auditing of privileged command use is configured, run the following command once for each local partition [PART] to find relevant setuid programs: # find [PART] -xdev -type f \( -perm -4000 -o -perm -2000 \) 2>/dev/null Run the following command to verify entries in the audit rules for all programs found with the previous command: # grep [path] /etc/audit/audit.rules It should be the case that all relevant setuid programs have a line in the audit rules. If it is not the case, this is a finding.
Fix: F-43515r3_fix
At a minimum, the audit system should collect the execution of privileged commands for all users and root. To find the relevant setuid programs run the following command for each local partition [PART]: # find [PART] -xdev -type f \( -perm -4000 -o -perm -2000 \) 2>/dev/null Then, for each setuid program on the system, add a line of the following form to "/etc/audit/audit.rules", where [SETUID_PROG_PATH] is the full path to each setuid program in the list: -a always,exit -F path=[SETUID_PROG_PATH] -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000199
- Vuln IDs
-
- V-38568
- Rule IDs
-
- SV-50369r2_rule
Checks: C-46126r1_chk
To verify that auditing is configured for all media exportation events, run the following command: # auditctl -l | grep syscall | grep mount If there is no output, this is a finding.
Fix: F-43516r2_fix
At a minimum, the audit system should collect media exportation events for all users and root. Add the following to "/etc/audit/audit.rules", setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S mount -F auid>=500 -F auid!=4294967295 -k export -a always,exit -F arch=ARCH -S mount -F auid=0 -k export
- RMF Control
- IA-5
- Severity
- L
- CCI
- CCI-000192
- Version
- RHEL-06-000057
- Vuln IDs
-
- V-38569
- Rule IDs
-
- SV-50370r1_rule
Checks: C-46127r1_chk
To check how many uppercase characters are required in a password, run the following command: $ grep pam_cracklib /etc/pam.d/system-auth The "ucredit" parameter (as a negative number) will indicate how many uppercase characters are required. The DoD requires at least one uppercase character in a password. This would appear as "ucredit=-1". If ucredit is not found or not set to the required value, this is a finding.
Fix: F-43517r1_fix
The pam_cracklib module's "ucredit=" parameter controls requirements for usage of uppercase letters in a password. When set to a negative number, any password will be required to contain that many uppercase characters. When set to a positive number, pam_cracklib will grant +1 additional length credit for each uppercase character. Add "ucredit=-1" after pam_cracklib.so to require use of an uppercase character in passwords.
- RMF Control
- IA-5
- Severity
- L
- CCI
- CCI-001619
- Version
- RHEL-06-000058
- Vuln IDs
-
- V-38570
- Rule IDs
-
- SV-50371r1_rule
Checks: C-46128r1_chk
To check how many special characters are required in a password, run the following command: $ grep pam_cracklib /etc/pam.d/system-auth The "ocredit" parameter (as a negative number) will indicate how many special characters are required. The DoD requires at least one special character in a password. This would appear as "ocredit=-1". If ocredit is not found or not set to the required value, this is a finding.
Fix: F-43518r1_fix
The pam_cracklib module's "ocredit=" parameter controls requirements for usage of special (or ``other'') characters in a password. When set to a negative number, any password will be required to contain that many special characters. When set to a positive number, pam_cracklib will grant +1 additional length credit for each special character. Add "ocredit=-1" after pam_cracklib.so to require use of a special character in passwords.
- RMF Control
- IA-5
- Severity
- L
- CCI
- CCI-000193
- Version
- RHEL-06-000059
- Vuln IDs
-
- V-38571
- Rule IDs
-
- SV-50372r1_rule
Checks: C-46129r1_chk
To check how many lowercase characters are required in a password, run the following command: $ grep pam_cracklib /etc/pam.d/system-auth The "lcredit" parameter (as a negative number) will indicate how many special characters are required. The DoD requires at least one lowercase character in a password. This would appear as "lcredit=-1". If lcredit is not found or not set to the required value, this is a finding.
Fix: F-43519r1_fix
The pam_cracklib module's "lcredit=" parameter controls requirements for usage of lowercase letters in a password. When set to a negative number, any password will be required to contain that many lowercase characters. When set to a positive number, pam_cracklib will grant +1 additional length credit for each lowercase character. Add "lcredit=-1" after pam_cracklib.so to require use of a lowercase character in passwords.
- RMF Control
- IA-5
- Severity
- L
- CCI
- CCI-000195
- Version
- RHEL-06-000060
- Vuln IDs
-
- V-38572
- Rule IDs
-
- SV-50373r1_rule
Checks: C-46130r1_chk
To check how many characters must differ during a password change, run the following command: $ grep pam_cracklib /etc/pam.d/system-auth The "difok" parameter will indicate how many characters must differ. The DoD requires four characters differ during a password change. This would appear as "difok=4". If difok is not found or not set to the required value, this is a finding.
Fix: F-43520r1_fix
The pam_cracklib module's "difok" parameter controls requirements for usage of different characters during a password change. Add "difok=[NUM]" after pam_cracklib.so to require differing characters when changing passwords, substituting [NUM] appropriately. The DoD requirement is 4.
- RMF Control
- AC-7
- Severity
- M
- CCI
- CCI-000044
- Version
- RHEL-06-000061
- Vuln IDs
-
- V-38573
- Rule IDs
-
- SV-50374r2_rule
Checks: C-46131r2_chk
To ensure the failed password attempt policy is configured correctly, run the following command: # grep pam_faillock /etc/pam.d/system-auth-ac # grep pam_faillock /etc/pam.d/password-auth-ac The output should show "deny=3" for both files. If that is not the case, this is a finding.
Fix: F-43521r3_fix
To configure the system to lock out accounts after a number of incorrect login attempts using "pam_faillock.so": Add the following lines immediately below the "pam_unix.so" statement in the AUTH section of "/etc/pam.d/system-auth-ac" and "/etc/pam.d/password-auth-ac": auth [default=die] pam_faillock.so authfail deny=3 unlock_time=604800 fail_interval=900 auth required pam_faillock.so authsucc deny=3 unlock_time=604800 fail_interval=900 Note that any updates made to "/etc/pam.d/system-auth-ac" and "/etc/pam.d/password-auth-ac" will be overwritten by the "authconfig" program. The "authconfig" program should not be used.
- RMF Control
- IA-7
- Severity
- M
- CCI
- CCI-000803
- Version
- RHEL-06-000062
- Vuln IDs
-
- V-38574
- Rule IDs
-
- SV-50375r1_rule
Checks: C-46132r1_chk
Inspect the "password" section of "/etc/pam.d/system-auth" and ensure that the "pam_unix.so" module includes the argument "sha512". $ grep sha512 /etc/pam.d/system-auth" If it does not, this is a finding.
Fix: F-43522r1_fix
In "/etc/pam.d/system-auth", the "password" section of the file controls which PAM modules execute during a password change. Set the "pam_unix.so" module in the "password" section to include the argument "sha512", as shown below: password sufficient pam_unix.so sha512 [other arguments...] This will help ensure when local users change their passwords, hashes for the new passwords will be generated using the SHA-512 algorithm. This is the default. Note that any updates made to "/etc/pam.d/system-auth" will be overwritten by the "authconfig" program. The "authconfig" program should not be used.
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000200
- Vuln IDs
-
- V-38575
- Rule IDs
-
- SV-50376r3_rule
Checks: C-46133r2_chk
To determine if the system is configured to audit calls to the "unlink" system call, run the following command: # auditctl -l | grep syscall | grep -w unlink 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 "unlinkat" system call, run the following command: # auditctl -l | grep syscall | grep -w unlinkat 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 "rename" system call, run the following command: # auditctl -l | grep syscall | grep -w rename 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 "renameat" system call, run the following command: # auditctl -l | grep syscall | grep -w renameat If the system is configured to audit this activity, it will return a line. If no line is returned, this is a finding.
Fix: F-43523r2_fix
At a minimum, the audit system should collect file deletion events for all users and root. Add the following to "/etc/audit/audit.rules", setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S unlink -S unlinkat -S rename -S renameat \ -F auid>=500 -F auid!=4294967295 -k delete -a always,exit -F arch=ARCH -S unlink -S unlinkat -S rename -S renameat \ -F auid=0 -k delete
- RMF Control
- IA-7
- Severity
- M
- CCI
- CCI-000803
- Version
- RHEL-06-000063
- Vuln IDs
-
- V-38576
- Rule IDs
-
- SV-50377r1_rule
Checks: C-46134r1_chk
Inspect "/etc/login.defs" and ensure the following line appears: ENCRYPT_METHOD SHA512 If it does not, this is a finding.
Fix: F-43524r1_fix
In "/etc/login.defs", add or correct the following line to ensure the system will use SHA-512 as the hashing algorithm: ENCRYPT_METHOD SHA512
- RMF Control
- IA-7
- Severity
- M
- CCI
- CCI-000803
- Version
- RHEL-06-000064
- Vuln IDs
-
- V-38577
- Rule IDs
-
- SV-50378r1_rule
Checks: C-46135r1_chk
Inspect "/etc/libuser.conf" and ensure the following line appears in the "[default]" section: crypt_style = sha512 If it does not, this is a finding.
Fix: F-43525r1_fix
In "/etc/libuser.conf", add or correct the following line in its "[defaults]" section to ensure the system will use the SHA-512 algorithm for password hashing: crypt_style = sha512
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000172
- Version
- RHEL-06-000201
- Vuln IDs
-
- V-38578
- Rule IDs
-
- SV-50379r1_rule
Checks: C-46136r1_chk
To verify that auditing is configured for system administrator actions, run the following command: # auditctl -l | grep "watch=/etc/sudoers" If there is no output, this is a finding.
Fix: F-43526r1_fix
At a minimum, the audit system should collect administrator actions for all users and root. Add the following to "/etc/audit/audit.rules": -w /etc/sudoers -p wa -k actions
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000065
- Vuln IDs
-
- V-38579
- Rule IDs
-
- SV-50380r1_rule
Checks: C-46137r1_chk
To check the ownership of "/etc/grub.conf", run the command: $ ls -lL /etc/grub.conf If properly configured, the output should indicate the following owner: "root" If it does not, this is a finding.
Fix: F-43527r1_fix
The file "/etc/grub.conf" should be owned by the "root" user to prevent destruction or modification of the file. To properly set the owner of "/etc/grub.conf", run the command: # chown root /etc/grub.conf
- RMF Control
- AU-12
- Severity
- M
- CCI
- CCI-000172
- Version
- RHEL-06-000202
- Vuln IDs
-
- V-38580
- Rule IDs
-
- SV-50381r1_rule
Checks: C-46138r1_chk
To determine if the system is configured to audit calls to the "init_module" system call, run the following command: # auditctl -l | grep syscall | grep init_module 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 "delete_module" system call, run the following command: # auditctl -l | grep syscall | grep delete_module If the system is configured to audit this activity, it will return a line. If no line is returned, this is a finding.
Fix: F-43528r2_fix
Add the following to "/etc/audit/audit.rules" in order to capture kernel module loading and unloading events, setting ARCH to either b32 or b64 as appropriate for your system: -w /sbin/insmod -p x -k modules -w /sbin/rmmod -p x -k modules -w /sbin/modprobe -p x -k modules -a always,exit -F arch=[ARCH] -S init_module -S delete_module -k modules
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000066
- Vuln IDs
-
- V-38581
- Rule IDs
-
- SV-50382r1_rule
Checks: C-46139r1_chk
To check the group ownership of "/etc/grub.conf", run the command: $ ls -lL /etc/grub.conf If properly configured, the output should indicate the following group-owner. "root" If it does not, this is a finding.
Fix: F-43529r1_fix
The file "/etc/grub.conf" should be group-owned by the "root" group to prevent destruction or modification of the file. To properly set the group owner of "/etc/grub.conf", run the command: # chgrp root /etc/grub.conf
- RMF Control
- CM-7
- Severity
- M
- CCI
- CCI-000382
- Version
- RHEL-06-000203
- Vuln IDs
-
- V-38582
- Rule IDs
-
- SV-50383r2_rule
Checks: C-46140r2_chk
If network services are using the xinetd service, this is not applicable. To check that the "xinetd" service is disabled in system boot configuration, run the following command: # chkconfig "xinetd" --list Output should indicate the "xinetd" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "xinetd" --list "xinetd" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "xinetd" is disabled through current runtime configuration: # service xinetd status If the service is disabled the command will return the following output: xinetd is stopped If the service is running, this is a finding.
Fix: F-43530r2_fix
The "xinetd" service can be disabled with the following commands: # chkconfig xinetd off # service xinetd stop
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000067
- Vuln IDs
-
- V-38583
- Rule IDs
-
- SV-50384r1_rule
Checks: C-46141r1_chk
To check the permissions of "/etc/grub.conf", run the command: $ ls -lL /etc/grub.conf If properly configured, the output should indicate the following permissions: "-rw-------" If it does not, this is a finding.
Fix: F-43531r1_fix
File permissions for "/etc/grub.conf" should be set to 600, which is the default. To properly set the permissions of "/etc/grub.conf", run the command: # chmod 600 /etc/grub.conf
- RMF Control
- CM-7
- Severity
- L
- CCI
- CCI-000382
- Version
- RHEL-06-000204
- Vuln IDs
-
- V-38584
- Rule IDs
-
- SV-50385r1_rule
Checks: C-46142r1_chk
If network services are using the xinetd service, this is not applicable. Run the following command to determine if the "xinetd" package is installed: # rpm -q xinetd If the package is installed, this is a finding.
Fix: F-43532r1_fix
The "xinetd" package can be uninstalled with the following command: # yum erase xinetd
- RMF Control
- AC-3
- Severity
- M
- CCI
- CCI-000213
- Version
- RHEL-06-000068
- Vuln IDs
-
- V-38585
- Rule IDs
-
- SV-50386r1_rule
Checks: C-46143r1_chk
To verify the boot loader password has been set and encrypted, run the following command: # grep password /etc/grub.conf The output should show the following: password --encrypted "$6$[rest-of-the-password-hash]" If it does not, this is a finding.
Fix: F-43533r1_fix
The grub boot loader should have password protection enabled to protect boot-time settings. To do so, select a password and then generate a hash from it by running the following command: # grub-crypt --sha-512 When prompted to enter a password, insert the following line into "/etc/grub.conf" immediately after the header comments. (Use the output from "grub-crypt" as the value of [password-hash]): password --encrypted [password-hash]
- RMF Control
- AC-3
- Severity
- M
- CCI
- CCI-000213
- Version
- RHEL-06-000069
- Vuln IDs
-
- V-38586
- Rule IDs
-
- SV-50387r1_rule
Checks: C-46145r1_chk
To check if authentication is required for single-user mode, run the following command: $ grep SINGLE /etc/sysconfig/init The output should be the following: SINGLE=/sbin/sulogin If the output is different, this is a finding.
Fix: F-43534r1_fix
Single-user mode is intended as a system recovery method, providing a single user root access to the system by providing a boot option at startup. By default, no authentication is performed if single-user mode is selected. To require entry of the root password even if the system is started in single-user mode, add or correct the following line in the file "/etc/sysconfig/init": SINGLE=/sbin/sulogin
- RMF Control
- CM-7
- Severity
- H
- CCI
- CCI-000381
- Version
- RHEL-06-000206
- Vuln IDs
-
- V-38587
- Rule IDs
-
- SV-50388r1_rule
Checks: C-46144r1_chk
Run the following command to determine if the "telnet-server" package is installed: # rpm -q telnet-server If the package is installed, this is a finding.
Fix: F-43535r1_fix
The "telnet-server" package can be uninstalled with the following command: # yum erase telnet-server
- RMF Control
- AC-3
- Severity
- M
- CCI
- CCI-000213
- Version
- RHEL-06-000070
- Vuln IDs
-
- V-38588
- Rule IDs
-
- SV-50389r1_rule
Checks: C-46146r1_chk
To check whether interactive boot is disabled, run the following command: $ grep PROMPT /etc/sysconfig/init If interactive boot is disabled, the output will show: PROMPT=no If it does not, this is a finding.
Fix: F-43536r1_fix
To disable the ability for users to perform interactive startups, edit the file "/etc/sysconfig/init". Add or correct the line: PROMPT=no The "PROMPT" option allows the console user to perform an interactive system startup, in which it is possible to select the set of services which are started on boot.
- RMF Control
- MA-4
- Severity
- H
- CCI
- CCI-000888
- Version
- RHEL-06-000211
- Vuln IDs
-
- V-38589
- Rule IDs
-
- SV-50390r2_rule
Checks: C-46147r3_chk
To check that the "telnet" service is disabled in system boot configuration, run the following command: # chkconfig "telnet" --list Output should indicate the "telnet" service has either not been installed, or has been disabled, as shown in the example below: # chkconfig "telnet" --list telnet off OR error reading information on service telnet: No such file or directory If the service is running, this is a finding.
Fix: F-43537r1_fix
The "telnet" service can be disabled with the following command: # chkconfig telnet off
- RMF Control
- AC-11
- Severity
- L
- CCI
- CCI-000058
- Version
- RHEL-06-000071
- Vuln IDs
-
- V-38590
- Rule IDs
-
- SV-50391r1_rule
Checks: C-46148r1_chk
Run the following command to determine if the "screen" package is installed: # rpm -q screen If the package is not installed, this is a finding.
Fix: F-43538r1_fix
To enable console screen locking when in text mode, install the "screen" package: # yum install screen Instruct users to begin new terminal sessions with the following command: $ screen The console can now be locked with the following key combination: ctrl+a x
- RMF Control
- CM-7
- Severity
- H
- CCI
- CCI-000381
- Version
- RHEL-06-000213
- Vuln IDs
-
- V-38591
- Rule IDs
-
- SV-50392r1_rule
Checks: C-46149r1_chk
Run the following command to determine if the "rsh-server" package is installed: # rpm -q rsh-server If the package is installed, this is a finding.
Fix: F-43539r1_fix
The "rsh-server" package can be uninstalled with the following command: # yum erase rsh-server
- RMF Control
- AC-7
- Severity
- M
- CCI
- CCI-000047
- Version
- RHEL-06-000356
- Vuln IDs
-
- V-38592
- Rule IDs
-
- SV-50393r2_rule
Checks: C-46151r3_chk
To ensure the failed password attempt policy is configured correctly, run the following command: # grep pam_faillock /etc/pam.d/system-auth-ac # grep pam_faillock /etc/pam.d/password-auth-ac The output should show "unlock_time=<some-large-number>"; the largest acceptable value is 604800 seconds (one week). If that is not the case, this is a finding.
Fix: F-43541r2_fix
To configure the system to lock out accounts after a number of incorrect login attempts and require an administrator to unlock the account using "pam_faillock.so": Add the following lines immediately below the "pam_unix.so" statement in the AUTH section of "/etc/pam.d/system-auth-ac" and "/etc/pam.d/password-auth-ac": auth [default=die] pam_faillock.so authfail deny=3 unlock_time=604800 fail_interval=900 auth required pam_faillock.so authsucc deny=3 unlock_time=604800 fail_interval=900 Note that any updates made to "/etc/pam.d/system-auth-ac" and "/etc/pam.d/password-auth-ac" will be overwritten by the "authconfig" program. The "authconfig" program should not be used.
- RMF Control
- AC-8
- Severity
- M
- CCI
- CCI-001384
- Version
- RHEL-06-000073
- Vuln IDs
-
- V-38593
- Rule IDs
-
- SV-50394r1_rule
Checks: C-46150r1_chk
To check if the system login banner is compliant, run the following command: $ cat /etc/issue If it does not display the required banner, this is a finding.
Fix: F-43540r1_fix
To configure the system login banner: Edit "/etc/issue". Replace the default text with a message compliant with the local site policy or a legal disclaimer. The DoD required text is either: "You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only. By using this IS (which includes any device attached to this IS), you consent to the following conditions: -The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations. -At any time, the USG may inspect and seize data stored on this IS. -Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose. -This IS includes security measures (e.g., authentication and access controls) to protect USG interests -- not for your personal benefit or privacy. -Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details." OR: "I've read & consent to terms in IS user agreem't."
- RMF Control
- AC-17
- Severity
- H
- CCI
- CCI-000068
- Version
- RHEL-06-000214
- Vuln IDs
-
- V-38594
- Rule IDs
-
- SV-50395r2_rule
Checks: C-46152r2_chk
To check that the "rsh" service is disabled in system boot configuration, run the following command: # chkconfig "rsh" --list Output should indicate the "rsh" service has either not been installed, or has been disabled, as shown in the example below: # chkconfig "rsh" --list rsh off OR error reading information on service rsh: No such file or directory If the service is running, this is a finding.
Fix: F-43542r3_fix
The "rsh" service, which is available with the "rsh-server" package and runs as a service through xinetd, should be disabled. The "rsh" service can be disabled with the following command: # chkconfig rsh off
- RMF Control
- IA-2
- Severity
- M
- CCI
- CCI-000765
- Version
- RHEL-06-000349
- Vuln IDs
-
- V-38595
- Rule IDs
-
- SV-50396r1_rule
Checks: C-46154r1_chk
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: SIPRNET systems Standalone systems Application accounts Temporary employee accounts, such as students or interns, who cannot easily receive a CAC or PIV Operational tactical locations that are not collocated with RAPIDS workstations to issue CAC or ALT 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. If non-exempt accounts are not using CAC authentication, this is a finding.
Fix: F-43544r1_fix
To enable smart card authentication, consult the documentation at: https://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Smart_Cards/enabling-smart-card-login.html
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000078
- Vuln IDs
-
- V-38596
- Rule IDs
-
- SV-50397r2_rule
Checks: C-46153r2_chk
The status of the "kernel.randomize_va_space" kernel parameter can be queried by running the following commands: $ sysctl kernel.randomize_va_space $ grep kernel.randomize_va_space /etc/sysctl.conf The output of the command should indicate a value of at least "1" (preferably "2"). 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43543r1_fix
To set the runtime status of the "kernel.randomize_va_space" kernel parameter, run the following command: # sysctl -w kernel.randomize_va_space=2 If this is not the system's default value, add the following line to "/etc/sysctl.conf": kernel.randomize_va_space = 2
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000079
- Vuln IDs
-
- V-38597
- Rule IDs
-
- SV-50398r2_rule
Checks: C-46155r3_chk
The status of the "kernel.exec-shield" kernel parameter can be queried by running the following command: $ sysctl kernel.exec-shield $ grep kernel.exec-shield /etc/sysctl.conf The output of the command should indicate a value of "1". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43545r1_fix
To set the runtime status of the "kernel.exec-shield" kernel parameter, run the following command: # sysctl -w kernel.exec-shield=1 If this is not the system's default value, add the following line to "/etc/sysctl.conf": kernel.exec-shield = 1
- RMF Control
- AC-17
- Severity
- H
- CCI
- CCI-000068
- Version
- RHEL-06-000216
- Vuln IDs
-
- V-38598
- Rule IDs
-
- SV-50399r2_rule
Checks: C-46156r3_chk
To check that the "rexec" service is disabled in system boot configuration, run the following command: # chkconfig "rexec" --list Output should indicate the "rexec" service has either not been installed, or has been disabled, as shown in the example below: # chkconfig "rexec" --list rexec off OR error reading information on service rexec: No such file or directory If the service is running, this is a finding.
Fix: F-43546r3_fix
The "rexec" service, which is available with the "rsh-server" package and runs as a service through xinetd, should be disabled. The "rexec" service can be disabled with the following command: # chkconfig rexec off
- RMF Control
- AC-8
- Severity
- M
- CCI
- CCI-000048
- Version
- RHEL-06-000348
- Vuln IDs
-
- V-38599
- Rule IDs
-
- SV-50400r2_rule
Checks: C-46174r1_chk
To verify this configuration, run the following command: grep "banner_file" /etc/vsftpd/vsftpd.conf The output should show the value of "banner_file" is set to "/etc/issue", an example of which is shown below. # grep "banner_file" /etc/vsftpd/vsftpd.conf banner_file=/etc/issue If it does not, this is a finding.
Fix: F-43564r3_fix
Edit the vsftpd configuration file, which resides at "/etc/vsftpd/vsftpd.conf" by default. Add or correct the following configuration options. banner_file=/etc/issue Restart the vsftpd daemon. # service vsftpd restart
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000080
- Vuln IDs
-
- V-38600
- Rule IDs
-
- SV-50401r1_rule
Checks: C-46157r1_chk
The status of the "net.ipv4.conf.default.send_redirects" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.default.send_redirects The output of the command should indicate a value of "0". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43547r1_fix
To set the runtime status of the "net.ipv4.conf.default.send_redirects" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.default.send_redirects=0 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.default.send_redirects = 0
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000081
- Vuln IDs
-
- V-38601
- Rule IDs
-
- SV-50402r1_rule
Checks: C-46159r1_chk
The status of the "net.ipv4.conf.all.send_redirects" kernel parameter can be queried by running the following command: $ sysctl net.ipv4.conf.all.send_redirects The output of the command should indicate a value of "0". 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 "/etc/sysctl.conf". If the correct value is not returned, this is a finding.
Fix: F-43548r1_fix
To set the runtime status of the "net.ipv4.conf.all.send_redirects" kernel parameter, run the following command: # sysctl -w net.ipv4.conf.all.send_redirects=0 If this is not the system's default value, add the following line to "/etc/sysctl.conf": net.ipv4.conf.all.send_redirects = 0
- RMF Control
- AC-17
- Severity
- H
- CCI
- CCI-001436
- Version
- RHEL-06-000218
- Vuln IDs
-
- V-38602
- Rule IDs
-
- SV-50403r2_rule
Checks: C-46158r3_chk
To check that the "rlogin" service is disabled in system boot configuration, run the following command: # chkconfig "rlogin" --list Output should indicate the "rlogin" service has either not been installed, or has been disabled, as shown in the example below: # chkconfig "rlogin" --list rlogin off OR error reading information on service rlogin: No such file or directory If the service is running, this is a finding.
Fix: F-43549r3_fix
The "rlogin" service, which is available with the "rsh-server" package and runs as a service through xinetd, should be disabled. The "rlogin" service can be disabled with the following command: # chkconfig rlogin off
- RMF Control
- CM-7
- Severity
- M
- CCI
- CCI-000381
- Version
- RHEL-06-000220
- Vuln IDs
-
- V-38603
- Rule IDs
-
- SV-50404r1_rule
Checks: C-46161r1_chk
Run the following command to determine if the "ypserv" package is installed: # rpm -q ypserv If the package is installed, this is a finding.
Fix: F-43551r1_fix
The "ypserv" package can be uninstalled with the following command: # yum erase ypserv
- RMF Control
- CM-7
- Severity
- M
- CCI
- CCI-000382
- Version
- RHEL-06-000221
- Vuln IDs
-
- V-38604
- Rule IDs
-
- SV-50405r2_rule
Checks: C-46162r2_chk
To check that the "ypbind" service is disabled in system boot configuration, run the following command: # chkconfig "ypbind" --list Output should indicate the "ypbind" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "ypbind" --list "ypbind" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "ypbind" is disabled through current runtime configuration: # service ypbind status If the service is disabled the command will return the following output: ypbind is stopped If the service is running, this is a finding.
Fix: F-43552r2_fix
The "ypbind" service, which allows the system to act as a client in a NIS or NIS+ domain, should be disabled. The "ypbind" service can be disabled with the following commands: # chkconfig ypbind off # service ypbind stop
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000224
- Vuln IDs
-
- V-38605
- Rule IDs
-
- SV-50406r2_rule
Checks: C-46163r1_chk
Run the following command to determine the current status of the "crond" service: # service crond status If the service is enabled, it should return the following: crond is running... If the service is not running, this is a finding.
Fix: F-43553r2_fix
The "crond" service is used to execute commands at preconfigured times. It is required by almost all systems to perform necessary maintenance tasks, such as notifying root of system activity. The "crond" service can be enabled with the following commands: # chkconfig crond on # service crond start
- RMF Control
- CM-7
- Severity
- M
- CCI
- CCI-000381
- Version
- RHEL-06-000222
- Vuln IDs
-
- V-38606
- Rule IDs
-
- SV-50407r1_rule
Checks: C-46164r1_chk
Run the following command to determine if the "tftp-server" package is installed: # rpm -q tftp-server If the package is installed, this is a finding.
Fix: F-43554r1_fix
The "tftp-server" package can be removed with the following command: # yum erase tftp-server
- RMF Control
- IA-2
- Severity
- H
- CCI
- CCI-000774
- Version
- RHEL-06-000227
- Vuln IDs
-
- V-38607
- Rule IDs
-
- SV-50408r1_rule
Checks: C-46165r1_chk
To check which SSH protocol version is allowed, run the following command: # grep Protocol /etc/ssh/sshd_config If configured properly, output should be Protocol 2 If it is not, this is a finding.
Fix: F-43555r1_fix
Only SSH protocol version 2 connections should be permitted. The default setting in "/etc/ssh/sshd_config" is correct, and can be verified by ensuring that the following line appears: Protocol 2
- RMF Control
- SC-10
- Severity
- L
- CCI
- CCI-001133
- Version
- RHEL-06-000230
- Vuln IDs
-
- V-38608
- Rule IDs
-
- SV-50409r1_rule
Checks: C-46167r1_chk
Run the following command to see what the timeout interval is: # grep ClientAliveInterval /etc/ssh/sshd_config If properly configured, the output should be: ClientAliveInterval 900 If it is not, this is a finding.
Fix: F-43556r1_fix
SSH allows administrators to set an idle timeout interval. After this interval has passed, the idle user will be automatically logged out. To set an idle timeout interval, edit the following line in "/etc/ssh/sshd_config" as follows: ClientAliveInterval [interval] The timeout [interval] is given in seconds. To have a timeout of 15 minutes, set [interval] to 900. If a shorter timeout has already been set for the login shell, that value will preempt any SSH setting made here. Keep in mind that some processes may stop SSH from correctly detecting that the user is idle.
- RMF Control
- AC-17
- Severity
- M
- CCI
- CCI-001436
- Version
- RHEL-06-000223
- Vuln IDs
-
- V-38609
- Rule IDs
-
- SV-50410r2_rule
Checks: C-46166r2_chk
To check that the "tftp" service is disabled in system boot configuration, run the following command: # chkconfig "tftp" --list Output should indicate the "tftp" service has either not been installed, or has been disabled, as shown in the example below: # chkconfig "tftp" --list tftp off OR error reading information on service tftp: No such file or directory If the service is running, this is a finding.
Fix: F-43557r4_fix
The "tftp" service should be disabled. The "tftp" service can be disabled with the following command: # chkconfig tftp off
- RMF Control
- MA-4
- Severity
- L
- CCI
- CCI-000879
- Version
- RHEL-06-000231
- Vuln IDs
-
- V-38610
- Rule IDs
-
- SV-50411r1_rule
Checks: C-46168r1_chk
To ensure the SSH idle timeout will occur when the "ClientAliveCountMax" is set, run the following command: # grep ClientAliveCountMax /etc/ssh/sshd_config If properly configured, output should be: ClientAliveCountMax 0 If it is not, this is a finding.
Fix: F-43558r1_fix
To ensure the SSH idle timeout occurs precisely when the "ClientAliveCountMax" is set, edit "/etc/ssh/sshd_config" as follows: ClientAliveCountMax 0
- RMF Control
- IA-2
- Severity
- M
- CCI
- CCI-000766
- Version
- RHEL-06-000234
- Vuln IDs
-
- V-38611
- Rule IDs
-
- SV-50412r1_rule
Checks: C-46169r1_chk
To determine how the SSH daemon's "IgnoreRhosts" option is set, run the following command: # grep -i IgnoreRhosts /etc/ssh/sshd_config If no line, a commented line, or a line indicating the value "yes" is returned, then the required value is set. If the required value is not set, this is a finding.
Fix: F-43559r1_fix
SSH can emulate the behavior of the obsolete rsh command in allowing users to enable insecure access to their accounts via ".rhosts" files. To ensure this behavior is disabled, add or correct the following line in "/etc/ssh/sshd_config": IgnoreRhosts yes
- RMF Control
- IA-2
- Severity
- M
- CCI
- CCI-000766
- Version
- RHEL-06-000236
- Vuln IDs
-
- V-38612
- Rule IDs
-
- SV-50413r1_rule
Checks: C-46170r1_chk
To determine how the SSH daemon's "HostbasedAuthentication" option is set, run the following command: # grep -i HostbasedAuthentication /etc/ssh/sshd_config If no line, a commented line, or a line indicating the value "no" is returned, then the required value is set. If the required value is not set, this is a finding.
Fix: F-43560r1_fix
SSH's cryptographic host-based authentication is more secure than ".rhosts" authentication, since hosts are cryptographically authenticated. However, it is not recommended that hosts unilaterally trust one another, even within an organization. To disable host-based authentication, add or correct the following line in "/etc/ssh/sshd_config": HostbasedAuthentication no
- RMF Control
- IA-2
- Severity
- M
- CCI
- CCI-000770
- Version
- RHEL-06-000237
- Vuln IDs
-
- V-38613
- Rule IDs
-
- SV-50414r1_rule
Checks: C-46171r1_chk
To determine how the SSH daemon's "PermitRootLogin" option is set, run the following command: # grep -i PermitRootLogin /etc/ssh/sshd_config If a line indicating "no" is returned, then the required value is set. If the required value is not set, this is a finding.
Fix: F-43561r1_fix
The root user should never be allowed to log in to a system directly over a network. To disable root login via SSH, add or correct the following line in "/etc/ssh/sshd_config": PermitRootLogin no
- RMF Control
- IA-2
- Severity
- H
- CCI
- CCI-000766
- Version
- RHEL-06-000239
- Vuln IDs
-
- V-38614
- Rule IDs
-
- SV-50415r1_rule
Checks: C-46172r1_chk
To determine how the SSH daemon's "PermitEmptyPasswords" option is set, run the following command: # grep -i PermitEmptyPasswords /etc/ssh/sshd_config If no line, a commented line, or a line indicating the value "no" is returned, then the required value is set. If the required value is not set, this is a finding.
Fix: F-43562r1_fix
To explicitly disallow remote login from accounts with empty passwords, add or correct the following line in "/etc/ssh/sshd_config": PermitEmptyPasswords no Any accounts with empty passwords should be disabled immediately, and PAM configuration should prevent users from being able to assign themselves empty passwords.
- RMF Control
- AC-8
- Severity
- M
- CCI
- CCI-000048
- Version
- RHEL-06-000240
- Vuln IDs
-
- V-38615
- Rule IDs
-
- SV-50416r1_rule
Checks: C-46173r1_chk
To determine how the SSH daemon's "Banner" option is set, run the following command: # grep -i Banner /etc/ssh/sshd_config If a line indicating /etc/issue is returned, then the required value is set. If the required value is not set, this is a finding.
Fix: F-43563r1_fix
To enable the warning banner and ensure it is consistent across the system, add or correct the following line in "/etc/ssh/sshd_config": Banner /etc/issue Another section contains information on how to create an appropriate system-wide warning banner.
- RMF Control
- AC-4
- Severity
- L
- CCI
- CCI-001414
- Version
- RHEL-06-000241
- Vuln IDs
-
- V-38616
- Rule IDs
-
- SV-50417r1_rule
Checks: C-46175r1_chk
To ensure users are not able to present environment daemons, run the following command: # grep PermitUserEnvironment /etc/ssh/sshd_config If properly configured, output should be: PermitUserEnvironment no If it is not, this is a finding.
Fix: F-43565r1_fix
To ensure users are not able to present environment options to the SSH daemon, add or correct the following line in "/etc/ssh/sshd_config": PermitUserEnvironment no
- RMF Control
- SC-13
- Severity
- M
- CCI
- CCI-001144
- Version
- RHEL-06-000243
- Vuln IDs
-
- V-38617
- Rule IDs
-
- SV-50418r1_rule
Checks: C-46176r1_chk
Only FIPS-approved ciphers should be used. To verify that only FIPS-approved ciphers are in use, run the following command: # grep Ciphers /etc/ssh/sshd_config The output should contain only those ciphers which are FIPS-approved, namely, the AES and 3DES ciphers. If that is not the case, this is a finding.
Fix: F-43566r1_fix
Limit the ciphers to those algorithms which are FIPS-approved. Counter (CTR) mode is also preferred over cipher-block chaining (CBC) mode. The following line in "/etc/ssh/sshd_config" demonstrates use of FIPS-approved ciphers: Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc The man page "sshd_config(5)" contains a list of supported ciphers.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000246
- Vuln IDs
-
- V-38618
- Rule IDs
-
- SV-50419r2_rule
Checks: C-46177r1_chk
To check that the "avahi-daemon" service is disabled in system boot configuration, run the following command: # chkconfig "avahi-daemon" --list Output should indicate the "avahi-daemon" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "avahi-daemon" --list "avahi-daemon" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "avahi-daemon" is disabled through current runtime configuration: # service avahi-daemon status If the service is disabled the command will return the following output: avahi-daemon is stopped If the service is running, this is a finding.
Fix: F-43567r2_fix
The "avahi-daemon" service can be disabled with the following commands: # chkconfig avahi-daemon off # service avahi-daemon stop
- RMF Control
- IA-5
- Severity
- M
- CCI
- CCI-000196
- Version
- RHEL-06-000347
- Vuln IDs
-
- V-38619
- Rule IDs
-
- SV-50420r1_rule
Checks: C-46179r1_chk
To check the system for the existence of any ".netrc" files, run the following command: # find /home -xdev -name .netrc If any .netrc files exist, this is a finding.
Fix: F-43569r1_fix
The ".netrc" files contain login information used to auto-login into FTP servers and reside in the user's home directory. These files may contain unencrypted passwords to remote FTP servers making them susceptible to access by unauthorized users and should not be used. Any ".netrc" files should be removed.
- RMF Control
- AU-8
- Severity
- M
- CCI
- CCI-000160
- Version
- RHEL-06-000247
- Vuln IDs
-
- V-38620
- Rule IDs
-
- SV-50421r1_rule
Checks: C-46178r1_chk
Run the following command to determine the current status of the "ntpd" service: # service ntpd status If the service is enabled, it should return the following: ntpd is running... If the service is not running, this is a finding.
Fix: F-43568r1_fix
The "ntpd" service can be enabled with the following command: # chkconfig ntpd on # service ntpd start
- RMF Control
- AU-8
- Severity
- M
- CCI
- CCI-000160
- Version
- RHEL-06-000248
- Vuln IDs
-
- V-38621
- Rule IDs
-
- SV-50422r1_rule
Checks: C-46180r1_chk
A remote NTP server should be configured for time synchronization. To verify one is configured, open the following file. /etc/ntp.conf In the file, there should be a section similar to the following: # --- OUR TIMESERVERS ----- server [ntpserver] If this is not the case, this is a finding.
Fix: F-43570r1_fix
To specify a remote NTP server for time synchronization, edit the file "/etc/ntp.conf". Add or correct the following lines, substituting the IP or hostname of a remote NTP server for ntpserver. server [ntpserver] This instructs the NTP software to contact that remote server to obtain time data.
- RMF Control
- CM-7
- Severity
- M
- CCI
- CCI-000382
- Version
- RHEL-06-000249
- Vuln IDs
-
- V-38622
- Rule IDs
-
- SV-50423r1_rule
Checks: C-46182r1_chk
Run the following command to ensure postfix accepts mail messages from only the local system: $ grep inet_interfaces /etc/postfix/main.cf If properly configured, the output should show only "localhost". If it does not, this is a finding.
Fix: F-43572r1_fix
Edit the file "/etc/postfix/main.cf" to ensure that only the following "inet_interfaces" line appears: inet_interfaces = localhost
- RMF Control
- SI-11
- Severity
- M
- CCI
- CCI-001314
- Version
- RHEL-06-000135
- Vuln IDs
-
- V-38623
- Rule IDs
-
- SV-50424r1_rule
Checks: C-46181r1_chk
The file permissions for all log files written by rsyslog should be set to 600, or more restrictive. These log files are determined by the second part of each Rule line in "/etc/rsyslog.conf" and typically all appear in "/var/log". For each log file [LOGFILE] referenced in "/etc/rsyslog.conf", run the following command to inspect the file's permissions: $ ls -l [LOGFILE] The permissions should be 600, or more restrictive. If the permissions are not correct, this is a finding.
Fix: F-43571r1_fix
The file permissions for all log files written by rsyslog should be set to 600, or more restrictive. These log files are determined by the second part of each Rule line in "/etc/rsyslog.conf" and typically all appear in "/var/log". For each log file [LOGFILE] referenced in "/etc/rsyslog.conf", run the following command to inspect the file's permissions: $ ls -l [LOGFILE] If the permissions are not 600 or more restrictive, run the following command to correct this: # chmod 0600 [LOGFILE]
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000138
- Vuln IDs
-
- V-38624
- Rule IDs
-
- SV-50425r1_rule
Checks: C-46183r1_chk
Run the following commands to determine the current status of the "logrotate" service: # grep logrotate /var/log/cron* If the logrotate service is not run on a daily basis by cron, this is a finding.
Fix: F-43573r1_fix
The "logrotate" service should be installed or reinstalled if it is not installed and operating properly, by running the following command: # yum reinstall logrotate
- RMF Control
- AC-17
- Severity
- M
- CCI
- CCI-001453
- Version
- RHEL-06-000252
- Vuln IDs
-
- V-38625
- Rule IDs
-
- SV-50426r1_rule
Checks: C-46184r1_chk
If the system does not use LDAP for authentication or account information, this is not applicable. To ensure LDAP is configured to use TLS for all transactions, run the following command: $ grep start_tls /etc/pam_ldap.conf If no lines are returned, this is a finding.
Fix: F-43574r1_fix
Configure LDAP to enforce TLS use. First, edit the file "/etc/pam_ldap.conf", and add or correct the following lines: ssl start_tls Then review the LDAP server and ensure TLS has been configured.
- RMF Control
- IA-2
- Severity
- M
- CCI
- CCI-000776
- Version
- RHEL-06-000253
- Vuln IDs
-
- V-38626
- Rule IDs
-
- SV-50427r1_rule
Checks: C-46185r1_chk
If the system does not use LDAP for authentication or account information, this is not applicable. To ensure TLS is configured with trust certificates, run the following command: # grep cert /etc/pam_ldap.conf If there is no output, or the lines are commented out, this is a finding.
Fix: F-43575r1_fix
Ensure a copy of the site's CA certificate has been placed in the file "/etc/pki/tls/CA/cacert.pem". Configure LDAP to enforce TLS use and to trust certificates signed by the site's CA. First, edit the file "/etc/pam_ldap.conf", and add or correct either of the following lines: tls_cacertdir /etc/pki/tls/CA or tls_cacertfile /etc/pki/tls/CA/cacert.pem Then review the LDAP server and ensure TLS has been configured.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000256
- Vuln IDs
-
- V-38627
- Rule IDs
-
- SV-50428r1_rule
Checks: C-46187r1_chk
To verify the "openldap-servers" package is not installed, run the following command: $ rpm -q openldap-servers The output should show the following. package openldap-servers is not installed If it does not, this is a finding.
Fix: F-43577r1_fix
The "openldap-servers" package should be removed if not in use. Is this machine the OpenLDAP server? If not, remove the package. # yum erase openldap-servers The openldap-servers RPM is not installed by default on RHEL6 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.
- RMF Control
- AU-3
- Severity
- M
- CCI
- CCI-001487
- Version
- RHEL-06-000145
- Vuln IDs
-
- V-38628
- Rule IDs
-
- SV-50429r2_rule
Checks: C-46186r1_chk
Run the following command to determine the current status of the "auditd" service: # service auditd status If the service is enabled, it should return the following: auditd is running... If the service is not running, this is a finding.
Fix: F-43576r2_fix
The "auditd" service is an essential userspace component of the Linux Auditing System, as it is responsible for writing audit records to disk. The "auditd" service can be enabled with the following commands: # chkconfig auditd on # service auditd start
- RMF Control
- AC-11
- Severity
- M
- CCI
- CCI-000057
- Version
- RHEL-06-000257
- Vuln IDs
-
- V-38629
- Rule IDs
-
- SV-50430r2_rule
Checks: C-46188r2_chk
To check the current idle time-out value, run the following command: $ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gnome-screensaver/idle_delay If properly configured, the output should be "15". If it is not, this is a finding.
Fix: F-43578r1_fix
Run the following command to set the idle time-out value for inactivity in the GNOME desktop to 15 minutes: # gconftool-2 \ --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type int \ --set /apps/gnome-screensaver/idle_delay 15
- RMF Control
- AC-11
- Severity
- M
- CCI
- CCI-000057
- Version
- RHEL-06-000258
- Vuln IDs
-
- V-38630
- Rule IDs
-
- SV-50431r2_rule
Checks: C-46189r2_chk
To check the screensaver mandatory use status, run the following command: $ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gnome-screensaver/idle_activation_enabled If properly configured, the output should be "true". If it is not, this is a finding.
Fix: F-43579r1_fix
Run the following command to activate the screensaver in the GNOME desktop after a period of inactivity: # gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type bool \ --set /apps/gnome-screensaver/idle_activation_enabled true
- RMF Control
- AC-17
- Severity
- M
- CCI
- CCI-000067
- Version
- RHEL-06-000148
- Vuln IDs
-
- V-38631
- Rule IDs
-
- SV-50432r2_rule
Checks: C-46190r1_chk
Run the following command to determine the current status of the "auditd" service: # service auditd status If the service is enabled, it should return the following: auditd is running... If the service is not running, this is a finding.
Fix: F-43580r2_fix
The "auditd" service is an essential userspace component of the Linux Auditing System, as it is responsible for writing audit records to disk. The "auditd" service can be enabled with the following commands: # chkconfig auditd on # service auditd start
- RMF Control
- AU-3
- Severity
- M
- CCI
- CCI-000130
- Version
- RHEL-06-000154
- Vuln IDs
-
- V-38632
- Rule IDs
-
- SV-50433r2_rule
Checks: C-46191r1_chk
Run the following command to determine the current status of the "auditd" service: # service auditd status If the service is enabled, it should return the following: auditd is running... If the service is not running, this is a finding.
Fix: F-43581r2_fix
The "auditd" service is an essential userspace component of the Linux Auditing System, as it is responsible for writing audit records to disk. The "auditd" service can be enabled with the following commands: # chkconfig auditd on # service auditd start
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000160
- Vuln IDs
-
- V-38633
- Rule IDs
-
- SV-50434r1_rule
Checks: C-46192r1_chk
Inspect "/etc/audit/auditd.conf" and locate the following line to determine how much data the system will retain in each audit log file: "# grep max_log_file /etc/audit/auditd.conf" max_log_file = 6 If the system audit data threshold hasn't been properly set up, this is a finding.
Fix: F-43582r1_fix
Determine the amount of audit data (in megabytes) which should be retained in each log file. Edit the file "/etc/audit/auditd.conf". Add or modify the following line, substituting the correct value for [STOREMB]: max_log_file = [STOREMB] Set the value to "6" (MB) or higher for general-purpose systems. Larger values, of course, support retention of even more audit data.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000161
- Vuln IDs
-
- V-38634
- Rule IDs
-
- SV-50435r1_rule
Checks: C-46193r1_chk
Inspect "/etc/audit/auditd.conf" and locate the following line to determine if the system is configured to rotate logs when they reach their maximum size: "# grep max_log_file_action /etc/audit/auditd.conf" max_log_file_action "rotate" If the system has not been properly set up to rotate audit logs, this is a finding.
Fix: F-43583r1_fix
The default action to take when the logs reach their maximum size is to rotate the log files, discarding the oldest one. To configure the action taken by "auditd", add or correct the line in "/etc/audit/auditd.conf": max_log_file_action = [ACTION] Possible values for [ACTION] are described in the "auditd.conf" man page. These include: "ignore" "syslog" "suspend" "rotate" "keep_logs" Set the "[ACTION]" to "rotate" to ensure log rotation occurs. This is the default. The setting is case-insensitive.
- RMF Control
- AU-12
- Severity
- L
- CCI
- CCI-000169
- Version
- RHEL-06-000165
- Vuln IDs
-
- V-38635
- Rule IDs
-
- SV-50436r2_rule
Checks: C-46194r1_chk
To determine if the system is configured to audit calls to the "adjtimex" system call, run the following command: # auditctl -l | grep syscall | grep adjtimex If the system is configured to audit this activity, it will return a line. If the system is not configured to audit time changes, this is a finding.
Fix: F-43584r2_fix
On a 32-bit system, add the following to "/etc/audit/audit.rules": # audit_time_rules -a always,exit -F arch=b32 -S adjtimex -k audit_time_rules On a 64-bit system, add the following to "/etc/audit/audit.rules": # audit_time_rules -a always,exit -F arch=b64 -S adjtimex -k audit_time_rules The -k option allows for the specification of a key in string form that can be used for better reporting capability through ausearch and aureport. Multiple system calls can be defined on the same line to save space if desired, but is not required. See an example of multiple combined syscalls: -a always,exit -F arch=b64 -S adjtimex -S settimeofday -S clock_settime -k audit_time_rules
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000159
- Vuln IDs
-
- V-38636
- Rule IDs
-
- SV-50437r1_rule
Checks: C-46195r1_chk
Inspect "/etc/audit/auditd.conf" and locate the following line to determine how many logs the system is configured to retain after rotation: "# grep num_logs /etc/audit/auditd.conf" num_logs = 5 If the overall system log file(s) retention hasn't been properly set up, this is a finding.
Fix: F-43585r1_fix
Determine how many log files "auditd" should retain when it rotates logs. Edit the file "/etc/audit/auditd.conf". Add or modify the following line, substituting [NUMLOGS] with the correct value: num_logs = [NUMLOGS] Set the value to 5 for general-purpose systems. Note that values less than 2 result in no log rotation.
- RMF Control
- AU-9
- Severity
- M
- CCI
- CCI-001496
- Version
- RHEL-06-000281
- Vuln IDs
-
- V-38637
- Rule IDs
-
- SV-50438r2_rule
Checks: C-46196r3_chk
The following command will list which audit files on the system have file hashes different from what is expected by the RPM database. # rpm -V audit | awk '$1 ~ /..5/ && $2 != "c"' If there is output, this is a finding.
Fix: F-43586r1_fix
The RPM package management system can check the hashes of audit system package files. Run the following command to list which audit files on the system have hashes that differ from what is expected by the RPM database: # rpm -V audit | grep '^..5' A "c" in the second column indicates that a file is a configuration file, which may appropriately be expected to change. If the file that has changed was not expected to then refresh from distribution media or online repositories. rpm -Uvh [affected_package] OR yum reinstall [affected_package]
- RMF Control
- AC-11
- Severity
- M
- CCI
- CCI-000057
- Version
- RHEL-06-000259
- Vuln IDs
-
- V-38638
- Rule IDs
-
- SV-50439r2_rule
Checks: C-46198r2_chk
To check the status of the idle screen lock activation, run the following command: $ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gnome-screensaver/lock_enabled If properly configured, the output should be "true". If it is not, this is a finding.
Fix: F-43587r1_fix
Run the following command to activate locking of the screensaver in the GNOME desktop when it is activated: # gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type bool \ --set /apps/gnome-screensaver/lock_enabled true
- RMF Control
- AC-11
- Severity
- L
- CCI
- CCI-000060
- Version
- RHEL-06-000260
- Vuln IDs
-
- V-38639
- Rule IDs
-
- SV-50440r2_rule
Checks: C-46199r3_chk
To ensure the screensaver is configured to be blank, run the following command: $ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gnome-screensaver/mode If properly configured, the output should be "blank-only". If it is not, this is a finding.
Fix: F-43588r2_fix
Run the following command to set the screensaver mode in the GNOME desktop to a blank screen: # gconftool-2 \ --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type string \ --set /apps/gnome-screensaver/mode blank-only
- RMF Control
- CM-7
- Severity
- L
- CCI
- CCI-000382
- Version
- RHEL-06-000261
- Vuln IDs
-
- V-38640
- Rule IDs
-
- SV-50441r2_rule
Checks: C-46200r1_chk
To check that the "abrtd" service is disabled in system boot configuration, run the following command: # chkconfig "abrtd" --list Output should indicate the "abrtd" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "abrtd" --list "abrtd" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "abrtd" is disabled through current runtime configuration: # service abrtd status If the service is disabled the command will return the following output: abrtd is stopped If the service is running, this is a finding.
Fix: F-43589r2_fix
The Automatic Bug Reporting Tool ("abrtd") daemon collects and reports crash data when an application crash is detected. Using a variety of plugins, abrtd can email crash reports to system administrators, log crash reports to files, or forward crash reports to a centralized issue tracking system such as RHTSupport. The "abrtd" service can be disabled with the following commands: # chkconfig abrtd off # service abrtd stop
- RMF Control
- CM-7
- Severity
- L
- CCI
- CCI-000382
- Version
- RHEL-06-000262
- Vuln IDs
-
- V-38641
- Rule IDs
-
- SV-50442r2_rule
Checks: C-46201r2_chk
If the system uses the "atd" service, this is not applicable. To check that the "atd" service is disabled in system boot configuration, run the following command: # chkconfig "atd" --list Output should indicate the "atd" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "atd" --list "atd" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "atd" is disabled through current runtime configuration: # service atd status If the service is disabled the command will return the following output: atd is stopped If the service is running, this is a finding.
Fix: F-43590r2_fix
The "at" and "batch" commands can be used to schedule tasks that are meant to be executed only once. This allows delayed execution in a manner similar to cron, except that it is not recurring. The daemon "atd" keeps track of tasks scheduled via "at" and "batch", and executes them at the specified time. The "atd" service can be disabled with the following commands: # chkconfig atd off # service atd stop
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000346
- Vuln IDs
-
- V-38642
- Rule IDs
-
- SV-50443r1_rule
Checks: C-46203r1_chk
To check the value of the "umask", run the following command: $ grep umask /etc/init.d/functions The output should show either "022" or "027". If it does not, this is a finding.
Fix: F-43592r1_fix
The file "/etc/init.d/functions" includes initialization parameters for most or all daemons started at boot time. The default umask of 022 prevents creation of group- or world-writable files. To set the default umask for daemons, edit the following line, inserting 022 or 027 for [UMASK] appropriately: umask [UMASK] Setting the umask to too restrictive a setting can cause serious errors at runtime. Many daemons on the system already individually restrict themselves to a umask of 077 in their own init scripts.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000282
- Vuln IDs
-
- V-38643
- Rule IDs
-
- SV-50444r2_rule
Checks: C-46202r2_chk
To find world-writable files, run the following command for each local partition [PART]: # find [PART] -xdev -type f -perm -002 If there is output, this is a finding.
Fix: F-43591r1_fix
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.
- RMF Control
- CM-7
- Severity
- L
- CCI
- CCI-000382
- Version
- RHEL-06-000265
- Vuln IDs
-
- V-38644
- Rule IDs
-
- SV-50445r2_rule
Checks: C-46204r1_chk
To check that the "ntpdate" service is disabled in system boot configuration, run the following command: # chkconfig "ntpdate" --list Output should indicate the "ntpdate" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "ntpdate" --list "ntpdate" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "ntpdate" is disabled through current runtime configuration: # service ntpdate status If the service is disabled the command will return the following output: ntpdate is stopped If the service is running, this is a finding.
Fix: F-43593r2_fix
The ntpdate service sets the local hardware clock by polling NTP servers when the system boots. It synchronizes to the NTP servers listed in "/etc/ntp/step-tickers" or "/etc/ntp.conf" and then sets the local hardware clock to the newly synchronized system time. The "ntpdate" service can be disabled with the following commands: # chkconfig ntpdate off # service ntpdate stop
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000345
- Vuln IDs
-
- V-38645
- Rule IDs
-
- SV-50446r1_rule
Checks: C-46205r1_chk
Verify the "umask" setting is configured correctly in the "/etc/login.defs" file by running the following command: # grep -i "umask" /etc/login.defs All output must show the value of "umask" set to 077, as shown in the below: # grep -i "umask" /etc/login.defs UMASK 077 If the above command returns no output, or if the umask is configured incorrectly, this is a finding.
Fix: F-43594r1_fix
To ensure the default umask controlled by "/etc/login.defs" is set properly, add or correct the "umask" setting in "/etc/login.defs" to read as follows: UMASK 077
- RMF Control
- CM-7
- Severity
- L
- CCI
- CCI-000382
- Version
- RHEL-06-000266
- Vuln IDs
-
- V-38646
- Rule IDs
-
- SV-50447r2_rule
Checks: C-46206r2_chk
To check that the "oddjobd" service is disabled in system boot configuration, run the following command: # chkconfig "oddjobd" --list Output should indicate the "oddjobd" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "oddjobd" --list "oddjobd" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "oddjobd" is disabled through current runtime configuration: # service oddjobd status If the service is disabled the command will return the following output: oddjobd is stopped If the service is running, this is a finding.
Fix: F-43595r2_fix
The "oddjobd" service exists to provide an interface and access control mechanism through which specified privileged tasks can run tasks for unprivileged client applications. Communication with "oddjobd" is through the system message bus. The "oddjobd" service can be disabled with the following commands: # chkconfig oddjobd off # service oddjobd stop
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000344
- Vuln IDs
-
- V-38647
- Rule IDs
-
- SV-50448r1_rule
Checks: C-46207r1_chk
Verify the "umask" setting is configured correctly in the "/etc/profile" file by running the following command: # grep "umask" /etc/profile All output must show the value of "umask" set to 077, as shown in the below: # grep "umask" /etc/profile umask 077 If the above command returns no output, or if the umask is configured incorrectly, this is a finding.
Fix: F-43596r1_fix
To ensure the default umask controlled by "/etc/profile" is set properly, add or correct the "umask" setting in "/etc/profile" to read as follows: umask 077
- RMF Control
- CM-7
- Severity
- L
- CCI
- CCI-000382
- Version
- RHEL-06-000267
- Vuln IDs
-
- V-38648
- Rule IDs
-
- SV-50449r2_rule
Checks: C-46208r2_chk
To check that the "qpidd" service is disabled in system boot configuration, run the following command: # chkconfig "qpidd" --list Output should indicate the "qpidd" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "qpidd" --list "qpidd" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "qpidd" is disabled through current runtime configuration: # service qpidd status If the service is disabled the command will return the following output: qpidd is stopped If the service is running, this is a finding.
Fix: F-43597r2_fix
The "qpidd" service provides high speed, secure, guaranteed delivery services. It is an implementation of the Advanced Message Queuing Protocol. By default the qpidd service will bind to port 5672 and listen for connection attempts. The "qpidd" service can be disabled with the following commands: # chkconfig qpidd off # service qpidd stop
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000343
- Vuln IDs
-
- V-38649
- Rule IDs
-
- SV-50450r1_rule
Checks: C-46209r1_chk
Verify the "umask" setting is configured correctly in the "/etc/csh.cshrc" file by running the following command: # grep "umask" /etc/csh.cshrc All output must show the value of "umask" set to 077, as shown in the below: # grep "umask" /etc/csh.cshrc umask 077 If the above command returns no output, or if the umask is configured incorrectly, this is a finding.
Fix: F-43598r1_fix
To ensure the default umask for users of the C shell is set properly, add or correct the "umask" setting in "/etc/csh.cshrc" to read as follows: umask 077
- RMF Control
- CM-7
- Severity
- L
- CCI
- CCI-000382
- Version
- RHEL-06-000268
- Vuln IDs
-
- V-38650
- Rule IDs
-
- SV-50451r2_rule
Checks: C-46210r1_chk
To check that the "rdisc" service is disabled in system boot configuration, run the following command: # chkconfig "rdisc" --list Output should indicate the "rdisc" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "rdisc" --list "rdisc" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "rdisc" is disabled through current runtime configuration: # service rdisc status If the service is disabled the command will return the following output: rdisc is stopped If the service is running, this is a finding.
Fix: F-43599r2_fix
The "rdisc" service implements the client side of the ICMP Internet Router Discovery Protocol (IRDP), which allows discovery of routers on the local subnet. If a router is discovered then the local routing table is updated with a corresponding default route. By default this daemon is disabled. The "rdisc" service can be disabled with the following commands: # chkconfig rdisc off # service rdisc stop
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000342
- Vuln IDs
-
- V-38651
- Rule IDs
-
- SV-50452r1_rule
Checks: C-46211r1_chk
Verify the "umask" setting is configured correctly in the "/etc/bashrc" file by running the following command: # grep "umask" /etc/bashrc All output must show the value of "umask" set to 077, as shown below: # grep "umask" /etc/bashrc umask 077 umask 077 If the above command returns no output, or if the umask is configured incorrectly, this is a finding.
Fix: F-43600r1_fix
To ensure the default umask for users of the Bash shell is set properly, add or correct the "umask" setting in "/etc/bashrc" to read as follows: umask 077
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000269
- Vuln IDs
-
- V-38652
- Rule IDs
-
- SV-50453r2_rule
Checks: C-46212r2_chk
To verify the "nodev" option is configured for all NFS mounts, run the following command: $ mount | grep "nfs " All NFS mounts should show the "nodev" setting in parentheses, along with other mount options. If the setting does not show, this is a finding.
Fix: F-43601r1_fix
Add the "nodev" option to the fourth column of "/etc/fstab" for the line which controls mounting of any NFS mounts.
- RMF Control
- CM-6
- Severity
- H
- CCI
- CCI-000366
- Version
- RHEL-06-000341
- Vuln IDs
-
- V-38653
- Rule IDs
-
- SV-50454r1_rule
Checks: C-46213r1_chk
To ensure the default password is not set, run the following command: # grep -v "^#" /etc/snmp/snmpd.conf| grep public There should be no output. If there is output, this is a finding.
Fix: F-43602r1_fix
Edit "/etc/snmp/snmpd.conf", remove default community string "public". Upon doing that, restart the SNMP service: # service snmpd restart
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000270
- Vuln IDs
-
- V-38654
- Rule IDs
-
- SV-50455r2_rule
Checks: C-46214r3_chk
To verify the "nosuid" option is configured for all NFS mounts, run the following command: $ mount | grep nfs All NFS mounts should show the "nosuid" setting in parentheses, along with other mount options. If the setting does not show, this is a finding.
Fix: F-43603r1_fix
Add the "nosuid" option to the fourth column of "/etc/fstab" for the line which controls mounting of any NFS mounts.
- RMF Control
- AC-19
- Severity
- L
- CCI
- CCI-000087
- Version
- RHEL-06-000271
- Vuln IDs
-
- V-38655
- Rule IDs
-
- SV-50456r1_rule
Checks: C-46216r1_chk
To verify that binaries cannot be directly executed from removable media, run the following command: # grep noexec /etc/fstab The output should show "noexec" in use. If it does not, this is a finding.
Fix: F-43605r1_fix
The "noexec" 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 "noexec" 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 "noexec" option to the fourth column of "/etc/fstab" for the line which controls mounting of any removable media partitions.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000272
- Vuln IDs
-
- V-38656
- Rule IDs
-
- SV-50457r1_rule
Checks: C-46217r1_chk
To verify that Samba clients running smbclient must use packet signing, run the following command: # grep signing /etc/samba/smb.conf The output should show: client signing = mandatory If it is not, this is a finding.
Fix: F-43606r1_fix
To require samba clients running "smbclient" to use packet signing, add the following to the "[global]" section of the Samba configuration file in "/etc/samba/smb.conf": client signing = mandatory Requiring samba clients such as "smbclient" to use packet signing ensures they can only communicate with servers that support packet signing.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000273
- Vuln IDs
-
- V-38657
- Rule IDs
-
- SV-50458r2_rule
Checks: C-46218r4_chk
If Samba is not in use, this is not applicable. To verify that Samba clients using mount.cifs must use packet signing, run the following command: # grep sec /etc/fstab /etc/mtab The output should show either "krb5i" or "ntlmv2i" in use. If it does not, this is a finding.
Fix: F-43607r1_fix
Require packet signing of clients who mount Samba shares using the "mount.cifs" program (e.g., those who specify shares in "/etc/fstab"). To do so, ensure signing options (either "sec=krb5i" or "sec=ntlmv2i") are used. See the "mount.cifs(8)" man page for more information. A Samba client should only communicate with servers who can support SMB packet signing.
- RMF Control
- IA-5
- Severity
- M
- CCI
- CCI-000200
- Version
- RHEL-06-000274
- Vuln IDs
-
- V-38658
- Rule IDs
-
- SV-50459r1_rule
Checks: C-46219r1_chk
To verify the password reuse setting is compliant, run the following command: $ grep remember /etc/pam.d/system-auth The output should show the following at the end of the line: remember=24 If it does not, this is a finding.
Fix: F-43608r1_fix
Do not allow users to reuse recent passwords. This can be accomplished by using the "remember" option for the "pam_unix" PAM module. In the file "/etc/pam.d/system-auth", append "remember=24" to the line which refers to the "pam_unix.so" module, as shown: password sufficient pam_unix.so [existing_options] remember=24 The DoD requirement is 24 passwords.
- RMF Control
- MP-4
- Severity
- L
- CCI
- CCI-001019
- Version
- RHEL-06-000275
- Vuln IDs
-
- V-38659
- Rule IDs
-
- SV-50460r1_rule
Checks: C-46220r1_chk
Determine if encryption must be used to protect data on the system. If encryption must be used and is not employed, this is a finding.
Fix: F-43609r1_fix
Red Hat Enterprise Linux 6 natively supports partition encryption through the Linux Unified Key Setup-on-disk-format (LUKS) technology. The easiest way to encrypt a partition is during installation time. For manual installations, select the "Encrypt" checkbox during partition creation to encrypt the partition. When this option is selected the system will prompt for a passphrase to use in decrypting the partition. The passphrase will subsequently need to be entered manually every time the system boots. For automated/unattended installations, it is possible to use Kickstart by adding the "--encrypted" and "--passphrase=" options to the definition of each partition to be encrypted. For example, the following line would encrypt the root partition: part / --fstype=ext3 --size=100 --onpart=hda1 --encrypted --passphrase=[PASSPHRASE] Any [PASSPHRASE] is stored in the Kickstart in plaintext, and the Kickstart must then be protected accordingly. Omitting the "--passphrase=" option from the partition definition will cause the installer to pause and interactively ask for the passphrase during installation. Detailed information on encrypting partitions using LUKS can be found on the Red Had Documentation web site: https://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/sect-Security_Guide-LUKS_Disk_Encryption.html
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000340
- Vuln IDs
-
- V-38660
- Rule IDs
-
- SV-50461r1_rule
Checks: C-46215r1_chk
To ensure only SNMPv3 or newer is used, run the following command: # grep 'v1\|v2c\|com2sec' /etc/snmp/snmpd.conf | grep -v '^#' There should be no output. If there is output, this is a finding.
Fix: F-43604r1_fix
Edit "/etc/snmp/snmpd.conf", removing any references to "v1", "v2c", or "com2sec". Upon doing that, restart the SNMP service: # service snmpd restart
- RMF Control
- SC-28
- Severity
- L
- CCI
- CCI-001199
- Version
- RHEL-06-000276
- Vuln IDs
-
- V-38661
- Rule IDs
-
- SV-50462r1_rule
Checks: C-46221r1_chk
Determine if encryption must be used to protect data on the system. If encryption must be used and is not employed, this is a finding.
Fix: F-43610r1_fix
Red Hat Enterprise Linux 6 natively supports partition encryption through the Linux Unified Key Setup-on-disk-format (LUKS) technology. The easiest way to encrypt a partition is during installation time. For manual installations, select the "Encrypt" checkbox during partition creation to encrypt the partition. When this option is selected the system will prompt for a passphrase to use in decrypting the partition. The passphrase will subsequently need to be entered manually every time the system boots. For automated/unattended installations, it is possible to use Kickstart by adding the "--encrypted" and "--passphrase=" options to the definition of each partition to be encrypted. For example, the following line would encrypt the root partition: part / --fstype=ext3 --size=100 --onpart=hda1 --encrypted --passphrase=[PASSPHRASE] Any [PASSPHRASE] is stored in the Kickstart in plaintext, and the Kickstart must then be protected accordingly. Omitting the "--passphrase=" option from the partition definition will cause the installer to pause and interactively ask for the passphrase during installation. Detailed information on encrypting partitions using LUKS can be found on the Red Had Documentation web site: https://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/sect-Security_Guide-LUKS_Disk_Encryption.html
- RMF Control
- SC-28
- Severity
- L
- CCI
- CCI-001200
- Version
- RHEL-06-000277
- Vuln IDs
-
- V-38662
- Rule IDs
-
- SV-50463r1_rule
Checks: C-46222r1_chk
Determine if encryption must be used to protect data on the system. If encryption must be used and is not employed, this is a finding.
Fix: F-43611r1_fix
Red Hat Enterprise Linux 6 natively supports partition encryption through the Linux Unified Key Setup-on-disk-format (LUKS) technology. The easiest way to encrypt a partition is during installation time. For manual installations, select the "Encrypt" checkbox during partition creation to encrypt the partition. When this option is selected the system will prompt for a passphrase to use in decrypting the partition. The passphrase will subsequently need to be entered manually every time the system boots. For automated/unattended installations, it is possible to use Kickstart by adding the "--encrypted" and "--passphrase=" options to the definition of each partition to be encrypted. For example, the following line would encrypt the root partition: part / --fstype=ext3 --size=100 --onpart=hda1 --encrypted --passphrase=[PASSPHRASE] Any [PASSPHRASE] is stored in the Kickstart in plaintext, and the Kickstart must then be protected accordingly. Omitting the "--passphrase=" option from the partition definition will cause the installer to pause and interactively ask for the passphrase during installation. Detailed information on encrypting partitions using LUKS can be found on the Red Had Documentation web site: https://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/sect-Security_Guide-LUKS_Disk_Encryption.html
- RMF Control
- AU-9
- Severity
- M
- CCI
- CCI-001493
- Version
- RHEL-06-000278
- Vuln IDs
-
- V-38663
- Rule IDs
-
- SV-50464r1_rule
Checks: C-46223r1_chk
The following command will list which audit files on the system have permissions different from what is expected by the RPM database: # rpm -V audit | grep '^.M' If there is any output, for each file or directory found, compare the RPM-expected permissions with the permissions on the file or directory: # rpm -q --queryformat "[%{FILENAMES} %{FILEMODES:perms}\n]" audit | grep [filename] # ls -lL [filename] If the existing permissions are more permissive than those expected by RPM, this is a finding.
Fix: F-43612r1_fix
The RPM package management system can restore file access permissions of the audit package files and directories. The following command will update audit files with permissions different from what is expected by the RPM database: # rpm --setperms audit
- RMF Control
- AU-9
- Severity
- M
- CCI
- CCI-001494
- Version
- RHEL-06-000279
- Vuln IDs
-
- V-38664
- Rule IDs
-
- SV-50465r1_rule
Checks: C-46224r1_chk
The following command will list which audit files on the system have ownership different from what is expected by the RPM database: # rpm -V audit | grep '^.....U' If there is output, this is a finding.
Fix: F-43613r1_fix
The RPM package management system can restore file ownership of the audit package files and directories. The following command will update audit files with ownership different from what is expected by the RPM database: # rpm --setugids audit
- RMF Control
- AU-9
- Severity
- M
- CCI
- CCI-001495
- Version
- RHEL-06-000280
- Vuln IDs
-
- V-38665
- Rule IDs
-
- SV-50466r1_rule
Checks: C-46225r1_chk
The following command will list which audit files on the system have group-ownership different from what is expected by the RPM database: # rpm -V audit | grep '^......G' If there is output, this is a finding.
Fix: F-43614r1_fix
The RPM package management system can restore file group-ownership of the audit package files and directories. The following command will update audit files with group-ownership different from what is expected by the RPM database: # rpm --setugids audit
- RMF Control
- SI-3
- Severity
- H
- CCI
- CCI-001668
- Version
- RHEL-06-000284
- Vuln IDs
-
- V-38666
- Rule IDs
-
- SV-50467r2_rule
Checks: C-46226r2_chk
Inspect the system for a cron job or system service which executes a virus scanning tool regularly. To verify the McAfee VSEL system service is operational, run the following command: # /etc/init.d/nails status To check on the age of uvscan virus definition files, run the following command: # cd /opt/NAI/LinuxShield/engine/dat # ls -la avvscan.dat avvnames.dat avvclean.dat If virus scanning software does not run continuously, or at least daily, or has signatures that are out of date, this is a finding.
Fix: F-43615r2_fix
Install virus scanning software, which uses signatures to search for the presence of viruses on the filesystem. The McAfee VirusScan Enterprise for Linux virus scanning tool is provided for DoD systems. Ensure virus definition files are no older than 7 days, or their last release. Configure the virus scanning software to perform scans dynamically on all accessed files. If this is not possible, configure the system to scan all altered files on the system on a daily basis. If the system processes inbound SMTP mail, configure the virus scanner to scan all received mail.
- RMF Control
- SI-4
- Severity
- M
- CCI
- CCI-001263
- Version
- RHEL-06-000285
- Vuln IDs
-
- V-38667
- Rule IDs
-
- SV-50468r2_rule
Checks: C-46227r1_chk
Inspect the system to determine if intrusion detection software has been installed. Verify the intrusion detection software is active. If no host-based intrusion detection tools are installed, this is a finding.
Fix: F-43616r2_fix
The base Red Hat platform already includes a sophisticated auditing system that can detect intruder activity, as well as SELinux, which provides host-based intrusion prevention capabilities by confining privileged programs and user sessions which may become compromised. In DoD environments, supplemental intrusion detection tools, such as, the McAfee Host-based Security System, are available to integrate with existing infrastructure. When these supplemental tools interfere with the proper functioning of SELinux, SELinux takes precedence.
- RMF Control
- CM-6
- Severity
- H
- CCI
- CCI-000366
- Version
- RHEL-06-000286
- Vuln IDs
-
- V-38668
- Rule IDs
-
- SV-50469r1_rule
Checks: C-46228r1_chk
Determine what actions the system takes when the Ctrl-Alt-Delete key sequence is pressed, run the following command: # cat `grep -l control-alt-delete /etc/init/*` Examine all lines following the "start on control-alt-delete" line in any files found. By default, the system uses "/etc/init/control-alt-delete.conf" to reboot the system with the following command when the Ctrl-Alt-Delete key sequence is pressed: exec /sbin/shutdown -r now "Control-Alt-Delete pressed" If the system is configured to run any shutdown command, this is a finding.
Fix: F-43617r1_fix
Configure the system to log a message instead of rebooting the system by altering the "shutdown" line in "/etc/init/control-alt-delete.conf" to read as follows: exec /usr/bin/logger -p security.info "Ctrl-Alt-Delete pressed"
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000287
- Vuln IDs
-
- V-38669
- Rule IDs
-
- SV-50470r1_rule
Checks: C-46230r1_chk
Run the following command to determine the current status of the "postfix" service: # service postfix status If the service is enabled, it should return the following: postfix is running... If the service is not enabled, this is a finding.
Fix: F-43618r1_fix
The Postfix mail transfer agent is used for local mail delivery within the system. The default configuration only listens for connections to the default SMTP port (port 25) on the loopback interface (127.0.0.1). It is recommended to leave this service enabled for local mail delivery. The "postfix" service can be enabled with the following command: # chkconfig postfix on # service postfix start
- RMF Control
- SI-7
- Severity
- M
- CCI
- CCI-001297
- Version
- RHEL-06-000306
- Vuln IDs
-
- V-38670
- Rule IDs
-
- SV-50471r1_rule
Checks: C-46229r1_chk
To determine that periodic AIDE execution has been scheduled, run the following command: # grep aide /etc/crontab If there is no output, this is a finding.
Fix: F-43619r1_fix
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 /etc/crontab: 05 4 * * * root /usr/sbin/aide --check AIDE can be executed periodically through other means; this is merely one example.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000288
- Vuln IDs
-
- V-38671
- Rule IDs
-
- SV-50472r1_rule
Checks: C-46231r1_chk
Run the following command to determine if the "sendmail" package is installed: # rpm -q sendmail If the package is installed, this is a finding.
Fix: F-43620r1_fix
Sendmail is not the default mail transfer agent and is not installed by default. The "sendmail" package can be removed with the following command: # yum erase sendmail
- RMF Control
- CM-7
- Severity
- L
- CCI
- CCI-000382
- Version
- RHEL-06-000289
- Vuln IDs
-
- V-38672
- Rule IDs
-
- SV-50473r2_rule
Checks: C-46233r1_chk
To check that the "netconsole" service is disabled in system boot configuration, run the following command: # chkconfig "netconsole" --list Output should indicate the "netconsole" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "netconsole" --list "netconsole" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "netconsole" is disabled through current runtime configuration: # service netconsole status If the service is disabled the command will return the following output: netconsole is stopped If the service is running, this is a finding.
Fix: F-43622r2_fix
The "netconsole" service is responsible for loading the netconsole kernel module, which logs kernel printk messages over UDP to a syslog server. This allows debugging of problems where disk logging fails and serial consoles are impractical. The "netconsole" service can be disabled with the following commands: # chkconfig netconsole off # service netconsole stop
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-001589
- Version
- RHEL-06-000307
- Vuln IDs
-
- V-38673
- Rule IDs
-
- SV-50474r1_rule
Checks: C-46232r1_chk
To determine that periodic AIDE execution has been scheduled, run the following command: # grep aide /etc/crontab If there is no output, this is a finding.
Fix: F-43621r1_fix
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 /etc/crontab: 05 4 * * * root /usr/sbin/aide --check AIDE can be executed periodically through other means; this is merely one example.
- RMF Control
- AC-17
- Severity
- M
- CCI
- CCI-001436
- Version
- RHEL-06-000290
- Vuln IDs
-
- V-38674
- Rule IDs
-
- SV-50475r1_rule
Checks: C-46234r1_chk
To verify the default runlevel is 3, run the following command: # grep initdefault /etc/inittab The output should show the following: id:3:initdefault: If it does not, this is a finding.
Fix: F-43623r1_fix
Setting the system's runlevel to 3 will prevent automatic startup of the X server. To do so, ensure the following line in "/etc/inittab" features a "3" as shown: id:3:initdefault:
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000308
- Vuln IDs
-
- V-38675
- Rule IDs
-
- SV-50476r1_rule
Checks: C-46235r1_chk
To verify that core dumps are disabled for all users, run the following command: $ grep core /etc/security/limits.conf The output should be: * hard core 0 If it is not, this is a finding.
Fix: F-43624r1_fix
To disable core dumps for all users, add the following line to "/etc/security/limits.conf": * hard core 0
- RMF Control
- Severity
- L
- CCI
- Version
- RHEL-06-000291
- Vuln IDs
-
- V-38676
- Rule IDs
-
- SV-50477r1_rule
Checks: C-46236r1_chk
To ensure the X Windows package group is removed, run the following command: $ rpm -qi xorg-x11-server-common The output should be: package xorg-x11-server-common is not installed If it is not, this is a finding.
Fix: F-43625r1_fix
Removing all packages which constitute the X Window System ensures users or malicious software cannot start X. To do so, run the following command: # yum groupremove "X Window System"
- RMF Control
- IA-2
- Severity
- H
- CCI
- CCI-000764
- Version
- RHEL-06-000309
- Vuln IDs
-
- V-38677
- Rule IDs
-
- SV-50478r1_rule
Checks: C-46239r1_chk
To verify insecure file locking has been disabled, run the following command: # grep insecure_locks /etc/exports If there is output, this is a finding.
Fix: F-43626r1_fix
By default the NFS server requires secure file-lock requests, which require credentials from the client in order to lock a file. Most NFS clients send credentials with file lock requests, however, there are a few clients that do not send credentials when requesting a file-lock, allowing the client to only be able to lock world-readable files. To get around this, the "insecure_locks" option can be used so these clients can access the desired export. This poses a security risk by potentially allowing the client access to data for which it does not have authorization. Remove any instances of the "insecure_locks" option from the file "/etc/exports".
- RMF Control
- AU-5
- Severity
- M
- CCI
- CCI-000143
- Version
- RHEL-06-000311
- Vuln IDs
-
- V-38678
- Rule IDs
-
- SV-50479r2_rule
Checks: C-46240r1_chk
Inspect "/etc/audit/auditd.conf" and locate the following line to determine whether the system is configured to email the administrator when disk space is starting to run low: # grep space_left /etc/audit/auditd.conf space_left = [num_megabytes] If the "num_megabytes" value does not correspond to a documented value for remaining audit partition capacity or if there is no locally documented value for remaining audit partition capacity, this is a finding.
Fix: F-43627r2_fix
The "auditd" service can be configured to take an action when disk space starts to run low. Edit the file "/etc/audit/auditd.conf". Modify the following line, substituting [num_megabytes] appropriately: space_left = [num_megabytes] The "num_megabytes" value should be set to a fraction of the total audit storage capacity available that will allow a system administrator to be notified with enough time to respond to the situation causing the capacity issues. This value must also be documented locally.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000292
- Vuln IDs
-
- V-38679
- Rule IDs
-
- SV-50480r2_rule
Checks: C-46242r2_chk
To verify that DHCP is not being used, examine the following file for each interface. # /etc/sysconfig/network-scripts/ifcfg-[IFACE] If there is any network interface without a associated "ifcfg" file, this is a finding. Look for the following: BOOTPROTO=none Also verify the following, substituting the appropriate values based on your site's addressing scheme: NETMASK=[local LAN netmask] IPADDR=[assigned IP address] GATEWAY=[local LAN default gateway] If it does not, this is a finding.
Fix: F-43628r2_fix
For each interface [IFACE] on the system (e.g. eth0), edit "/etc/sysconfig/network-scripts/ifcfg-[IFACE]" and make the following changes. Correct the BOOTPROTO line to read: BOOTPROTO=none Add or correct the following lines, substituting the appropriate values based on your site's addressing scheme: NETMASK=[local LAN netmask] IPADDR=[assigned IP address] GATEWAY=[local LAN default gateway]
- RMF Control
- AU-5
- Severity
- M
- CCI
- CCI-000139
- Version
- RHEL-06-000313
- Vuln IDs
-
- V-38680
- Rule IDs
-
- SV-50481r1_rule
Checks: C-46241r1_chk
Inspect "/etc/audit/auditd.conf" 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: action_mail_acct = root If auditd is not configured to send emails per identified actions, this is a finding.
Fix: F-43629r1_fix
The "auditd" service can be configured to send email to a designated account in certain situations. Add or correct the following line in "/etc/audit/auditd.conf" to ensure that administrators are notified via email for those situations: action_mail_acct = root
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000294
- Vuln IDs
-
- V-38681
- Rule IDs
-
- SV-50482r2_rule
Checks: C-46243r2_chk
To ensure all GIDs referenced in /etc/passwd are defined in /etc/group, run the following command: # pwck -r | grep 'no group' There should be no output. If there is output, this is a finding.
Fix: F-43630r1_fix
Add a group to the system for each GID referenced without a corresponding group.
- RMF Control
- AC-19
- Severity
- M
- CCI
- CCI-000085
- Version
- RHEL-06-000315
- Vuln IDs
-
- V-38682
- Rule IDs
-
- SV-50483r2_rule
Checks: C-46244r2_chk
If the system is configured to prevent the loading of the "bluetooth" kernel module, it will contain lines inside any file in "/etc/modprobe.d" or the deprecated"/etc/modprobe.conf". These lines instruct the module loading system to run another program (such as "/bin/false") upon a module "install" event. Run the following command to search for such lines in all files in "/etc/modprobe.d" and the deprecated "/etc/modprobe.conf": $ grep -r bluetooth /etc/modprobe.conf /etc/modprobe.d If the system is configured to prevent the loading of the "net-pf-31" kernel module, it will contain lines inside any file in "/etc/modprobe.d" or the deprecated"/etc/modprobe.conf". These lines instruct the module loading system to run another program (such as "/bin/false") upon a module "install" event. Run the following command to search for such lines in all files in "/etc/modprobe.d" and the deprecated "/etc/modprobe.conf": $ grep -r net-pf-31 /etc/modprobe.conf /etc/modprobe.d If no line is returned, this is a finding.
Fix: F-43631r2_fix
The kernel's module loading system can be configured to prevent loading of the Bluetooth module. Add the following to the appropriate "/etc/modprobe.d" configuration file to prevent the loading of the Bluetooth module: install net-pf-31 /bin/false install bluetooth /bin/false
- RMF Control
- IA-8
- Severity
- L
- CCI
- CCI-000804
- Version
- RHEL-06-000296
- Vuln IDs
-
- V-38683
- Rule IDs
-
- SV-50484r1_rule
Checks: C-46245r1_chk
Run the following command to check for duplicate account names: # pwck -rq If there are no duplicate names, no line will be returned. If a line is returned, this is a finding.
Fix: F-43632r1_fix
Change usernames, or delete accounts, so each has a unique name.
- RMF Control
- AC-10
- Severity
- L
- CCI
- CCI-000054
- Version
- RHEL-06-000319
- Vuln IDs
-
- V-38684
- Rule IDs
-
- SV-50485r1_rule
Checks: C-46246r1_chk
Run the following command to ensure the "maxlogins" value is configured for all users on the system: # grep "maxlogins" /etc/security/limits.conf You should receive output similar to the following: * hard maxlogins 10 If it is not set to 10 or a documented site-defined number, this is a finding.
Fix: F-43633r1_fix
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. To set the number of concurrent sessions per user add the following line in "/etc/security/limits.conf": * hard maxlogins 10 A documented site-defined number may be substituted for 10 in the above.
- RMF Control
- AC-2
- Severity
- L
- CCI
- CCI-000016
- Version
- RHEL-06-000297
- Vuln IDs
-
- V-38685
- Rule IDs
-
- SV-50486r1_rule
Checks: C-46247r1_chk
For every temporary account, run the following command to obtain its account aging and expiration information: # chage -l [USER] Verify each of these accounts has an expiration date set as documented. If any temporary accounts have no expiration date set or do not expire within a documented time frame, this is a finding.
Fix: F-43634r1_fix
In the event temporary accounts are required, configure the system to terminate them after a documented time period. For every temporary account, run the following command to set an expiration date on it, substituting "[USER]" and "[YYYY-MM-DD]" appropriately: # chage -E [YYYY-MM-DD] [USER] "[YYYY-MM-DD]" indicates the documented expiration date for the account.
- RMF Control
- SC-7
- Severity
- M
- CCI
- CCI-001109
- Version
- RHEL-06-000320
- Vuln IDs
-
- V-38686
- Rule IDs
-
- SV-50487r1_rule
Checks: C-46248r1_chk
Run the following command to ensure the default "FORWARD" policy is "DROP": grep ":FORWARD" /etc/sysconfig/iptables The output must be the following: # grep ":FORWARD" /etc/sysconfig/iptables :FORWARD DROP [0:0] If it is not, this is a finding.
Fix: F-43635r1_fix
To set the default policy to DROP (instead of ACCEPT) for the built-in FORWARD chain which processes packets that will be forwarded from one interface to another, add or correct the following line in "/etc/sysconfig/iptables": :FORWARD DROP [0:0]
- RMF Control
- SC-9
- Severity
- L
- CCI
- CCI-001130
- Version
- RHEL-06-000321
- Vuln IDs
-
- V-38687
- Rule IDs
-
- SV-50488r1_rule
Checks: C-46249r1_chk
Run the following command to determine if the "openswan" package is installed: # rpm -q openswan If the package is not installed, this is a finding.
Fix: F-43636r1_fix
The Openswan package provides an implementation of IPsec and IKE, which permits the creation of secure tunnels over untrusted networks. The "openswan" package can be installed with the following command: # yum install openswan
- RMF Control
- AC-8
- Severity
- M
- CCI
- CCI-000050
- Version
- RHEL-06-000324
- Vuln IDs
-
- V-38688
- Rule IDs
-
- SV-50489r2_rule
Checks: C-46250r2_chk
To ensure a login warning banner is enabled, run the following: $ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gdm/simple-greeter/banner_message_enable Search for the "banner_message_enable" schema. If properly configured, the "default" value should be "true". If it is not, this is a finding.
Fix: F-43637r2_fix
To enable displaying a login warning banner in the GNOME Display Manager's login screen, run the following command: # gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type bool \ --set /apps/gdm/simple-greeter/banner_message_enable true To display a banner, this setting must be enabled and then banner text must also be set.
- RMF Control
- AC-8
- Severity
- M
- CCI
- CCI-001384
- Version
- RHEL-06-000326
- Vuln IDs
-
- V-38689
- Rule IDs
-
- SV-50490r2_rule
Checks: C-46252r2_chk
To ensure login warning banner text is properly set, run the following: $ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --get /apps/gdm/simple-greeter/banner_message_text If properly configured, the proper banner text will appear within this schema. The DoD required text is either: "You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only. By using this IS (which includes any device attached to this IS), you consent to the following conditions: -The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations. -At any time, the USG may inspect and seize data stored on this IS. -Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose. -This IS includes security measures (e.g., authentication and access controls) to protect USG interests -- not for your personal benefit or privacy. -Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details." OR: "I've read & consent to terms in IS user agreem't." If the DoD required banner text is not appear in the schema, this is a finding.
Fix: F-43638r2_fix
To set the text shown by the GNOME Display Manager in the login screen, run the following command: # gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type string \ --set /apps/gdm/simple-greeter/banner_message_text \ "[DoD required text]" Where the DoD required text is either: "You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only. By using this IS (which includes any device attached to this IS), you consent to the following conditions: -The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations. -At any time, the USG may inspect and seize data stored on this IS. -Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose. -This IS includes security measures (e.g., authentication and access controls) to protect USG interests -- not for your personal benefit or privacy. -Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details." OR: "I've read & consent to terms in IS user agreem't." When entering a warning banner that spans several lines, remember to begin and end the string with """. This command writes directly to the file "/var/lib/gdm/.gconf/apps/gdm/simple-greeter/%gconf.xml", and this file can later be edited directly if necessary.
- RMF Control
- AC-2
- Severity
- L
- CCI
- CCI-001682
- Version
- RHEL-06-000298
- Vuln IDs
-
- V-38690
- Rule IDs
-
- SV-50491r1_rule
Checks: C-46251r1_chk
For every emergency account, run the following command to obtain its account aging and expiration information: # chage -l [USER] Verify each of these accounts has an expiration date set as documented. If any emergency accounts have no expiration date set or do not expire within a documented time frame, this is a finding.
Fix: F-43639r1_fix
In the event emergency accounts are required, configure the system to terminate them after a documented time period. For every emergency account, run the following command to set an expiration date on it, substituting "[USER]" and "[YYYY-MM-DD]" appropriately: # chage -E [YYYY-MM-DD] [USER] "[YYYY-MM-DD]" indicates the documented expiration date for the account.
- RMF Control
- AC-19
- Severity
- M
- CCI
- CCI-000085
- Version
- RHEL-06-000331
- Vuln IDs
-
- V-38691
- Rule IDs
-
- SV-50492r1_rule
Checks: C-46253r1_chk
To check that the "bluetooth" service is disabled in system boot configuration, run the following command: # chkconfig "bluetooth" --list Output should indicate the "bluetooth" service has either not been installed, or has been disabled at all runlevels, as shown in the example below: # chkconfig "bluetooth" --list "bluetooth" 0:off 1:off 2:off 3:off 4:off 5:off 6:off Run the following command to verify "bluetooth" is disabled through current runtime configuration: # service bluetooth status If the service is disabled the command will return the following output: bluetooth is stopped If the service is running, this is a finding.
Fix: F-43640r1_fix
The "bluetooth" service can be disabled with the following command: # chkconfig bluetooth off # service bluetooth stop
- RMF Control
- AC-2
- Severity
- L
- CCI
- CCI-000017
- Version
- RHEL-06-000334
- Vuln IDs
-
- V-38692
- Rule IDs
-
- SV-50493r1_rule
Checks: C-46254r2_chk
To verify the "INACTIVE" setting, run the following command: grep "INACTIVE" /etc/default/useradd The output should indicate the "INACTIVE" configuration option is set to an appropriate integer as shown in the example below: # grep "INACTIVE" /etc/default/useradd INACTIVE=35 If it does not, this is a finding.
Fix: F-43641r2_fix
To specify the number of days after a password expires (which signifies inactivity) until an account is permanently disabled, add or correct the following lines in "/etc/default/useradd", substituting "[NUM_DAYS]" appropriately: INACTIVE=[NUM_DAYS] A value of 35 is recommended. If a password is currently on the verge of expiration, then 35 days remain until the account is automatically disabled. However, if the password will not expire for another 60 days, then 95 days could elapse until the account would be automatically disabled. See the "useradd" man page for more information. Determining the inactivity timeout must be done with careful consideration of the length of a "normal" period of inactivity for users in the particular environment. Setting the timeout too low incurs support costs and also has the potential to impact availability of the system to legitimate users.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000299
- Vuln IDs
-
- V-38693
- Rule IDs
-
- SV-50494r1_rule
Checks: C-46255r1_chk
To check the maximum value for consecutive repeating characters, run the following command: $ grep pam_cracklib /etc/pam.d/system-auth Look for the value of the "maxrepeat" parameter. The DoD requirement is 3. If maxrepeat is not found or not set to the required value, this is a finding.
Fix: F-43642r1_fix
The pam_cracklib module's "maxrepeat" parameter controls requirements for consecutive repeating characters. Edit the "/etc/pam.d/system-auth" file to include the following line prior to the "password include system-auth-ac" line: password required pam_cracklib.so maxrepeat=3
- RMF Control
- IA-4
- Severity
- L
- CCI
- CCI-000795
- Version
- RHEL-06-000335
- Vuln IDs
-
- V-38694
- Rule IDs
-
- SV-50495r1_rule
Checks: C-46256r1_chk
To verify the "INACTIVE" setting, run the following command: grep "INACTIVE" /etc/default/useradd The output should indicate the "INACTIVE" configuration option is set to an appropriate integer as shown in the example below: # grep "INACTIVE" /etc/default/useradd INACTIVE=35 If it does not, this is a finding.
Fix: F-43643r2_fix
To specify the number of days after a password expires (which signifies inactivity) until an account is permanently disabled, add or correct the following lines in "/etc/default/useradd", substituting "[NUM_DAYS]" appropriately: INACTIVE=[NUM_DAYS] A value of 35 is recommended. If a password is currently on the verge of expiration, then 35 days remain until the account is automatically disabled. However, if the password will not expire for another 60 days, then 95 days could elapse until the account would be automatically disabled. See the "useradd" man page for more information. Determining the inactivity timeout must be done with careful consideration of the length of a "normal" period of inactivity for users in the particular environment. Setting the timeout too low incurs support costs and also has the potential to impact availability of the system to legitimate users.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000374
- Version
- RHEL-06-000302
- Vuln IDs
-
- V-38695
- Rule IDs
-
- SV-50496r1_rule
Checks: C-46257r1_chk
To determine that periodic AIDE execution has been scheduled, run the following command: # grep aide /etc/crontab If there is no output or if aide is not run at least weekly, this is a finding.
Fix: F-43644r1_fix
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 /etc/crontab: 05 4 * * * root /usr/sbin/aide --check AIDE can be executed periodically through other means; this is merely one example.
- RMF Control
- CM-8
- Severity
- M
- CCI
- CCI-000416
- Version
- RHEL-06-000303
- Vuln IDs
-
- V-38696
- Rule IDs
-
- SV-50497r1_rule
Checks: C-46258r1_chk
To determine that periodic AIDE execution has been scheduled, run the following command: # grep aide /etc/crontab If there is no output, this is a finding.
Fix: F-43645r1_fix
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 /etc/crontab: 05 4 * * * root /usr/sbin/aide --check AIDE can be executed periodically through other means; this is merely one example.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000336
- Vuln IDs
-
- V-38697
- Rule IDs
-
- SV-50498r2_rule
Checks: C-46259r4_chk
To find world-writable directories that lack the sticky bit, run the following command for each local partition [PART]: # find [PART] -xdev -type d -perm -002 \! -perm -1000 If any world-writable directories are missing the sticky bit, this is a finding.
Fix: F-43646r1_fix
When the so-called 'sticky bit' is set on a directory, only the owner of a given file may remove that file from the directory. Without the sticky bit, any user with write access to a directory may remove any file in the directory. Setting the sticky bit prevents users from removing each other's files. In cases where there is no reason for a directory to be world-writable, a better solution is to remove that permission rather than to set the sticky bit. However, if a directory is used by a particular application, consult that application's documentation instead of blindly changing modes. To set the sticky bit on a world-writable directory [DIR], run the following command: # chmod +t [DIR]
- RMF Control
- RA-5
- Severity
- M
- CCI
- CCI-001069
- Version
- RHEL-06-000304
- Vuln IDs
-
- V-38698
- Rule IDs
-
- SV-50499r1_rule
Checks: C-46261r1_chk
To determine that periodic AIDE execution has been scheduled, run the following command: # grep aide /etc/crontab If there is no output, this is a finding.
Fix: F-43647r1_fix
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 /etc/crontab: 05 4 * * * root /usr/sbin/aide --check AIDE can be executed periodically through other means; this is merely one example.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000337
- Vuln IDs
-
- V-38699
- Rule IDs
-
- SV-50500r2_rule
Checks: C-46260r3_chk
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 [PART]: # find [PART] -xdev -type d -perm -0002 -uid +499 -print If there is output, this is a finding.
Fix: F-43648r1_fix
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.
- RMF Control
- SI-4
- Severity
- M
- CCI
- CCI-001263
- Version
- RHEL-06-000305
- Vuln IDs
-
- V-38700
- Rule IDs
-
- SV-50501r1_rule
Checks: C-46262r1_chk
To determine that periodic AIDE execution has been scheduled, run the following command: # grep aide /etc/crontab If there is no output, this is a finding.
Fix: F-43649r1_fix
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 /etc/crontab: 05 4 * * * root /usr/sbin/aide --check AIDE can be executed periodically through other means; this is merely one example.
- RMF Control
- CM-6
- Severity
- H
- CCI
- CCI-000366
- Version
- RHEL-06-000338
- Vuln IDs
-
- V-38701
- Rule IDs
-
- SV-50502r1_rule
Checks: C-46263r1_chk
Verify "tftp" is configured by with the "-s" option by running the following command: grep "server_args" /etc/xinetd.d/tftp The output should indicate the "server_args" variable is configured with the "-s" flag, matching the example below: # grep "server_args" /etc/xinetd.d/tftp server_args = -s /var/lib/tftpboot If it does not, this is a finding.
Fix: F-43650r1_fix
If running the "tftp" service is necessary, it should be configured to change its root directory at startup. To do so, ensure "/etc/xinetd.d/tftp" includes "-s" as a command line argument, as shown in the following example (which is also the default): server_args = -s /var/lib/tftpboot
- RMF Control
- AU-3
- Severity
- L
- CCI
- CCI-000130
- Version
- RHEL-06-000339
- Vuln IDs
-
- V-38702
- Rule IDs
-
- SV-50503r1_rule
Checks: C-46264r1_chk
Find if logging is applied to the ftp daemon. Procedures: If vsftpd is started by xinetd the following command will indicate the xinetd.d startup file. # grep vsftpd /etc/xinetd.d/* # grep server_args [vsftpd xinetd.d startup file] This will indicate the vsftpd config file used when starting through xinetd. If the [server_args]line is missing or does not include the vsftpd configuration file, then the default config file (/etc/vsftpd/vsftpd.conf) is used. # grep xferlog_enable [vsftpd config file] If xferlog_enable is missing, or is not set to yes, this is a finding.
Fix: F-43651r1_fix
Add or correct the following configuration options within the "vsftpd" configuration file, located at "/etc/vsftpd/vsftpd.conf". xferlog_enable=YES xferlog_std_format=NO log_ftp_protocol=YES
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000527
- Vuln IDs
-
- V-43150
- Rule IDs
-
- SV-55880r1_rule
Checks: C-49197r3_chk
To ensure the user list is disabled, run the following command: $ gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --get /apps/gdm/simple-greeter/disable_user_list The output should be "true". If it is not, this is a finding.
Fix: F-48722r2_fix
In the default graphical environment, users logging directly into the system are greeted with a login screen that displays all known users. This functionality should be disabled. Run the following command to disable the user list: $ sudo gconftool-2 --direct \ --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ --type bool --set /apps/gdm/simple-greeter/disable_user_list true
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000017
- Vuln IDs
-
- V-51337
- Rule IDs
-
- SV-65547r1_rule
Checks: C-54007r1_chk
Inspect "/etc/grub.conf" for any instances of "selinux=0" in the kernel boot arguments. Presence of "selinux=0" indicates that SELinux is disabled at boot time. If SELinux is disabled at boot time, this is a finding.
Fix: F-56147r1_fix
SELinux can be disabled at boot time by an argument in "/etc/grub.conf". Remove any instances of "selinux=0" from the kernel arguments in that file to prevent SELinux from being disabled at boot.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000020
- Vuln IDs
-
- V-51363
- Rule IDs
-
- SV-65573r1_rule
Checks: C-53703r1_chk
Check the file "/etc/selinux/config" and ensure the following line appears: SELINUX=enforcing If SELINUX is not set to enforcing, this is a finding.
Fix: F-56165r1_fix
The SELinux state should be set to "enforcing" at system boot time. In the file "/etc/selinux/config", add or correct the following line to configure the system to boot into enforcing mode: SELINUX=enforcing
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000023
- Vuln IDs
-
- V-51369
- Rule IDs
-
- SV-65579r1_rule
Checks: C-53711r1_chk
Check the file "/etc/selinux/config" and ensure the following line appears: SELINUXTYPE=targeted If it does not, this is a finding.
Fix: F-56171r1_fix
The SELinux "targeted" policy is appropriate for general-purpose desktops and servers, as well as systems in many other roles. To configure the system to use this policy, add or correct the following line in "/etc/selinux/config": SELINUXTYPE=targeted Other policies, such as "mls", provide additional security labeling and greater confinement but are not compatible with many general-purpose use cases.
- RMF Control
- CM-6
- Severity
- L
- CCI
- CCI-000366
- Version
- RHEL-06-000025
- Vuln IDs
-
- V-51379
- Rule IDs
-
- SV-65589r1_rule
Checks: C-53719r1_chk
To check for unlabeled device files, run the following command: # ls -RZ /dev | grep unlabeled_t It should produce no output in a well-configured system. If there is output, this is a finding.
Fix: F-56179r1_fix
Device files, which are used for communication with important system resources, should be labeled with proper SELinux types. If any device files carry the SELinux type "unlabeled_t", investigate the cause and correct the file's context.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000018
- Vuln IDs
-
- V-51391
- Rule IDs
-
- SV-65601r1_rule
Checks: C-53727r1_chk
To find the location of the AIDE database file, run the following command: # grep DBDIR /etc/aide.conf Using the defined values of the [DBDIR] and [database] variables, verify the existence of the AIDE database file: # ls -l [DBDIR]/[database_file_name] If there is no database file, this is a finding.
Fix: F-56189r1_fix
Run the following command to generate a new database: # /usr/sbin/aide --init By default, the database will be written to the file "/var/lib/aide/aide.db.new.gz". Storing the database, the configuration file "/etc/aide.conf", and the binary "/usr/sbin/aide" (or hashes of these files), in a secure location (such as on read-only media) provides additional assurance about their integrity. The newly-generated database can be installed as follows: # cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz To initiate a manual check, run the following command: # /usr/sbin/aide --check If this check produces any unexpected output, investigate.
- RMF Control
- CM-6
- Severity
- M
- CCI
- CCI-000366
- Version
- RHEL-06-000372
- Vuln IDs
-
- V-51875
- Rule IDs
-
- SV-66089r1_rule
Checks: C-54013r1_chk
To ensure that last logon/access notification is configured correctly, run the following command: # grep pam_lastlog.so /etc/pam.d/system-auth The output should show output "showfailed". If that is not the case, this is a finding.
Fix: F-56701r1_fix
To configure the system to notify users of last logon/access using "pam_lastlog", add the following line immediately after "session required pam_limits.so": session required pam_lastlog.so showfailed