| CCE-80876-6 |
Disable debug-shell SystemD Service |
disable |
via systemctl |
SystemD's debug-shell service is intended to diagnose SystemD related boot issues with various systemctl commands. Once enabled and following a system reboot, the root shell will be available on tty9 which is access by pressing CTRL-ALT-F9. The debug-shell service should only be used for SystemD related issues and should otherwise be disabled. By default, the debug-shell SystemD service is already disabled. The debug-shell service can be disabled with the following command: $ sudo systemctl disable debug-shell.service The debug-shell service can be masked with the following command: $ sudo systemctl mask debug-shell.service |
This prevents attackers with physical access from trivially bypassing security on the machine through valid troubleshooting configurations and gaining root access when the system is rebooted. |
medium |
NaN |
FIA_UAU.1 |
NaN |
SRG-OS-000324-GPOS-00125 |
Protect Physical Console Access |
| CCE-80826-1 |
Verify that Interactive Boot is Disabled |
verify |
via grub |
Red Hat Enterprise Linux 8 systems support an "interactive boot" option that can be used to prevent services from being started. On a Red Hat Enterprise Linux 8 system, interactive boot can be enabled by providing a 1, yes, true, or on value to the systemd.confirm_spawn kernel argument in /etc/default/grub. Remove any instance of systemd.confirm_spawn=(1|yes|true|on) from the kernel arguments in that file to disable interactive boot. It is also required to change the runtime configuration, run: /sbin/grubby --update-kernel=ALL --remove-args="systemd.confirm_spawn" |
Using interactive boot, the console user could disable auditing, firewalls, or other services, weakening system security. |
medium |
CM-6(a),SC-2(1) |
FIA_UAU.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Protect Physical Console Access |
| CCE-80785-9 |
Disable Ctrl-Alt-Del Reboot Activation |
disable |
via systemctl |
By default, SystemD will reboot the system if the Ctrl-Alt-Del key sequence is pressed. To configure the system to ignore the Ctrl-Alt-Del key sequence from the command line instead of rebooting the system, do either of the following: ln -sf /dev/null /etc/systemd/system/ctrl-alt-del.target or systemctl mask ctrl-alt-del.target Do not simply delete the /usr/lib/systemd/system/ctrl-alt-del.service file, as this file may be restored during future system updates. |
A locally logged-in user who presses Ctrl-Alt-Del, when at the console, can reboot the system. If accidentally pressed, as could happen in the case of mixed OS environment, this can create the risk of short-term loss of availability of systems due to unintentional reboot. |
high |
AC-6(1),CM-6(a) |
NaN |
NaN |
SRG-OS-000324-GPOS-00125,SRG-OS-000480-GPOS-00227 |
Protect Physical Console Access |
| CCE-82186-8 |
Require Authentication for Emergency Systemd Target |
verify |
via systemctl |
Emergency mode is intended as a system recovery method, providing a single user root access to the system during a failed boot sequence. By default, Emergency mode is protected by requiring a password and is set in /usr/lib/systemd/system/emergency.service. |
This prevents attackers with physical access from trivially bypassing security on the machine and gaining root access. Such accesses are further prevented by configuring the bootloader password. |
medium |
AC-3,CM-6(a),IA-2 |
FIA_UAU.1 |
1.5.3 |
SRG-OS-000080-GPOS-00048 |
Protect Physical Console Access |
| CCE-80855-0 |
Require Authentication for Single User Mode |
verify |
via systemctl |
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. By default, single-user mode is protected by requiring a password and is set in /usr/lib/systemd/system/rescue.service. |
This prevents attackers with physical access from trivially bypassing security on the machine and gaining root access. Such accesses are further prevented by configuring the bootloader password. |
medium |
AC-3,CM-6(a),IA-2 |
FIA_UAU.1 |
1.5.3 |
SRG-OS-000080-GPOS-00048 |
Protect Physical Console Access |
| CCE-80784-2 |
Disable Ctrl-Alt-Del Burst Action |
CtrlAltDelBurstAction=none |
via /etc/systemd/system.conf |
By default, SystemD will reboot the system if the Ctrl-Alt-Del key sequence is pressed Ctrl-Alt-Delete more than 7 times in 2 seconds. To configure the system to ignore the CtrlAltDelBurstAction setting, add or modify the following to /etc/systemd/system.conf: CtrlAltDelBurstAction=none |
A locally logged-in user who presses Ctrl-Alt-Del, when at the console, can reboot the system. If accidentally pressed, as could happen in the case of mixed OS environment, this can create the risk of short-term loss of availability of systems due to unintentional reboot. |
high |
AC-6(1),CM-6(a),CM-6(a) |
NaN |
NaN |
SRG-OS-000324-GPOS-00125 |
Protect Physical Console Access |
| CCE-80846-9 |
Install the opensc Package For Multifactor Authentication |
install |
via yum |
The opensc package can be installed with the following command: $ sudo yum install opensc |
Using an authentication device, such as a CAC or token that is separate from the information system, ensures that even if the information system is compromised, that compromise will not affect credentials stored on the authentication device. Multifactor solutions that require devices separate from information systems gaining access include, for example, hardware tokens providing time-based or challenge-response authenticators and smart cards such as the U.S. Government Personal Identity Verification card and the DoD Common Access Card. |
medium |
CM-6(a) |
NaN |
NaN |
SRG-OS-000375-GPOS-00160 |
Hardware Tokens for Authentication |
| CCE-80993-9 |
Install the pcsc-lite package |
install |
via yum |
The pcsc-lite package can be installed with the following command: $ sudo yum install pcsc-lite |
The pcsc-lite package must be installed if it is to be available for multifactor authentication using smartcards. |
medium |
CM-6(a) |
NaN |
NaN |
SRG-OS-000375-GPOS-00160 |
Hardware Tokens for Authentication |
| CCE-80881-6 |
Enable the pcscd Service |
enable |
via systemctl |
The pcscd service can be enabled with the following command: $ sudo systemctl enable pcscd.service |
Using an authentication device, such as a CAC or token that is separate from the information system, ensures that even if the information system is compromised, that compromise will not affect credentials stored on the authentication device. Multifactor solutions that require devices separate from information systems gaining access include, for example, hardware tokens providing time-based or challenge-response authenticators and smart cards such as the U.S. Government Personal Identity Verification card and the DoD Common Access Card. |
medium |
CM-6(a),IA-2(1),IA-2(11),IA-2(2),IA-2(3),IA-2(4),IA-2(6),IA-2(7) |
NaN |
NaN |
SRG-OS-000375-GPOS-00160 |
Hardware Tokens for Authentication |
| CCE-80766-9 |
Configure opensc Smart Card Drivers |
True |
via /etc/opensc-ARCH.conf |
The OpenSC smart card tool can auto-detect smart card drivers; however, setting the smart card drivers in use by your organization helps to prevent users from using unauthorized smart cards. The default smart card driver for this profile is . To configure the OpenSC driver, edit the /etc/opensc-ARCH.conf (where ARCH is the architecture of your operating system) file. Look for a line similar to: # card_drivers = old, internal; and change it to: card_drivers = ; |
Smart card login provides two-factor authentication stronger than that provided by a username and password combination. Smart cards leverage PKI (public key infrastructure) in order to provide and verify credentials. Configuring the smart card driver in use by your organization helps to prevent users from using unauthorized smart cards. |
medium |
CM-6(a),IA-2(1),IA-2(11),IA-2(2),IA-2(3),IA-2(4),IA-2(6),IA-2(7) |
NaN |
NaN |
SRG-OS-000104-GPOS-00051,SRG-OS-000106-GPOS-00053,SRG-OS-000107-GPOS-00054,SRG-OS-000108-GPOS-00055,SRG-OS-000108-GPOS-00057,SRG-OS-000108-GPOS-00058,SRG-OS-000109-GPOS-00056 |
Hardware Tokens for Authentication |
| CCE-80821-2 |
Force opensc To Use Defined Smart Card Driver |
cac |
via /etc/opensc-ARCH.conf |
The OpenSC smart card tool can auto-detect smart card drivers; however by forcing the smart card driver in use by your organization, opensc will no longer autodetect or use other drivers unless specified. This helps to prevent users from using unauthorized smart cards. The default smart card driver for this profile is . To force the OpenSC driver, edit the /etc/opensc-ARCH.conf (where ARCH is the architecture of your operating system) file. Look for a line similar to: # force_card_driver = customcos; and change it to: force_card_driver = ; |
Smart card login provides two-factor authentication stronger than that provided by a username and password combination. Smart cards leverage PKI (public key infrastructure) in order to provide and verify credentials. Forcing the smart card driver in use by your organization helps to prevent users from using unauthorized smart cards. |
medium |
CM-6(a),IA-2(1),IA-2(11),IA-2(2),IA-2(3),IA-2(4),IA-2(6),IA-2(7) |
NaN |
NaN |
SRG-OS-000104-GPOS-00051,SRG-OS-000106-GPOS-00053,SRG-OS-000107-GPOS-00054,SRG-OS-000108-GPOS-00055,SRG-OS-000108-GPOS-00057,SRG-OS-000108-GPOS-00058,SRG-OS-000109-GPOS-00056 |
Hardware Tokens for Authentication |
| CCE-82475-5 |
Configure Smart Card Certificate Status Checking |
ocsp_on |
via /etc/pam_pkcs11/pam_pkcs11.conf |
Configure the operating system to do certificate status checking for PKI authentication. Modify all of the cert_policy lines in /etc/pam_pkcs11/pam_pkcs11.conf to include ocsp_on like so: cert_policy = ca, ocsp_on, signature; |
Using an authentication device, such as a CAC or token that is separate from the information system, ensures that even if the information system is compromised, that compromise will not affect credentials stored on the authentication device. Multifactor solutions that require devices separate from information systems gaining access include, for example, hardware tokens providing time-based or challenge-response authenticators and smart cards such as the U.S. Government Personal Identity Verification card and the DoD Common Access Card. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000375-GPOS-00160,SRG-OS-000376-GPOS-00161,SRG-OS-000377-GPOS-00162,SRG-OS-000384-GPOS-00167 |
Hardware Tokens for Authentication |
| CCE-80644-8 |
Install the tmux Package |
install |
via yum |
To enable console screen locking, install the tmux package. The tmux package can be installed with the following command: $ sudo yum install tmux Instruct users to begin new terminal sessions with the following command: $ tmux The console can now be locked with the following key combination: ctrl+b :lock-session |
A session time-out lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not logout because of the temporary nature of the absence. Rather than relying on the user to manually lock their operation system session prior to vacating the vicinity, operating systems need to be able to identify when a user's session has idled and take action to initiate the session lock. The tmux package allows for a session lock to be implemented and configured. |
medium |
CM-6(a) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000030-GPOS-00011 |
Configure Console Screen Locking |
| CCE-80940-0 |
Configure the tmux Lock Command |
vlock |
via /etc/tmux.conf |
To enable console screen locking in tmux terminal multiplexer, the vlock command must be configured to be used as a locking mechanism. Add the following line to /etc/tmux.conf: set -g lock-command vlock. The console can now be locked with the following key combination: ctrl+b :lock-session |
The tmux package allows for a session lock to be implemented and configured. However, the session lock is implemented by an external command. The tmux default configuration does not contain an effective session lock. |
medium |
AC-11(a),AC-11(b),CM-6(a) |
NaN |
NaN |
SRG-OS-000028-GPOS-00009 |
Configure Console Screen Locking |
| CCE-82199-1 |
Configure tmux to lock session after inactivity |
900 |
via /etc/tmux.conf |
To enable console screen locking in tmux terminal multiplexer after a period of inactivity, the lock-after-time option has to be set to nonzero value in /etc/tmux.conf. |
Locking the session after a period of inactivity limits the potential exposure if the session is left unattended. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000029-GPOS-00010 |
Configure Console Screen Locking |
| CCE-82266-8 |
Support session locking with tmux |
exec tmux |
via /etc/tmux.conf |
The tmux terminal multiplexer is used to implement automatic session locking. It should be started from /etc/bashrc. |
Unlike bash itself, the tmux terminal multiplexer provides a mechanism to lock sessions after period of inactivity. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000031-GPOS-00012 |
Configure Console Screen Locking |
| CCE-82361-7 |
Prevent user from disabling the screen lock |
remove |
via /etc/shells |
The tmux terminal multiplexer is used to implement autimatic session locking. It should not be listed in /etc/shells. |
Not listing tmux among permitted shells prevents malicious program running as user from lowering security by disabling the screen lock. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000324-GPOS-00125 |
Configure Console Screen Locking |
| CCE-83434-1 |
All Interactive User Home Directories Must Be Group-Owned By The Primary User |
USER GID |
via chgrp |
Change the group owner of interactive users home directory to the group found in /etc/passwd. To change the group owner of interactive users home directory, use the following command: $ sudo chgrp USER_GROUP /home/USER |
If the Group Identifier (GID) of a local interactive users home directory is not the same as the primary GID of the user, this would allow unauthorized access to the users files, and users that share the same group may not be able to access files that they legitimately should. |
medium |
NaN |
NaN |
6.2.8 |
SRG-OS-000480-GPOS-00227 |
Secure Session Configuration Files for Login Accounts |
| CCE-80955-8 |
Limit the Number of Concurrent Login Sessions Allowed Per User |
10 |
via /etc/security/limits.conf |
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 or a file under /etc/security/limits.d/: * hard maxlogins |
Limiting simultaneous user logins can insulate the system from denial of service problems caused by excessive logins. Automated login processes operating improperly or maliciously may result in an exceptional number of simultaneous login sessions. |
low |
AC-10,CM-6(a) |
NaN |
NaN |
SRG-OS-000027-GPOS-00008 |
Secure Session Configuration Files for Login Accounts |
| CCE-83424-2 |
All Interactive Users Home Directories Must Exist |
USERNAME |
via mkdir |
Create home directories to all interactive users that currently do not have a home directory assigned. Use the following commands to create the user home directory assigned in /etc/passwd: $ sudo mkdir /home/USER |
If a local interactive user has a home directory defined that does not exist, the user may be given access to the / directory as the current working directory upon logon. This could create a Denial of Service because the user would not be able to access their logon configuration files, and it may give them visibility to system files they normally would not be able to access. |
medium |
NaN |
NaN |
6.2.20 |
SRG-OS-000480-GPOS-00227 |
Secure Session Configuration Files for Login Accounts |
| CCE-80673-7 |
Set Interactive Session Timeout |
600 |
TMOUT |
Setting the TMOUT option in /etc/profile ensures that all user sessions will terminate based on inactivity. The TMOUT setting in /etc/profile should read as follows: TMOUT= |
Terminating an idle session within a short time period reduces the window of opportunity for unauthorized personnel to take control of a management session enabled on the console or console port that has been left unattended. |
medium |
AC-12,AC-2(5),CM-6(a),SC-10 |
FMT_MOF_EXT.1 |
5.5.3 |
SRG-OS-000163-GPOS-00072 |
Secure Session Configuration Files for Login Accounts |
| CCE-84274-0 |
Ensure that User Home Directories are not Group-Writable or World-Readable |
750 |
via chmod |
For each human user of the system, view the permissions of the user's home directory: # ls -ld /home/USER Ensure that the directory is not group-writable and that it is not world-readable. If necessary, repair the permissions: # chmod g-w /home/USER # chmod o-rwx /home/USER |
User home directories contain many configuration files which affect the behavior of a user's account. No user should ever have write permission to another user's home directory. Group shared directories can be configured in sub-directories or elsewhere in the filesystem if they are needed. Typically, user home directories should not be world-readable, as it would disclose file names to other users. If a subset of users need read access to one another's home directories, this can be provided using groups or ACLs. |
medium |
AC-6(1),CM-6(a),CM-6(a) |
NaN |
6.2.7 |
NaN |
Secure Session Configuration Files for Login Accounts |
| CCE-83789-8 |
Ensure Home Directories are Created for New Users |
yes |
via /etc/login.defs |
All local interactive user accounts, upon creation, should be assigned a home directory. Configure the operating system to assign home directories to all new local interactive users by setting the CREATE_HOME parameter in /etc/login.defs to yes as follows: CREATE_HOME yes |
If local interactive users are not assigned a valid home directory, there is no place for the storage and control of files they should own. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Secure Session Configuration Files for Login Accounts |
| CCE-81035-8 |
Ensure the Default Umask is Set Correctly in /etc/profile |
“077” |
via UMASK |
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 |
The umask value influences the permissions assigned to files when they are created. A misconfigured umask value could result in files with excessive permissions that can be read or written to by unauthorized users. |
unknown |
AC-6(1),CM-6(a) |
NaN |
5.4.4 |
SRG-OS-000480-GPOS-00228 |
Ensure that Users Have Sensible Umask Values |
| CCE-81037-4 |
Ensure the Default C Shell Umask is Set Correctly |
“077” |
via UMASK |
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 |
The umask value influences the permissions assigned to files when they are created. A misconfigured umask value could result in files with excessive permissions that can be read or written to by unauthorized users. |
unknown |
AC-6(1),CM-6(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00228 |
Ensure that Users Have Sensible Umask Values |
| CCE-81036-6 |
Ensure the Default Bash Umask is Set Correctly |
“077” |
via UMASK |
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 |
The umask value influences the permissions assigned to files when they are created. A misconfigured umask value could result in files with excessive permissions that can be read or written to by unauthorized users. |
unknown |
AC-6(1),CM-6(a) |
NaN |
5.4.4 |
SRG-OS-000480-GPOS-00228 |
Ensure that Users Have Sensible Umask Values |
| CCE-80672-9 |
Ensure that Root's Path Does Not Include World or Group-Writable Directories |
NaN |
NaN |
For each element in root's path, run: # ls -ld DIR and ensure that write permissions are disabled for group and other. |
Such entries increase the risk that root could execute code provided by unprivileged users, and potentially malicious code. |
medium |
CM-6(a),CM-6(a) |
NaN |
NaN |
NaN |
Ensure that No Dangerous Directories Exist in Root's Path |
| CCE-80788-3 |
Ensure PAM Displays Last Logon/Access Notification |
pam_succeed_if.so service !~ gdm* service !~ su* quiet session [default=1] pam_lastlog.so nowtmp showfailed session optional pam_lastlog.so silent noupdate showfailed |
via pam_lastlog |
To configure the system to notify users of last logon/access using pam_lastlog, add or correct the pam_lastlog settings in /etc/pam.d/postlogin to read as follows: session [success=1 default=ignore] pam_succeed_if.so service !~ gdm* service !~ su* quiet session [default=1] pam_lastlog.so nowtmp showfailed session optional pam_lastlog.so silent noupdate showfailed |
Users need to be aware of activity that occurs regarding their account. Providing users with information regarding the number of unsuccessful attempts that were made to login to their account allows the user to determine if any unauthorized activity has occurred and gives them an opportunity to notify administrators. |
low |
AC-9(1),CM-6(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Protect Accounts by Configuring PAM |
| CCE-81034-1 |
Ensure PAM Enforces Password Requirements - Maximum Consecutive Repeating Characters from Same Character Class |
4 |
via /etc/security/pwquality.conf |
The pam_pwquality module's maxclassrepeat parameter controls requirements for consecutive repeating characters from the same character class. When set to a positive number, it will reject passwords which contain more than that number of consecutive characters from the same character class. Modify the maxclassrepeat setting in /etc/security/pwquality.conf to equal to prevent a run of ( + 1) or more identical characters. |
Use of a complex password helps to increase the time and resources required to comrpomise the password. Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts at guessing and brute-force attacks. Password complexity is one factor of several that determines how long it takes to crack a password. The more complex a password, the greater the number of possible combinations that need to be tested before the password is compromised. |
medium |
CM-6(a),IA-5(1)(a),IA-5(4),IA-5(c) |
NaN |
NaN |
SRG-OS-000072-GPOS-00040 |
Set Password Quality Requirements with pam_pwquality |
| CCE-82046-4 |
Ensure PAM Enforces Password Requirements - Minimum Different Categories |
3 |
via /etc/security/pwquality.conf |
The pam_pwquality module's minclass parameter controls requirements for usage of different character classes, or types, of character that must exist in a password before it is considered valid. For example, setting this value to three (3) requires that any password must have characters from at least three different categories in order to be approved. The default value is zero (0), meaning there are no required classes. There are four categories available: * Upper-case characters * Lower-case characters * Digits * Special characters (for example, punctuation) Modify the minclass setting in /etc/security/pwquality.conf entry to require differing categories of characters when changing passwords. |
Use of a complex password helps to increase the time and resources required to compromise the password. Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts at guessing and brute-force attacks. Password complexity is one factor of several that determines how long it takes to crack a password. The more complex the password, the greater the number of possible combinations that need to be tested before the password is compromised. Requiring a minimum number of character categories makes password guessing attacks more difficult by ensuring a larger search space. |
medium |
CM-6(a),IA-5(1)(a),IA-5(4),IA-5(c) |
NaN |
NaN |
SRG-OS-000072-GPOS-00040 |
Set Password Quality Requirements with pam_pwquality |
| CCE-80654-7 |
Ensure PAM Enforces Password Requirements - Minimum Different Characters |
8 |
via /etc/security/pwquality.conf |
The pam_pwquality module's difok parameter sets the number of characters in a password that must not be present in and old password during a password change. Modify the difok setting in /etc/security/pwquality.conf to equal to require differing characters when changing passwords. |
Use of a complex password helps to increase the time and resources required to compromise the password. Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts at guessing and brute–force attacks. Password complexity is one factor of several that determines how long it takes to crack a password. The more complex the password, the greater the number of possible combinations that need to be tested before the password is compromised. Requiring a minimum number of different characters during password changes ensures that newly changed passwords should not resemble previously compromised ones. Note that passwords which are changed on compromised systems will still be compromised, however. |
medium |
CM-6(a),IA-5(1)(b),IA-5(4),IA-5(c) |
NaN |
NaN |
SRG-OS-000072-GPOS-00040 |
Set Password Quality Requirements with pam_pwquality |
| CCE-80665-3 |
Ensure PAM Enforces Password Requirements - Minimum Uppercase Characters |
True |
via /etc/security/pwquality.conf |
The pam_pwquality 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_pwquality will grant +1 additional length credit for each uppercase character. Modify the ucredit setting in /etc/security/pwquality.conf to require the use of an uppercase character in passwords. |
Use of a complex password helps to increase the time and resources reuiqred to compromise the password. Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts at guessing and brute-force attacks. Password complexity is one factor of several that determines how long it takes to crack a password. The more complex the password, the greater the number of possible combinations that need to be tested before the password is compromised. |
medium |
CM-6(a),IA-5(1)(a),IA-5(4),IA-5(c) |
FMT_MOF_EXT.1 |
6.3.2 |
SRG-OS-000069-GPOS-00037 |
Set Password Quality Requirements with pam_pwquality |
| CCE-80653-9 |
Ensure PAM Enforces Password Requirements - Minimum Digit Characters |
True |
via /etc/security/pwquality.conf |
The pam_pwquality 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_pwquality will grant +1 additional length credit for each digit. Modify the dcredit setting in /etc/security/pwquality.conf to require the use of a digit in passwords. |
Use of a complex password helps to increase the time and resources required to compromise the password. Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts at guessing and brute-force attacks. Password complexity is one factor of several that determines how long it takes to crack a password. The more complex the password, the greater the number of possible combinations that need to be tested before the password is compromised. Requiring digits makes password guessing attacks more difficult by ensuring a larger search space. |
medium |
CM-6(a),IA-5(1)(a),IA-5(4),IA-5(c) |
FMT_MOF_EXT.1 |
6.3.2 |
SRG-OS-000071-GPOS-00039 |
Set Password Quality Requirements with pam_pwquality |
| CCE-80663-8 |
Ensure PAM Enforces Password Requirements - Minimum Special Characters |
True |
via /etc/security/pwquality.conf |
The pam_pwquality 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_pwquality will grant +1 additional length credit for each special character. Modify the ocredit setting in /etc/security/pwquality.conf to equal to require use of a special character in passwords. |
Use of a complex password helps to increase the time and resources required to compromise the password. Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts at guessing and brute-force attacks. Password complexity is one factor of several that determines how long it takes to crack a password. The more complex the password, the greater the number of possble combinations that need to be tested before the password is compromised. Requiring a minimum number of special characters makes password guessing attacks more difficult by ensuring a larger search space. |
medium |
CM-6(a),IA-5(1)(a),IA-5(4),IA-5(c) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000266-GPOS-00101 |
Set Password Quality Requirements with pam_pwquality |
| CCE-82066-2 |
Set Password Maximum Consecutive Repeating Characters |
4 |
via /etc/security/pwquality.conf |
The pam_pwquality module's maxrepeat parameter controls requirements for consecutive repeating characters. When set to a positive number, it will reject passwords which contain more than that number of consecutive characters. Modify the maxrepeat setting in /etc/security/pwquality.conf to equal to prevent a run of ( + 1) or more identical characters. |
Use of a complex password helps to increase the time and resources required to compromise the password. Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts at guessing and brute-force attacks. Password complexity is one factor of several that determines how long it takes to crack a password. The more complex the password, the greater the number of possible combinations that need to be tested before the password is compromised. Passwords with excessive repeating characters may be more vulnerable to password-guessing attacks. |
medium |
CM-6(a),IA-5(4),IA-5(c) |
NaN |
NaN |
SRG-OS-000072-GPOS-00040 |
Set Password Quality Requirements with pam_pwquality |
| CCE-80655-4 |
Ensure PAM Enforces Password Requirements - Minimum Lowercase Characters |
True |
via /etc/security/pwquality.conf |
The pam_pwquality 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_pwquality will grant +1 additional length credit for each lowercase character. Modify the lcredit setting in /etc/security/pwquality.conf to require the use of a lowercase character in passwords. |
Use of a complex password helps to increase the time and resources required to compromise the password. Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts at guessing and brute-force attacks. Password complexity is one factor of several that determines how long it takes to crack a password. The more complex the password, the greater the number of possble combinations that need to be tested before the password is compromised. Requiring a minimum number of lowercase characters makes password guessing attacks more difficult by ensuring a larger search space. |
medium |
CM-6(a),IA-5(1)(a),IA-5(4),IA-5(c) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000070-GPOS-00038 |
Set Password Quality Requirements with pam_pwquality |
| CCE-80664-6 |
Ensure PAM Enforces Password Requirements - Authentication Retry Prompts Permitted Per-Session |
3 |
via /etc/security/pwquality.conf |
To configure the number of retry prompts that are permitted per-session: Edit the pam_pwquality.so statement in /etc/pam.d/system-auth to show retry=, or a lower value if site policy is more restrictive. The DoD requirement is a maximum of 3 prompts per session. |
Setting the password retry prompts that are permitted on a per-session basis to a low value requires some software, such as SSH, to re-connect. This can slow down and draw additional attention to some types of password-guessing attacks. Note that this is different from account lockout, which is provided by the pam_faillock module. |
medium |
AC-7(a),CM-6(a),IA-5(4) |
FMT_MOF_EXT.1 |
6.3.2 |
SRG-OS-000480-GPOS-00225 |
Set Password Quality Requirements with pam_pwquality |
| CCE-80656-2 |
Ensure PAM Enforces Password Requirements - Minimum Length |
16 |
via /etc/security/pwquality.conf |
The pam_pwquality module's minlen parameter controls requirements for minimum characters required in a password. Add minlen= after pam_pwquality to set minimum password length requirements. |
The shorter the password, the lower the number of possible combinations that need to be tested before the password is compromised. Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts at guessing and brute-force attacks. Password length is one factor of several that helps to determine strength and how long it takes to crack a password. Use of more characters in a password helps to exponentially increase the time and/or resources required to compromose the password. |
medium |
CM-6(a),IA-5(1)(a),IA-5(4),IA-5(c) |
FMT_MOF_EXT.1 |
6.3.2 |
SRG-OS-000078-GPOS-00046 |
Set Password Quality Requirements with pam_pwquality |
| CCE-80669-5 |
Set Interval For Counting Failed Password Attempts |
604800 |
via pam_faillock |
Utilizing pam_faillock.so, the fail_interval directive configures the system to lock out an account after a number of incorrect login attempts within a specified time period. Modify the content of both /etc/pam.d/system-auth and /etc/pam.d/password-auth as follows: Add the following line immediately before the pam_unix.so statement in the AUTH section: auth required pam_faillock.so preauth silent deny= unlock_time= fail_interval= Add the following line immediately after the pam_unix.so statement in the AUTH section: auth [default=die] pam_faillock.so authfail deny= unlock_time= fail_interval= Add the following line immediately before the pam_unix.so statement in the ACCOUNT section: account required pam_faillock.so |
By limiting the number of failed logon attempts the risk of unauthorized system access via user password guessing, otherwise known as brute-forcing, is reduced. Limits are imposed by locking the account. |
medium |
AC-7(a),CM-6(a) |
FIA_AFL.1 |
NaN |
SRG-OS-000021-GPOS-00005,SRG-OS-000329-GPOS-00128 |
Set Lockouts for Failed Password Attempts |
| CCE-80666-1 |
Limit Password Reuse |
5 |
via pam_unix.so or pam_pwhistory.so |
Do not allow users to reuse recent passwords. This can be accomplished by using the remember option for the pam_unix or pam_pwhistory PAM modules. In the file /etc/pam.d/system-auth, append remember= to the line which refers to the pam_unix.so or pam_pwhistory.somodule, as shown below: for the pam_unix.so case: password sufficient pam_unix.so ...existing_options... remember= for the pam_pwhistory.so case: password requisite pam_pwhistory.so ...existing_options... remember= The DoD STIG requirement is 5 passwords. |
Preventing re-use of previous passwords helps ensure that a compromised password is not re-used by a user. |
medium |
IA-5(1)(e),IA-5(f) |
NaN |
5.3.3 |
SRG-OS-000077-GPOS-00045 |
Set Lockouts for Failed Password Attempts |
| CCE-80668-7 |
Configure the root Account for Failed Password Attempts |
even_root_deny |
via pam_faillock |
To configure the system to lock out the root account after a number of incorrect login attempts using pam_faillock.so, modify the content of both /etc/pam.d/system-auth and /etc/pam.d/password-auth as follows: Modify the following line in the AUTH section to add even_deny_root: auth required pam_faillock.so preauth silent even_deny_root deny= unlock_time= fail_interval=Modify the following line in the AUTH section to add even_deny_root: auth [default=die] pam_faillock.so authfail even_deny_root deny= unlock_time= fail_interval= |
By limiting the number of failed logon attempts, the risk of unauthorized system access via user password guessing, otherwise known as brute-forcing, is reduced. Limits are imposed by locking the account. |
medium |
AC-7(b),CM-6(a),IA-5(c) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000021-GPOS-00005,SRG-OS-000329-GPOS-00128 |
Set Lockouts for Failed Password Attempts |
| CCE-80670-3 |
Set Lockout Time for Failed Password Attempts |
0 |
via pam_faillock |
To configure the system to lock out accounts after a number of incorrect login attempts and require an administrator to unlock the account using pam_faillock.so, modify the content of both /etc/pam.d/system-auth and /etc/pam.d/password-auth as follows: add the following line immediately before the pam_unix.so statement in the AUTH section: auth required pam_faillock.so preauth silent deny= unlock_time= fail_interval= add the following line immediately after the pam_unix.so statement in the AUTH section: auth [default=die] pam_faillock.so authfail deny= unlock_time= fail_interval= add the following line immediately before the pam_unix.so statement in the ACCOUNT section: account required pam_faillock.so If unlock_time is set to 0, manual intervention by an administrator is required to unlock a user. |
Locking out user accounts after a number of incorrect attempts prevents direct password guessing attacks. Ensuring that an administrator is involved in unlocking locked accounts draws appropriate attention to such situations. |
medium |
AC-7(b),CM-6(a) |
FIA_AFL.1 |
5.3.2 |
SRG-OS-000021-GPOS-00005,SRG-OS-000329-GPOS-00128 |
Set Lockouts for Failed Password Attempts |
| CCE-80667-9 |
Set Deny For Failed Password Attempts |
3 |
via pam_faillock |
To configure the system to lock out accounts after a number of incorrect login attempts using pam_faillock.so, modify the content of both /etc/pam.d/system-auth and /etc/pam.d/password-auth as follows: add the following line immediately before the pam_unix.so statement in the AUTH section: auth required pam_faillock.so preauth silent deny= unlock_time= fail_interval= add the following line immediately after the pam_unix.so statement in the AUTH section: auth [default=die] pam_faillock.so authfail deny= unlock_time= fail_interval= add the following line immediately before the pam_unix.so statement in the ACCOUNT section: account required pam_faillock.so |
Locking out user accounts after a number of incorrect attempts prevents direct password guessing attacks. |
medium |
AC-7(a),CM-6(a) |
FIA_AFL.1 |
5.3.2 |
SRG-OS-000021-GPOS-00005,SRG-OS-000329-GPOS-00128 |
Set Lockouts for Failed Password Attempts |
| CCE-80892-3 |
Set Password Hashing Algorithm in /etc/login.defs |
sha512 |
via /etc/login.defs |
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 |
Passwords need to be protected at all times, and encryption is the standard method for protecting passwords. If passwords are not encrypted, they can be plainly read (i.e., clear text) and easily compromised. Passwords that are encrypted with a weak algorithm are no more protected than if they are kept in plain text. Using a stronger hashing algorithm makes password cracking attacks more difficult. |
medium |
CM-6(a),IA-5(1)(c),IA-5(c) |
NaN |
6.3.1 |
SRG-OS-000073-GPOS-00041 |
Set Password Hashing Algorithm |
| CCE-80893-1 |
Set PAM's Password Hashing Algorithm |
sha512 |
via system_auth |
The PAM system service can be configured to only store encrypted representations of passwords. 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. |
Passwords need to be protected at all times, and encryption is the standard method for protecting passwords. If passwords are not encrypted, they can be plainly read (i.e., clear text) and easily compromised. Passwords that are encrypted with a weak algorithm are no more protected than if they are kepy in plain text. This setting ensures user and group account administration utilities are configured to store only encrypted representations of passwords. Additionally, the crypt_style configuration option ensures the use of a strong hashing algorithm that makes password cracking attacks more difficult. |
medium |
CM-6(a),IA-5(1)(c),IA-5(c) |
NaN |
5.4.4 |
SRG-OS-000073-GPOS-00041 |
Set Password Hashing Algorithm |
| CCE-80891-5 |
Set Password Hashing Algorithm in /etc/libuser.conf |
sha512 |
/etc/libuser.conf |
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 |
Passwords need to be protected at all times, and encryption is the standard method for protecting passwords. If passwords are not encrypted, they can be plainly read (i.e., clear text) and easily compromised. Passwords that are encrypted with a weak algorithm are no more protected than if they are kepy in plain text. This setting ensures user and group account administration utilities are configured to store only encrypted representations of passwords. Additionally, the crypt_style configuration option ensures the use of a strong hashing algorithm that makes password cracking attacks more difficult. |
medium |
CM-6(a),IA-5(1)(c),IA-5(c) |
NaN |
NaN |
SRG-OS-000073-GPOS-00041 |
Set Password Hashing Algorithm |
| CCE-82474-8 |
Assign Expiration Date to Temporary Accounts |
-E YYYY-MM-DD USER |
via chage |
Temporary accounts are established as part of normal account activation procedures when there is a need for short-term accounts. In the event temporary or emergency accounts are required, configure the system to terminate them after a documented time period. For every temporary and emergency account, run the following command to set an expiration date on it, substituting USER and YYYY-MM-DD appropriately: $ sudo chage -E YYYY-MM-DD USER YYYY-MM-DD indicates the documented expiration date for the account. For U.S. Government systems, the operating system must be configured to automatically terminate these types of accounts after a period of 72 hours. |
If temporary user accounts remain active when no longer needed or for an excessive period, these accounts may be used to gain unauthorized access. To mitigate this risk, automated termination of all temporary accounts must be set upon account creation. |
unknown |
AC-2(2),AC-2(3),CM-6(a) |
NaN |
NaN |
SRG-OS-000002-GPOS-00002,SRG-OS-000123-GPOS-00064 |
Set Account Expiration Parameters |
| CCE-80674-5 |
Ensure All Accounts on the System Have Unique Names |
verify |
via getent |
Ensure accounts on the system have unique names. To ensure all accounts have unique names, run the following command: $ sudo getent passwd | awk -F: '{ print $1}' | uniq -d If a username is returned, change or delete the username. |
Unique usernames allow for accountability on the system. |
medium |
NaN |
NaN |
6.2.17 |
NaN |
Set Account Expiration Parameters |
| CCE-80954-1 |
Set Account Expiration Following Inactivity |
35 |
via /etc/default/useradd |
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= A value of 35 is recommended; however, this profile expects that the value is set to . 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. |
Disabling inactive accounts ensures that accounts which may not have been responsibly removed are not available to attackers who may have compromised their credentials. |
medium |
AC-2(3),CM-6(a),IA-4(e) |
NaN |
NaN |
SRG-OS-000118-GPOS-00060 |
Set Account Expiration Parameters |
| CCE-82890-5 |
Ensure there are no legacy + NIS entries in /etc/passwd |
verify |
via /etc/passwd |
The + character in /etc/passwd file marks a place where entries from a network information service (NIS) should be directly inserted. |
Using this method to include entries into /etc/passwd is considered legacy and should be avoided. These entries may provide a way for an attacker to gain access to the system. |
medium |
NaN |
NaN |
6.2.2 |
NaN |
Verify Proper Storage and Existence of Password Hashes |
| CCE-80822-0 |
All GIDs referenced in /etc/passwd must be defined in /etc/group |
verify |
via /etc/passwd and /etc/group |
Add a group to the system for each GID referenced without a corresponding group. |
If a user is assigned the Group Identifier (GID) of a group not existing on the system, and a group with the Gruop Identifier (GID) is subsequently created, the user may have unintended rights to any files associated with the group. |
low |
CM-6(a),IA-2 |
NaN |
NaN |
SRG-OS-000104-GPOS-00051 |
Verify Proper Storage and Existence of Password Hashes |
| CCE-84290-6 |
Ensure there are no legacy + NIS entries in /etc/shadow |
verify |
via /etc/shadow |
The + character in /etc/shadow file marks a place where entries from a network information service (NIS) should be directly inserted. |
Using this method to include entries into /etc/shadow is considered legacy and should be avoided. These entries may provide a way for an attacker to gain access to the system. |
medium |
NaN |
NaN |
6.2.4 |
NaN |
Verify Proper Storage and Existence of Password Hashes |
| CCE-80841-0 |
Prevent Login to Accounts With Empty Password |
remove |
via /etc/pam.d/system-auth |
If an account is configured for password authentication but does not have an assigned password, it may be possible to log into the account without authentication. Remove any instances of the nullok option in /etc/pam.d/system-auth to prevent logins with empty passwords. |
If an account has an empty password, anyone could log in and run commands with the privileges of that account. Accounts with empty passwords should never be used in operational environments. |
high |
CM-6(a),IA-5(1)(a),IA-5(c) |
FIA_UAU.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Verify Proper Storage and Existence of Password Hashes |
| CCE-83444-0 |
Verify No netrc Files Exist |
verify |
via rm |
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. |
Unencrypted passwords for remote FTP servers may be stored in .netrc files. |
medium |
CM-6(a),IA-5(1)(c),IA-5(7),IA-5(h) |
NaN |
6.2.11 |
NaN |
Verify Proper Storage and Existence of Password Hashes |
| CCE-83389-7 |
Ensure there are no legacy + NIS entries in /etc/group |
verify |
via /etc/group |
The + character in /etc/group file marks a place where entries from a network information service (NIS) should be directly inserted. |
Using this method to include entries into /etc/group is considered legacy and should be avoided. These entries may provide a way for an attacker to gain access to the system. |
medium |
NaN |
NaN |
6.2.5 |
NaN |
Verify Proper Storage and Existence of Password Hashes |
| CCE-80651-3 |
Verify All Account Password Hashes are Shadowed |
verify |
via /etc/passwd |
If any password hashes are stored in /etc/passwd (in the second field, instead of an x or *), 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. |
The hashes for all user account passwords should be stored in the file /etc/shadow and never in /etc/passwd, which is readable by all users. |
medium |
CM-6(a),IA-5(h) |
NaN |
NaN |
NaN |
Verify Proper Storage and Existence of Password Hashes |
| CCE-80864-2 |
Restrict Virtual Console Root Logins |
disable |
via /etc/securetty |
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 |
Preventing direct root login to virtual console devices helps ensure accountability for actions taken on the system using the root account. |
medium |
AC-6,CM-6(a) |
NaN |
5.6 |
SRG-OS-000324-GPOS-00125 |
Restrict Root Logins |
| CCE-80843-6 |
Ensure that System Accounts Do Not Run a Shell Upon Login |
/sbin/nologin |
via usermod |
Some accounts are not associated with a human user of the system, and exist to perform some administrative function. Should an attacker be able to log into these accounts, they should not be granted access to a shell. The login shell for each local account is stored in the last field of each line in /etc/passwd. System accounts are those user accounts with a user ID less than UID_MIN, where value of UID_MIN directive is set in /etc/login.defs configuration file. In the default configuration UID_MIN is set to 1000, thus system accounts are those user accounts with a user ID less than 1000. The user ID is stored in the third field. If any system account SYSACCT (other than root) has a login shell, disable it with the command: $ sudo usermod -s /sbin/nologin SYSACCT |
Ensuring shells are not given to system accounts upon login makes it more difficult for attackers to make use of system accounts. |
medium |
AC-6,CM-6(a) |
NaN |
5.4.2 |
NaN |
Restrict Root Logins |
| CCE-80840-2 |
Direct root Logins Not Allowed |
“” |
via /etc/securetty |
To further limit access to the root account, administrators can disable root logins at the console by editing the /etc/securetty file. This file lists all devices the root user is allowed to login to. If the file does not exist at all, the root user can login through any communication device on the system, whether via the console or via a raw network interface. This is dangerous as user can login to the system as root via Telnet, which sends the password in plain text over the network. By default, Red Hat Enterprise Linux 8's /etc/securetty file only allows the root user to login at the console physically attached to the system. To prevent root from logging in, remove the contents of this file. To prevent direct root logins, remove the contents of this file by typing the following command: $ sudo echo > /etc/securetty |
Disabling direct root logins ensures proper accountability and multifactor authentication to privileged accounts. Users will first login, then escalate to privileged (root) access via su / sudo. This is required for FISMA Low and FISMA Moderate systems. |
medium |
CM-6(a),IA-2 |
NaN |
5.6 |
NaN |
Restrict Root Logins |
| CCE-80856-8 |
Restrict Serial Port Root Logins |
ttyS0 ttyS1 |
via /etc/securetty |
To restrict root logins on serial ports, ensure lines of this form do not appear in /etc/securetty: ttyS0 ttyS1 |
Preventing direct root login to serial port interfaces helps ensure accountability for actions taken on the systems using the root account. |
medium |
AC-6,CM-6(a) |
NaN |
NaN |
NaN |
Restrict Root Logins |
| CCE-80649-7 |
Verify Only Root Has UID 0 |
/sbin/nologin |
via usermod |
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. If the account is associated with system commands or applications the UID should be changed to one greater than "0" but less than "1000." Otherwise assign a UID greater than "1000" that has not already been assigned. |
An account has root authority if it has a UID of 0. Multiple accounts with a UID of 0 afford more opportunity for potential intruders to guess a password for a privileged account. Proper configuration of sudo is recommended to afford multiple system administrators access to root privileges in an accountable manner. |
high |
AC-6(5),IA-2,IA-4(b) |
NaN |
6.2.6 |
SRG-OS-000480-GPOS-00227 |
Restrict Root Logins |
| CCE-80648-9 |
Set Password Minimum Age |
True |
via /etc/login.defs |
To specify password minimum age for new accounts, edit the file /etc/login.defs and add or correct the following line: PASS_MIN_DAYS A value of 1 day is considered sufficient for many environments. The DoD requirement is 1. The profile requirement is . |
Enforcing a minimum password lifetime helps to prevent repeated password changes to defeat the password reuse or history enforcement requirement. If users are allowed to immediately and continually change their password, then the password could be repeatedly changed in a short period of time to defeat the organization's policy regarding password reuse. Setting the minimum password age protects against users cycling back to a favorite password after satisfying the password reuse requirement. |
medium |
CM-6(a),IA-5(1)(d),IA-5(f) |
NaN |
5.5.1.2 |
SRG-OS-000075-GPOS-00043 |
Set Password Expiration Parameters |
| CCE-82472-2 |
Set Existing Passwords Minimum Age |
60 |
via chage |
Configure non-compliant accounts to enforce a 24 hours/1 day minimum password lifetime by running the following command: $ sudo chage -m 1 USER |
Enforcing a minimum password lifetime helps to prevent repeated password changes to defeat the password reuse or history enforcement requirement. If users are allowed to immediately and continually change their password, the password could be repeatedly changed in a short period of time to defeat the organization's policy regarding password reuse. |
medium |
CM-6(a),IA-5(1)(d),IA-5(f) |
NaN |
NaN |
SRG-OS-000075-GPOS-00043 |
Set Password Expiration Parameters |
| CCE-82473-0 |
Set Existing Passwords Maximum Age |
True |
via chage |
Configure non-compliant accounts to enforce a 60-day maximum password lifetime restriction by running the following command: $ sudo chage -M 60 USER |
Any password, no matter how complex, can eventually be cracked. Therefore, passwords need to be changed periodically. If the operating system does not limit the lifetime of passwords and force users to change their passwords, there is the risk that the operating system passwords could be compromised. |
medium |
CM-6(a),IA-5(1)(d),IA-5(f) |
NaN |
NaN |
SRG-OS-000076-GPOS-00044 |
Set Password Expiration Parameters |
| CCE-80647-1 |
Set Password Maximum Age |
60 |
via /etc/login.defs |
To specify password maximum age for new accounts, edit the file /etc/login.defs and add or correct the following line: PASS_MAX_DAYS A value of 180 days is sufficient for many environments. The DoD requirement is 60. The profile requirement is . |
Any password, no matter how complex, can eventually be cracked. Therefore, passwords need to be changed periodically. If the operating system does not limit the lifetime of passwords and force users to change their passwords, there is the risk that the operating system passwords could be compromised. Setting the password maximum age ensures users are required to periodically change their passwords. Requiring shorter password lifetimes increases the risk of users writing down the password in a convenient location subject to physical compromise. |
medium |
CM-6(a),IA-5(1)(d),IA-5(f) |
NaN |
5.5.1.1 |
SRG-OS-000076-GPOS-00044 |
Set Password Expiration Parameters |
| CCE-80671-1 |
Set Password Warning Age |
7 |
via /etc/login.defs |
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: PASS_WARN_AGE The DoD requirement is 7. The profile requirement is . |
Setting the password warning age enables users to make the change at a practical time. |
medium |
CM-6(a),IA-5(1)(d),IA-5(f) |
NaN |
5.5.1.3 |
NaN |
Set Password Expiration Parameters |
| CCE-80652-1 |
Set Password Minimum Length in login.defs |
16 |
via /etc/login.defs |
To specify password length requirements for new accounts, edit the file /etc/login.defs and add or correct the following line: PASS_MIN_LEN The DoD requirement is 15. The FISMA requirement is 12. The profile requirement is . If a program consults /etc/login.defs and also another PAM module (such as pam_pwquality) during a password change operation, then the most restrictive must be satisfied. See PAM section for more information about enforcing password quality requirements. |
Requiring a minimum password length makes password cracking attacks more difficult by ensuring a larger search space. However, any security benefit from an onerous requirement must be carefully weighed against usability problems, support costs, or counterproductive behavior that may result. |
medium |
CM-6(a),IA-5(1)(a),IA-5(f) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000078-GPOS-00046 |
Set Password Expiration Parameters |
| CCE-83496-0 |
Modify the System Message of the Day Banner |
configure text |
via /etc/motd |
To configure the system message banner edit /etc/motd. 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. |
Display of a standardized and approved use notification before granting access to the operating system ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance. System use notifications are required only for access via login interfaces with human users and are not required when such human interfaces do not exist. |
medium |
NaN |
NaN |
1.8.1.1 |
NaN |
Warning Banners for System Accesses |
| CCE-83708-8 |
Verify Group Ownership of System Login Banner |
root |
via chgrp |
To properly set the group owner of /etc/issue, run the command: $ sudo chgrp root /etc/issue |
Display of a standardized and approved use notification before granting access to the operating system ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance. Proper group ownership will ensure that only root user can modify the banner. |
medium |
NaN |
NaN |
1.8.1.5 |
NaN |
Warning Banners for System Accesses |
| CCE-80763-6 |
Modify the System Login Banner |
configure text |
via /etc/issue |
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. |
Display of a standardized and approved use notification before granting access to the operating system ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance. System use notifications are required only for access via login interfaces with human users and are not required when such human interfaces do not exist. |
medium |
AC-8(a),AC-8(c) |
FMT_MOF_EXT.1 |
1.8.1.2 |
SRG-OS-000023-GPOS-00006,SRG-OS-000024-GPOS-00007 |
Warning Banners for System Accesses |
| CCE-83738-5 |
Verify ownership of Message of the Day Banner |
root |
via chown |
To properly set the owner of /etc/motd, run the command: $ sudo chown root /etc/motd |
Display of a standardized and approved use notification before granting access to the operating system ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance. Proper ownership will ensure that only root user can modify the banner. |
medium |
NaN |
NaN |
1.8.1.4 |
NaN |
Warning Banners for System Accesses |
| CCE-83728-6 |
Verify Group Ownership of Message of the Day Banner |
root |
via chgrp |
To properly set the group owner of /etc/motd, run the command: $ sudo chgrp root /etc/motd |
Display of a standardized and approved use notification before granting access to the operating system ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance. Proper group ownership will ensure that only root user can modify the banner. |
medium |
NaN |
NaN |
1.8.1.4 |
NaN |
Warning Banners for System Accesses |
| CCE-83348-3 |
Verify permissions on System Login Banner |
644 |
via chmod |
To properly set the permissions of /etc/issue, run the command: $ sudo chmod 0644 /etc/issue |
Display of a standardized and approved use notification before granting access to the operating system ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance. Proper permissions will ensure that only root user can modify the banner. |
medium |
NaN |
NaN |
1.8.1.5 |
NaN |
Warning Banners for System Accesses |
| CCE-83718-7 |
Verify ownership of System Login Banner |
644 |
via chmod |
To properly set the owner of /etc/issue, run the command: $ sudo chown root /etc/issue |
Display of a standardized and approved use notification before granting access to the operating system ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance. Proper ownership will ensure that only root user can modify the banner. |
medium |
NaN |
NaN |
1.8.1.5 |
NaN |
Warning Banners for System Accesses |
| CCE-83338-4 |
Verify permissions on Message of the Day Banner |
644 |
via chmod |
To properly set the permissions of /etc/motd, run the command: $ sudo chmod 0644 /etc/motd |
Display of a standardized and approved use notification before granting access to the operating system ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance. Proper permissions will ensure that only root user can modify the banner. |
medium |
NaN |
NaN |
1.8.1.4 |
NaN |
Warning Banners for System Accesses |
| CCE-80770-1 |
Set the GNOME3 Login Warning Banner Text |
configure text |
via dconf db config files |
In the default graphical environment, configuring the login warning banner text in the GNOME Display Manager's login screen can be configured on the login screen by setting banner-message-text to 'APPROVED_BANNER' where APPROVED_BANNER is the approved banner for your environment. To enable, add or edit banner-message-text to /etc/dconf/db/gdm.d/00-security-settings. For example: [org/gnome/login-screen] banner-message-text='APPROVED_BANNER' Once the setting has been added, add a lock to /etc/dconf/db/gdm.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/login-screen/banner-message-text After the settings have been set, run dconf update. When entering a warning banner that spans several lines, remember to begin and end the string with ' and use \n for new lines. |
An appropriate warning message reinforces policy awareness during the logon process and facilitates possible legal action against attackers. |
medium |
AC-8(a),AC-8(c) |
FMT_MOF_EXT.1 |
1.8.2 |
SRG-OS-000023-GPOS-00006,SRG-OS-000024-GPOS-00007,SRG-OS-000228-GPOS-00088 |
Implement a GUI Warning Banner |
| CCE-80768-5 |
Enable GNOME3 Login Warning Banner |
True |
via dconf db config files |
In the default graphical environment, displaying a login warning banner in the GNOME Display Manager's login screen can be enabled on the login screen by setting banner-message-enable to true. To enable, add or edit banner-message-enable to /etc/dconf/db/gdm.d/00-security-settings. For example: [org/gnome/login-screen] banner-message-enable=true Once the setting has been added, add a lock to /etc/dconf/db/gdm.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/login-screen/banner-message-enable After the settings have been set, run dconf update. The banner text must also be set. |
Display of a standardized and approved use notification before granting access to the operating system ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance. For U.S. Government systems, system use notifications are required only for access via login interfaces with human users and are not required when such human interfaces do not exist. |
medium |
AC-8(a),AC-8(b),AC-8(c) |
FMT_MOF_EXT.1 |
1.8.2 |
SRG-OS-000023-GPOS-00006,SRG-OS-000024-GPOS-00007,SRG-OS-000228-GPOS-00088 |
Implement a GUI Warning Banner |
| CCE-82953-1 |
Install audispd-plugins Package |
install |
via yum |
The audispd-plugins package can be installed with the following command: $ sudo yum install audispd-plugins |
audispd-plugins provides plugins for the real-time interface to the audit subsystem, audispd. These plugins can do things like relay events to remote machines or analyze events for suspicious behavior. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000342-GPOS-00133 |
System Accounting with auditd |
| CCE-81043-2 |
Ensure the audit Subsystem is Installed |
install |
via yum |
The audit package should be installed. |
The auditd service is an access monitoring and accounting daemon, watching system calls to audit any access, in comparison with potential local access control policy such as SELinux policy. |
medium |
AC-7(a),AU-12(2),AU-14,AU-2(a),AU-7(1),AU-7(2),CM-6(a) |
NaN |
4.1.1.1 |
SRG-OS-000122-GPOS-00063,SRG-OS-000480-GPOS-00227 |
System Accounting with auditd |
| CCE-80872-5 |
Enable auditd Service |
enable |
via systemctl |
The auditd service is an essential userspace component of the Linux Auditing System, as it is responsible for writing audit records to disk. The auditd service can be enabled with the following command: $ sudo systemctl enable auditd.service |
Without establishing what type of events occurred, it would be difficult to establish, correlate, and investigate the events leading up to an outage or attack. Ensuring the auditd service is active ensures audit records generated by the kernel are appropriately recorded. Additionally, a properly configured audit subsystem ensures that actions of individual system users can be uniquely traced to those users so they can be held accountable for their actions. |
high |
AC-2(g),AC-6(9),AU-10,AU-12(c),AU-14(1),AU-2(d),AU-3,CM-6(a) |
NaN |
4.1.1.2 |
SRG-OS-000037-GPOS-00015,SRG-OS-000038-GPOS-00016,SRG-OS-000039-GPOS-00017,SRG-OS-000040-GPOS-00018,SRG-OS-000042-GPOS-00021,SRG-OS-000254-GPOS-00095,SRG-OS-000255-GPOS-00096,SRG-OS-000365-GPOS-00152 |
System Accounting with auditd |
| CCE-80825-3 |
Enable Auditing for Processes Which Start Prior to the Audit Daemon |
audit=1 |
via grub |
To ensure all processes can be audited, even those which start prior to the audit daemon, add the argument audit=1 to the default GRUB 2 command line for the Linux operating system in /boot/grub2/grubenv, in the manner below: # grub2-editenv - set "$(grub2-editenv - list | grep kernelopts) audit=1" |
Each process on the system carries an "auditable" flag which indicates whether its activities can be audited. Although auditd takes care of enabling this for all processes which launch after it does, adding the kernel argument ensures it is set for every process during boot. |
medium |
AC-17(1),AU-10,AU-14(1),CM-6(a),IR-5(1) |
NaN |
4.1.1.3 |
SRG-OS-000254-GPOS-00095 |
System Accounting with auditd |
| CCE-80943-4 |
Extend Audit Backlog Limit for the Audit Daemon |
8192 |
via grub |
To improve the kernel capacity to queue all log events, even those which occurred prior to the audit daemon, add the argument audit_backlog_limit=8192 to the default GRUB 2 command line for the Linux operating system in /etc/default/grub, in the manner below: GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=VolGroup/LogVol06 rd.lvm.lv=VolGroup/lv_swap rhgb quiet rd.shell=0 audit=1 audit_backlog_limit=8192" |
audit_backlog_limit sets the queue length for audit events awaiting transfer to the audit daemon. Until the audit daemon is up and running, all log messages are stored in this queue. If the queue is overrun during boot process, the action defined by audit failure flag is taken. |
medium |
CM-6(a) |
NaN |
4.1.1.4 |
SRG-OS-000254-GPOS-00095 |
System Accounting with auditd |
| CCE-82384-9 |
Configure auditing of unsuccessful ownership changes |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that unsuccessful attempts to change an ownership of files or directories are audited. The following rules configure audit as described above: ## Unsuccessful ownership change -a always,exit -F arch=b32 -S lchown,fchown,chown,fchownat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-owner-change -a always,exit -F arch=b64 -S lchown,fchown,chown,fchownat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-owner-change -a always,exit -F arch=b32 -S lchown,fchown,chown,fchownat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-owner-change -a always,exit -F arch=b64 -S lchown,fchown,chown,fchownat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-owner-change The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-6-owner-change-failed.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-6-owner-change-failed.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Unsuccessful attempts to change an ownership of files or directories might be signs of a malicious activity. Having such events audited helps in monitoring and investigation of such activities. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000064-GPOS-00033,SRG-OS-000462-GPOS-00206,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000466-GPOS-00210,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82374-0 |
Configure auditing of unsuccessful file creations |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that unsuccessful attempts to create a file are audited. The following rules configure audit as described above: ## Unsuccessful file creation (open with O_CREAT) -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b32 -S open -F a1&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b64 -S open -F a1&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b32 -S creat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b64 -S creat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b32 -S open -F a1&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b64 -S open -F a1&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b32 -S creat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-create -a always,exit -F arch=b64 -S creat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-create The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-1-create-failed.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-1-create-failed.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Unsuccessful file creations might be a sign of a malicious action being performed on the system. Keeping log of such events helps in monitoring and investigation of such actions. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82837-6 |
Configure auditing of unsuccessful permission changes |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that unsuccessful attempts to change file or directory permissions are audited. The following rules configure audit as described above: ## Unsuccessful permission change -a always,exit -F arch=b32 -S chmod,fchmod,fchmodat,setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-perm-change -a always,exit -F arch=b64 -S chmod,fchmod,fchmodat,setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-perm-change -a always,exit -F arch=b32 -S chmod,fchmod,fchmodat,setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-perm-change -a always,exit -F arch=b64 -S chmod,fchmod,fchmodat,setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-perm-change The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-5-perm-change-failed.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-5-perm-change-failed.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Unsuccessful attempts to change permissions of files or directories might be signs of malicious activity. Having such events audited helps in monitoring and investigation of such activities. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000064-GPOS-00033,SRG-OS-000462-GPOS-00206,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000466-GPOS-00210,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82834-3 |
Configure auditing of successful file accesses |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that successful attempts to access a file are audited. The following rules configure audit as described above: ## Successful file access (any other opens) This has to go last. ## These next two are likely to result in a whole lot of events -a always,exit -F arch=b32 -S open,openat,open_by_handle_at -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access -a always,exit -F arch=b64 -S open,openat,open_by_handle_at -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-3-access-success.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-3-access-success.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Auditing of successful attempts to access a file helps in investigation of activities performed on the system. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82383-1 |
Configure auditing of successful permission changes |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that successful attempts to modify permissions of iles or directories are audited. The following rules configure audit as described above: ## Successful permission change -a always,exit -F arch=b32 -S chmod,fchmod,fchmodat,setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change -a always,exit -F arch=b64 -S chmod,fchmod,fchmodat,setxattr,lsetxattr,fsetxattr,removexattr,lremovexattr,fremovexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-5-perm-change-success.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-5-perm-change-success.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Auditing successful file or directory permission changes helps in monitoring and investigating of activities performed on the system. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000064-GPOS-00033,SRG-OS-000462-GPOS-00206,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000466-GPOS-00210,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82838-4 |
Configure auditing of loading and unloading of kernel modules |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that loading and unloading of kernel modules is audited. The following rules configure audit as described above: ## These rules watch for kernel module insertion. By monitoring ## the syscall, we do not need any watches on programs. -a always,exit -F arch=b32 -S init_module,finit_module -F key=module-load -a always,exit -F arch=b64 -S init_module,finit_module -F key=module-load -a always,exit -F arch=b32 -S delete_module -F key=module-unload -a always,exit -F arch=b64 -S delete_module -F key=module-unload The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/43-module-load.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/43-module-load.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load |
Loading of a malicious kernel module introduces a risk to the system, as the module has access to sensitive data and perform actions at the operating system kernel level. Having such events audited helps in monitoring and investigating of malicious activities. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000471-GPOS-00216,SRG-OS-000475-GPOS-00220,SRG-OS-000477-GPOS-00222 |
System Accounting with auditd |
| CCE-82385-6 |
Configure auditing of successful ownership changes |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that successful attempts to change an ownership of files or directories are audited. The following rules configure audit as described above: ## Successful ownership change -a always,exit -F arch=b32 -S lchown,fchown,chown,fchownat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-owner-change -a always,exit -F arch=b64 -S lchown,fchown,chown,fchownat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-owner-change The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-6-owner-change-success.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-6-owner-change-success.rules /etc/audit/rules.d/ The file has the following SHA-256 checksum: 7eb41a6aaf6737c2571b6424fae7fa53af4b41a9115b6c5732a5778ccd9900ad Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Auditing of successful ownership changes of files or directories helps in monitoring or investingating of activities performed on the system. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000064-GPOS-00033,SRG-OS-000462-GPOS-00206,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000466-GPOS-00210,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82836-8 |
Configure auditing of successful file deletions |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that successful attempts to delete a file are audited. The following rules configure audit as described above: ## Successful file delete -a always,exit -F arch=b32 -S unlink,unlinkat,rename,renameat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete -a always,exit -F arch=b64 -S unlink,unlinkat,rename,renameat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-4-delete-success.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-4-delete-success.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Auditing of successful attempts to delete a file may help in monitoring and investigation of activities performed on the system. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000467-GPOS-00211,SRG-OS-000468-GPOS-00212,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82828-5 |
Configure immutable Audit login UIDs |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Configure kernel to prevent modification of login UIDs once they are set. Changing login UUIDs while this configuration is enforced requires special capabilities which are not available to unprivileged users. The following rules configure audit as described above: ## Make the loginuid immutable. This prevents tampering with the auid. --loginuid-immutable The Audit provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/11-loginuid.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/11-loginuid.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load |
If modification of login UIDs is not prevented, they can be changed by unprivileged users and make auditing complicated or impossible. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000462-GPOS-00206,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82832-7 |
Configure auditing of successful file modifications |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that successful attempts to modify a file are audited. The following rules configure audit as described above: ## Successful file modifications (open for write or truncate) -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&01003 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&01003 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification -a always,exit -F arch=b32 -S open -F a1&01003 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification -a always,exit -F arch=b64 -S open -F a1&01003 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification -a always,exit -F arch=b32 -S truncate,ftruncate -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification -a always,exit -F arch=b64 -S truncate,ftruncate -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-2-modify-success.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-2-modify-success.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Auditing of successful attempts to modify a file helps in investigation of actions which happened on the system. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82835-0 |
Configure auditing of unsuccessful file deletions |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that unsuccessful attempts to delete a file are audited. The following rules configure audit as described above: ## Unsuccessful file delete -a always,exit -F arch=b32 -S unlink,unlinkat,rename,renameat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b64 -S unlink,unlinkat,rename,renameat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b32 -S unlink,unlinkat,rename,renameat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b64 -S unlink,unlinkat,rename,renameat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-4-delete-failed.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-4-delete-failed.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Unsuccessful attempts to delete a file might be signs of malicious activities. Auditing of such events help in monitoring and investigating of such activities. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000467-GPOS-00211,SRG-OS-000468-GPOS-00212,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82373-2 |
Perform general configuration of Audit for OSPP |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Configure some basic Audit parameters specific for OSPP profile. In particular, configure Audit to watch for direct modification of files storing system user and group information, and usage of applications with special rights which can change system configuration. Further audited events include access to audit log it self, attempts to Alter Process and Session Initiation Information, and attempts to modify MAC controls. The following rules configure audit as described above: ## The purpose of these rules is to meet the requirements for Operating ## System Protection Profile (OSPP)v4.2. These rules depends on having ## the following rule files copied to /etc/audit/rules.d: ## ## 10-base-config.rules, 11-loginuid.rules, ## 30-ospp-v42-1-create-failed.rules, 30-ospp-v42-1-create-success.rules, ## 30-ospp-v42-2-modify-failed.rules, 30-ospp-v42-2-modify-success.rules, ## 30-ospp-v42-3-access-failed.rules, 30-ospp-v42-3-access-success.rules, ## 30-ospp-v42-4-delete-failed.rules, 30-ospp-v42-4-delete-success.rules, ## 30-ospp-v42-5-perm-change-failed.rules, ## 30-ospp-v42-5-perm-change-success.rules, ## 30-ospp-v42-6-owner-change-failed.rules, ## 30-ospp-v42-6-owner-change-success.rules ## ## original copies may be found in /usr/share/audit/sample-rules/ ## User add delete modify. This is covered by pam. However, someone could ## open a file and directly create or modify a user, so we'll watch passwd and ## shadow for writes -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=user-modify -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=user-modify -a always,exit -F arch=b32 -S open -F a1&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=user-modify -a always,exit -F arch=b64 -S open -F a1&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=user-modify -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify -a always,exit -F arch=b32 -S open -F a1&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify -a always,exit -F arch=b64 -S open -F a1&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify ## User enable and disable. This is entirely handled by pam. ## Group add delete modify. This is covered by pam. However, someone could ## open a file and directly create or modify a user, so we'll watch group and ## gshadow for writes -a always,exit -F path=/etc/passwd -F perm=wa -F auid>=1000 -F auid!=unset -F key=user-modify -a always,exit -F path=/etc/shadow -F perm=wa -F auid>=1000 -F auid!=unset -F key=user-modify -a always,exit -F path=/etc/group -F perm=wa -F auid>=1000 -F auid!=unset -F key=group-modify -a always,exit -F path=/etc/gshadow -F perm=wa -F auid>=1000 -F auid!=unset -F key=group-modify ## Use of special rights for config changes. This would be use of setuid ## programs that relate to user accts. This is not all setuid apps because ## requirements are only for ones that affect system configuration. -a always,exit -F path=/usr/sbin/unix_chkpwd -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/sbin/usernetctl -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/sbin/userhelper -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/sbin/seunshare -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/bin/mount -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/bin/newgrp -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/bin/newuidmap -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/bin/gpasswd -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/bin/newgidmap -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/bin/umount -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/bin/passwd -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/bin/crontab -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes -a always,exit -F path=/usr/bin/at -F perm=x -F auid>=1000 -F auid!=unset -F key=special-config-changes ## Privilege escalation via su or sudo. This is entirely handled by pam. ## Audit log access -a always,exit -F dir=/var/log/audit/ -F perm=r -F auid>=1000 -F auid!=unset -F key=access-audit-trail ## Attempts to Alter Process and Session Initiation Information -a always,exit -F path=/var/run/utmp -F perm=wa -F auid>=1000 -F auid!=unset -F key=session -a always,exit -F path=/var/log/btmp -F perm=wa -F auid>=1000 -F auid!=unset -F key=session -a always,exit -F path=/var/log/wtmp -F perm=wa -F auid>=1000 -F auid!=unset -F key=session ## Attempts to modify MAC controls -a always,exit -F dir=/etc/selinux/ -F perm=wa -F auid>=1000 -F auid!=unset -F key=MAC-policy ## Software updates. This is entirely handled by rpm. ## System start and shutdown. This is entirely handled by systemd ## Kernel Module loading. This is handled in 43-module-load.rules ## Application invocation. The requirements list an optional requirement ## FPT_SRP_EXT.1 Software Restriction Policies. This event is intended to ## state results from that policy. This would be handled entirely by ## that daemon. The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Auditing of events listed in the description provides data for monitoring and investigation of potentially malicious events e.g. tampering with Audit logs, malicious access to files storing information about system users and groups etc. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000004-GPOS-00004,SRG-OS-000239-GPOS-00089,SRG-OS-000241-GPOS-00091,SRG-OS-000274-GPOS-00104,SRG-OS-000275-GPOS-00105,SRG-OS-000303-GPOS-00120,SRG-OS-000304-GPOS-00121,SRG-OS-000327-GPOS-00127,SRG-OS-000475-GPOS-00220,SRG-OS-000476-GPOS-00221 |
System Accounting with auditd |
| CCE-82833-5 |
Configure auditing of unsuccessful file accesses |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that unsuccessful attempts to access a file are audited. The following rules configure audit as described above: ## Unsuccessful file access (any other opens) This has to go last. -a always,exit -F arch=b32 -S open,openat,open_by_handle_at -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-access -a always,exit -F arch=b64 -S open,openat,open_by_handle_at -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-access -a always,exit -F arch=b32 -S open,openat,open_by_handle_at -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-access -a always,exit -F arch=b64 -S open,openat,open_by_handle_at -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-access Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Unsuccessful attempts to access a file might be signs of malicious activity happening within the system. Auditing of such activities helps in their monitoring and investigation. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82830-1 |
Configure auditing of unsuccessful file modifications |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that unsuccessful attempts to modify a file are audited. The following rules configure audit as described above: ## Unsuccessful file modifications (open for write or truncate) -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b32 -S open -F a1&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b64 -S open -F a1&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b32 -S truncate,ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b64 -S truncate,ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b32 -S open -F a1&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b64 -S open -F a1&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b32 -S truncate,ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification -a always,exit -F arch=b64 -S truncate,ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-modification The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-2-modify-failed.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-2-modify-failed.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load Note: This rule utilizes a file provided by Audit package to comply with OSPP 4.2.1. You may reuse this rule in different profiles. If you decide to do so, it is recommended that you inspect contents of the file closely and make sure that they are alligned with your needs. |
Unsuccessful file modifications might be a sign of a malicious action being performed on the system. Auditing of such events helps in detection and investigation of such actions. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82309-6 |
Configure audit according to OSPP requirements |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Configure audit to meet requirements for Operating System Protection Profile (OSPP) v4.2.1. Audit defines groups of rules in /usr/share/doc/audit/rules to satisfy specific policies. To fulfill requirements for compliance with OSPP v4.2.1, the following files are necessary: /usr/share/doc/audit/rules/10-base-config.rules/usr/share/doc/audit/rules/11-loginuid.rules/usr/share/doc/audit/rules/30-ospp-v42.rules/usr/share/doc/audit/rules/43-module-load.rules Copy the files from /usr/share/doc/audit/rules to /etc/audit/rules.d: cp /usr/share/doc/audit*/rules/{10-base-config,11-loginuid,30-ospp-v42,43-module-load}.rules /etc/audit/rules.d/ |
The audit rules defined in /usr/share/doc/audit/rules are the recommended way to meet compliance with OSPP v4.2.1. |
medium |
NONE |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000004-GPOS-00004,SRG-OS-000064-GPOS-00033,SRG-OS-000240-GPOS-00090,SRG-OS-000241-GPOS-00091,SRG-OS-000303-GPOS-00120,SRG-OS-000327-GPOS-00127,SRG-OS-000365-GPOS-00152,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205,SRG-OS-000462-GPOS-00206,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000466-GPOS-00210,SRG-OS-000467-GPOS-00211,SRG-OS-000468-GPOS-00212,SRG-OS-000470-GPOS-00214,SRG-OS-000471-GPOS-00215,SRG-OS-000471-GPOS-00216,SRG-OS-000472-GPOS-00217,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220,SRG-OS-000476-GPOS-00221,SRG-OS-000477-GPOS-00222 |
System Accounting with auditd |
| CCE-82829-3 |
Configure auditing of successful file creations |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Ensure that successful attempts to create a file are audited. The following rules configure audit as described above: ## Successful file creation (open with O_CREAT) -a always,exit -F arch=b32 -S openat,open_by_handle_at -F a2&0100 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create -a always,exit -F arch=b64 -S openat,open_by_handle_at -F a2&0100 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create -a always,exit -F arch=b32 -S open -F a1&0100 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create -a always,exit -F arch=b64 -S open -F a1&0100 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create -a always,exit -F arch=b32 -S creat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create -a always,exit -F arch=b64 -S creat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/30-ospp-v42-1-create-success.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/30-ospp-v42-1-create-success.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load |
Auditing of successful attempts to create a file helps in investigation of actions which happened on the system. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209,SRG-OS-000474-GPOS-00219,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-82827-7 |
Configure basic parameters of Audit system |
audit enabled |
via /etc/audit/audit.rules or auditctl |
Perform basic configuration of Audit system. Make sure that any previously defined rules are cleared, the auditing system is configured to handle sudden bursts of events, and in cases of failure, messages are configured to be directed to system log. The following rules configure audit as described above: ## First rule - delete all -D ## Increase the buffers to survive stress events. ## Make this bigger for busy systems -b 8192 ## This determine how long to wait in burst of events --backlog_wait_time 60000 ## Set failure mode to syslog -f 1 The Audit package provides pre-configured rules in /usr/share/audit/sample-rules. The above content can be found in /usr/share/audit/sample-rules/10-base-config.rules. To deploy this configuration, it is recommended to copy it over to the /etc/audit/rules.d/ directory: cp /usr/share/audit/sample-rules/10-base-config.rules /etc/audit/rules.d/ Load new Audit rules into kernel by running: augenrules --load |
Without basic configurations, audit may not perform as expected. It may not be able to correctly handle events under stressful conditions, or log events in case of failure. |
medium |
AU-2(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000365-GPOS-00152,SRG-OS-000475-GPOS-00220 |
System Accounting with auditd |
| CCE-80681-0 |
Configure auditd Max Log File Size |
6 |
via /etc/audit/auditd.conf |
Determine the amount of audit data (in megabytes) which should be retained in each log file. Edit the file /etc/audit/auditd.conf. Add or modify the following line, substituting the correct value of 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. |
The total storage for audit log files must be large enough to retain log information over the period required. This is a function of the maximum log file size and the number of logs retained. |
medium |
AU-11,CM-6(a) |
NaN |
4.1.2.1 |
NaN |
Configure auditd Data Retention |
| CCE-80678-6 |
Configure auditd mail_acct Action on Low Disk Space |
configure |
via /etc/audit/auditd.conf |
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 = |
Email sent to the root account is typically aliased to the administrators of the system, who can take appropriate action. |
medium |
AU-5(2),AU-5(a),CM-6(a),IA-5(1) |
NaN |
4.1.2.3 |
SRG-OS-000343-GPOS-00134 |
Configure auditd Data Retention |
| CCE-80683-6 |
Configure auditd Number of Logs Retained |
5 |
via /etc/audit/auditd.conf |
Determine how many log files auditd should retain when it rotates logs. Edit the file /etc/audit/auditd.conf. Add or modify the following line, substituting NUMLOGS with the correct value of : num_logs = NUMLOGS Set the value to 5 for general-purpose systems. Note that values less than 2 result in no log rotation. |
The total storage for audit log files must be large enough to retain log information over the period required. This is a function of the maximum log file size and the number of logs retained. |
medium |
AU-11,CM-6(a) |
NaN |
NaN |
NaN |
Configure auditd Data Retention |
| CCE-82233-8 |
Include Local Events in Audit Logs |
yes |
via /etc/audit/auditd.conf |
To configure Audit daemon to include local events in Audit logs, set local_events to yes in /etc/audit/auditd.conf. This is the default setting. |
If option local_events isn't set to yes only events from network will be aggregated. |
medium |
NaN |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000062-GPOS-00031 |
Configure auditd Data Retention |
| CCE-82258-5 |
Set number of records to cause an explicit flush to audit logs |
50 |
via /etc/audit/auditd.conf |
To configure Audit daemon to issue an explicit flush to disk command after writing 50 records, set freq to 50 in /etc/audit/auditd.conf. |
If option freq isn't set to 50, the flush to disk may happen after higher number of records, increasing the danger of audit loss. |
medium |
NaN |
FAU_GEN.1 |
NaN |
SRG-OS-000051-GPOS-00024 |
Configure auditd Data Retention |
| CCE-82201-5 |
Resolve information before writing to audit logs |
50 |
via /etc/audit/auditd.conf |
To configure Audit daemon to resolve all uid, gid, syscall, architecture, and socket address information before writing the events to disk, set log_format to ENRICHED in /etc/audit/auditd.conf. |
If option log_format isn't set to ENRICHED, the audit records will be stored in a format exactly as the kernel sends them. |
medium |
NaN |
FAU_GEN.1 |
NaN |
SRG-OS-000255-GPOS-00096 |
Configure auditd Data Retention |
| CCE-80684-4 |
Configure auditd space_left Action on Low Disk Space |
single |
via /etc/audit/auditd.conf |
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: syslogemailexecsuspendsinglehalt Set this to email (instead of the default, which is suspend) as it is more likely to get prompt attention. Acceptable values also include suspend, single, and halt. |
Notifying administrators of an impending disk space problem may allow them to take corrective action prior to any disruption. |
medium |
AU-5(1),AU-5(2),AU-5(4),AU-5(b),CM-6(a) |
NaN |
4.1.2.3 |
SRG-OS-000343-GPOS-00134 |
Configure auditd Data Retention |
| CCE-82366-6 |
Write Audit Logs to the Disk |
yes |
via /etc/audit/auditd.conf |
To configure Audit daemon to write Audit logs to the disk, set write_logs to yes in /etc/audit/auditd.conf. This is the default setting. |
If write_logs isn't set to yes, the Audit logs will not be written to the disk. |
medium |
NaN |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure auditd Data Retention |
| CCE-82897-0 |
Set hostname as computer node name in audit logs |
hostname |
via /etc/audit/auditd.conf |
To configure Audit daemon to use value returned by gethostname syscall as computer node name in the audit events, set name_format to hostname in /etc/audit/auditd.conf. |
If option name_format is left at its default value of none, audit events from different computers may be hard to distinguish. |
medium |
NaN |
FAU_GEN.1 |
NaN |
SRG-OS-000039-GPOS-00017,SRG-OS-000342-GPOS-00133,SRG-OS-000479-GPOS-00224 |
Configure auditd Data Retention |
| CCE-80677-8 |
Configure auditd to use audispd's syslog plugin |
yes |
/etc/audisp/plugins.d/syslog.conf |
To configure the auditd service to use the syslog plug-in of the audispd audit event multiplexor, set the active line in /etc/audit/plugins.d/syslog.conf to yes. Restart the auditd service: $ sudo service auditd restart |
The auditd service does not include the ability to send audit records to a centralized server for management directly. It does, however, include a plug-in for audit event multiplexor (audispd) to pass audit records to the local syslog server |
medium |
AU-4(1),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000342-GPOS-00133,SRG-OS-000479-GPOS-00224 |
Configure auditd Data Retention |
| CCE-80679-4 |
Configure auditd admin_space_left Action on Low Disk Space |
single |
via /etc/audit/auditd.conf |
The auditd service can be configured to take an action when disk space is running low but prior to running out of space completely. Edit the file /etc/audit/auditd.conf. Add or modify the following line, substituting ACTION appropriately: admin_space_left_action = ACTION Set this value to single to cause the system to switch to single user mode for corrective action. Acceptable values also include suspend and halt. For certain systems, the need for availability outweighs the need to log all actions, and a different setting should be determined. Details regarding all possible values for ACTION are described in the auditd.conf man page. |
Administrators should be made aware of an inability to record audit records. If a separate partition or logical volume of adequate size is used, running low on space for audit records should never occur. |
medium |
AU-5(1),AU-5(2),AU-5(4),AU-5(b),CM-6(a) |
NaN |
4.1.2.3 |
SRG-OS-000343-GPOS-00134 |
Configure auditd Data Retention |
| CCE-80926-9 |
Encrypt Audit Records Sent With audispd Plugin |
yes |
via /etc/audisp/audisp-remote.conf |
Configure the operating system to encrypt the transfer of off-loaded audit records onto a different system or media from the system being audited. Set the transport option in /etc/audit/audisp-remote.conf to KRB5. |
Information stored in one location is vulnerable to accidental or incidental deletion or alteration. Off-loading is a common process in information systems with limited audit storage capacity. |
medium |
AU-9(3),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000342-GPOS-00133,SRG-OS-000479-GPOS-00224 |
Configure auditd Data Retention |
| CCE-80680-2 |
Configure auditd flush priority |
manually |
via /etc/audit/auditd.conf |
The auditd service can be configured to synchronously write audit event data to disk. Add or correct the following line in /etc/audit/auditd.conf to ensure that audit event data is fully synchronized with the log files on the disk: flush = |
Audit data should be synchronously written to disk to ensure log integrity. These parameters assure that all audit event data is fully synchronized with the log files on the disk. |
medium |
AU-11,CM-6(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure auditd Data Retention |
| CCE-80682-8 |
Configure auditd max_log_file_action Upon Reaching Maximum Log Size |
single |
via /etc/audit/auditd.conf |
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: syslogsuspendrotatekeep_logs Set the ACTION to rotate to ensure log rotation occurs. This is the default. The setting is case-insensitive. |
Automatically rotating logs (by setting this to rotate) minimizes the chances of the system unexpectedly running out of disk space by being overwhelmed with log data. However, for systems that must never discard log data, or which use external processes to transfer it and reclaim space, keep_logs can be employed. |
medium |
AU-5(1),AU-5(2),AU-5(4),AU-5(b),CM-6(a) |
NaN |
4.1.2.2 |
NaN |
Configure auditd Data Retention |
| CCE-80925-1 |
Configure audispd Plugin To Send Logs To Remote Server |
configure |
via /etc/audit/auditd.conf |
Configure the audispd plugin to off-load audit records onto a different system or media from the system being audited. Set the remote_server option in /etc/audit/audisp-remote.conf with an IP address or hostname of the system that the audispd plugin should send audit records to. For example remote_server = |
Information stored in one location is vulnerable to accidental or incidental deletion or alteration.Off-loading is a common process in information systems with limited audit storage capacity. |
medium |
NaN |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000342-GPOS-00133,SRG-OS-000479-GPOS-00224 |
Configure auditd Data Retention |
| CCE-80956-6 |
Record Events that Modify User/Group Information via open syscall - /etc/shadow |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/shadow file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open -F a1&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open -F a1&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S open -F a1&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify |
Creation of users through direct edition of /etc/shadow could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80758-6 |
Record Events that Modify User/Group Information - /etc/group |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d, in order to capture events that modify account changes: -w /etc/group -p wa -k audit_rules_usergroup_modification If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file, in order to capture events that modify account changes: -w /etc/group -p wa -k audit_rules_usergroup_modification |
In addition to auditing new user and group accounts, these watches will alert the system administrator(s) to any modifications. Any unexpected users, groups, or modifications should be investigated for legitimacy. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.5 |
SRG-OS-000004-GPOS-00004 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80960-8 |
Record Events that Modify User/Group Information via open_by_handle_at syscall - /etc/gshadow |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/gshadow file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open_by_handle_at -F a2&03 -F path=/etc/gshadow -F auid>=1000 -F auid!=unset -F key=user-modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open_by_handle_at -F a2&03 -F path=/etc/gshadow -F auid>=1000 -F auid!=unset -F key=user-modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S open_by_handle_at -F a2&03 -F path=/etc/gshadow -F auid>=1000 -F auid!=unset -F key=user-modify |
Creation of users through direct edition of /etc/gshadow could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80761-0 |
Record Events that Modify User/Group Information - /etc/passwd |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d, in order to capture events that modify account changes: -w /etc/passwd -p wa -k audit_rules_usergroup_modification If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file, in order to capture events that modify account changes: -w /etc/passwd -p wa -k audit_rules_usergroup_modification |
In addition to auditing new user and group accounts, these watches will alert the system administrator(s) to any modifications. Any unexpected users, groups, or modifications should be investigated for legitimacy. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.5 |
SRG-OS-000004-GPOS-00004,SRG-OS-000239-GPOS-00089,SRG-OS-000240-GPOS-00090,SRG-OS-000241-GPOS-00091,SRG-OS-000274-GPOS-00104,SRG-OS-000275-GPOS-00105,SRG-OS-000276-GPOS-00106,SRG-OS-000277-GPOS-00107,SRG-OS-000303-GPOS-00120,SRG-OS-000476-GPOS-00221 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80762-8 |
Record Events that Modify User/Group Information - /etc/shadow |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d, in order to capture events that modify account changes: -w /etc/shadow -p wa -k audit_rules_usergroup_modification If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file, in order to capture events that modify account changes: -w /etc/shadow -p wa -k audit_rules_usergroup_modification |
In addition to auditing new user and group accounts, these watches will alert the system administrator(s) to any modifications. Any unexpected users, groups, or modifications should be investigated for legitimacy. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.5 |
SRG-OS-000004-GPOS-00004 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80760-2 |
Record Events that Modify User/Group Information - /etc/security/opasswd |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d, in order to capture events that modify account changes: -w /etc/security/opasswd -p wa -k audit_rules_usergroup_modification If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file, in order to capture events that modify account changes: -w /etc/security/opasswd -p wa -k audit_rules_usergroup_modification |
In addition to auditing new user and group accounts, these watches will alert the system administrator(s) to any modifications. Any unexpected users, groups, or modifications should be investigated for legitimacy. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.5 |
SRG-OS-000004-GPOS-00004 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80708-1 |
Make the auditd Configuration Immutable |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d in order to make the auditd configuration immutable: -e 2 If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file in order to make the auditd configuration immutable: -e 2 With this setting, a reboot will be required to change any audit rules. |
Making the audit configuration immutable prevents accidental as well as malicious modification of the audit rules, although it may be problematic if legitimate changes are needed during system operation |
medium |
AC-6(9),CM-6(a) |
NaN |
4.1.18 |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80723-0 |
Record Events that Modify the System's Network Environment |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S sethostname,setdomainname -F key=audit_rules_networkconfig_modification -w /etc/issue -p wa -k audit_rules_networkconfig_modification -w /etc/issue.net -p wa -k audit_rules_networkconfig_modification -w /etc/hosts -p wa -k audit_rules_networkconfig_modification -w /etc/sysconfig/network -p wa -k audit_rules_networkconfig_modification If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S sethostname,setdomainname -F key=audit_rules_networkconfig_modification -w /etc/issue -p wa -k audit_rules_networkconfig_modification -w /etc/issue.net -p wa -k audit_rules_networkconfig_modification -w /etc/hosts -p wa -k audit_rules_networkconfig_modification -w /etc/sysconfig/network -p wa -k audit_rules_networkconfig_modification |
The network environment should not be modified by anything other than administrator action. Any change to network parameters should be audited. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
4.18 |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80957-4 |
Record Events that Modify User/Group Information via open_by_handle_at syscall - /etc/shadow |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/shadow file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open_by_handle_at -F a2&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open_by_handle_at -F a2&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S open_by_handle_at -F a2&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify |
Creation of users through direct edition of /etc/shadow could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80927-7 |
Record Events that Modify User/Group Information via open syscall - /etc/group |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/group file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open -F a1&03 -F path=/etc/group -F auid>=1000 -F auid!=unset -F key=modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open -F a1&03 -F path=/etc/group -F auid>=1000 -F auid!=unset -F key=modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S open -F a1&03 -F path=/etc/group -F auid>=1000 -F auid!=unset -F key=modify |
Creation of groups through direct edition of /etc/group could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80930-1 |
Record Events that Modify User/Group Information via open syscall - /etc/passwd |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/passwd file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open -F a1&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open -F a1&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S open -F a1&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=modify |
Creation of users through direct edition of /etc/passwd could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80961-6 |
Record Events that Modify User/Group Information via openat syscall - /etc/gshadow |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/gshadow file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S openat -F a2&03 -F path=/etc/gshadow -F auid>=1000 -F auid!=unset -F key=user-modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S openat -F a2&03 -F path=/etc/gshadow -F auid>=1000 -F auid!=unset -F key=user-modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S openat -F a2&03 -F path=/etc/gshadow -F auid>=1000 -F auid!=unset -F key=user-modify |
Creation of users through direct edition of /etc/gshadow could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80743-8 |
Ensure auditd Collects System Administrator Actions |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect administrator actions for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -w /etc/sudoers -p wa -k actions -w /etc/sudoers.d/ -p wa -k actions If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -w /etc/sudoers -p wa -k actions -w /etc/sudoers.d/ -p wa -k actions |
The actions taken by system administrators should be audited to keep a record of what was executed on the system, as well as, for accountability purposes. |
medium |
AC-2(7)(b),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
4.1.3 |
SRG-OS-000037-GPOS-00015,SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000462-GPOS-00206,SRG-OS-000471-GPOS-00215 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80757-8 |
Record Events that Modify User/Group Information |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d, in order to capture events that modify account changes: -w /etc/group -p wa -k audit_rules_usergroup_modification -w /etc/passwd -p wa -k audit_rules_usergroup_modification -w /etc/gshadow -p wa -k audit_rules_usergroup_modification -w /etc/shadow -p wa -k audit_rules_usergroup_modification -w /etc/security/opasswd -p wa -k audit_rules_usergroup_modification If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file, in order to capture events that modify account changes: -w /etc/group -p wa -k audit_rules_usergroup_modification -w /etc/passwd -p wa -k audit_rules_usergroup_modification -w /etc/gshadow -p wa -k audit_rules_usergroup_modification -w /etc/shadow -p wa -k audit_rules_usergroup_modification -w /etc/security/opasswd -p wa -k audit_rules_usergroup_modification |
In addition to auditing new user and group accounts, these watches will alert the system administrator(s) to any modifications. Any unexpected users, groups, or modifications should be investigated for legitimacy. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
5.2.5 |
SRG-OS-000004-GPOS-00004,SRG-OS-000037-GPOS-00015,SRG-OS-000042-GPOS-00020,SRG-OS-000239-GPOS-00089,SRG-OS-000241-GPOS-00090,SRG-OS-000241-GPOS-00091,SRG-OS-000303-GPOS-00120,SRG-OS-000392-GPOS-00172,SRG-OS-000462-GPOS-00206,SRG-OS-000471-GPOS-00215,SRG-OS-000476-GPOS-00221 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80759-4 |
Record Events that Modify User/Group Information - /etc/gshadow |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d, in order to capture events that modify account changes: -w /etc/gshadow -p wa -k audit_rules_usergroup_modification If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file, in order to capture events that modify account changes: -w /etc/gshadow -p wa -k audit_rules_usergroup_modification |
In addition to auditing new user and group accounts, these watches will alert the system administrator(s) to any modifications. Any unexpected users, groups, or modifications should be investigated for legitimacy. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.5 |
SRG-OS-000004-GPOS-00004 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80929-3 |
Record Events that Modify User/Group Information via open_by_handle_at syscall - /etc/group |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/group file for all group and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open_by_handle_at -F a2&03 -F path=/etc/group -F auid>=1000 -F auid!=unset -F key=modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open_by_handle_at -F a2&03 -F path=/etc/group -F auid>=1000 -F auid!=unset -F key=modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S open_by_handle_at -F a2&03 -F path=/etc/group -F auid>=1000 -F auid!=unset -F key=modify |
Creation of groups through direct edition of /etc/group could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80742-0 |
Record Attempts to Alter Process and Session Initiation Information |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system already collects process information for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d in order to watch for attempted manual edits of files involved in storing such process information: -w /var/run/utmp -p wa -k session -w /var/log/btmp -p wa -k session -w /var/log/wtmp -p wa -k session If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file in order to watch for attempted manual edits of files involved in storing such process information: -w /var/run/utmp -p wa -k session -w /var/log/btmp -p wa -k session -w /var/log/wtmp -p wa -k session |
Manual editing of these files may indicate nefarious activity, such as an attacker attempting to remove evidence of an intrusion. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
4.1.5 |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80959-0 |
Record Events that Modify User/Group Information via open syscall - /etc/gshadow |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/gshadow file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open -F a1&03 -F path=/etc/gshadow -F auid>=1000 -F auid!=unset -F key=user-modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open -F a1&03 -F path=/etc/gshadow -F auid>=1000 -F auid!=unset -F key=user-modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S open -F a1&03 -F path=/etc/gshadow -F auid>=1000 -F auid!=unset -F key=user-modify |
Creation of users through direct edition of /etc/gshadow could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80932-7 |
Record Events that Modify User/Group Information via open_by_handle_at syscall - /etc/passwd |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/passwd file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open_by_handle_at -F a2&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open_by_handle_at -F a2&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S open_by_handle_at -F a2&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=modify |
Creation of users through direct edition of /etc/passwd could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80958-2 |
Record Events that Modify User/Group Information via openat syscall - /etc/shadow |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/shadow file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S openat -F a2&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S openat -F a2&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S openat -F a2&03 -F path=/etc/shadow -F auid>=1000 -F auid!=unset -F key=user-modify |
Creation of users through direct edition of /etc/shadow could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80819-6 |
System Audit Logs Must Have Mode 0640 or Less Permissive |
600 |
via chmod |
If log_group in /etc/audit/auditd.conf is set to a group other than the root group account, change the mode of the audit log files with the following command: $ sudo chmod 0640 audit_file Otherwise, change the mode of the audit log files with the following command: $ sudo chmod 0600 audit_file |
If users can write to audit logs, audit trails can be modified or destroyed. |
medium |
AC-6(1),AU-9(4),CM-6(a) |
NaN |
NaN |
SRG-OS-000057-GPOS-00027,SRG-OS-000058-GPOS-00028,SRG-OS-000059-GPOS-00029,SRG-OS-000206-GPOS-00084 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80941-8 |
Record Access Events to Audit Log Directory |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect access events to read audit log directory. The following audit rule will assure that access to audit log directory are collected. -a always,exit -F dir=/var/log/audit/ -F perm=r -F auid>=1000 -F auid!=unset -F key=access-audit-trail If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rule to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rule to /etc/audit/audit.rules file. |
Attempts to read the logs should be recorded, suspicious access to audit log files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise.' |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80931-9 |
Record Events that Modify User/Group Information via openat syscall - /etc/passwd |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/passwd file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S openat -F a2&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S openat -F a2&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S openat -F a2&03 -F path=/etc/passwd -F auid>=1000 -F auid!=unset -F key=modify |
Creation of users through direct edition of /etc/passwd could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80928-5 |
Record Events that Modify User/Group Information via openat syscall - /etc/group |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect write events to /etc/group file for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S openat -F a2&03 -F path=/etc/group -F auid>=1000 -F auid!=unset -F key=modify If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S openat -F a2&03 -F path=/etc/group -F auid>=1000 -F auid!=unset -F key=modify If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S openat -F a2&03 -F path=/etc/group -F auid>=1000 -F auid!=unset -F key=modify |
Creation of groups through direct edition of /etc/group could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80808-9 |
System Audit Logs Must Be Owned By Root |
root |
via chown |
All audit logs must be owned by root user and group. By default, the path for audit log is /var/log/audit/. To properly set the owner of /var/log/audit, run the command: $ sudo chown root /var/log/audit To properly set the owner of /var/log/audit/*, run the command: $ sudo chown root /var/log/audit/* |
Unauthorized disclosure of audit records can reveal system and configuration data to attackers, thus compromising its confidentiality. |
medium |
AC-6(1),AU-9(4),CM-6(a) |
NaN |
NaN |
SRG-OS-000057-GPOS-00027,SRG-OS-000058-GPOS-00028,SRG-OS-000059-GPOS-00029,SRG-OS-000206-GPOS-00084 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80744-6 |
Shutdown System When Auditing Failures Occur |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -f 2 If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to the top of the /etc/audit/audit.rules file: -f 2 |
It is critical for the appropriate personnel to be aware if a system is at risk of failing to process audit logs as required. Without this notification, the security personnel may be unaware of an impending failure of the audit capability, and system operation may be adversely affected. Audit processing failures include software/hardware errors, failures in the audit capturing mechanisms, and audit storage capacity being reached or exceeded. |
medium |
AU-5(b),CM-6(a),SC-24 |
NaN |
NaN |
SRG-OS-000046-GPOS-00022,SRG-OS-000047-GPOS-00023 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80721-4 |
Record Events that Modify the System's Mandatory Access Controls |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -w /etc/selinux/ -p wa -k MAC-policy If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -w /etc/selinux/ -p wa -k MAC-policy |
The system's mandatory access policy (SELinux) should not be arbitrarily changed by anything other than administrator action. All changes to MAC policy should be audited. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
4.1.7 |
NaN |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80722-2 |
Ensure auditd Collects Information on Exporting to Media (successful) |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect media exportation events for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S mount -F auid>=1000 -F auid!=unset -F key=export If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S mount -F auid>=1000 -F auid!=unset -F key=export |
The unauthorized exportation of data to external media could result in an information leak where classified information, Privacy Act information, and intellectual property could be lost. An audit trail should be created each time a filesystem is mounted to help identify and guard against information loss. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
5.2.13 |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172 |
Configure auditd Rules for Comprehensive Auditing |
| CCE-80965-7 |
Record Unsuccessful Creation Attempts to Files - open_by_handle_at O_CREAT |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unauthorized file accesses for all users and root. The open_by_handle_at syscall can be used to create new files when O_CREAT flag is specified. The following auidt rules will asure that unsuccessful attempts to create a file via open_by_handle_at syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S open_by_handle_at -F a2&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b32 -S open_by_handle_at -F a2&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open_by_handle_at -F a2&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b64 -S open_by_handle_at -F a2&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80750-3 |
Ensure auditd Collects Unauthorized Access Attempts to Files (unsuccessful) |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S creat,open,openat,open_by_handle_at,truncate,ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S creat,open,openat,open_by_handle_at,truncate,ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S creat,open,openat,open_by_handle_at,truncate,ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S creat,open,openat,open_by_handle_at,truncate,ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S creat,open,openat,open_by_handle_at,truncate,ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S creat,open,openat,open_by_handle_at,truncate,ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S creat,open,openat,open_by_handle_at,truncate,ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S creat,open,openat,open_by_handle_at,truncate,ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
5.2.10 |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80752-9 |
Record Unsuccessful Access Attempts to Files - ftruncate |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S ftruncate -F exiu=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82128-0 |
Record Successful Ownership Changes to Files - fchown |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file ownership changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fchown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fchown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File ownership attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82101-7 |
Record Successful Permission Changes to Files - fchmod |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fchmod -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchmod -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fchmod -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchmod -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File permission changes could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82098-5 |
Record Successful Permission Changes to Files - chmod |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S chmod -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S chmod -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S chmod -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S chmod -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File permission changes could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80974-9 |
Record Unsuccessul Delete Attempts to Files - renameat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file deletion attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S renameat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b32 -S renameat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S renameat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b64 -S renameat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete |
Unsuccessful attempts to delete files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80972-3 |
Record Unsuccessul Delete Attempts to Files - unlinkat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file deletion attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S unlinkat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b32 -S unlinkat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S unlinkat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b64 -S unlinkat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete |
Unsuccessful attempts to delete files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80970-7 |
Ensure auditd Rules For Unauthorized Attempts To open Are Ordered Correctly |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect detailed unauthorized file accesses for all users and root. To correctly identify unsuccessful creation, unsuccessful modification and unsuccessful access of files via open syscall the audit rules collecting these events need to be in certain order. The more specific rules need to come before the less specific rules. The reason for that is that more specific rules cover a subset of events covered in the less specific rules, thus, they need to come before to not be overshadowed by less specific rules, which match a bigger set of events. Make sure that rules for unsuccessful calls of open syscall are in the order shown below. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), check the order of rules below in a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, check the order of rules below in /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S open -F a1&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b32 -S open -F a1&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b32 -S open -F a1&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b32 -S open -F a1&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b32 -S open -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-access -a always,exit -F arch=b32 -S open -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open -F a1&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b64 -S open -F a1&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b64 -S open -F a1&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b64 -S open -F a1&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b64 -S open -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-access -a always,exit -F arch=b64 -S open -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-access |
The more specific rules cover a subset of events covered by the less specific rules. By ordering them from more specific to less specific, it is assured that the less specific rule will not catch events better recorded by the more specific rule. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82113-2 |
Record Successful Permission Changes to Files - fsetxattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fsetxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fsetxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fsetxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fsetxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File permission changes could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82006-8 |
Record Successful Access Attempts to Files - ftruncate |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S ftruncate -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S ftruncate -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S ftruncate -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S ftruncate -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access |
File access attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82131-4 |
Record Successful Ownership Changes to Files - chown |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file ownership changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S chown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S chown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S chown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S chown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File ownership attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82086-0 |
Record Successful Delete Attempts to Files - unlink |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file deletion for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S unlink -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S unlink -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S unlink -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S unlink -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete |
File deletion attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82107-4 |
Record Successful Permission Changes to Files - setxattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S setxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S setxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S setxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S setxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File deletion attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80985-5 |
Record Unsuccessul Ownership Changes to Files - fchownat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file ownership change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S fchownat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S fchownat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchownat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S fchownat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change ownership of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80973-1 |
Record Unsuccessul Delete Attempts to Files - rename |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file deletion attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S rename -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b32 -S rename -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S rename -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b64 -S rename -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete |
Unsuccessful attempts to delete files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82119-9 |
Record Successful Permission Changes to Files - lremovexattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S lremovexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S lremovexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S lremovexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S lremovexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File permission changes could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82116-5 |
Record Successful Permission Changes to Files - removexattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S removexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S removexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S removexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S removexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File permission changes could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82122-3 |
Record Successful Permission Changes to Files - fremovexattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fremovexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fremovexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fremovexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fremovexattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File permission changes could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-81147-1 |
Record Successful Access Attempts to Files - open |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access |
File access attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82089-4 |
Record Successful Delete Attempts to Files - unlinkat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file deletion for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S unlinkat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S unlinkat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S unlinkat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S unlinkat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete |
File deletion attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80987-1 |
Record Unsuccessul Ownership Changes to Files - lchown |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file ownership change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S lchown -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S lchown -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S lchown -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S lchown -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change ownership of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80980-6 |
Record Unsuccessul Permission Changes to Files - lremovexattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file permission change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S lremovexattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S lremovexattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S lremovexattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S lremovexattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change permissions of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80983-0 |
Record Unsuccessul Permission Changes to Files - setxattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file permission change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S setxattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S setxattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S setxattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S setxattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change permissions of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80754-5 |
Record Unsuccessful Access Attempts to Files - openat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S openat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S openat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S openat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S openat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S openat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S openat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S openat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S openat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80986-3 |
Record Unsuccessul Ownership Changes to Files - fchown |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file ownership change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S fchown -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S fchown -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchown -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S fchown -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change ownership of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80756-0 |
Record Unsuccessful Access Attempts to Files - truncate |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S truncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S truncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S truncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S truncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S truncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S truncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S truncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S truncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80971-5 |
Record Unsuccessul Delete Attempts to Files - unlink |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file deletion attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S unlink -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b32 -S unlink -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S unlink -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete -a always,exit -F arch=b64 -S unlink -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccessful-delete |
Unsuccessful attempts to delete files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82010-0 |
Record Successful Access Attempts to Files - openat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S openat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S openat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S openat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S openat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access |
File access attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80981-4 |
Record Unsuccessul Permission Changes to Files - lsetxattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file permission change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S lsetxattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S lsetxattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S lsetxattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S lsetxattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change permissions of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80751-1 |
Record Unsuccessful Access Attempts to Files - creat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S creat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S creat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S creat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S creat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S creat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S creat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S creat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S creat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80964-0 |
Ensure auditd Rules For Unauthorized Attempts To openat Are Ordered Correctly |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect detailed unauthorized file accesses for all users and root. To correctly identify unsuccessful creation, unsuccessful modification and unsuccessful access of files via openat syscall the audit rules collecting these events need to be in certain order. The more specific rules need to come before the less specific rules. The reason for that is that more specific rules cover a subset of events covered in the less specific rules, thus, they need to come before to not be overshadowed by less specific rules, which match a bigger set of events. Make sure that rules for unsuccessful calls of openat syscall are in the order shown below. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), check the order of rules below in a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, check the order of rules below in /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S openat -F a2&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b32 -S openat -F a2&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b32 -S openat -F a2&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b32 -S openat -F a2&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b32 -S openat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-access -a always,exit -F arch=b32 -S openat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S openat -F a2&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b64 -S openat -F a2&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b64 -S openat -F a2&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b64 -S openat -F a2&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b64 -S openat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-access -a always,exit -F arch=b64 -S openat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-access |
The more specific rules cover a subset of events covered by the less specific rules. By ordering them from more specific to less specific, it is assured that the less specific rule will not catch events better recorded by the more specific rule. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80755-2 |
Record Unsuccessful Access Attempts to Files - open_by_handle_at |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open_by_handle_at -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S open_by_handle_at -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open_by_handle_at -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S open_by_handle_at -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open_by_handle_at,truncate,ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S open_by_handle_at,truncate,ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open_by_handle_at,truncate,ftruncate -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S open_by_handle_at,truncate,ftruncate -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80968-1 |
Record Unsuccessful Creation Attempts to Files - open O_CREAT |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unauthorized file accesses for all users and root. The open syscall can be used to create new files when O_CREAT flag is specified. The following auidt rules will asure that unsuccessful attempts to create a file via open syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S open -F a1&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b32 -S open -F a1&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open -F a1&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b64 -S open -F a1&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80966-5 |
Record Unsuccessful Modification Attempts to Files - open_by_handle_at O_TRUNC_WRITE |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect detailed unauthorized file accesses for all users and root. The open_by_handle_at syscall can be used to modify files if called for write operation of with O_TRUNC_WRITE flag. The following auidt rules will asure that unsuccessful attempts to modify a file via open_by_handle_at syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S open_by_handle_at -F a2&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b32 -S open_by_handle_at -F a2&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open_by_handle_at -F a2&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b64 -S open_by_handle_at -F a2&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82125-6 |
Record Successful Ownership Changes to Files - lchown |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file ownership changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S lchown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S lchown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S lchown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S lchown -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File ownership attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82013-4 |
Record Successful Access Attempts to Files - open_by_handle_at |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open_by_handle_at -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open_by_handle_at -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open_by_handle_at -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open_by_handle_at -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access |
File access attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-81141-4 |
Record Successful Creation Attempts to Files - open_by_handle_at O_TRUNC_WRITE |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect detailed file access records for all users and root. The open_by_handle_at syscall can be used to modify files if called for write operation with the O_TRUNC_WRITE flag. The following audit rules will assure that successful attempts to create a file via open_by_handle_at syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S open_by_handle_at -F a2&01003 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open_by_handle_at -F a2&01003 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification |
Successful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82095-1 |
Record Successful Delete Attempts to Files - renameat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file deletion for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S renameat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S renameat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S renameat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S renameat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete |
File deletion attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-81132-3 |
Record Successful Creation Attempts to Files - open_by_handle_at O_CREAT |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The open_by_handle_at syscall can be used to create new files when O_CREAT flag is specified. The following audit rules will assure that successful attempts to create a file via open_by_handle_at syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S open_by_handle_at -F a2&0100 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open_by_handle_at -F a2&0100 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create |
Successful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80969-9 |
Record Unsuccessful Modification Attempts to Files - open O_TRUNC_WRITE |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect detailed unauthorized file accesses for all users and root. The open syscall can be used to modify files if called for write operation of with O_TRUNC_WRITE flag. The following auidt rules will asure that unsuccessful attempts to modify a file via open syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S open -F a1&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b32 -S open -F a1&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open -F a1&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b64 -S open -F a1&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80962-4 |
Record Unsuccessful Creation Attempts to Files - openat O_CREAT |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unauthorized file accesses for all users and root. The openat syscall can be used to create new files when O_CREAT flag is specified. The following auidt rules will asure that unsuccessful attempts to create a file via openat syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S openat -F a2&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b32 -S openat -F a2&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S openat -F a2&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b64 -S openat -F a2&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80977-2 |
Record Unsuccessul Permission Changes to Files - fchmod |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file permission change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S fchmod -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S fchmod -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchmod -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S fchmod -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change permissions of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80978-0 |
Record Unsuccessul Permission Changes to Files - fremovexattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file permission change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S fremovexattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S fremovexattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fremovexattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S fremovexattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change permissions of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82134-8 |
Record Successful Ownership Changes to Files - fchownat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file ownership changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fchownat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchownat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fchownat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchownat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File ownership attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-81150-5 |
Record Successful Access Attempts to Files - creat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S creat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S creat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S creat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S creat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access |
File access attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80967-3 |
Ensure auditd Unauthorized Access Attempts To open_by_handle_at Are Ordered Correctly |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect detailed unauthorized file accesses for all users and root. To correctly identify unsuccessful creation, unsuccessful modification and unsuccessful access of files via open_by_handle_at syscall the audit rules collecting these events need to be in certain order. The more specific rules need to come before the less specific rules. The reason for that is that more specific rules cover a subset of events covered in the less specific rules, thus, they need to come before to not be overshadowed by less specific rules, which match a bigger set of events. Make sure that rules for unsuccessful calls of open_by_handle_at syscall are in the order shown below. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), check the order of rules below in a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, check the order of rules below in /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S open_by_handle_at -F a2&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b32 -S open_by_handle_at -F a2&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b32 -S open_by_handle_at -F a2&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b32 -S open_by_handle_at -F a2&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b32 -S open_by_handle_at -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-access -a always,exit -F arch=b32 -S open_by_handle_at -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open_by_handle_at -F a2&0100 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b64 -S open_by_handle_at -F a2&0100 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-create -a always,exit -F arch=b64 -S open_by_handle_at -F a2&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b64 -S open_by_handle_at -F a2&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b64 -S open_by_handle_at -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-access -a always,exit -F arch=b64 -S open_by_handle_at -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-access |
The more specific rules cover a subset of events covered by the less specific rules. By ordering them from more specific to less specific, it is assured that the less specific rule will not catch events better recorded by the more specific rule. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80979-8 |
Record Unsuccessul Permission Changes to Files - fsetxattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file permission change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S fsetxattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S fsetxattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fsetxattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S fsetxattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change permissions of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-81128-1 |
Record Successful Creation Attempts to Files - openat O_CREAT |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The openat syscall can be used to create new files when O_CREAT flag is specified. The following audit rules will assure that successful attempts to create a file via openat syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S openat -F a2&0100 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S openat -F a2&0100 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create |
Successful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-81138-0 |
Record Successful Creation Attempts to Files - openat O_TRUNC_WRITE |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect detailed file access records for all users and root. The openat syscall can be used to modify files if called for write operation with the O_TRUNC_WRITE flag. The following audit rules will assure that successful attempts to create a file via openat syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S openat -F a2&01003 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S openat -F a2&01003 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification |
Successful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80753-7 |
Record Unsuccessful Access Attempts to Files - open |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S open -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S open -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S open -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S open -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b32 -S open -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=access -a always,exit -F arch=b64 -S open -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=access |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82104-1 |
Record Successful Permission Changes to Files - fchmodat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fchmodat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchmodat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fchmodat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchmodat -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File permission changes could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-81135-6 |
Record Successful Creation Attempts to Files - open O_CREAT |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The open syscall can be used to create new files when O_CREAT flag is specified. The following audit rules will assure that successful attempts to create a file via open syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S open -F a2&0100 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open -F a2&0100 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-create |
Successful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82002-7 |
Record Successful Access Attempts to Files - truncate |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect unauthorized file accesses for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S truncate -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S truncate -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S truncate -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S truncate -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-access |
File access attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-81144-8 |
Record Successful Creation Attempts to Files - open O_TRUNC_WRITE |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect detailed file access records for all users and root. The open syscall can be used to modify files if called for write operation with the O_TRUNC_WRITE flag. The following audit rules will assure that successful attempts to create a file via open syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S open -F a2&01003 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S open -F a2&01003 -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-modification |
Successful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82092-8 |
Record Successful Delete Attempts to Files - rename |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file deletion for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S rename -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S rename -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S rename -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S rename -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-delete |
File deletion attempts could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80982-2 |
Record Unsuccessul Permission Changes to Files - removexattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file permission change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S removexattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S removexattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S removexattr -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S removexattr -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change permissions of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80984-8 |
Record Unsuccessul Ownership Changes to Files - chown |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file ownership change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S chown -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S chown -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S chown -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S chown -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change ownership of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-82110-8 |
Record Successful Permission Changes to Files - lsetxattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S lsetxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S lsetxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S lsetxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S lsetxattr -F success=1 -F auid>=1000 -F auid!=unset -F key=successful-perm-change |
File permission changes could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
NaN |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80963-2 |
Record Unsuccessful Modification Attempts to Files - openat O_TRUNC_WRITE |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect detailed unauthorized file accesses for all users and root. The openat syscall can be used to modify files if called for write operation of with O_TRUNC_WRITE flag. The following auidt rules will asure that unsuccessful attempts to modify a file via openat syscall are collected. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the rules below to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the rules below to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S openat -F a2&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b32 -S openat -F a2&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S openat -F a2&01003 -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification -a always,exit -F arch=b64 -S openat -F a2&01003 -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-modification |
Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000461-GPOS-00205 |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80975-6 |
Record Unsuccessul Permission Changes to Files - chmod |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file permission change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S chmod -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S chmod -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S chmod -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S chmod -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change permissions of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80976-4 |
Record Unsuccessul Permission Changes to Files - fchmodat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system should collect unsuccessful file permission change attempts for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file. -a always,exit -F arch=b32 -S fchmodat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b32 -S fchmodat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change If the system is 64 bit then also add the following lines: -a always,exit -F arch=b64 -S fchmodat -F exit=-EACCES -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change -a always,exit -F arch=b64 -S fchmodat -F exit=-EPERM -F auid>=1000 -F auid!=unset -F key=unsuccesful-perm-change |
Unsuccessful attempts to change permissions of files could be an indicator of malicious activity on a system. Auditing these events could serve as evidence of potential system compromise. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Unauthorized Access Attempts Events to Files (unsuccessful) |
| CCE-80686-9 |
Record Events that Modify the System's Discretionary Access Controls - chown |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S chown -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S chown -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S chown -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S chown -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000474-GPOS-00219 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80692-7 |
Record Events that Modify the System's Discretionary Access Controls - fsetxattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fsetxattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fsetxattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fsetxattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fsetxattr -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80689-3 |
Record Events that Modify the System's Discretionary Access Controls - fchown |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fchown -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fchown -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fchown -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fchown -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000474-GPOS-00219 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80695-0 |
Record Events that Modify the System's Discretionary Access Controls - lsetxattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S lsetxattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S lsetxattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S lsetxattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S lsetxattr -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80696-8 |
Record Events that Modify the System's Discretionary Access Controls - removexattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S removexattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S removexattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S removexattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S removexattr -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80691-9 |
Record Events that Modify the System's Discretionary Access Controls - fremovexattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fremovexattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fremovexattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fremovexattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fremovexattr -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80690-1 |
Record Events that Modify the System's Discretionary Access Controls - fchownat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fchownat -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fchownat -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fchownat -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fchownat -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000474-GPOS-00219 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80697-6 |
Record Events that Modify the System's Discretionary Access Controls - setxattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S setxattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S setxattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S setxattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S setxattr -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80694-3 |
Record Events that Modify the System's Discretionary Access Controls - lremovexattr |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S lremovexattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S lremovexattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S lremovexattr -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S lremovexattr -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80688-5 |
Record Events that Modify the System's Discretionary Access Controls - fchmodat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fchmodat -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fchmodat -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fchmodat -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fchmodat -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80693-5 |
Record Events that Modify the System's Discretionary Access Controls - lchown |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S lchown -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S lchown -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S lchown -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S lchown -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203,SRG-OS-000474-GPOS-00219 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80685-1 |
Record Events that Modify the System's Discretionary Access Controls - chmod |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S chmod -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S chmod -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S chmod -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S chmod -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80687-7 |
Record Events that Modify the System's Discretionary Access Controls - fchmod |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file permission changes for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S fchmod -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fchmod -F auid>=1000 -F auid!=unset -F key=perm_mod If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S fchmod -F auid>=1000 -F auid!=unset -F key=perm_mod If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S fchmod -F auid>=1000 -F auid!=unset -F key=perm_mod |
The changing of file permissions could indicate that a user is attempting to gain access to information that would otherwise be disallowed. Auditing DAC modifications can facilitate the identification of patterns of abuse among both authorized and unauthorized users. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.10 |
SRG-OS-000064-GPOS-00033,SRG-OS-000392-GPOS-00172,SRG-OS-000458-GPOS-00203 |
Record Events that Modify the System's Discretionary Access Controls |
| CCE-80700-8 |
Record Any Attempts to Run semanage |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect any execution attempt of the semanage command for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/semanage -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F path=/usr/sbin/semanage -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000392-GPOS-00172,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209 |
Record Execution Attempts to Run SELinux Privileged Commands |
| CCE-80698-4 |
Record Any Attempts to Run chcon |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect any execution attempt of the chcon command for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/chcon -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F path=/usr/bin/chcon -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000392-GPOS-00172,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209 |
Record Execution Attempts to Run SELinux Privileged Commands |
| CCE-80933-5 |
Record Any Attempts to Run seunshare |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect any execution attempt of the seunshare command for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/seunshare -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F path=/usr/sbin/seunshare -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Record Execution Attempts to Run SELinux Privileged Commands |
| CCE-80699-2 |
Record Any Attempts to Run restorecon |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect any execution attempt of the restorecon command for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/restorecon -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F path=/usr/sbin/restorecon -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000392-GPOS-00172,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209 |
Record Execution Attempts to Run SELinux Privileged Commands |
| CCE-82280-9 |
Record Any Attempts to Run setfiles |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect any execution attempt of the setfiles command for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/setfiles -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F path=/usr/sbin/setfiles -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
SRG-OS-000392-GPOS-00172,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209 |
Record Execution Attempts to Run SELinux Privileged Commands |
| CCE-80701-6 |
Record Any Attempts to Run setsebool |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect any execution attempt of the setsebool command for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/setsebool -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file: -a always,exit -F path=/usr/sbin/setsebool -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000392-GPOS-00172,SRG-OS-000463-GPOS-00207,SRG-OS-000465-GPOS-00209 |
Record Execution Attempts to Run SELinux Privileged Commands |
| CCE-80703-2 |
Ensure auditd Collects File Deletion Events by User - rename |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file deletion events for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S rename -F auid>=1000 -F auid!=unset -F key=delete If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S rename -F auid>=1000 -F auid!=unset -F key=delete |
Auditing file deletions will create an audit trail for files that are removed from the system. The audit trail could aid in system troubleshooting, as well as, detecting malicious processes that attempt to delete log files to conceal their presence. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.14 |
SRG-OS-000392-GPOS-00172,SRG-OS-000466-GPOS-00210,SRG-OS-000467-GPOS-00211,SRG-OS-000468-GPOS-00212 |
Record File Deletion Events by User |
| CCE-80704-0 |
Ensure auditd Collects File Deletion Events by User - renameat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file deletion events for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S renameat -F auid>=1000 -F auid!=unset -F key=delete If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S renameat -F auid>=1000 -F auid!=unset -F key=delete |
Auditing file deletions will create an audit trail for files that are removed from the system. The audit trail could aid in system troubleshooting, as well as, detecting malicious processes that attempt to delete log files to conceal their presence. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.14 |
SRG-OS-000392-GPOS-00172,SRG-OS-000466-GPOS-00210,SRG-OS-000467-GPOS-00211,SRG-OS-000468-GPOS-00212 |
Record File Deletion Events by User |
| CCE-80705-7 |
Ensure auditd Collects File Deletion Events by User - rmdir |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file deletion events for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S rmdir -F auid>=1000 -F auid!=unset -F key=delete If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S rmdir -F auid>=1000 -F auid!=unset -F key=delete |
Auditing file deletions will create an audit trail for files that are removed from the system. The audit trail could aid in system troubleshooting, as well as, detecting malicious processes that attempt to delete log files to conceal their presence. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.14 |
SRG-OS-000392-GPOS-00172,SRG-OS-000466-GPOS-00210,SRG-OS-000467-GPOS-00211,SRG-OS-000468-GPOS-00212 |
Record File Deletion Events by User |
| CCE-80706-5 |
Ensure auditd Collects File Deletion Events by User - unlink |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file deletion events for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S unlink -F auid>=1000 -F auid!=unset -F key=delete If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S unlink -F auid>=1000 -F auid!=unset -F key=delete |
Auditing file deletions will create an audit trail for files that are removed from the system. The audit trail could aid in system troubleshooting, as well as, detecting malicious processes that attempt to delete log files to conceal their presence. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.14 |
SRG-OS-000392-GPOS-00172,SRG-OS-000466-GPOS-00210,SRG-OS-000467-GPOS-00211,SRG-OS-000468-GPOS-00212 |
Record File Deletion Events by User |
| CCE-80702-4 |
Ensure auditd Collects File Deletion Events by User |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum the audit system should collect file deletion events for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S rmdir,unlink,unlinkat,rename,renameat -F auid>=1000 -F auid!=unset -F key=delete If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S rmdir,unlink,unlinkat,rename -S renameat -F auid>=1000 -F auid!=unset -F key=delete |
Auditing file deletions will create an audit trail for files that are removed from the system. The audit trail could aid in system troubleshooting, as well as, detecting malicious processes that attempt to delete log files to conceal their presence. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.14 |
NaN |
Record File Deletion Events by User |
| CCE-80707-3 |
Ensure auditd Collects File Deletion Events by User - unlinkat |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect file deletion events for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S unlinkat -F auid>=1000 -F auid!=unset -F key=delete If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S unlinkat -F auid>=1000 -F auid!=unset -F key=delete |
Auditing file deletions will create an audit trail for files that are removed from the system. The audit trail could aid in system troubleshooting, as well as, detecting malicious processes that attempt to delete log files to conceal their presence. |
medium |
AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.14 |
SRG-OS-000392-GPOS-00172,SRG-OS-000466-GPOS-00210,SRG-OS-000467-GPOS-00211,SRG-OS-000468-GPOS-00212 |
Record File Deletion Events by User |
| CCE-80988-9 |
Ensure auditd Collects Information on the Use of Privileged Commands - at |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/at -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/at -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Record Information on the Use of Privileged Commands |
| CCE-80740-4 |
Ensure auditd Collects Information on the Use of Privileged Commands - unix_chkpwd |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/unix_chkpwd -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/sbin/unix_chkpwd -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80989-7 |
Ensure auditd Collects Information on the Use of Privileged Commands - mount |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/mount -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/mount -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172 |
Record Information on the Use of Privileged Commands |
| CCE-80991-3 |
Ensure auditd Collects Information on the Use of Privileged Commands - newgidmap |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/newgidmap -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/newgidmap -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Record Information on the Use of Privileged Commands |
| CCE-80735-4 |
Ensure auditd Collects Information on the Use of Privileged Commands - ssh-keysign |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/libexec/openssh/ssh-keysign -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/libexec/openssh/ssh-keysign -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80729-7 |
Ensure auditd Collects Information on the Use of Privileged Commands - newgrp |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/newgrp -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/newgrp -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000037-GPOS-00015,SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000462-GPOS-00206,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80724-8 |
Ensure auditd Collects Information on the Use of Privileged Commands |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. To find the relevant setuid / setgid programs, run the following command for each local partition PART: $ sudo find PART -xdev -type f -perm -4000 -o -type f -perm -2000 2>/dev/null If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d for each setuid / setgid program on the system, replacing the SETUID_PROG_PATH part with the full path of that setuid / setgid program in the list: -a always,exit -F path=SETUID_PROG_PATH -F perm=x -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules for each setuid / setgid program on the system, replacing the SETUID_PROG_PATH part with the full path of that setuid / setgid program in the list: -a always,exit -F path=SETUID_PROG_PATH -F perm=x -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
5.2.10 |
SRG-OS-000327-GPOS-00127 |
Record Information on the Use of Privileged Commands |
| CCE-80990-5 |
Ensure auditd Collects Information on the Use of Privileged Commands - usernetctl |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/usernetctl -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/sbin/usernetctl -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Record Information on the Use of Privileged Commands |
| CCE-80738-8 |
Ensure auditd Collects Information on the Use of Privileged Commands - sudoedit |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/sudoedit -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/sudoedit -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80726-3 |
Ensure auditd Collects Information on the Use of Privileged Commands - chsh |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/chsh -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/chsh -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
SRG-OS-000037-GPOS-00015,SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000462-GPOS-00206,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80736-2 |
Ensure auditd Collects Information on the Use of Privileged Commands - su |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/su -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/su -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000037-GPOS-00015,SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000462-GPOS-00206,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80730-5 |
Ensure auditd Collects Information on the Use of Privileged Commands - pam_timestamp_check |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/pam_timestamp_check -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/sbin/pam_timestamp_check -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80732-1 |
Ensure auditd Collects Information on the Use of Privileged Commands - postdrop |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/postdrop -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/sbin/postdrop -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80741-2 |
Ensure auditd Collects Information on the Use of Privileged Commands - userhelper |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/userhelper -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/sbin/userhelper -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80728-9 |
Ensure auditd Collects Information on the Use of Privileged Commands - gpasswd |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/gpasswd -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/gpasswd -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80731-3 |
Ensure auditd Collects Information on the Use of Privileged Commands - passwd |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/passwd -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/passwd -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80734-7 |
Ensure auditd Collects Information on the Use of Privileged Commands - pt_chown |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/libexec/pt_chown -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/libexec/pt_chown -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80727-1 |
Ensure auditd Collects Information on the Use of Privileged Commands - crontab |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/crontab -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/crontab -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80737-0 |
Ensure auditd Collects Information on the Use of Privileged Commands - sudo |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/sudo -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/sudo -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000037-GPOS-00015,SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000462-GPOS-00206,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80725-5 |
Ensure auditd Collects Information on the Use of Privileged Commands - chage |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/chage -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/chage -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80992-1 |
Ensure auditd Collects Information on the Use of Privileged Commands - newuidmap |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/newuidmap -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/newuidmap -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-2(4),AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
NaN |
NaN |
Record Information on the Use of Privileged Commands |
| CCE-80733-9 |
Ensure auditd Collects Information on the Use of Privileged Commands - postqueue |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/sbin/postqueue -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/sbin/postqueue -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80739-6 |
Ensure auditd Collects Information on the Use of Privileged Commands - umount |
audit enabled |
via /etc/audit/audit.rules or auditctl |
At a minimum, the audit system should collect the execution of privileged commands for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add a line of the following form to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F path=/usr/bin/umount -F auid>=1000 -F auid!=unset -F key=privileged If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add a line of the following form to /etc/audit/audit.rules: -a always,exit -F path=/usr/bin/umount -F auid>=1000 -F auid!=unset -F key=privileged |
Misuse of privileged functions, either intentionally or unintentionally by authorized users, or by unauthorized external entities that have compromised system accounts, is a serious and ongoing concern and can have significant adverse impacts on organizations. Auditing the use of privileged functions is one way to detect such misuse and identify the risk from insider and advanced persistent threats. Privileged programs are subject to escalation-of-privilege attacks, which attempt to subvert their normal role of providing some necessary but limited capability. As such, motivation exists to monitor these programs for unusual activity. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
SRG-OS-000042-GPOS-00020,SRG-OS-000392-GPOS-00172,SRG-OS-000471-GPOS-00215 |
Record Information on the Use of Privileged Commands |
| CCE-80711-5 |
Ensure auditd Collects Information on Kernel Module Unloading - delete_module |
audit enabled |
via /etc/audit/audit.rules or auditctl |
To capture kernel module unloading events, use following line, setting ARCH to either b32 for 32-bit system, or having two lines for both b32 and b64 in case your system is 64-bit: -a always,exit -F arch=ARCH -S delete_module -F key=modules Place to add the line depends on a way auditd daemon is configured. If it is configured to use the augenrules program (the default), add the line to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility, add the line to file /etc/audit/audit.rules. |
The removal of kernel modules can be used to alter the behavior of the kernel and potentially introduce malicious code into kernel space. It is important to have an audit trail of modules that have been introduced into the kernel. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.17 |
SRG-OS-000471-GPOS-00216,SRG-OS-000477-GPOS-00222 |
Record Information on Kernel Modules Loading and Unloading |
| CCE-80713-1 |
Ensure auditd Collects Information on Kernel Module Loading - init_module |
audit enabled |
via /etc/audit/audit.rules or auditctl |
To capture kernel module loading events, use following line, setting ARCH to either b32 for 32-bit system, or having two lines for both b32 and b64 in case your system is 64-bit: -a always,exit -F arch=ARCH -S init_module -F key=modules Place to add the line depends on a way auditd daemon is configured. If it is configured to use the augenrules program (the default), add the line to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility, add the line to file /etc/audit/audit.rules. |
The addition of kernel modules can be used to alter the behavior of the kernel and potentially introduce malicious code into kernel space. It is important to have an audit trail of modules that have been introduced into the kernel. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.17 |
SRG-OS-000471-GPOS-00216,SRG-OS-000477-GPOS-00222 |
Record Information on Kernel Modules Loading and Unloading |
| CCE-80709-9 |
Ensure auditd Collects Information on Kernel Module Loading and Unloading |
audit enabled |
via /etc/audit/audit.rules or auditctl |
To capture kernel module loading and unloading events, use following lines, setting ARCH to either b32 for 32-bit system, or having two lines for both b32 and b64 in case your system is 64-bit: -a always,exit -F arch=ARCH -S init_module,finit_module,delete_module -F key=modules The place to add the lines depends on a way auditd daemon is configured. If it is configured to use the augenrules program (the default), add the lines to a file with suffix .rules in the directory /etc/audit/rules.d. If the auditd daemon is configured to use the auditctl utility, add the lines to file /etc/audit/audit.rules. |
The addition/removal of kernel modules can be used to alter the behavior of the kernel and potentially introduce malicious code into kernel space. It is important to have an audit trail of modules that have been introduced into the kernel. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
5.2.17 |
NaN |
Record Information on Kernel Modules Loading and Unloading |
| CCE-80712-3 |
Ensure auditd Collects Information on Kernel Module Loading and Unloading - finit_module |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d to capture kernel module loading and unloading events, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S finit_module -F key=modules If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file in order to capture kernel module loading and unloading events, setting ARCH to either b32 or b64 as appropriate for your system: -a always,exit -F arch=ARCH -S finit_module -F key=modules |
The addition/removal of kernel modules can be used to alter the behavior of the kernel and potentially introduce malicious code into kernel space. It is important to have an audit trail of modules that have been introduced into the kernel. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.17 |
SRG-OS-000471-GPOS-00216,SRG-OS-000477-GPOS-00222 |
Record Information on Kernel Modules Loading and Unloading |
| CCE-80720-6 |
Record Attempts to Alter Logon and Logout Events - tallylog |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system already collects login information for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d in order to watch for attempted manual edits of files involved in storing logon events: -w /var/log/tallylog -p wa -k logins If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file in order to watch for unattempted manual edits of files involved in storing logon events: -w /var/log/tallylog -p wa -k logins |
Manual editing of these files may indicate nefarious activity, such as an attacker attempting to remove evidence of an intrusion. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
5.2.8 |
SRG-OS-000392-GPOS-00172,SRG-OS-000470-GPOS-00214,SRG-OS-000473-GPOS-00218 |
Record Attempts to Alter Logon and Logout Events |
| CCE-80718-0 |
Record Attempts to Alter Logon and Logout Events - faillock |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system already collects login information for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d in order to watch for attempted manual edits of files involved in storing logon events: -w /var/run/faillock -p wa -k logins If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file in order to watch for unattempted manual edits of files involved in storing logon events: -w /var/run/faillock -p wa -k logins |
Manual editing of these files may indicate nefarious activity, such as an attacker attempting to remove evidence of an intrusion. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
4.1.4 |
SRG-OS-000392-GPOS-00172,SRG-OS-000470-GPOS-00214,SRG-OS-000473-GPOS-00218 |
Record Attempts to Alter Logon and Logout Events |
| CCE-80717-2 |
Record Attempts to Alter Logon and Logout Events |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system already collects login information for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d in order to watch for attempted manual edits of files involved in storing logon events: -w /var/log/tallylog -p wa -k logins -w /var/run/faillock -p wa -k logins -w /var/log/lastlog -p wa -k logins If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file in order to watch for unattempted manual edits of files involved in storing logon events: -w /var/log/tallylog -p wa -k logins -w /var/run/faillock -p wa -k logins -w /var/log/lastlog -p wa -k logins |
Manual editing of these files may indicate nefarious activity, such as an attacker attempting to remove evidence of an intrusion. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
NaN |
NaN |
Record Attempts to Alter Logon and Logout Events |
| CCE-80719-8 |
Record Attempts to Alter Logon and Logout Events - lastlog |
audit enabled |
via /etc/audit/audit.rules or auditctl |
The audit system already collects login information for all users and root. If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following lines to a file with suffix .rules in the directory /etc/audit/rules.d in order to watch for attempted manual edits of files involved in storing logon events: -w /var/log/lastlog -p wa -k logins If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following lines to /etc/audit/audit.rules file in order to watch for unattempted manual edits of files involved in storing logon events: -w /var/log/lastlog -p wa -k logins |
Manual editing of these files may indicate nefarious activity, such as an attacker attempting to remove evidence of an intrusion. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
FAU_GEN.1.1.c |
4.1.4 |
SRG-OS-000392-GPOS-00172,SRG-OS-000470-GPOS-00214,SRG-OS-000473-GPOS-00218 |
Record Attempts to Alter Logon and Logout Events |
| CCE-80747-9 |
Record attempts to alter time through settimeofday |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S settimeofday -F key=audit_time_rules If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S settimeofday -F key=audit_time_rules If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S settimeofday -F key=audit_time_rules If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S settimeofday -F key=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,settimeofday -F key=audit_time_rules |
Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
4.1.6 |
NaN |
Records Events that Modify Date and Time Information |
| CCE-80746-1 |
Record Attempts to Alter Time Through clock_settime |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S clock_settime -F a0=0x0 -F key=time-change If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S clock_settime -F a0=0x0 -F key=time-change If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S clock_settime -F a0=0x0 -F key=time-change If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S clock_settime -F a0=0x0 -F key=time-change 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,settimeofday -F key=audit_time_rules |
Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
4.1.6 |
NaN |
Records Events that Modify Date and Time Information |
| CCE-80749-5 |
Record Attempts to Alter the localtime File |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -w /etc/localtime -p wa -k audit_time_rules If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -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. |
Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
4.1.6 |
NaN |
Records Events that Modify Date and Time Information |
| CCE-80745-3 |
Record attempts to alter time through adjtimex |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d: -a always,exit -F arch=b32 -S adjtimex -F key=audit_time_rules If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S adjtimex -F key=audit_time_rules If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file: -a always,exit -F arch=b32 -S adjtimex -F key=audit_time_rules If the system is 64 bit then also add the following line: -a always,exit -F arch=b64 -S adjtimex -F key=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,settimeofday -F key=audit_time_rules |
Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
4.1.6 |
NaN |
Records Events that Modify Date and Time Information |
| CCE-80748-7 |
Record Attempts to Alter Time Through stime |
audit enabled |
via /etc/audit/audit.rules or auditctl |
If the auditd daemon is configured to use the augenrules program to read audit rules during daemon startup (the default), add the following line to a file with suffix .rules in the directory /etc/audit/rules.d for both 32 bit and 64 bit systems: -a always,exit -F arch=b32 -S stime -F key=audit_time_rules Since the 64 bit version of the "stime" system call is not defined in the audit lookup table, the corresponding "-F arch=b64" form of this rule is not expected to be defined on 64 bit systems (the aforementioned "-F arch=b32" stime rule form itself is sufficient for both 32 bit and 64 bit systems). If the auditd daemon is configured to use the auditctl utility to read audit rules during daemon startup, add the following line to /etc/audit/audit.rules file for both 32 bit and 64 bit systems: -a always,exit -F arch=b32 -S stime -F key=audit_time_rules Since the 64 bit version of the "stime" system call is not defined in the audit lookup table, the corresponding "-F arch=b64" form of this rule is not expected to be defined on 64 bit systems (the aforementioned "-F arch=b32" stime rule form itself is sufficient for both 32 bit and 64 bit systems). 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 system calls: -a always,exit -F arch=b64 -S adjtimex,settimeofday -F key=audit_time_rules |
Arbitrary changes to the system time can be used to obfuscate nefarious activities in log files, as well as to confuse network services that are highly dependent upon an accurate system time (such as sshd). All changes to the system time should be audited. |
medium |
AC-6(9),AU-12(c),AU-2(d),CM-6(a) |
NaN |
4.1.6 |
NaN |
Records Events that Modify Date and Time Information |
| CCE-80787-5 |
Disable Prelinking |
disable |
via prelink |
The prelinking feature changes binaries in an attempt to decrease their startup time. In order to disable it, change or add the following line inside the file /etc/sysconfig/prelink: PRELINKING=no Next, run the following command to return binaries to a normal, non-prelinked state: $ sudo /usr/sbin/prelink -ua |
Because the prelinking feature changes binaries, it can interfere with the operation of certain software and/or modes such as AIDE, FIPS, etc. |
medium |
CM-6(a),SC-13 |
NaN |
1.5.4 |
NaN |
System and Software Integrity |
| CCE-80844-4 |
Install AIDE |
install |
via yum |
The aide package can be installed with the following command: $ sudo yum install aide |
The AIDE package must be installed if it is to be available for integrity checking. |
medium |
CM-6(a) |
NaN |
1.4.1 |
SRG-OS-000363-GPOS-00150 |
Verify Integrity with AIDE |
| CCE-84220-3 |
Configure AIDE to Verify Access Control Lists (ACLs) |
configure |
via aide |
By default, the acl option is added to the FIPSR ruleset in AIDE. If using a custom ruleset or the acl option is missing, add acl to the appropriate ruleset. For example, add acl to the following line in /etc/aide.conf: FIPSR = p+i+n+u+g+s+m+c+acl+selinux+xattrs+sha256 AIDE rules can be configured in multiple ways; this is merely one example that is already configured by default. |
ACLs can provide permissions beyond those permitted through the file mode and must be verified by the file integrity tools. |
low |
CM-6(a),SI-7,SI-7(1) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Verify Integrity with AIDE |
| CCE-80675-2 |
Build and Test AIDE Database |
enable aide |
via aide |
Run the following command to generate a new database: $ sudo /usr/sbin/aide --init By default, the database will be written to the file /var/lib/aide/aide.db.new.gz. Storing the database, the configuration file /etc/aide.conf, and the binary /usr/sbin/aide (or hashes of these files), in a secure location (such as on read-only media) provides additional assurance about their integrity. The newly-generated database can be installed as follows: $ sudo cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz To initiate a manual check, run the following command: $ sudo /usr/sbin/aide --check If this check produces any unexpected output, investigate. |
For AIDE to be effective, an initial database of "known-good" information about files must be captured and it should be able to be verified against the installed files. |
medium |
CM-6(a) |
NaN |
NaN |
NaN |
Verify Integrity with AIDE |
| CCE-80676-0 |
Configure Periodic Execution of AIDE |
configure |
via cron |
At a minimum, AIDE should be configured to run a weekly scan. 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 To implement a weekly execution of AIDE at 4:05am using cron, add the following line to /etc/crontab: 05 4 * * 0 root /usr/sbin/aide --check AIDE can be executed periodically through other means; this is merely one example. The usage of cron's special time codes, such as @daily and @weekly is acceptable. |
By default, AIDE does not install itself for periodic execution. Periodically running AIDE is necessary to reveal unexpected changes in installed files. Unauthorized changes to the baseline configuration could make the system vulnerable to various attacks or allow unauthorized access to the operating system. Changes to operating system configurations can have unintended side effects, some of which may be relevant to security. Detecting such changes and providing an automated response can help avoid unintended, negative consequences that could ultimately affect the security state of the operating system. The operating system's Information Management Officer (IMO)/Information System Security Officer (ISSO) and System Administrators (SAs) must be notified via email and/or monitoring system trap when there is an unauthorized modification of a configuration item. |
medium |
CM-6(a),SI-7,SI-7(1) |
NaN |
1.4.2 |
SRG-OS-000363-GPOS-00150,SRG-OS-000446-GPOS-00200 |
Verify Integrity with AIDE |
| CCE-83733-6 |
Configure AIDE to Verify Extended Attributes |
configure |
via aide |
By default, the xattrs option is added to the FIPSR ruleset in AIDE. If using a custom ruleset or the xattrs option is missing, add xattrs to the appropriate ruleset. For example, add xattrs to the following line in /etc/aide.conf: FIPSR = p+i+n+u+g+s+m+c+acl+selinux+xattrs+sha256 AIDE rules can be configured in multiple ways; this is merely one example that is already configured by default. |
Extended attributes in file systems are used to contain arbitrary data and file metadata with security implications. |
medium |
CM-6(a),SI-7,SI-7(1) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Verify Integrity with AIDE |
| CCE-80857-6 |
Verify File Hashes with RPM |
verify |
via rpm |
Without cryptographic integrity protections, system executables and files can be altered by unauthorized users without detection. The RPM package management system can check the hashes of installed software packages, including many that are important to system security. To verify that the cryptographic hash of system files and commands matches vendor values, 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 --noconfig | grep '^..5' A "c" in the second column indicates that a file is a configuration file, which may appropriately be expected to change. If the file was not expected to change, investigate the cause of the change using audit logs or other means. The package can then be reinstalled to restore the file. Run the following command to determine which package owns the file: $ rpm -qf FILENAME The package can be reinstalled from a yum repository using the command: $ sudo yum reinstall PACKAGENAME Alternatively, the package can be reinstalled from trusted media using the command: $ sudo rpm -Uvh PACKAGENAME |
The hashes of important files like system executables should match the information given by the RPM database. Executables with erroneous hashes could be a sign of nefarious activity on the system. |
high |
AU-9(3),CM-6(c),CM-6(d),SI-7,SI-7(1),SI-7(6) |
NaN |
1.2.6 |
SRG-OS-000480-GPOS-00227 |
Verify Integrity with RPM |
| CCE-82196-7 |
Verify and Correct Ownership with RPM |
verify |
via rpm |
The RPM package management system can check file ownership permissions of installed software packages, including many that are important to system security. After locating a file with incorrect permissions, which can be found with rpm -Va | awk '{ if (substr($0,6,1)=="U" || substr($0,7,1)=="G") print $NF }' run the following command to determine which package owns it: $ rpm -qf FILENAME Next, run the following command to reset its permissions to the correct values: $ sudo rpm --setugids PACKAGENAME |
Ownership of binaries and configuration files that is incorrect could allow an unauthorized user to gain privileges that they should not have. The ownership set by the vendor should be maintained. Any deviations from this baseline should be investigated. |
high |
AU-9(3),CM-6(c),CM-6(d),SI-7,SI-7(1),SI-7(6) |
NaN |
1.8.1.4,1.8.1.5,1.8.1.6,6.1.1,6.1.2,6.1.3,6.1.4,6.1.5,6.1.6,6.1.7,6.1.8,6.1.9 |
SRG-OS-000257-GPOS-00098,SRG-OS-000278-GPOS-00108 |
Verify Integrity with RPM |
| CCE-80858-4 |
Verify and Correct File Permissions with RPM |
verify |
via rpm |
The RPM package management system can check file access permissions of installed software packages, including many that are important to system security. Verify that the file permissions of system files and commands match vendor values. Check the file permissions with the following command: $ sudo rpm -Va | awk '{ if (substr($0,2,1)=="M") print $NF }' Output indicates files that do not match vendor defaults. After locating a file with incorrect permissions, run the following command to determine which package owns it: $ rpm -qf FILENAME Next, run the following command to reset its permissions to the correct values: $ sudo rpm --setperms PACKAGENAME |
Permissions on system binaries and configuration files that are too generous could allow an unauthorized user to gain privileges that they should not have. The permissions set by the vendor should be maintained. Any deviations from this baseline should be investigated. |
high |
AU-9(3),CM-6(a),CM-6(c),CM-6(d),SI-7,SI-7(1),SI-7(6) |
NaN |
1.8.1.4,1.8.1.5,1.8.1.6,6.1.1,6.1.2,6.1.3,6.1.4,6.1.5,6.1.6,6.1.7,6.1.8,6.1.9 |
SRG-OS-000256-GPOS-00097,SRG-OS-000257-GPOS-00098,SRG-OS-000258-GPOS-00099,SRG-OS-000278-GPOS-00108 |
Verify Integrity with RPM |
| CCE-80942-6 |
Enable FIPS Mode |
enable |
fips-mode-setup |
To enable FIPS mode, run the following command: fips-mode-setup --enable The fips-mode-setup command will configure the system in FIPS mode by automatically configuring the following: Setting the kernel FIPS mode flag (/proc/sys/crypto/fips_enabled) to 1Creating /etc/system-fipsSetting the system crypto policy in /etc/crypto-policies/config to FIPSLoading the Dracut fips module Furthermore, the system running in FIPS mode should be FIPS certified by NIST. |
Use of weak or untested encryption algorithms undermines the purposes of utilizing encryption to protect data. The operating system must implement cryptographic modules adhering to the higher standards approved by the federal government since this provides assurance they have been tested and validated. |
high |
CM-6(a),IA-7,SC-12,SC-12(2),SC-12(3),SC-13 |
FCS_CKM.1,FCS_CKM.2,FCS_COP.1(1),FCS_COP.1(2),FCS_COP.1(3),FCS_COP.1(4),FCS_TLSC_EXT.1 |
NaN |
SRG-OS-000396-GPOS-00176,SRG-OS-000478-GPOS-00223 |
Federal Information Processing Standard (FIPS) |
| CCE-82155-3 |
Enable Dracut FIPS Module |
enable |
fips-mode-setup |
To enable FIPS mode, run the following command: fips-mode-setup --enable To enable FIPS, the system requires that the fips module is added in dracut configuration. Check if /etc/dracut.conf.d/40-fips.conf contain add_dracutmodules+=" fips " |
Use of weak or untested encryption algorithms undermines the purposes of utilizing encryption to protect data. The operating system must implement cryptographic modules adhering to the higher standards approved by the federal government since this provides assurance they have been tested and validated. |
medium |
CM-6(a),IA-7,SC-12,SC-12(2),SC-12(3),SC-13 |
NaN |
NaN |
SRG-OS-000478-GPOS-00223 |
Federal Information Processing Standard (FIPS) |
| CCE-82723-8 |
Install crypto-policies package |
install |
via yum |
The crypto-policies package can be installed with the following command: $ sudo yum install crypto-policies |
Centralized cryptographic policies simplify applying secure ciphers across an operating system and the applications that run on that operating system. Use of weak or untested encryption algorithms undermines the purposes of utilizing encryption to protect data. |
medium |
NaN |
FCS_CKM.1,FCS_CKM.2,FCS_COP.1(1),FCS_COP.1(2),FCS_COP.1(3),FCS_COP.1(4),FCS_TLSC_EXT.1 |
NaN |
SRG-OS-000393-GPOS-00173,SRG-OS-000394-GPOS-00174,SRG-OS-000396-GPOS-00176 |
System Cryptographic Policies |
| CCE-82176-9 |
Harden SSHD Crypto Policy |
configure |
via /etc/crypto-policies/local.d |
Crypto Policies are means of enforcing certain cryptographic settings for selected applications including OpenSSH server. The SSHD service is by default configured to modify its configuration based on currently configured Crypto-Policy. However, in certain cases it might be needed to override the Crypto Policy specific to OpenSSH Server and leave rest of the Crypto Policy intact. This can be done by dropping a file named opensshserver-xxx.config, replacing xxx with arbitrary identifier, into /etc/crypto-policies/local.d. This has to be followed by running update-crypto-policies so that changes are applied. Changes are propagated into /etc/crypto-policies/back-ends/opensshserver.config. This rule checks if this file contains predefined CRYPTO_POLICY environment variable configured with predefined value. |
The Common Criteria requirements specify that certain parameters for OpenSSH Server are configured e.g. supported ciphers, accepted host key algorithms, public key types, key exchange algorithms, HMACs and GSSAPI key exchange is disabled. Currently particular requirements specified by CC are stricter compared to any existing Crypto Policy. |
medium |
AC-17(2),AC-17(a),CM-6(a),MA-4(6),SC-12(2),SC-12(3),SC-13 |
FCS_SSHS_EXT.1 |
NaN |
SRG-OS-000033-GPOS-00014,SRG-OS-000120-GPOS-00061,SRG-OS-000250-GPOS-00093 |
System Cryptographic Policies |
| CCE-82721-2 |
OpenSSL uses strong entropy source |
configure |
via /etc/profile.d/openssl-rand.sh |
By default, OpenSSL doesn't always use a SP800-90A compliant random number generator. A way to configure OpenSSL to always use a strong source is to setup a wrapper that defines a shell function that shadows the actual openssl binary, and that ensures that the -rand /dev/random option is added to every openssl invocation. To do so, place the following shell snippet exactly as-is to /etc/profile.d/openssl-rand.sh: # provide a default -rand /dev/random option to openssl commands that # support it # written inefficiently for maximum shell compatibility openssl() ( openssl_bin=/usr/bin/openssl case "$*" in # if user specified -rand, honor it *\ -rand\ *|*\ -help*) exec $openssl_bin "$@" ;; esac cmds=`$openssl_bin list -digest-commands -cipher-commands | tr '\n' ' '` for i in `$openssl_bin list -commands`; do if $openssl_bin list -options "$i" | grep -q '^rand '; then cmds=" $i $cmds" fi done case "$cmds" in *\ "$1"\ *) cmd="$1"; shift exec $openssl_bin "$cmd" -rand /dev/random "$@" ;; esac exec $openssl_bin "$@" ) |
This rule ensures that openssl invocations always uses SP800-90A compliant random number generator as a default behavior. |
medium |
NaN |
FCS_RBG_EXT.1.2 |
NaN |
SRG-OS-000480-GPOS-00227 |
System Cryptographic Policies |
| CCE-82225-4 |
Harden SSH client Crypto Policy |
configure |
via /etc/ssh/ssh_config.d/ |
Crypto Policies are means of enforcing certain cryptographic settings for selected applications including OpenSSH client. To override the system wide crypto policy for Openssh client, place a file in the /etc/ssh/ssh_config.d/ so that it is loaded before the 05-redhat.conf. In this case it is file named 02-ospp.conf containing parameters which need to be changed with respect to the crypto policy. This rule checks if the file exists and if it contains required parameters and values which modify the Crypto Policy. During the parsing process, as soon as Openssh client parses some configuration option and its value, it remembers it and ignores any subsequent overrides. The customization mechanism provided by crypto policies appends eventual customizations at the end of the system wide crypto policy. Therefore, if the crypto policy customization overrides some parameter which is already configured in the system wide crypto policy, the SSH client will not honor that customized parameter. |
The Common Criteria requirements specify how certain parameters for OpenSSH Client are configured. Particular parameters are RekeyLimit, GSSAPIAuthentication, Ciphers, PubkeyAcceptedKeyTypes, MACs and KexAlgorithms. Currently particular requirements specified by CC are stricter compared to any existing Crypto Policy. |
medium |
AC-17(2),AC-17(a),CM-6(a),MA-4(6),SC-13 |
FCS_SSHC_EXT.1 |
NaN |
SRG-OS-000033-GPOS-00014,SRG-OS-000250-GPOS-00093,SRG-OS-000393-GPOS-00173,SRG-OS-000394-GPOS-00174 |
System Cryptographic Policies |
| CCE-80938-4 |
Configure OpenSSL library to use System Crypto Policy |
verify |
via /etc/pki/tls/openssl.cnf |
Crypto Policies provide a centralized control over crypto algorithms usage of many packages. OpenSSL is supported by crypto policy, but the OpenSSL configuration may be set up to ignore it. To check that Crypto Policies settings are configured correctly, you have to examine the OpenSSL config file available under /etc/pki/tls/openssl.cnf. This file has the ini format, and it enables crypto policy support if there is a [ crypto_policy ] section that contains the .include /etc/crypto-policies/back-ends/opensslcnf.config directive. |
Overriding the system crypto policy makes the behavior of the Java runtime violates expectations, and makes system configuration more fragmented. |
medium |
AC-17(2),AC-17(a),CM-6(a),MA-4(6),SC-12(2),SC-12(3),SC-13 |
NaN |
NaN |
SRG-OS-000250-GPOS-00093 |
System Cryptographic Policies |
| CCE-80939-2 |
Configure SSH to use System Crypto Policy |
verify |
via /etc/sysconfig/sshd |
Crypto Policies provide a centralized control over crypto algorithms usage of many packages. SSH is supported by crypto policy, but the SSH configuration may be set up to ignore it. To check that Crypto Policies settings are configured correctly, ensure that the CRYPTO_POLICY variable is either commented or not set at all in the /etc/sysconfig/sshd. |
Overriding the system crypto policy makes the behavior of the SSH service violate expectations, and makes system configuration more fragmented. |
medium |
AC-17(2),AC-17(a),CM-6(a),MA-4(6),SC-13 |
NaN |
5.2.20 |
SRG-OS-000250-GPOS-00093 |
System Cryptographic Policies |
| CCE-80934-3 |
Configure BIND to use System Crypto Policy |
verify |
via /etc/named.conf |
Crypto Policies provide a centralized control over crypto algorithms usage of many packages. BIND is supported by crypto policy, but the BIND configuration may be set up to ignore it. To check that Crypto Policies settings are configured correctly, ensure that the /etc/named.conf includes the appropriate configuration: In the options section of /etc/named.conf, make sure that the following line is not commented out or superseded by later includes: include "/etc/crypto-policies/back-ends/bind.config"; |
Overriding the system crypto policy makes the behavior of the BIND service violate expectations, and makes system configuration more fragmented. |
medium |
SC-12(2),SC-12(3),SC-13 |
NaN |
NaN |
SRG-OS-000423-GPOS-00187,SRG-OS-000426-GPOS-00190 |
System Cryptographic Policies |
| CCE-80935-0 |
Configure System Cryptography Policy |
configure |
via update-crypto-policies |
To configure the system cryptography policy to use ciphers only from the policy, run the following command: $ sudo update-crypto-policies --set The rule checks if settings for selected crypto policy are configured as expected. Configuration files in the /etc/crypto-policies/back-ends are either symlinks to correct files provided by Crypto-policies package or they are regular files in case crypto policy customizations are applied. Crypto policies may be customized by crypto policy modules, in which case it is delimited from the base policy using a colon. |
Centralized cryptographic policies simplify applying secure ciphers across an operating system and the applications that run on that operating system. Use of weak or untested encryption algorithms undermines the purposes of utilizing encryption to protect data. |
high |
AC-17(2),AC-17(a),CM-6(a),MA-4(6),SC-12(2),SC-12(3),SC-13 |
FCS_CKM.1,FCS_CKM.2,FCS_COP.1(1),FCS_COP.1(2),FCS_COP.1(3),FCS_COP.1(4),FCS_TLSC_EXT.1 |
1.10,1.11 |
SRG-OS-000393-GPOS-00173,SRG-OS-000394-GPOS-00174,SRG-OS-000396-GPOS-00176 |
System Cryptographic Policies |
| CCE-82880-6 |
Configure session renegotiation for SSH client |
512M |
via /etc/ssh/ssh_config |
The RekeyLimit parameter specifies how often the session key is renegotiated, both in terms of amount of data that may be transmitted and the time elapsed. To decrease the default limits, put line RekeyLimit to file /etc/ssh/ssh_config.d/02-rekey-limit.conf. Make sure that there is no other RekeyLimit configuration preceding the include directive in the main config file /etc/ssh/ssh_config. Check also other files in /etc/ssh/ssh_config.d directory. Files are processed according to lexicographical order of file names. Make sure that there is no file processed before 02-rekey-limit.conf containing definition of RekeyLimit. |
By decreasing the limit based on the amount of data and enabling time-based limit, effects of potential attacks against encryption keys are limited. |
medium |
NaN |
FCS_SSHS_EXT.1 |
NaN |
NaN |
System Cryptographic Policies |
| CCE-80937-6 |
Configure Libreswan to use System Crypto Policy |
verify |
via /etc/ipsec.conf |
Crypto Policies provide a centralized control over crypto algorithms usage of many packages. Libreswan is supported by system crypto policy, but the Libreswan configuration may be set up to ignore it. To check that Crypto Policies settings are configured correctly, ensure that the /etc/ipsec.conf includes the appropriate configuration file. In /etc/ipsec.conf, make sure that the following line is not commented out or superseded by later includes: include /etc/crypto-policies/back-ends/libreswan.config |
Overriding the system crypto policy makes the behavior of the Libreswan service violate expectations, and makes system configuration more fragmented. |
medium |
CM-6(a),MA-4(6),SC-12(2),SC-12(3),SC-13 |
NaN |
NaN |
SRG-OS-000033-GPOS-00014 |
System Cryptographic Policies |
| CCE-84286-4 |
Harden OpenSSL Crypto Policy |
configure |
via /etc/crypto-policies/local.d |
Crypto Policies are means of enforcing certain cryptographic settings for selected applications including OpenSSL. OpenSSL is by default configured to modify its configuration based on currently configured Crypto Policy. However, in certain cases it might be needed to override the Crypto Policy specific to OpenSSL and leave rest of the Crypto Policy intact. This can be done by dropping a file named opensslcnf-xxx.config, replacing xxx with arbitrary identifier, into /etc/crypto-policies/local.d. This has to be followed by running update-crypto-policies so that changes are applied. Changes are propagated into /etc/crypto-policies/back-ends/opensslcnf.config. This rule checks if this file contains predefined Ciphersuites variable configured with predefined value. |
The Common Criteria requirements specify that certain parameters for OpenSSL are configured e.g. cipher suites. Currently particular requirements specified by CC are stricter compared to any existing Crypto Policy. |
medium |
SC-13,SC-8(1) |
FCS_TLSC_EXT.1.1 |
NaN |
SRG-OS-000396-GPOS-00176,SRG-OS-000424-GPOS-00188,SRG-OS-000478-GPOS-00223 |
System Cryptographic Policies |
| CCE-80936-8 |
Configure Kerberos to use System Crypto Policy |
verify |
via /etc/krb5.conf.d/crypto-policies |
Crypto Policies provide a centralized control over crypto algorithms usage of many packages. Kerberos is supported by crypto policy, but it's configuration may be set up to ignore it. To check that Crypto Policies settings for Kerberos are configured correctly, examine that there is a symlink at /etc/krb5.conf.d/crypto-policies targeting /etc/cypto-policies/back-ends/krb5.config. If the symlink exists, kerberos is configured to use the system-wide crypto policy settings. |
Overriding the system crypto policy makes the behavior of Kerberos violate expectations, and makes system configuration more fragmented. |
medium |
SC-12(2),SC-12(3),SC-13 |
NaN |
NaN |
SRG-OS-000120-GPOS-00061 |
System Cryptographic Policies |
| CCE-83879-7 |
Install Virus Scanning Software |
install |
via rpm |
Virus scanning software can be used to protect a system from penetration from computer viruses and to limit their spread through intermediate systems. The virus scanning software should be configured to perform scans dynamically on accessed files. If this capability is not available, the system must be configured to scan, at a minimum, all altered files on the system on a daily basis. If the system processes inbound SMTP mail, the virus scanner must be configured to scan all received mail. |
Virus scanning software can be used to detect if a system has been compromised by computer viruses, as well as to limit their spread to other systems. |
high |
CM-6(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Endpoint Protection Software |
| CCE-80831-1 |
Install Intrusion Detection Software |
install |
via SELinux |
The base Red Hat Enterprise Linux 8 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. |
Host-based intrusion detection tools provide a system-level defense when an intruder gains access to a system or network. |
high |
CM-6(a) |
NaN |
NaN |
NaN |
Endpoint Protection Software |
| CCE-80830-3 |
The Installed Operating System Is FIPS 140-2 Certified |
verify |
via NIST FIPS validation URL |
To enable processing of sensitive information the operating system must provide certified cryptographic modules compliant with FIPS 140-2 standard. |
The Federal Information Processing Standard (FIPS) Publication 140-2, (FIPS PUB 140-2) is a computer security standard. The standard specifies security requirements for cryptographic modules used to protect sensitive unclassified information. Refer to the full FIPS 140-2 standard at http://csrc.nist.gov/publications/fips/fips140-2/fips1402.pdf for further details on the requirements. FIPS 140-2 validation is required by U.S. law when information systems use cryptography to protect sensitive government information. In order to achieve FIPS 140-2 certification, cryptographic modules are subject to extensive testing by independent laboratories, accredited by National Institute of Standards and Technology (NIST). |
high |
CM-6(a),IA-7,SC-12,SC-12(2),SC-12(3),SC-13 |
NaN |
NaN |
NaN |
Operating System Vendor Support and Certification |
| CCE-82367-4 |
Remove the GDM Package Group |
remove |
via yum |
By removing the gdm package, the system no longer has GNOME installed installed. If X Windows is not installed then the system cannot boot into graphical user mode. This prevents the system from being accidentally or maliciously booted into a graphical.target mode. To do so, run the following command: $ sudo yum remove gdm |
Unnecessary service packages must not be installed to decrease the attack surface of the system. A graphical environment is unnecessary for certain types of systems including a virtualization hypervisor. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
GNOME Desktop Environment |
| CCE-81003-6 |
Make sure that the dconf databases are up-to-date with regards to respective keyfiles |
update |
via dconf |
By default, DConf uses a binary database as a data backend. The system-level database is compiled from keyfiles in the /etc/dconf/db/ directory by the dconf update command. |
Unlike text-based keyfiles, the binary database is impossible to check by OVAL. Therefore, in order to evaluate dconf configuration, both have to be true at the same time - configuration files have to be compliant, and the database needs to be more recent than those keyfiles, which gives confidence that it reflects them. |
high |
NaN |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
GNOME Desktop Environment |
| CCE-83858-1 |
Ensure Users Cannot Change GNOME3 Screensaver Idle Activation |
/org/gnome/desktop/screensaver/idle-activation-enabled |
via dconf db config files |
If not already configured, ensure that users cannot change GNOME3 screensaver lock settings by adding /org/gnome/desktop/screensaver/idle-activation-enabled to /etc/dconf/db/local.d/00-security-settings. For example: /org/gnome/desktop/screensaver/idle-activation-enabled After the settings have been set, run dconf update. |
A session lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not want to logout because of the temporary nature of the absense. |
medium |
CM-6(a) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000029-GPOS-00010 |
Configure GNOME Screen Locking |
| CCE-80779-2 |
Disable Full User Name on Splash Shield |
0 |
via dconf db config files |
By default when the screen is locked, the splash shield will show the user's full name. This should be disabled to prevent casual observers from seeing who has access to the system. This can be disabled by adding or setting show-full-name-in-top-bar to false in /etc/dconf/db/local.d/00-security-settings. For example: [org/gnome/desktop/screensaver] show-full-name-in-top-bar=false Once the settings have been added, add a lock to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/desktop/screensaver/show-full-name-in-top-bar After the settings have been set, run dconf update. |
Setting the splash screen to not reveal the logged in user's name conceals who has access to the system from passersby. |
medium |
NaN |
FMT_MOF_EXT.1 |
NaN |
NaN |
Configure GNOME Screen Locking |
| CCE-80777-6 |
Enable GNOME3 Screensaver Lock After Idle Period |
True |
via dconf db config files |
To activate locking of the screensaver in the GNOME3 desktop when it is activated, add or set lock-enabled to true in /etc/dconf/db/local.d/00-security-settings. For example: [org/gnome/desktop/screensaver] lock-enabled=true Once the settings have been added, add a lock to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/desktop/screensaver/lock-enabled After the settings have been set, run dconf update. |
A session lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not want to logout because of the temporary nature of the absense. |
medium |
CM-6(a) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000028-GPOS-00009,SRG-OS-000030-GPOS-00011 |
Configure GNOME Screen Locking |
| CCE-80781-8 |
Ensure Users Cannot Change GNOME3 Session Idle Settings |
/org/gnome/desktop/session/idle-delay |
via dconf db config files |
If not already configured, ensure that users cannot change GNOME3 session idle settings by adding /org/gnome/desktop/session/idle-delay to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/desktop/session/idle-delay After the settings have been set, run dconf update. |
A session time-out lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not logout because of the temporary nature of the absence. Rather than relying on the user to manually lock their operating system session prior to vacating the vicinity, GNOME desktops can be configured to identify when a user's session has idled and take action to initiate the session lock. As such, users should not be allowed to change session settings. |
medium |
CM-6(a) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000029-GPOS-00010 |
Configure GNOME Screen Locking |
| CCE-80776-8 |
Set GNOME3 Screensaver Lock Delay After Activation Period |
0 |
via dconf db config files |
To activate the locking delay of the screensaver in the GNOME3 desktop when the screensaver is activated, add or set lock-delay to uint32 in /etc/dconf/db/local.d/00-security-settings. For example: [org/gnome/desktop/screensaver] lock-delay=uint32 Once the setting has been added, add a lock to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/desktop/screensaver/lock-delay After the settings have been set, run dconf update. |
A session lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not want to logout because of the temporary nature of the absense. |
medium |
AC-11(a),CM-6(a) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000029-GPOS-00010 |
Configure GNOME Screen Locking |
| CCE-80780-0 |
Ensure Users Cannot Change GNOME3 Screensaver Settings |
/org/gnome/desktop/screensaver/lock-delay |
via dconf db config files |
If not already configured, ensure that users cannot change GNOME3 screensaver lock settings by adding /org/gnome/desktop/screensaver/lock-delay to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/desktop/screensaver/lock-delay After the settings have been set, run dconf update. |
A session time-out lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not logout because of the temporary nature of the absence. Rather than relying on the user to manually lock their operating system session prior to vacating the vicinity, GNOME desktops can be configured to identify when a user's session has idled and take action to initiate the session lock. As such, users should not be allowed to change session settings. |
medium |
CM-6(a) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000029-GPOS-00010 |
Configure GNOME Screen Locking |
| CCE-80775-0 |
Set GNOME3 Screensaver Inactivity Timeout |
900 |
via dconf db config files |
The idle time-out value for inactivity in the GNOME3 desktop is configured via the idle-delay setting must be set under an appropriate configuration file(s) in the /etc/dconf/db/local.d directory and locked in /etc/dconf/db/local.d/locks directory to prevent user modification. For example, to configure the system for a 15 minute delay, add the following to /etc/dconf/db/local.d/00-security-settings: [org/gnome/desktop/session] idle-delay=uint32 900 Once the setting has been added, add a lock to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/desktop/session/idle-delay After the settings have been set, run dconf update. |
A session time-out lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not logout because of the temporary nature of the absence. Rather than relying on the user to manually lock their operating system session prior to vacating the vicinity, GNOME3 can be configured to identify when a user's session has idled and take action to initiate a session lock. |
medium |
AC-11(a),CM-6(a) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000029-GPOS-00010 |
Configure GNOME Screen Locking |
| CCE-80774-3 |
Enable GNOME3 Screensaver Idle Activation |
True |
via dconf db config files |
To activate the screensaver in the GNOME3 desktop after a period of inactivity, add or set idle-activation-enabled to true in /etc/dconf/db/local.d/00-security-settings. For example: [org/gnome/desktop/screensaver] idle-activation-enabled=true Once the setting has been added, add a lock to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/desktop/screensaver/idle-activation-enabled After the settings have been set, run dconf update. |
A session time-out lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not logout because of the temporary nature of the absence. Rather than relying on the user to manually lock their operating system session prior to vacating the vicinity, GNOME desktops can be configured to identify when a user's session has idled and take action to initiate the session lock. Enabling idle activation of the screensaver ensures the screensaver will be activated after the idle delay. Applications requiring continuous, real-time screen display (such as network management products) require the login session does not have administrator rights and the display station is located in a controlled-access area. |
medium |
AC-11(a),CM-6(a) |
FMT_MOF_EXT.1 |
NaN |
SRG-OS-000029-GPOS-00010 |
Configure GNOME Screen Locking |
| CCE-80778-4 |
Implement Blank Screensaver |
'’ |
via dconf db config files |
To set the screensaver mode in the GNOME3 desktop to a blank screen, add or set picture-uri to string '' in /etc/dconf/db/local.d/00-security-settings. For example: [org/gnome/desktop/screensaver] picture-uri='' Once the settings have been added, add a lock to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/desktop/screensaver/picture-uri After the settings have been set, run dconf update. |
Setting the screensaver mode to blank-only conceals the contents of the display from passersby. |
medium |
AC-11(1),CM-6(a) |
FMT_MOF_EXT.1 |
NaN |
NaN |
Configure GNOME Screen Locking |
| CCE-80769-3 |
Disable User Administration in GNOME3 |
True |
via dconf db config files |
By default, GNOME will allow all users to have some administratrion capability. This should be disabled so that non-administrative users are not making configuration changes. To configure the system to disable user administration capability in the Graphical User Interface (GUI), add or set user-administration-disabled to true in /etc/dconf/db/local.d/00-security-settings. For example: [org/gnome/desktop/lockdown] user-administration-disabled=true Once the settings have been added, add a lock to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/desktop/lockdown/user-administration-disabled After the settings have been set, run dconf update. |
Allowing all users to have some administratrive capabilities to the system through the Graphical User Interface (GUI) when they would not have them otherwise could allow unintended configuration changes as well as a nefarious user the capability to make system changes such as adding new accounts, etc. |
high |
NaN |
FMT_MOD_EXT.1 |
NaN |
NaN |
GNOME System Settings |
| CCE-80773-5 |
Require Encryption for Remote Access in GNOME3 |
True |
via dconf db config files |
By default, GNOME requires encryption when using Vino for remote access. To prevent remote access encryption from being disabled, add or set require-encryption to true in /etc/dconf/db/local.d/00-security-settings. For example: [org/gnome/Vino] require-encryption=true Once the settings have been added, add a lock to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/Vino/require-encryption After the settings have been set, run dconf update. |
Open X displays allow an attacker to capture keystrokes and to execute commands remotely. |
medium |
AC-17(2),AC-17(a),CM-6(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
GNOME Remote Access Settings |
| CCE-80772-7 |
Require Credential Prompting for Remote Access in GNOME3 |
vnc |
via dconf db config files |
By default, GNOME does not require credentials when using Vino for remote access. To configure the system to require remote credentials, add or set authentication-methods to ['vnc'] in /etc/dconf/db/local.d/00-security-settings. For example: [org/gnome/Vino] authentication-methods=['vnc'] Once the settings have been added, add a lock to /etc/dconf/db/local.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/Vino/authentication-methods After the settings have been set, run dconf update. |
Username and password prompting is required for remote access. Otherwise, non-authorized and nefarious users can access the system freely. |
medium |
NaN |
NaN |
NaN |
NaN |
GNOME Remote Access Settings |
| CCE-80824-6 |
Disable GDM Guest Login |
0 |
via /etc/gdm/custom.conf |
The GNOME Display Manager (GDM) can allow users to login without credentials which can be useful for public kiosk scenarios. Allowing users to login without credentials or "guest" account access has inherent security risks and should be disabled. To do disable timed logins or guest account access, set the TimedLoginEnable to false in the [daemon] section in /etc/gdm/custom.conf. For example: [daemon] TimedLoginEnable=false |
Failure to restrict system access to authenticated users negatively impacts operating system security. |
high |
CM-6(a),CM-7(a),CM-7(b),IA-2 |
FIA_UAU.1 |
NaN |
SRG-OS-000480-GPOS-00229 |
Configure GNOME Login Screen |
| CCE-80823-8 |
Disable GDM Automatic Login |
0 |
via /etc/gdm/custom.conf |
The GNOME Display Manager (GDM) can allow users to automatically login without user interaction or credentials. User should always be required to authenticate themselves to the system that they are authorized to use. To disable user ability to automatically login to the system, set the AutomaticLoginEnable to false in the [daemon] section in /etc/gdm/custom.conf. For example: [daemon] AutomaticLoginEnable=false |
Failure to restrict system access to authenticated users negatively impacts operating system security. |
high |
AC-6(1),CM-6(a),CM-7(b) |
FIA_UAU.1 |
NaN |
SRG-OS-000480-GPOS-00229 |
Configure GNOME Login Screen |
| CCE-80771-9 |
Set the GNOME3 Login Number of Failures |
3 |
via dconf db config files |
In the default graphical environment, the GNOME3 login screen and be configured to restart the authentication process after a configured number of attempts. This can be configured by setting allowed-failures to 3 or less. To enable, add or edit allowed-failures to /etc/dconf/db/gdm.d/00-security-settings. For example: [org/gnome/login-screen] allowed-failures=3 Once the setting has been added, add a lock to /etc/dconf/db/gdm.d/locks/00-security-settings-lock to prevent user modification. For example: /org/gnome/login-screen/allowed-failures After the settings have been set, run dconf update. |
Setting the password retry prompts that are permitted on a per-session basis to a low value requires some software, such as SSH, to re-connect. This can slow down and draw additional attention to some types of password-guessing attacks. |
medium |
NaN |
FMT_MOF_EXT.1 |
NaN |
NaN |
Configure GNOME Login Screen |
| CCE-82985-3 |
Install dnf-automatic Package |
install |
via yum |
The dnf-automatic package can be installed with the following command: $ sudo yum install dnf-automatic |
dnf-automatic is an alternative command line interface (CLI) to dnf upgrade suitable for automatic, regular execution. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000191-GPOS-00080 |
Updating Software |
| CCE-82476-3 |
Ensure yum Removes Previous Package Versions |
True |
via /etc/yum.conf |
yum should be configured to remove previous software components after new versions have been installed. To configure yum to remove the previous software components after updating, set the clean_requirements_on_remove to 1 in /etc/yum.conf. |
Previous versions of software components that are not removed from the information system after updates have been installed may be exploited by some adversaries. |
low |
CM-11(a),CM-11(b),CM-6(a),SI-2(6) |
NaN |
NaN |
SRG-OS-000437-GPOS-00194 |
Updating Software |
| CCE-82267-6 |
Configure dnf-automatic to Install Only Security Updates |
security |
via /etc/dnf/automatic.conf |
To configure dnf-automatic to install only security updates automatically, set upgrade_type to security under [commands] section in /etc/dnf/automatic.conf. |
By default, dnf-automatic installs all available updates. Reducing the amount of updated packages only to updates that were issued as a part of a security advisory increases the system stability. |
low |
CM-6(a),SI-2(5),SI-2(c) |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000191-GPOS-00080 |
Updating Software |
| CCE-80791-7 |
Ensure gpgcheck Enabled for Local Packages |
True |
via /etc/yum.conf |
yum should be configured to verify the signature(s) of local packages prior to installation. To configure yum to verify signatures of local packages, set the localpkg_gpgcheck to 1 in /etc/yum.conf. |
Changes to any software components can have significant effects to the overall security of the operating system. This requirement ensures the software has not been tampered and has been provided by a trusted vendor. Accordingly, patches, service packs, device drivers, or operating system components must be signed with a certificate recognized and approved by the organization. |
high |
CM-11(a),CM-11(b),CM-5(3),CM-6(a),SA-12,SA-12(10) |
FPT_TUD_EXT.1,FPT_TUD_EXT.2 |
NaN |
SRG-OS-000366-GPOS-00153 |
Updating Software |
| CCE-80790-9 |
Ensure gpgcheck Enabled In Main yum Configuration |
True |
via /etc/yum.conf |
The gpgcheck option controls whether RPM packages' signatures are always checked prior to installation. To configure yum to check package signatures before installing them, ensure the following line appears in /etc/yum.conf in the [main] section: gpgcheck=1 |
Changes to any software components can have significant effects on the overall security of the operating system. This requirement ensures the software has not been tampered with and that it has been provided by a trusted vendor. Accordingly, patches, service packs, device drivers, or operating system components must be signed with a certificate recognized and approved by the organization. Verifying the authenticity of the software prior to installation validates the integrity of the patch or upgrade received from a vendor. This ensures the software has not been tampered with and that it has been provided by a trusted vendor. Self-signed certificates are disallowed by this requirement. Certificates used to verify the software must be from an approved Certificate Authority (CA). |
high |
CM-11(a),CM-11(b),CM-5(3),CM-6(a),SA-12,SA-12(10),SC-12,SC-12(3),SI-7 |
FPT_TUD_EXT.1,FPT_TUD_EXT.2 |
1.2.4 |
SRG-OS-000366-GPOS-00153 |
Updating Software |
| CCE-82360-9 |
Enable dnf-automatic Timer |
enable |
via systemctl |
The dnf-automatic timer can be enabled with the following command: $ sudo systemctl enable dnf-automatic.timer |
The dnf-automatic is an alternative command line interface (CLI) to dnf upgrade with specific facilities to make it suitable to be executed automatically and regularly from systemd timers, cron jobs and similar. The tool is controlled by dnf-automatic.timer SystemD timer. |
medium |
CM-6(a),SI-2(5),SI-2(c) |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000191-GPOS-00080 |
Updating Software |
| CCE-82494-6 |
Configure dnf-automatic to Install Available Updates Automatically |
yes |
via /etc/dnf/automatic.conf |
To ensure that the packages comprising the available updates will be automatically installed by dnf-automatic, set apply_updates to yes under [commands] section in /etc/dnf/automatic.conf. |
Installing software updates is a fundamental mitigation against the exploitation of publicly-known vulnerabilities. If the most recent security patches and updates are not installed, unauthorized users may take advantage of weaknesses in the unpatched software. The lack of prompt attention to patching could result in a system compromise. The automated installation of updates ensures that recent security patches are applied in a timely manner. |
medium |
CM-6(a),SI-2(5),SI-2(c) |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000191-GPOS-00080 |
Updating Software |
| CCE-80792-5 |
Ensure gpgcheck Enabled for All yum Package Repositories |
0 |
via /etc/yum.conf |
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 |
Verifying the authenticity of the software prior to installation validates the integrity of the patch or upgrade received from a vendor. This ensures the software has not been tampered with and that it has been provided by a trusted vendor. Self-signed certificates are disallowed by this requirement. Certificates used to verify the software must be from an approved Certificate Authority (CA)." |
high |
CM-11(a),CM-11(b),CM-5(3),CM-6(a),SA-12,SA-12(10),SC-12,SC-12(3),SI-7 |
FPT_TUD_EXT.1,FPT_TUD_EXT.2 |
NaN |
SRG-OS-000366-GPOS-00153 |
Updating Software |
| CCE-80793-3 |
Ensure gpgcheck Enabled for Repository Metadata |
True |
via /etc/yum.conf |
Verify the operating system prevents the installation of patches, service packs, device drivers, or operating system components of local packages without verification of the repository metadata. Check that yum verifies the repository metadata prior to install with the following command. This should be configured by setting repo_gpgcheck to 1 in /etc/yum.conf. |
Changes to any software components can have significant effects to the overall security of the operating system. This requirement ensures the software has not been tampered and has been provided by a trusted vendor. Accordingly, patches, service packs, device drivers, or operating system components must be signed with a certificate recognized and approved by the organization. Verifying the authenticity of the software prior to installation validates the integrity of the patch or upgrade received from a vendor. This ensures the software has not been tampered with and that it has been provided by a trusted vendor. Self-signed certificates are disallowed by this requirement. The operating system should not have to verify the software again. NOTE: For U.S. Military systems, this requirement does not mandate DoD certificates for this purpose; however, the certificate used to verify the software must be from an approved Certificate Authority. |
high |
CM-11(a),CM-11(b),CM-5(3),CM-6(a),SA-12,SA-12(10),SC-12,SC-12(3),SI-7 |
NaN |
NaN |
SRG-OS-000366-GPOS-00153 |
Updating Software |
| CCE-80865-9 |
Ensure Software Patches Installed |
update |
via yum |
If the system is joined to the Red Hat Network, a Red Hat Satellite Server, or a yum server, run the following command to install updates: $ sudo yum update If the system is not configured to use one of these sources, updates (in the form of RPM packages) can be manually downloaded from the Red Hat Network and installed using rpm. NOTE: U.S. Defense systems are required to be patched within 30 days or sooner as local policy dictates. |
Installing software updates is a fundamental mitigation against the exploitation of publicly-known vulnerabilities. If the most recent security patches and updates are not installed, unauthorized users may take advantage of weaknesses in the unpatched software. The lack of prompt attention to patching could result in a system compromise. |
high |
CM-6(a),SI-2(5),SI-2(c) |
FMT_MOF_EXT.1 |
1.9 |
SRG-OS-000480-GPOS-00227 |
Updating Software |
| CCE-80795-8 |
Ensure Red Hat GPG Key Installed |
import |
via rpm |
To ensure the system can cryptographically verify base software packages come from Red Hat (and to connect to the Red Hat Network to receive them), the Red Hat GPG key must properly be installed. To install the Red Hat GPG key, run: $ sudo subscription-manager register If the system is not connected to the Internet or an RHN Satellite, then install the Red Hat GPG key from trusted media such as the Red Hat installation CD-ROM or DVD. Assuming the disc is mounted in /media/cdrom, use the following command as the root user to import it into the keyring: $ sudo rpm --import /media/cdrom/RPM-GPG-KEY Alternatively, the key may be pre-loaded during the RHEL installation. In such cases, the key can be installed by running the following command: sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release |
Changes to software components can have significant effects on the overall security of the operating system. This requirement ensures the software has not been tampered with and that it has been provided by a trusted vendor. The Red Hat GPG key is necessary to cryptographically verify packages are from Red Hat. |
high |
CM-5(3),CM-6(a),SC-12,SC-12(3),SI-7 |
FPT_TUD_EXT.1,FPT_TUD_EXT.2 |
1.2.3 |
SRG-OS-000366-GPOS-00153 |
Updating Software |
| CCE-80853-5 |
Ensure /var/log Located On Separate Partition |
partition |
via /etc/fstab |
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. |
Placing /var/log in its own partition enables better separation between log files and other files in /var/. |
medium |
AU-4,CM-6(a),SC-5(2) |
NaN |
1.1.11 |
SRG-OS-000480-GPOS-00227 |
Disk Partitioning |
| CCE-82730-3 |
Ensure /var/tmp Located On Separate Partition |
partition |
via /etc/fstab |
The /var/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. |
The /var/tmp partition is used as temporary storage by many programs. Placing /var/tmp in its own partition enables the setting of more restrictive mount options, which can help protect programs which use it. |
low |
NaN |
NaN |
1.1.7 |
NaN |
Disk Partitioning |
| CCE-80852-7 |
Ensure /var Located On Separate Partition |
partition |
via /etc/fstab |
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. |
Ensuring that /var is mounted on its own partition enables the setting of more restrictive mount options. This helps protect system services such as daemons or other programs which use it. It is not uncommon for the /var directory to contain world-writable directories installed by other software packages. |
low |
CM-6(a),SC-5(2) |
NaN |
1.1.6 |
SRG-OS-000480-GPOS-00227 |
Disk Partitioning |
| CCE-80854-3 |
Ensure /var/log/audit Located On Separate Partition |
partition |
via /etc/fstab |
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. |
Placing /var/log/audit in its own partition enables better separation between audit files and other files, and helps ensure that auditing cannot be halted due to the partition running out of space. |
low |
AU-4,CM-6(a),SC-5(2) |
NaN |
1.1.12 |
SRG-OS-000341-GPOS-00132,SRG-OS-000480-GPOS-00227 |
Disk Partitioning |
| CCE-80789-1 |
Encrypt Partitions |
partition |
via /etc/crypttab |
Red Hat Enterprise Linux 8 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=ext4 --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. By default, the Anaconda installer uses aes-xts-plain64 cipher with a minimum 512 bit key size which should be compatible with FIPS enabled. Detailed information on encrypting partitions using LUKS or LUKS ciphers can be found on the Red Hat Enterprise Linux 8 Documentation web site: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Encryption.html. |
The risk of a system's physical compromise, particularly mobile systems such as laptops, places its data at risk of compromise. Encrypting this data mitigates the risk of its loss if the system is lost. |
high |
AU-9(3),CM-6(a),SC-13,SC-28,SC-28(1) |
NaN |
NaN |
SRG-OS-000185-GPOS-00079,SRG-OS-000404-GPOS-00183,SRG-OS-000405-GPOS-00184 |
Disk Partitioning |
| CCE-80851-9 |
Ensure /tmp Located On Separate Partition |
partition |
via /etc/fstab |
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. |
The /tmp partition is used as temporary storage by many programs. Placing /tmp in its own partition enables the setting of more restrictive mount options, which can help protect programs which use it. |
low |
CM-6(a),SC-5(2) |
NaN |
1.1.2 |
SRG-OS-000480-GPOS-00227 |
Disk Partitioning |
| CCE-81044-0 |
Ensure /home Located On Separate Partition |
partition |
via /etc/fstab |
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. |
Ensuring that /home is mounted on its own partition enables the setting of more restrictive mount options, and also helps ensure that users cannot trivially fill partitions used for log or audit data storage. |
low |
CM-6(a),SC-5(2) |
NaN |
1.1.13 |
SRG-OS-000480-GPOS-00227 |
Disk Partitioning |
| CCE-82396-3 |
Ensure nss-tools is installed |
install |
via yum |
The nss-tools package can be installed with the following command: $ sudo yum install nss-tools |
Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications. Install the nss-tools package to install command-line tools to manipulate the NSS certificate and key database. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
System Tooling / Utilities |
| CCE-82883-0 |
Install rear Package |
install |
via yum |
The rear package can be installed with the following command: $ sudo yum install rear |
rear contains the Relax-and-Recover (ReaR) utility. ReaR produces a bootable image of a system and restores from backup using this image. |
medium |
NaN |
NaN |
NaN |
NaN |
System Tooling / Utilities |
| CCE-82979-6 |
Install libcap-ng-utils Package |
install |
via yum |
The libcap-ng-utils package can be installed with the following command: $ sudo yum install libcap-ng-utils |
libcap-ng-utils contains applications to analyze the posix posix capabilities of all the programs running on a system. libcap-ng-utils also lets system operators set the file system based capabilities. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000445-GPOS-00199 |
System Tooling / Utilities |
| CCE-82965-5 |
Install tar Package |
install |
via yum |
The tar package can be installed with the following command: $ sudo yum install tar |
The GNU tar program saves many files together into one archive and can restore individual files (or all of the files) from the archive. tar includes multivolume support, automatic archive compression/decompression, the the ability to perform incremental and full backups. If |
medium |
NaN |
NaN |
NaN |
NaN |
System Tooling / Utilities |
| CCE-82220-5 |
Install openscap-scanner Package |
install |
via yum |
The openscap-scanner package can be installed with the following command: $ sudo yum install openscap-scanner |
openscap-scanner contains the oscap command line tool. This tool is a configuration and vulnerability scanner, capable of performing compliance checking using SCAP content. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000191-GPOS-00080,SRG-OS-000480-GPOS-00227 |
System Tooling / Utilities |
| CCE-82956-4 |
Install vim Package |
install |
via yum |
The vim package can be installed with the following command: $ sudo yum install vim |
Vim (Vi IMproved) is an almost compatible version of the UNIX editor vi. |
low |
NaN |
NaN |
NaN |
NaN |
System Tooling / Utilities |
| CCE-82949-9 |
Install scap-security-guide Package |
install |
via yum |
The scap-security-guide package can be installed with the following command: $ sudo yum install scap-security-guide |
The scap-security-guide package provides a guide for configuration of the system from the final system's security point of view. The guidance is specified in the Security Content Automation Protocol (SCAP) format and constitutes a catalog of practical hardening advice, linked to government requirements where applicable. The SCAP Security Guide project bridges the gap between generalized policy requirements and specific implementation guidelines. A system administrator can use the oscap CLI tool from the openscap-scanner package, or the SCAP Workbench GUI tool from the scap-workbench package, to verify that the system conforms to provided guidelines. Refer to the scap-security-guide(8) manual page for futher information. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
System Tooling / Utilities |
| CCE-82315-3 |
Install dnf-plugin-subscription-manager Package |
install |
via yum |
The dnf-plugin-subscription-manager package can be installed with the following command: $ sudo yum install dnf-plugin-subscription-manager |
This package provides plugins to interact with repositories and subscriptions from the Red Hat entitlement platform; contains subscription-manager and product-id plugins. |
medium |
NaN |
FPT_TUD_EXT.1,FPT_TUD_EXT.2 |
NaN |
SRG-OS-000366-GPOS-00153 |
System Tooling / Utilities |
| CCE-82316-1 |
Install subscription-manager Package |
install |
via yum |
The subscription-manager package can be installed with the following command: $ sudo yum install subscription-manager |
Red Hat Subscription Manager is a local service which tracks installed products and subscriptions on a local system to help manage subscription assignments. It communicates with the backend subscription service (the Customer Portal or an on-premise server such as Subscription Asset Manager) and works with content management tools such as yum. |
medium |
NaN |
FPT_TUD_EXT.1,FPT_TUD_EXT.2 |
NaN |
SRG-OS-000366-GPOS-00153 |
System Tooling / Utilities |
| CCE-82989-5 |
Install binutils Package |
install |
via yum |
The binutils package can be installed with the following command: $ sudo yum install binutils |
binutils is a collection of binary utilities required for foundational system operator activities, such as ld, nm, objcopy and readelf. |
medium |
NaN |
NaN |
NaN |
NaN |
System Tooling / Utilities |
| CCE-82395-5 |
Ensure gnutls-utils is installed |
install |
via yum |
The gnutls-utils package can be installed with the following command: $ sudo yum install gnutls-utils |
GnuTLS is a secure communications library implementing the SSL, TLS and DTLS protocols and technologies around them. It provides a simple C language application programming interface (API) to access the secure communications protocols as well as APIs to parse and write X.509, PKCS #12, OpenPGP and other required structures. This package contains command line TLS client and server and certificate manipulation tools. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
System Tooling / Utilities |
| CCE-82968-9 |
Install rng-tools Package |
install |
via yum |
The rng-tools package can be installed with the following command: $ sudo yum install rng-tools |
rng-tools provides hardware random number generator tools, such as those used in the formation of x509/PKI certificates. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
System Tooling / Utilities |
| CCE-82939-0 |
Uninstall geolite2-city Package |
remove |
via yum |
The geolite2-city package can be removed with the following command: $ sudo yum erase geolite2-city |
geolite2-city is part of the GeoLite2 database packages, offering geolocation databases and tooling. |
low |
NaN |
NaN |
NaN |
NaN |
System Tooling / Utilities |
| CCE-82926-7 |
Uninstall abrt-addon-kerneloops Package |
remove |
via yum |
The abrt-addon-kerneloops package can be removed with the following command: $ sudo yum erase abrt-addon-kerneloops |
abrt-addon-kerneloops contains plugins for collecting kernel crash information and reporter plugin which sends this information to a specified server, usually to kerneloops.org. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
System Tooling / Utilities |
| CCE-82397-1 |
Uninstall pigz Package |
remove |
via yum |
The pigz package can be removed with the following command: $ sudo yum erase pigz |
Binaries shipped in pigz package in Red Hat Enterprise Linux 8 have not been compiled using recommended compiler flags. The binaries are compiled without sufficient stack protection and its address space layout randomization (ASLR) is weak. |
low |
NaN |
NaN |
NaN |
SRG-OS-000433-GPOS-00192 |
System Tooling / Utilities |
| CCE-82910-1 |
Uninstall abrt-plugin-sosreport Package |
remove |
via yum |
The abrt-plugin-sosreport package can be removed with the following command: $ sudo yum erase abrt-plugin-sosreport |
abrt-plugin-sosreport provides a plugin to include an sosreport in an ABRT report. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
System Tooling / Utilities |
| CCE-82907-7 |
Uninstall abrt-cli Package |
remove |
via yum |
The abrt-cli package can be removed with the following command: $ sudo yum erase abrt-cli |
abrt-cli contains a command line client for controlling abrt daemon over sockets. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
System Tooling / Utilities |
| CCE-82919-2 |
Uninstall abrt-addon-ccpp Package |
remove |
via yum |
The abrt-addon-ccpp package can be removed with the following command: $ sudo yum erase abrt-addon-ccpp |
abrt-addon-ccpp contains hooks for C/C++ crashed programs and abrt's C/C++ analyzer plugin. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
System Tooling / Utilities |
| CCE-82916-8 |
Uninstall abrt-plugin-rhtsupport Package |
remove |
via yum |
The abrt-plugin-rhtsupport package can be removed with the following command: $ sudo yum erase abrt-plugin-rhtsupport |
abrt-plugin-rhtsupport is a ABRT plugin to report bugs into the Red Hat Support system. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
System Tooling / Utilities |
| CCE-82936-6 |
Uninstall geolite2-country Package |
remove |
via yum |
The geolite2-country package can be removed with the following command: $ sudo yum erase geolite2-country |
geolite2-country is part of the GeoLite2 database packages, offering geolocation databases and tooling. |
low |
NaN |
NaN |
NaN |
NaN |
System Tooling / Utilities |
| CCE-82931-7 |
Uninstall krb5-workstation Package |
remove |
via yum |
The krb5-workstation package can be removed with the following command: $ sudo yum erase krb5-workstation |
Kerberos is a network authentication system. The krb5-workstation package contains the basic Kerberos programs (kinit, klist, kdestroy, kpasswd). Currently, Kerberos does not utilize FIPS 140-2 cryptography and is not permitted on Government networks, nor is it permitted in many regulatory environments such as HIPAA. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049,SRG-OS-000120-GPOS-00061 |
System Tooling / Utilities |
| CCE-82904-4 |
Uninstall tuned Package |
remove |
via yum |
The tuned package can be removed with the following command: $ sudo yum erase tuned |
tuned contains a daemon that tunes the system settings dynamically. It does so by monitoring the usage of several system components periodically. Based on that information, components will then be put into lower or higher power savings modes to adapt to the current usage. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
System Tooling / Utilities |
| CCE-82943-2 |
Uninstall gssproxy Package |
remove |
via yum |
The gssproxy package can be removed with the following command: $ sudo yum erase gssproxy |
gssproxy is a proxy for GSS API credential handling. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
System Tooling / Utilities |
| CCE-82923-4 |
Uninstall abrt-addon-python Package |
remove |
via yum |
The abrt-addon-python package can be removed with the following command: $ sudo yum erase abrt-addon-python |
abrt-addon-python contains python hook and python analyzer plugin for handling uncaught exceptions in python programs. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
System Tooling / Utilities |
| CCE-82946-5 |
Uninstall iprutils Package |
remove |
via yum |
The iprutils package can be removed with the following command: $ sudo yum erase iprutils |
iprutils provides a suite of utlilities to manage and configure SCSI devices supported by the ipr SCSI storage device driver. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
System Tooling / Utilities |
| CCE-82913-5 |
Uninstall abrt-plugin-logger Package |
remove |
via yum |
The abrt-plugin-logger package can be removed with the following command: $ sudo yum erase abrt-plugin-logger |
abrt-plugin-logger is an ABRT plugin which writes a report to a specified file. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
System Tooling / Utilities |
| CCE-82214-8 |
Install sudo Package |
install |
via yum |
The sudo package can be installed with the following command: $ sudo yum install sudo |
sudo is a program designed to allow a system administrator to give limited root privileges to users and log root activity. The basic philosophy is to give as few privileges as possible but still allow system users to get their work done. |
medium |
CM-6(a) |
NaN |
1.3.1 |
SRG-OS-000324-GPOS-00125 |
Sudo |
| CCE-82202-3 |
Ensure Users Re-Authenticate for Privilege Escalation - sudo !authenticate |
remove |
via /etc/sudoers or /etc/sudoers.d/ |
The sudo !authenticate option, when specified, allows a user to execute commands using sudo without having to authenticate. This should be disabled by making sure that the !authenticate option does not exist in /etc/sudoers configuration file or any sudo configuration snippets in /etc/sudoers.d/. |
Without re-authentication, users may access resources or perform tasks for which they do not have authorization. When operating systems provide the capability to escalate a functional capability, it is critical that the user re-authenticate. |
medium |
CM-6(a),IA-11 |
NaN |
NaN |
SRG-OS-000373-GPOS-00156,SRG-OS-000373-GPOS-00157,SRG-OS-000373-GPOS-00158 |
Sudo |
| CCE-82197-5 |
Ensure Users Re-Authenticate for Privilege Escalation - sudo NOPASSWD |
remove |
via /etc/sudoers or /etc/sudoers.d/ |
The sudo NOPASSWD tag, when specified, allows a user to execute commands using sudo without having to authenticate. This should be disabled by making sure that the NOPASSWD tag does not exist in /etc/sudoers configuration file or any sudo configuration snippets in /etc/sudoers.d/. |
Without re-authentication, users may access resources or perform tasks for which they do not have authorization. When operating systems provide the capability to escalate a functional capability, it is critical that the user re-authenticate. |
medium |
CM-6(a),IA-11 |
NaN |
NaN |
SRG-OS-000373-GPOS-00156,SRG-OS-000373-GPOS-00157,SRG-OS-000373-GPOS-00158 |
Sudo |
| CCE-82279-1 |
Ensure Users Re-Authenticate for Privilege Escalation - sudo |
remove |
via /etc/sudoers or /etc/sudoers.d/ |
The sudo NOPASSWD and !authenticate option, when specified, allows a user to execute commands using sudo without having to authenticate. This should be disabled by making sure that NOPASSWD and/or !authenticate do not exist in /etc/sudoers configuration file or any sudo configuration snippets in /etc/sudoers.d/." |
Without re-authentication, users may access resources or perform tasks for which they do not have authorization. When operating systems provide the capability to escalate a functional capability, it is critical that the user re-authenticate. |
medium |
CM-6(a),IA-11 |
NaN |
NaN |
NaN |
Sudo |
| CCE-82365-8 |
Only the VDSM User Can Use sudo NOPASSWD |
configure |
via /etc/sudoers or /etc/sudoers.d/ |
The sudo NOPASSWD tag, when specified, allows a user to execute commands using sudo without having to authenticate. Only the vdsm user should have this capability in any sudo configuration snippets in /etc/sudoers.d/. |
Without re-authentication, users may access resources or perform tasks for which they do not have authorization. When operating systems provide the capability to escalate a functional capability, it is critical that the user re-authenticate. |
medium |
NaN |
NaN |
NaN |
NaN |
Sudo |
| CCE-80829-5 |
Set the UEFI Boot Loader Password |
configure |
via grub2-setpassword |
The grub2 boot loader should have a superuser account and password protection enabled to protect boot-time settings. Since plaintext passwords are a security risk, generate a hash for the password by running the following command: $ grub2-setpassword When prompted, enter the password that was selected. Once the superuser password has been added, update the grub.cfg file by running: grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg |
Password protection on the boot loader configuration ensures users with physical access cannot trivially alter important bootloader settings. These include which kernel to use, and whether to enter single-user mode. |
medium |
CM-6(a) |
FIA_UAU.1 |
1.4.2 |
SRG-OS-000080-GPOS-00048 |
GRUB2 bootloader configuration |
| CCE-80805-5 |
Verify /boot/grub2/grub.cfg User Ownership |
root |
via chown |
The file /boot/grub2/grub.cfg should be owned by the root user to prevent destruction or modification of the file. To properly set the owner of /boot/grub2/grub.cfg, run the command: $ sudo chown root /boot/grub2/grub.cfg |
Only root should be able to modify important boot parameters. |
medium |
AC-6(1),CM-6(a) |
NaN |
1.5.1 |
NaN |
GRUB2 bootloader configuration |
| CCE-83561-1 |
Set the Boot Loader Admin Username to a Non-Default Value |
unique name that is not root, admin, or administrator |
via grub |
The grub2 boot loader should have a superuser account and password protection enabled to protect boot-time settings. To maximize the protection, select a password-protected superuser account with unique name, and modify the /etc/grub.d/01_users configuration file to reflect the account name change. Do not to use common administrator account names like root, admin, or administrator for the grub2 superuser account. Change the superuser to a different username (The default is 'root'). $ sed -i 's/\(set superuser=\).*/\1"<unique user ID>"/g' /etc/grub.d/01_users Once the superuser account has been added, update the grub.cfg file by running: grub2-mkconfig -o /boot/grub2/grub.cfg |
Having a non-default grub superuser username makes password-guessing attacks less effective. |
low |
CM-6(a) |
FIA_UAU.1 |
1.4.2 |
SRG-OS-000080-GPOS-00048 |
GRUB2 bootloader configuration |
| CCE-82194-2 |
Enable Kernel Page-Table Isolation (KPTI) |
on |
via grub |
To enable Kernel page-table isolation, add the argument pti=on to the default GRUB 2 command line for the Linux operating system in /etc/default/grub, in the manner below: GRUB_CMDLINE_LINUX="pti=on" |
Kernel page-table isolation is a kernel feature that mitigates the Meltdown security vulnerability and hardens the kernel against attempts to bypass kernel address space layout randomization (KASLR). |
high |
SI-16 |
NaN |
NaN |
SRG-OS-000433-GPOS-00193 |
GRUB2 bootloader configuration |
| CCE-80814-7 |
Verify /boot/grub2/grub.cfg Permissions |
600 |
via chmod |
File permissions for /boot/grub2/grub.cfg should be set to 600. To properly set the permissions of /boot/grub2/grub.cfg, run the command: $ sudo chmod 600 /boot/grub2/grub.cfg |
Proper permissions ensure that only the root user can modify important boot parameters. |
medium |
AC-6(1),CM-6(a) |
NaN |
1.5.1 |
NaN |
GRUB2 bootloader configuration |
| CCE-80800-6 |
Verify /boot/grub2/grub.cfg Group Ownership |
root |
via chgrp |
The file /boot/grub2/grub.cfg should be group-owned by the root group to prevent destruction or modification of the file. To properly set the group owner of /boot/grub2/grub.cfg, run the command: $ sudo chgrp root /boot/grub2/grub.cfg |
The root group is a highly-privileged group. Furthermore, the group-owner of this file should not have any access privileges anyway. |
medium |
AC-6(1),CM-6(a) |
NaN |
1.5.1 |
NaN |
GRUB2 bootloader configuration |
| CCE-83542-1 |
Set the UEFI Boot Loader Admin Username to a Non-Default Value |
unique name that is not root, admin, or administrator |
via grub |
The grub2 boot loader should have a superuser account and password protection enabled to protect boot-time settings. To maximize the protection, select a password-protected superuser account with unique name, and modify the /etc/grub.d/01_users configuration file to reflect the account name change. It is highly suggested not to use common administrator account names like root, admin, or administrator for the grub2 superuser account. Change the superuser to a different username (The default is 'root'). $ sed -i 's/\(set superuser=\).*/\1"<unique user ID>"/g' /etc/grub.d/01_users Once the superuser account has been added, update the grub.cfg file by running: grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg |
Having a non-default grub superuser username makes password-guessing attacks less effective. |
low |
CM-6(a) |
FIA_UAU.1 |
1.4.2 |
SRG-OS-000080-GPOS-00048 |
GRUB2 bootloader configuration |
| CCE-80828-7 |
Set Boot Loader Password in grub2 |
configure |
via grub2-setpassword |
The grub2 boot loader should have a superuser account and password protection enabled to protect boot-time settings. Since plaintext passwords are a security risk, generate a hash for the password by running the following command: $ grub2-setpassword When prompted, enter the password that was selected. Once the superuser password has been added, update the grub.cfg file by running: grub2-mkconfig -o /boot/grub2/grub.cfg |
Password protection on the boot loader configuration ensures users with physical access cannot trivially alter important bootloader settings. These include which kernel to use, and whether to enter single-user mode. |
high |
CM-6(a) |
FIA_UAU.1 |
1.5.2 |
SRG-OS-000080-GPOS-00048 |
GRUB2 bootloader configuration |
| CCE-81054-9 |
Disallow kernel profiling by unprivileged users |
2 |
via sysctl |
To set the runtime status of the kernel.perf_event_paranoid kernel parameter, run the following command: $ sudo sysctl -w kernel.perf_event_paranoid=2 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: kernel.perf_event_paranoid = 2 |
Kernel profiling can reveal sensitive information about kernel behaviour. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000132-GPOS-00067 |
Restrict Programs from Dangerous Execution Patterns |
| CCE-80946-7 |
Disable vsyscalls |
none |
via grub |
To disable use of virtual syscalls, add the argument vsyscall=none to the default GRUB 2 command line for the Linux operating system in /etc/default/grub, in the manner below: GRUB_CMDLINE_LINUX="vsyscall=none" |
Virtual Syscalls provide an opportunity of attack for a user who has control of the return instruction pointer. |
medium |
CM-7(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Restrict Programs from Dangerous Execution Patterns |
| CCE-80952-5 |
Disable Kernel Image Loading |
True |
via sysctl |
To set the runtime status of the kernel.kexec_load_disabled kernel parameter, run the following command: $ sudo sysctl -w kernel.kexec_load_disabled=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: kernel.kexec_load_disabled = 1 |
Disabling kexec_load allows greater control of the kernel memory. It makes it impossible to load another kernel image after it has been disabled. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Restrict Programs from Dangerous Execution Patterns |
| CCE-82934-1 |
Harden the operation of the BPF just-in-time compiler |
2 |
via sysctl |
To set the runtime status of the net.core.bpf_jit_harden kernel parameter, run the following command: $ sudo sysctl -w net.core.bpf_jit_harden=2 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.core.bpf_jit_harden = 2 |
When hardened, the extended Berkeley Packet Filter just-in-time compiler will randomize any kernel addresses in the BPF programs and maps, and will not expose the JIT addresses in /proc/kallsyms. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Restrict Programs from Dangerous Execution Patterns |
| CCE-82215-5 |
Disable storing core dumps |
|/bin/false |
via sysctl |
To set the runtime status of the kernel.core_pattern kernel parameter, run the following command: $ sudo sysctl -w kernel.core_pattern=|/bin/false To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: kernel.core_pattern = |/bin/false |
A core dump includes a memory image taken at the time the operating system terminates an application. The memory image could contain sensitive data and is generally useful only for developers trying to debug problems. |
unknown |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Restrict Programs from Dangerous Execution Patterns |
| CCE-82974-7 |
Disable Access to Network bpf() Syscall From Unprivileged Processes |
True |
via sysctl |
To set the runtime status of the kernel.unprivileged_bpf_disabled kernel parameter, run the following command: $ sudo sysctl -w kernel.unprivileged_bpf_disabled=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: kernel.unprivileged_bpf_disabled = 1 |
Loading and accessing the packet filters programs and maps using the bpf() syscall has the potential of revealing sensitive information about the kernel state. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000132-GPOS-00067 |
Restrict Programs from Dangerous Execution Patterns |
| CCE-80913-7 |
Restrict Access to Kernel Message Buffer |
True |
via sysctl |
To set the runtime status of the kernel.dmesg_restrict kernel parameter, run the following command: $ sudo sysctl -w kernel.dmesg_restrict=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: kernel.dmesg_restrict = 1 |
Unprivileged access to the kernel syslog can expose sensitive kernel address information. |
medium |
SI-11(a),SI-11(b) |
NaN |
NaN |
SRG-OS-000132-GPOS-00067 |
Restrict Programs from Dangerous Execution Patterns |
| CCE-82211-4 |
Disable the use of user namespaces |
0 |
via sysctl |
To set the runtime status of the user.max_user_namespaces kernel parameter, run the following command: $ sudo sysctl -w user.max_user_namespaces=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: user.max_user_namespaces = 0 When containers are deployed on the machine, the value should be set to large non-zero value. |
User namespaces are used primarily for Linux containers. The value 0 disallows the use of user namespaces. |
low |
CM-6(a),SC-39 |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Restrict Programs from Dangerous Execution Patterns |
| CCE-80953-3 |
Restrict usage of ptrace to descendant processes |
True |
via sysctl |
To set the runtime status of the kernel.yama.ptrace_scope kernel parameter, run the following command: $ sudo sysctl -w kernel.yama.ptrace_scope=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: kernel.yama.ptrace_scope = 1 |
Unrestricted usage of ptrace allows compromised binaries to run ptrace on another processes of the user. Like this, the attacker can steal sensitive information from the target processes (e.g. SSH sessions, web browser, ...) without any additional assistance from the user (i.e. without resorting to phishing). |
medium |
NaN |
NaN |
NaN |
SRG-OS-000132-GPOS-00067 |
Restrict Programs from Dangerous Execution Patterns |
| CCE-80945-9 |
Enable SLUB/SLAB allocator poisoning |
P |
via sysctl |
To enable poisoning of SLUB/SLAB objects, add the argument slub_debug=P to the default GRUB 2 command line for the Linux operating system in /etc/default/grub, in the manner below: GRUB_CMDLINE_LINUX="slub_debug=P" |
Poisoning writes an arbitrary value to freed objects, so any modification or reference to that object after being freed or before being initialized will be detected and prevented. This prevents many types of use-after-free vulnerabilities at little performance cost. Also prevents leak of data and detection of corrupted memory. |
medium |
CM-6(a) |
NaN |
NaN |
SRG-OS-000433-GPOS-00192 |
Memory Poisoning |
| CCE-80944-2 |
Enable page allocator poisoning |
True |
via grub |
To enable poisoning of free pages, add the argument page_poison=1 to the default GRUB 2 command line for the Linux operating system in /etc/default/grub, in the manner below: GRUB_CMDLINE_LINUX="page_poison=1" |
Poisoning writes an arbitrary value to freed pages, so any modification or reference to that page after being freed or before being initialized will be detected and prevented. This prevents many types of use-after-free vulnerabilities at little performance cost. Also prevents leak of data and detection of corrupted memory. |
medium |
CM-6(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Memory Poisoning |
| CCE-82881-4 |
Disable acquiring, saving, and processing core dumps |
disable |
via systemctl |
The systemd-coredump.socket unit is a socket activation of the systemd-coredump@.service which processes core dumps. By masking the unit, core dump processing is disabled. |
A core dump includes a memory image taken at the time the operating system terminates an application. The memory image could contain sensitive data and is generally useful only for developers trying to debug problems. |
unknown |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Disable Core Dumps |
| CCE-82252-8 |
Disable storing core dump |
none |
via /etc/systemd/coredump.conf |
The Storage option in [Coredump] section of /etc/systemd/coredump.conf can be set to none to disable storing core dumps permanently. |
A core dump includes a memory image taken at the time the operating system terminates an application. The memory image could contain sensitive data and is generally useful only for developers or system operators trying to debug problems. Enabling core dumps on production systems is not recommended, however there may be overriding operational requirements to enable advanced debuging. Permitting temporary enablement of core dumps during such situations should be reviewed through local needs and policy. |
unknown |
NaN |
FMT_SMF_EXT.1 |
1.6.1 |
SRG-OS-000480-GPOS-00227 |
Disable Core Dumps |
| CCE-82251-0 |
Disable core dump backtraces |
0 |
via /etc/systemd/coredump.conf |
The ProcessSizeMax option in [Coredump] section of /etc/systemd/coredump.conf specifies the maximum size in bytes of a core which will be processed. Core dumps exceeding this size may be stored, but the backtrace will not be generated. |
A core dump includes a memory image taken at the time the operating system terminates an application. The memory image could contain sensitive data and is generally useful only for developers or system operators trying to debug problems. Enabling core dumps on production systems is not recommended, however there may be overriding operational requirements to enable advanced debuging. Permitting temporary enablement of core dumps during such situations should be reviewed through local needs and policy. |
unknown |
NaN |
FMT_SMF_EXT.1 |
1.6.1 |
SRG-OS-000480-GPOS-00227 |
Disable Core Dumps |
| CCE-81038-2 |
Disable Core Dumps for All Users |
0 |
via /etc/security/limits.conf |
To disable core dumps for all users, add the following line to /etc/security/limits.conf, or to a file within the /etc/security/limits.d/ directory: * hard core 0 |
A core dump includes a memory image taken at the time the operating system terminates an application. The memory image could contain sensitive data and is generally useful only for developers trying to debug problems. |
unknown |
NaN |
NaN |
1.6.1 |
SRG-OS-000480-GPOS-00227 |
Disable Core Dumps |
| CCE-80912-9 |
Disable Core Dumps for SUID programs |
0 |
via sysctl |
To set the runtime status of the fs.suid_dumpable kernel parameter, run the following command: $ sudo sysctl -w fs.suid_dumpable=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: fs.suid_dumpable = 0 |
The core dump of a setuid program is more likely to contain sensitive data, as the program itself runs with greater privileges than the user who initiated execution of the program. Disabling the ability for any setuid program to write a core file decreases the risk of unauthorized access of such data. |
medium |
SI-11(a),SI-11(b) |
NaN |
1.6.1 |
NaN |
Disable Core Dumps |
| CCE-80916-0 |
Enable Randomized Layout of Virtual Address Space |
2 |
via sysctl |
To set the runtime status of the kernel.randomize_va_space kernel parameter, run the following command: $ sudo sysctl -w kernel.randomize_va_space=2 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: kernel.randomize_va_space = 2 |
Address space layout randomization (ASLR) makes it more difficult for an attacker to predict the location of attack code they have introduced into a process's address space during an attempt at exploitation. Additionally, ASLR makes it more difficult for an attacker to know the location of existing code in order to re-purpose it using return oriented programming (ROP) techniques. |
medium |
CM-6(a),SC-30,SC-30(2) |
NaN |
1.6.2 |
SRG-OS-000433-GPOS-00193,SRG-OS-000480-GPOS-00227 |
Enable ExecShield |
| CCE-80914-5 |
Enable ExecShield via sysctl |
enable |
via grub |
By default on Red Hat Enterprise Linux 7 64-bit systems, ExecShield is enabled and can only be disabled if the hardware does not support ExecShield or is disabled in /etc/default/grub. For Red Hat Enterprise Linux 7 32-bit systems, sysctl can be used to enable ExecShield. |
ExecShield uses the segmentation feature on all x86 systems to prevent execution in memory higher than a certain address. It writes an address as a limit in the code segment descriptor, to control where code can be executed, on a per-process basis. When the kernel places a process's memory regions such as the stack and heap higher than this address, the hardware prevents execution in that address range. This is enabled by default on the latest Red Hat and Fedora systems if supported by the hardware. |
medium |
CM-6(a),SC-39 |
NaN |
1.5.2 |
SRG-OS-000433-GPOS-00192 |
Enable ExecShield |
| CCE-80915-2 |
Restrict Exposed Kernel Pointer Addresses Access |
True |
via sysctl |
To set the runtime status of the kernel.kptr_restrict kernel parameter, run the following command: $ sudo sysctl -w kernel.kptr_restrict=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: kernel.kptr_restrict = 1 |
Exposing kernel pointers (through procfs or seq_printf()) exposes kernel writeable structures that can contain functions pointers. If a write vulnereability occurs in the kernel allowing a write access to any of this structure, the kernel can be compromise. This option disallow any program withtout the CAP_SYSLOG capability from getting the kernel pointers addresses, replacing them with 0. |
medium |
CM-6(a),SC-30,SC-30(2),SC-30(5) |
NaN |
NaN |
SRG-OS-000132-GPOS-00067 |
Enable ExecShield |
| CCE-80873-3 |
Disable the Automounter |
disable |
via systemctl |
The autofs daemon mounts and unmounts filesystems, such as user home directories shared via NFS, on demand. In addition, autofs can be used to handle removable media, and the default configuration provides the cdrom device as /misc/cd. However, this method of providing access to removable media is not common, so autofs can almost always be disabled if NFS is not in use. Even if NFS is required, it may be possible to configure filesystem mounts statically by editing /etc/fstab rather than relying on the automounter. The autofs service can be disabled with the following command: $ sudo systemctl disable autofs.service The autofs service can be masked with the following command: $ sudo systemctl mask autofs.service |
Disabling the automounter permits the administrator to statically control filesystem mounting through /etc/fstab. Additionally, automatically mounting filesystems permits easy introduction of unknown devices, thereby facilitating malicious activity. |
medium |
CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.22 |
SRG-OS-000114-GPOS-00059,SRG-OS-000378-GPOS-00163,SRG-OS-000480-GPOS-00227 |
Restrict Dynamic Mounting and Unmounting of Filesystems |
| CCE-81031-7 |
Disable Mounting of cramfs |
disable |
via modprobe.d |
To configure the system to prevent the cramfs kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install cramfs /bin/true This effectively prevents usage of this uncommon filesystem. The cramfs filesystem type is a compressed read-only Linux filesystem embedded in small footprint systems. A cramfs image can be used without having to first decompress the image. |
Removing support for unneeded filesystem types reduces the local attack surface of the server. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
1.1.1.1 |
SRG-OS-000095-GPOS-00049 |
Restrict Dynamic Mounting and Unmounting of Filesystems |
| CCE-80835-2 |
Disable Modprobe Loading of USB Storage Driver |
disable |
via modprobe.d |
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/true 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. |
USB storage devices such as thumb drives can be used to introduce malicious software. |
medium |
CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.23 |
SRG-OS-000114-GPOS-00059,SRG-OS-000378-GPOS-00163,SRG-OS-000480-GPOS-00227 |
Restrict Dynamic Mounting and Unmounting of Filesystems |
| CCE-82729-5 |
Disable Mounting of udf |
disable |
via modprobe.d |
To configure the system to prevent the udf kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install udf /bin/true This effectively prevents usage of this uncommon filesystem. The udf filesystem type is the universal disk format used to implement the ISO/IEC 13346 and ECMA-167 specifications. This is an open vendor filesystem type for data storage on a broad range of media. This filesystem type is neccessary to support writing DVDs and newer optical disc formats. |
Removing support for unneeded filesystem types reduces the local attack surface of the system. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
1.1.1.4 |
NaN |
Restrict Dynamic Mounting and Unmounting of Filesystems |
| CCE-83498-6 |
Disable Mounting of squashfs |
disable |
via modprobe.d |
To configure the system to prevent the squashfs kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install squashfs /bin/true This effectively prevents usage of this uncommon filesystem. The squashfs filesystem type is a compressed read-only Linux filesystem embedded in small footprint systems (similar to cramfs). A squashfs image can be used without having to first decompress the image. |
Removing support for unneeded filesystem types reduces the local attack surface of the system. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
1.1.1.3 |
NaN |
Restrict Dynamic Mounting and Unmounting of Filesystems |
| CCE-82170-2 |
Disable Mounting of vFAT filesystems |
disable |
via modprobe.d |
To configure the system to prevent the vfat kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install vfat /bin/true This effectively prevents usage of this uncommon filesystem. The vFAT filesystem format is primarily used on older windows systems and portable USB drives or flash modules. It comes in three types FAT12, FAT16, and FAT32 all of which are supported by the vfat kernel module. |
Removing support for unneeded filesystems reduces the local attack surface of the system. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
1.1.1.2 |
NaN |
Restrict Dynamic Mounting and Unmounting of Filesystems |
| CCE-80817-0 |
Ensure All SUID Executables Are Authorized |
verify |
via rpm |
The SUID (set user id) bit should be set only on files that were installed via authorized means. A straightforward means of identifying unauthorized SUID files is determine if any were not installed as part of an RPM package, which is cryptographically verified. Investigate the origin of any unpackaged SUID files. This configuration check considers authorized SUID files which were installed via RPM. It is assumed that when an individual has sudo access to install an RPM and all packages are signed with an organizationally-recognized GPG key, the software should be considered an approved package on the system. Any SUID file not deployed through an RPM will be flagged for further review. |
Executable files with the SUID permission run with the privileges of the owner of the file. SUID files of uncertain provenance could allow for unprivileged users to elevate privileges. The presence of these files should be strictly controlled on the system. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.13 |
NaN |
Verify Permissions on Important Files and Directories |
| CCE-80816-2 |
Ensure All SGID Executables Are Authorized |
verify |
via rpm |
The SGID (set group id) bit should be set only on files that were installed via authorized means. A straightforward means of identifying unauthorized SGID files is determine if any were not installed as part of an RPM package, which is cryptographically verified. Investigate the origin of any unpackaged SGID files. This configuration check considers authorized SGID files which were installed via RPM. It is assumed that when an individual has sudo access to install an RPM and all packages are signed with an organizationally-recognized GPG key, the software should be considered an approved package on the system. Any SGID file not deployed through an RPM will be flagged for further review. |
Executable files with the SGID permission run with the privileges of the owner of the file. SGID files of uncertain provenance could allow for unprivileged users to elevate privileges. The presence of these files should be strictly controlled on the system. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.14 |
NaN |
Verify Permissions on Important Files and Directories |
| CCE-80783-4 |
Verify that All World-Writable Directories Have Sticky Bits Set |
+t |
via chmod |
When the so-called 'sticky bit' is set on a directory, only the owner of a given file may remove that file from the directory. Without the sticky bit, any user with write access to a directory may remove any file in the directory. Setting the sticky bit prevents users from removing each other's files. In cases where there is no reason for a directory to be world-writable, a better solution is to remove that permission rather than to set the sticky bit. However, if a directory is used by a particular application, consult that application's documentation instead of blindly changing modes. To set the sticky bit on a world-writable directory DIR, run the following command: $ sudo chmod +t DIR |
Failing to set the sticky bit on public directories allows unauthorized users to delete files in the directory structure. The only authorized public directories are those temporary directories supplied with the system, or those designed to be temporary file repositories. The setting is normally reserved for directories used by the system, by users for temporary file storage (such as /tmp), and for directories requiring global read/write access. |
medium |
AC-6(1),CM-6(a) |
NaN |
NaN |
NaN |
Verify Permissions on Important Files and Directories |
| CCE-83499-4 |
Ensure All Files Are Owned by a User |
verify |
via find |
If any files are not owned by a user, then the cause of their lack of ownership should be investigated. Following this, the files should be deleted or assigned to an appropriate user. |
Unowned files do not directly imply a security problem, but they are generally a sign that something is amiss. They may be caused by an intruder, by incorrect software installation or draft software removal, or by failure to remove all files belonging to a deleted account. The files should be repaired so they will not cause problems when accounts are created in the future, and the cause should be discovered and addressed. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.11 |
SRG-OS-000480-GPOS-00227 |
Verify Permissions on Important Files and Directories |
| CCE-81030-9 |
Enable Kernel Parameter to Enforce DAC on Symlinks |
True |
via sysctl |
To set the runtime status of the fs.protected_symlinks kernel parameter, run the following command: $ sudo sysctl -w fs.protected_symlinks=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: fs.protected_symlinks = 1 |
By enabling this kernel parameter, symbolic links are permitted to be followed only when outside a sticky world-writable directory, or when the UID of the link and follower match, or when the directory owner matches the symlink's owner. Disallowing such symlinks helps mitigate vulnerabilities based on insecure file system accessed by privileged programs, avoiding an exploitation vector exploiting unsafe use of open() or creat(). |
unknown |
AC-6(1),CM-6(a) |
NaN |
1.6.1 |
SRG-OS-000324-GPOS-00125 |
Verify Permissions on Important Files and Directories |
| CCE-81027-5 |
Enable Kernel Parameter to Enforce DAC on Hardlinks |
True |
via sysctl |
To set the runtime status of the fs.protected_hardlinks kernel parameter, run the following command: $ sudo sysctl -w fs.protected_hardlinks=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: fs.protected_hardlinks = 1 |
By enabling this kernel parameter, users can no longer create soft or hard links to files which they do not own. Disallowing such hardlinks mitigate vulnerabilities based on insecure file system accessed by privileged programs, avoiding an exploitation vector exploiting unsafe use of open() or creat(). |
unknown |
AC-6(1),CM-6(a) |
NaN |
1.6.1 |
SRG-OS-000324-GPOS-00125 |
Verify Permissions on Important Files and Directories |
| CCE-80818-8 |
Ensure No World-Writable Files Exist |
o-w |
via chmod |
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. Finally, this applies to real files and not virtual files that are a part of pseudo file systems such as sysfs or procfs. |
Data in world-writable files can be modified by any user on the system. In almost all circumstances, files can be configured using a combination of user and group permissions to support whatever legitimate access is needed without the risk caused by world-writable files. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.10 |
NaN |
Verify Permissions on Important Files and Directories |
| CCE-83497-8 |
Ensure All Files Are Owned by a Group |
verify |
via find |
If any files are not owned by a group, then the cause of their lack of group-ownership should be investigated. Following this, the files should be deleted or assigned to an appropriate group. |
Unowned files do not directly imply a security problem, but they are generally a sign that something is amiss. They may be caused by an intruder, by incorrect software installation or draft software removal, or by failure to remove all files belonging to a deleted account. The files should be repaired so they will not cause problems when accounts are created in the future, and the cause should be discovered and addressed. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.12 |
SRG-OS-000480-GPOS-00227 |
Verify Permissions on Important Files and Directories |
| CCE-80806-3 |
Verify that System Executables Have Root Ownership |
root |
via chown |
System executables are stored in the following directories by default: /bin /sbin /usr/bin /usr/libexec /usr/local/bin /usr/local/sbin /usr/sbin All files in these directories should be owned by the root user. If any file FILE in these directories is found to be owned by a user other than root, correct its ownership with the following command: $ sudo chown root FILE |
System binaries are executed by privileged users as well as system services, and restrictive permissions are necessary to ensure that their execution of these programs cannot be co-opted. |
medium |
AC-6(1),CM-6(a) |
NaN |
NaN |
NaN |
Verify File Permissions Within Some Important Directories |
| CCE-80815-4 |
Verify that Shared Library Files Have Restrictive Permissions |
go-w |
via chmod |
System-wide shared library files, which are linked to executables during process load time or run time, are stored in the following directories by default: /lib /lib64 /usr/lib /usr/lib64 Kernel modules, which can be added to the kernel during runtime, are stored in /lib/modules. All files in these directories should not be group-writable or world-writable. If any file in these directories is found to be group-writable or world-writable, correct its permission with the following command: $ sudo chmod go-w FILE |
Files from shared library directories are loaded into the address space of processes (including privileged ones) or of the kernel itself at runtime. Restrictive permissions are necessary to protect the integrity of the system. |
medium |
AC-6(1),CM-6(a) |
NaN |
NaN |
NaN |
Verify File Permissions Within Some Important Directories |
| CCE-80809-7 |
Verify that System Executables Have Restrictive Permissions |
go-w |
via chmod |
System executables are stored in the following directories by default: /bin /sbin /usr/bin /usr/libexec /usr/local/bin /usr/local/sbin /usr/sbin All files in these directories should not be group-writable or world-writable. If any file FILE in these directories is found to be group-writable or world-writable, correct its permission with the following command: $ sudo chmod go-w FILE |
System binaries are executed by privileged users, as well as system services, and restrictive permissions are necessary to ensure execution of these programs cannot be co-opted. |
medium |
AC-6(1),CM-6(a) |
NaN |
NaN |
NaN |
Verify File Permissions Within Some Important Directories |
| CCE-80807-1 |
Verify that Shared Library Files Have Root Ownership |
root |
via chown |
System-wide shared library files, which are linked to executables during process load time or run time, are stored in the following directories by default: /lib /lib64 /usr/lib /usr/lib64 Kernel modules, which can be added to the kernel during runtime, are also stored in /lib/modules. All files in these directories should be owned by the root user. If the directory, or any file in these directories, is found to be owned by a user other than root correct its ownership with the following command: $ sudo chown root FILE |
Files from shared library directories are loaded into the address space of processes (including privileged ones) or of the kernel itself at runtime. Proper ownership is necessary to protect the integrity of the system. |
medium |
AC-6(1),CM-6(a) |
NaN |
NaN |
NaN |
Verify File Permissions Within Some Important Directories |
| CCE-80813-9 |
Verify Permissions on shadow File |
“0000” |
via chmod |
To properly set the permissions of /etc/shadow, run the command: $ sudo chmod 0000 /etc/shadow |
The /etc/shadow file contains the list of local system accounts and stores password hashes. Protection of this file is critical for system security. Failure to give ownership of this file to root provides the designated owner with access to sensitive information which could weaken the system security posture. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.3 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80812-1 |
Verify Permissions on passwd File |
644 |
via chmod |
To properly set the permissions of /etc/passwd, run the command: $ sudo chmod 0644 /etc/passwd |
If the /etc/passwd file is writable by a group-owner or the world the risk of its compromise is increased. The file contains the list of accounts on the system and associated information, and protection of this file is critical for system security. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.2 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80799-0 |
Verify Group Who Owns shadow File |
root |
via chgrp |
To properly set the group owner of /etc/shadow, run the command: $ sudo chgrp root /etc/shadow |
The /etc/shadow file stores password hashes. Protection of this file is critical for system security. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.3 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80802-2 |
Verify User Who Owns gshadow File |
root |
via chown |
To properly set the owner of /etc/gshadow, run the command: $ sudo chown root /etc/gshadow |
The /etc/gshadow file contains group password hashes. Protection of this file is critical for system security. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.5 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83415-0 |
Verify User Who Owns Backup shadow File |
root |
via chgrp |
To properly set the group owner of /etc/shadow-, run the command: $ sudo chgrp root /etc/shadow- |
The /etc/shadow- file is a backup file of /etc/shadow, and as such, it contains the list of local system accounts and password hashes. Protection of this file is critical for system security. |
medium |
NaN |
NaN |
6.1.7 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80803-0 |
Verify User Who Owns passwd File |
root |
via chown |
To properly set the owner of /etc/passwd, run the command: $ sudo chown root /etc/passwd |
The /etc/passwd file contains information about the users that are configured on the system. Protection of this file is critical for system security. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.2 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83535-5 |
Verify Group Who Owns Backup gshadow File |
root |
via chgrp |
To properly set the group owner of /etc/gshadow-, run the command: $ sudo chgrp root /etc/gshadow- |
The /etc/gshadow- file is a backup of /etc/gshadow, and as such, it contains group password hashes. Protection of this file is critical for system security. |
medium |
NaN |
NaN |
6.1.9 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80797-4 |
Verify Group Who Owns gshadow File |
root |
via chgrp |
To properly set the group owner of /etc/gshadow, run the command: $ sudo chgrp root /etc/gshadow |
The /etc/gshadow file contains group password hashes. Protection of this file is critical for system security. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.5 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80811-3 |
Verify Permissions on gshadow File |
“0000” |
via chmod |
To properly set the permissions of /etc/gshadow, run the command: $ sudo chmod 0000 /etc/gshadow |
The /etc/gshadow file contains group password hashes. Protection of this file is critical for system security. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.5 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83573-6 |
Verify Permissions on Backup gshadow File |
“0000” |
via chmod |
To properly set the permissions of /etc/gshadow-, run the command: $ sudo chmod 0000 /etc/gshadow- |
The /etc/gshadow- file is a backup of /etc/gshadow, and as such, it contains group password hashes. Protection of this file is critical for system security. |
medium |
NaN |
NaN |
6.1.9 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83473-9 |
Verify User Who Owns Backup group File |
root |
via chown |
To properly set the owner of /etc/group-, run the command: $ sudo chown root /etc/group- |
The /etc/group- file is a backup file of /etc/group, and as such, it contains information regarding groups that are configured on the system. Protection of this file is important for system security. |
medium |
NaN |
NaN |
6.1.8 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80804-8 |
Verify User Who Owns shadow File |
root |
via chown |
To properly set the owner of /etc/shadow, run the command: $ sudo chown root /etc/shadow |
The /etc/shadow file contains the list of local system accounts and stores password hashes. Protection of this file is critical for system security. Failure to give ownership of this file to root provides the designated owner with access to sensitive information which could weaken the system security posture. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.3 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83326-9 |
Verify User Who Owns Backup passwd File |
root |
via chown |
To properly set the owner of /etc/passwd-, run the command: $ sudo chown root /etc/passwd- |
The /etc/passwd- file is a backup file of /etc/passwd, and as such, it contains information about the users that are configured on the system. Protection of this file is critical for system security. |
medium |
NaN |
NaN |
6.1.6 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83332-7 |
Verify Permissions on Backup passwd File |
644 |
via chmod |
To properly set the permissions of /etc/passwd-, run the command: $ sudo chmod 0644 /etc/passwd- |
The /etc/passwd- file is a backup file of /etc/passwd, and as such, it contains information about the users that are configured on the system. Protection of this file is critical for system security. |
medium |
NaN |
NaN |
6.1.6 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83483-8 |
Verify Permissions on Backup group File |
644 |
via chmod |
To properly set the permissions of /etc/group-, run the command: $ sudo chmod 0644 /etc/group- |
The /etc/group- file is a backup file of /etc/group, and as such, it contains information regarding groups that are configured on the system. Protection of this file is important for system security. |
medium |
NaN |
NaN |
6.1.8 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80801-4 |
Verify User Who Owns group File |
root |
via chown |
To properly set the owner of /etc/group, run the command: $ sudo chown root /etc/group |
The /etc/group file contains information regarding groups that are configured on the system. Protection of this file is important for system security. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.4 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83533-0 |
Verify User Who Owns Backup gshadow File |
root |
via chown |
To properly set the owner of /etc/gshadow-, run the command: $ sudo chown root /etc/gshadow- |
The /etc/gshadow- file is a backup of /etc/gshadow, and as such, it contains group password hashes. Protection of this file is critical for system security. |
medium |
NaN |
NaN |
6.1.9 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83413-5 |
Verify Group Who Owns Backup shadow File |
root |
via chown |
To properly set the owner of /etc/shadow-, run the command: $ sudo chown root /etc/shadow- |
The /etc/shadow- file is a backup file of /etc/shadow, and as such, it contains the list of local system accounts and password hashes. Protection of this file is critical for system security. |
medium |
NaN |
NaN |
6.1.7 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80796-6 |
Verify Group Who Owns group File |
root |
via chgrp |
To properly set the group owner of /etc/group, run the command: $ sudo chgrp root /etc/group |
The /etc/group file contains information regarding groups that are configured on the system. Protection of this file is important for system security. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.4 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80810-5 |
Verify Permissions on group File |
644 |
via chmod |
To properly set the permissions of /etc/passwd, run the command: $ sudo chmod 0644 /etc/passwd |
The /etc/group file contains information regarding groups that are configured on the system. Protection of this file is important for system security. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.4 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83324-4 |
Verify Group Who Owns Backup passwd File |
root |
via chgrp |
To properly set the group owner of /etc/passwd-, run the command: $ sudo chgrp root /etc/passwd- |
The /etc/passwd- file is a backup file of /etc/passwd, and as such, it contains information about the users that are configured on the system. Protection of this file is critical for system security. |
medium |
NaN |
NaN |
6.1.6 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83417-6 |
Verify Permissions on Backup shadow File |
“0000” |
via chmod |
To properly set the permissions of /etc/shadow-, run the command: $ sudo chmod 0000 /etc/shadow- |
The /etc/shadow- file is a backup file of /etc/shadow, and as such, it contains the list of local system accounts and password hashes. Protection of this file is critical for system security. |
medium |
NaN |
NaN |
6.1.7 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-80798-2 |
Verify Group Who Owns passwd File |
root |
via chgrp |
To properly set the group owner of /etc/passwd, run the command: $ sudo chgrp root /etc/passwd |
The /etc/passwd file contains information about the users that are configured on the system. Protection of this file is critical for system security. |
medium |
AC-6(1),CM-6(a) |
NaN |
6.1.2 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-83475-4 |
Verify Group Who Owns Backup group File |
root |
via chgrp |
To properly set the group owner of /etc/group-, run the command: $ sudo chgrp root /etc/group- |
The /etc/group- file is a backup file of /etc/group, and as such, it contains information regarding groups that are configured on the system. Protection of this file is important for system security. |
medium |
NaN |
NaN |
6.1.8 |
NaN |
Verify Permissions on Files with Local Account Information and Credentials |
| CCE-82062-1 |
Add nodev Option to /var |
nodev |
via /etc/fstab |
The nodev mount option can be used to prevent device files from being created in /var. Legitimate character and block devices should exist only in the /dev directory on the root partition or within chroot jails built for system services. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of /var. |
The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
NaN |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82941-6 |
Add nodev Option to /boot |
nodev |
via /etc/fstab |
The nodev mount option can be used to prevent device files from being created in /boot. Legitimate character and block devices should exist only in the /dev directory on the root partition or within chroot jails built for system services. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of /boot. |
The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
NaN |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-81050-7 |
Add nosuid Option to /home |
nosuid |
via /etc/fstab |
The nosuid mount option can be used to prevent execution of setuid programs in /home. The SUID and SGID permissions should not be required in these user data directories. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of /home. |
The presence of SUID and SGID executables should be tightly controlled. Users should not be able to execute SUID or SGID binaries from user home directory partitions. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.3 |
SRG-OS-000368-GPOS-00154,SRG-OS-000480-GPOS-00227 |
Restrict Partition Mount Options |
| CCE-82068-8 |
Add nodev Option to /var/tmp |
nodev |
via /etc/fstab |
The nodev mount option can be used to prevent device files from being created in /var/tmp. Legitimate character and block devices should not exist within temporary directories like /var/tmp. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of /var/tmp. |
The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails. |
unknown |
NaN |
NaN |
1.1.8 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82008-4 |
Add noexec Option to /var/log |
noexec |
via /etc/fstab |
The noexec mount option can be used to prevent binaries from being executed out of /var/log. Add the noexec option to the fourth column of /etc/fstab for the line which controls mounting of /var/log. |
Allowing users to execute binaries from directories containing log files such as /var/log should never be necessary in normal operation and can expose the system to potential compromise. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
NaN |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-80839-4 |
Add nosuid Option to /dev/shm |
nosuid |
via /etc/fstab |
The nosuid mount option can be used to prevent execution of setuid programs in /dev/shm. The SUID and SGID permissions should not be required in these world-writable directories. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of /dev/shm. |
The presence of SUID and SGID executables should be tightly controlled. Users should not be able to execute SUID or SGID binaries from temporary storage partitions. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.16 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-81033-3 |
Add nosuid Option to /boot |
nosuid |
via /etc/fstab |
The nosuid mount option can be used to prevent execution of setuid programs in /boot. The SUID and SGID permissions should not be required on the boot partition. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of /boot. |
The presence of SUID and SGID executables should be tightly controlled. Users should not be able to execute SUID or SGID binaries from boot partitions. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
NaN |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82065-4 |
Add nosuid Option to /var/log |
nosuid |
via /etc/fstab |
The nosuid mount option can be used to prevent execution of setuid programs in /var/log. The SUID and SGID permissions should not be required in directories containing log files. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of /var/log. |
The presence of SUID and SGID executables should be tightly controlled. Users should not be able to execute SUID or SGID binaries from partitions designated for log files. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
NaN |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82746-9 |
Add noexec Option to Removable Media Partitions |
noexec |
via /etc/fstab |
The noexec mount option prevents the direct execution of binaries on the mounted filesystem. Preventing the direct execution of binaries from removable media (such as a USB key) provides a defense against malicious software that may be present on such untrusted media. Add the noexec option to the fourth column of /etc/fstab for the line which controls mounting of any removable media partitions. |
Allowing users to execute binaries from removable media such as USB keys exposes the system to potential compromise. |
unknown |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.20 |
NaN |
Restrict Partition Mount Options |
| CCE-82744-4 |
Add nosuid Option to Removable Media Partitions |
nosuid |
via /etc/fstab |
The nosuid mount option prevents set-user-identifier (SUID) and set-group-identifier (SGID) permissions from taking effect. These permissions allow users to execute binaries with the same permissions as the owner and group of the file respectively. Users should not be allowed to introduce SUID and SGID files into the system via partitions mounted from removeable media. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of any removable media partitions. |
The presence of SUID and SGID executables should be tightly controlled. Allowing users to introduce SUID or SGID binaries from partitions mounted off of removable media would allow them to introduce their own highly-privileged programs. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.19 |
SRG-OS-000480-GPOS-00227 |
Restrict Partition Mount Options |
| CCE-82742-8 |
Add nodev Option to Removable Media Partitions |
nodev |
via /etc/fstab |
The nodev mount option prevents files from being interpreted as character or block devices. Legitimate character and block devices should exist only in the /dev directory on the root partition or within chroot jails built for system services. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of any removable media partitions. |
The only legitimate location for device files is the /dev directory located on the root partition. An exception to this is chroot jails, and it is not advised to set nodev on partitions which contain their root filesystems. |
low |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.18 |
NaN |
Restrict Partition Mount Options |
| CCE-80838-6 |
Add noexec Option to /dev/shm |
noexec |
via /etc/fstab |
The noexec mount option can be used to prevent binaries from being executed out of /dev/shm. It can be dangerous to allow the execution of binaries from world-writable temporary storage directories such as /dev/shm. Add the noexec option to the fourth column of /etc/fstab for the line which controls mounting of /dev/shm. |
Allowing users to execute binaries from world-writable directories such as /dev/shm can expose the system to potential compromise. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.17 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82921-8 |
Add nosuid Option to /var/log/audit |
nosuid |
via /etc/fstab |
The nosuid mount option can be used to prevent execution of setuid programs in /var/log/audit. The SUID and SGID permissions should not be required in directories containing audit log files. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of /var/log/audit. |
The presence of SUID and SGID executables should be tightly controlled. Users should not be able to execute SUID or SGID binaries from partitions designated for audit log files. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
NaN |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82623-0 |
Add nodev Option to /tmp |
nodev |
via /etc/fstab |
The nodev mount option can be used to prevent device files from being created in /tmp. Legitimate character and block devices should not exist within temporary directories like /tmp. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of /tmp. |
The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails. |
unknown |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.3 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82139-7 |
Add noexec Option to /tmp |
noexec |
via /etc/fstab |
The noexec mount option can be used to prevent binaries from being executed out of /tmp. Add the noexec option to the fourth column of /etc/fstab for the line which controls mounting of /tmp. |
Allowing users to execute binaries from world-writable directories such as /tmp should never be necessary in normal operation and can expose the system to potential compromise. |
unknown |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.5 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82154-6 |
Add nosuid Option to /var/tmp |
nosuid |
via /etc/fstab |
The nosuid mount option can be used to prevent execution of setuid programs in /var/tmp. The SUID and SGID permissions should not be required in these world-writable directories. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of /var/tmp. |
The presence of SUID and SGID executables should be tightly controlled. Users should not be able to execute SUID or SGID binaries from temporary storage partitions. |
unknown |
NaN |
NaN |
1.1.9 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82077-9 |
Add nodev Option to /var/log |
nodev |
via /etc/fstab |
The nodev mount option can be used to prevent device files from being created in /var/log. Legitimate character and block devices should exist only in the /dev directory on the root partition or within chroot jails built for system services. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of /var/log. |
The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
NaN |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82080-3 |
Add nodev Option to /var/log/audit |
nodev |
via /etc/fstab |
The nodev mount option can be used to prevent device files from being created in /var/log/audit. Legitimate character and block devices should exist only in the /dev directory on the root partition or within chroot jails built for system services. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of /var/log/audit. |
The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
NaN |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82069-6 |
Add nodev Option to Non-Root Local Partitions |
nodev |
via /etc/fstab |
The nodev mount option prevents files from being interpreted as character or block devices. Legitimate character and block devices should exist only in the /dev directory on the root partition or within chroot jails built for system services. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of any non-root local partitions. |
The nodev mount option prevents files from being interpreted as character or block devices. The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails, for which it is not advised to set nodev on these filesystems. |
unknown |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.11 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82975-4 |
Add noexec Option to /var/log/audit |
noexec |
via /etc/fstab |
The noexec mount option can be used to prevent binaries from being executed out of /var/log/audit. Add the noexec option to the fourth column of /etc/fstab for the line which controls mounting of /var/log/audit. |
Allowing users to execute binaries from directories containing audit log files such as /var/log/audit should never be necessary in normal operation and can expose the system to potential compromise. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
NaN |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82140-5 |
Add nosuid Option to /tmp |
nosuid |
via /etc/fstab |
The nosuid mount option can be used to prevent execution of setuid programs in /tmp. The SUID and SGID permissions should not be required in these world-writable directories. Add the nosuid option to the fourth column of /etc/fstab for the line which controls mounting of /tmp. |
The presence of SUID and SGID executables should be tightly controlled. Users should not be able to execute SUID or SGID binaries from temporary storage partitions. |
unknown |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.4 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82151-2 |
Add noexec Option to /var/tmp |
noexec |
via /etc/fstab |
The noexec mount option can be used to prevent binaries from being executed out of /var/tmp. Add the noexec option to the fourth column of /etc/fstab for the line which controls mounting of /var/tmp. |
Allowing users to execute binaries from world-writable directories such as /var/tmp should never be necessary in normal operation and can expose the system to potential compromise. |
unknown |
NaN |
NaN |
1.1.10 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-81048-1 |
Add nodev Option to /home |
nodev |
via /etc/fstab |
The nodev mount option can be used to prevent device files from being created in /home. Legitimate character and block devices should exist only in the /dev directory on the root partition or within chroot jails built for system services. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of /home. |
The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails. |
unknown |
NaN |
NaN |
1.1.14 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-80837-8 |
Add nodev Option to /dev/shm |
nodev |
via /etc/fstab |
The nodev mount option can be used to prevent creation of device files in /dev/shm. Legitimate character and block devices should not exist within temporary directories like /dev/shm. Add the nodev option to the fourth column of /etc/fstab for the line which controls mounting of /dev/shm. |
The only legitimate location for device files is the /dev directory located on the root partition. The only exception to this is chroot jails. |
medium |
AC-6,AC-6(1),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
1.1.5 |
SRG-OS-000368-GPOS-00154 |
Restrict Partition Mount Options |
| CCE-82179-3 |
Prevent non-Privileged Users from Modifying Network Interfaces using nmcli |
configure |
via polkit-1 |
By default, non-privileged users are given permissions to modify networking interfaces and configurations using the nmcli command. Non-privileged users should not be making configuration changes to network configurations. To ensure that non-privileged users do not have permissions to make changes to the network configuration using nmcli, create the following configuration in /etc/polkit-1/localauthority/20-org.d/10-nm-harden-access.pkla: [Disable General User Access to NetworkManager] Identity=default Action=org.freedesktop.NetworkManager.* ResultAny=no ResultInactive=no ResultActive=auth_admin |
Allowing non-privileged users to make changes to network settings can allow untrusted access, prevent system availability, and/or can lead to a compromise or attack. |
medium |
AC-18(4),CM-6(a) |
NaN |
NaN |
NaN |
Network Configuration and Firewalls |
| CCE-82283-3 |
Ensure System is Not Acting as a Network Sniffer |
disable |
via ip |
The system should not be acting as a network sniffer, which can capture all traffic on the network to which it is connected. Run the following to determine if any interface is running in promiscuous mode: $ ip link | grep PROMISC Promiscuous mode of an interface can be disabled with the following command: $ sudo ip link set dev device_name multicast off promisc off |
Network interfaces in promiscuous mode allow for the capture of all network traffic visible to the system. If unauthorized individuals can access these applications, it may allow them to collect information such as logon IDs, passwords, and key exchanges between systems. If the system is being used to perform a network troubleshooting function, the use of these tools must be documented with the Information Systems Security Manager (ISSM) and restricted to only authorized personnel. |
medium |
CM-6(a),CM-7(2),CM-7(a),CM-7(b),MA-3 |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Network Configuration and Firewalls |
| CCE-81024-2 |
Disable Kernel Parameter for IP Forwarding on IPv4 Interfaces |
0 |
via sysctl |
To set the runtime status of the net.ipv4.ip_forward kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.ip_forward=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.ip_forward = 0 |
Routing protocol daemons are typically used on routers to exchange network topology information with other routers. If this capability is used when not required, system network information may be unnecessarily transmitted across the network. |
medium |
CM-7(a),CM-7(b),SC-5CM-6(a),SC-7(a) |
NaN |
3.1.1. |
SRG-OS-000480-GPOS-00227 |
Network Parameters for Hosts Only |
| CCE-80918-6 |
Disable Kernel Parameter for Sending ICMP Redirects on all IPv4 Interfaces |
0 |
via sysctl |
To set the runtime status of the net.ipv4.conf.all.send_redirects kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.all.send_redirects=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.all.send_redirects = 0 |
ICMP redirect messages are used by routers to inform hosts that a more direct route exists for a particular destination. These messages contain information from the system's route table possibly revealing portions of the network topology. The ability to send ICMP redirects is only appropriate for systems acting as routers. |
medium |
CM-7(a),CM-7(b),SC-5CM-6(a),SC-7(a) |
NaN |
3.1.2 |
SRG-OS-000480-GPOS-00227 |
Network Parameters for Hosts Only |
| CCE-80921-0 |
Disable Kernel Parameter for Sending ICMP Redirects on all IPv4 Interfaces by Default |
0 |
via sysctl |
To set the runtime status of the net.ipv4.conf.default.send_redirects kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.default.send_redirects=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.default.send_redirects = 0 |
ICMP redirect messages are used by routers to inform hosts that a more direct route exists for a particular destination. These messages contain information from the system's route table possibly revealing portions of the network topology. The ability to send ICMP redirects is only appropriate for systems acting as routers. |
medium |
CM-7(a),CM-7(b),SC-5CM-6(a),SC-7(a) |
NaN |
3.1.2 |
SRG-OS-000480-GPOS-00227 |
Network Parameters for Hosts Only |
| CCE-81011-9 |
Disable Kernel Parameter for Accepting Source-Routed Packets on all IPv4 Interfaces |
0 |
via sysctl |
To set the runtime status of the net.ipv4.conf.all.accept_source_route kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.all.accept_source_route=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.all.accept_source_route = 0 |
Source-routed packets allow the source of the packet to suggest routers forward the packet along a different path than configured on the router, which can be used to bypass network security measures. This requirement applies only to the forwarding of source-routerd traffic, such as when IPv4 forwarding is enabled and the system is functioning as a router. Accepting source-routed packets in the IPv4 protocol has few legitimate uses. It should be disabled unless it is absolutely required. |
medium |
CM-7(a),CM-7(b),SC-5CM-6(a),SC-7(a) |
NaN |
3.2.1 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-81022-6 |
Enable Kernel Parameter to Use Reverse Path Filtering on all IPv4 Interfaces by Default |
True |
via sysctl |
To set the runtime status of the net.ipv4.conf.default.rp_filter kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.default.rp_filter=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.default.rp_filter = 1 |
Enabling reverse path filtering drops packets with source addresses that should not have been able to be received on the interface they were received on. It should not be used on systems which are routers for complicated networks, but is helpful for end hosts and routers serving small networks. |
medium |
CM-6(a),CM-7(a),CM-7(b),SC-7(a) |
NaN |
3.2.7 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-80920-2 |
Disable Kernel Parameter for Accepting Source-Routed Packets on IPv4 Interfaces by Default |
0 |
via sysctl |
To set the runtime status of the net.ipv4.conf.default.accept_source_route kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.default.accept_source_route=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.default.accept_source_route = 0 |
Source-routed packets allow the source of the packet to suggest routers forward the packet along a different path than configured on the router, which can be used to bypass network security measures. Accepting source-routed packets in the IPv4 protocol has few legitimate uses. It should be disabled unless it is absolutely required, such as when IPv4 forwarding is enabled and the system is legitimately functioning as a router. |
medium |
CM-7(a),CM-7(b),SC-5,SC-7(a) |
NaN |
3.2.1 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-80923-6 |
Enable Kernel Parameter to Use TCP Syncookies on IPv4 Interfaces |
True |
via sysctl |
To set the runtime status of the net.ipv4.tcp_syncookies kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.tcp_syncookies=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.tcp_syncookies = 1 |
A TCP SYN flood attack can cause a denial of service by filling a system's TCP connection table with connections in the SYN_RCVD state. Syncookies can be used to track a connection when a subsequent ACK is received, verifying the initiator is attempting a valid connection and is not a flood source. This feature is activated when a flood condition is detected, and enables the system to continue servicing valid connection requests. |
medium |
CM-6(a),CM-7(a),CM-7(b),SC-5(1),SC-5(2),SC-5(3)(a) |
NaN |
3.2.8 |
SRG-OS-000142-GPOS-00071,SRG-OS-000420-GPOS-00186,SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-81018-4 |
Enable Kernel Parameter to Log Martian Packets on all IPv4 Interfaces |
True |
via sysctl |
To set the runtime status of the net.ipv4.conf.all.log_martians kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.all.log_martians=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.all.log_martians = 1 |
The presence of "martian" packets (which have impossible addresses) as well as spoofed packets, source-routed packets, and redirects could be a sign of nefarious network activity. Logging these packets enables this activity to be detected. |
unknown |
CM-7(a),CM-7(b),SC-5(3)(a) |
NaN |
3.2.4 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-81021-8 |
Enable Kernel Parameter to Use Reverse Path Filtering on all IPv4 Interfaces |
True |
via sysctl |
To set the runtime status of the net.ipv4.conf.all.rp_filter kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.all.rp_filter=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.all.rp_filter = 1 |
Enabling reverse path filtering drops packets with source addresses that should not have been able to be received on the interface they were received on. It should not be used on systems which are routers for complicated networks, but is helpful for end hosts and routers serving small networks. |
medium |
CM-6(a),CM-7(a),CM-7(b),SC-7(a) |
NaN |
3.2.7 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-81017-6 |
Configure Kernel Parameter for Accepting Secure Redirects By Default |
0 |
via sysctl |
To set the runtime status of the net.ipv4.conf.default.secure_redirects kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.default.secure_redirects=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.default.secure_redirects = 0 |
Accepting "secure" ICMP redirects (from those gateways listed as default gateways) has few legitimate uses. It should be disabled unless it is absolutely required. |
medium |
CM-7(a),CM-7(b),SC-5,SC-7(a) |
NaN |
3.2.3 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-81023-4 |
Enable Kernel Parameter to Ignore Bogus ICMP Error Responses on IPv4 Interfaces |
True |
via sysctl |
To set the runtime status of the net.ipv4.icmp_ignore_bogus_error_responses kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.icmp_ignore_bogus_error_responses=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.icmp_ignore_bogus_error_responses = 1 |
Ignoring bogus ICMP error responses reduces log size, although some activity would not be logged. |
unknown |
CM-7(a),CM-7(b),SC-5 |
NaN |
3.2.6 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-80922-8 |
Enable Kernel Parameter to Ignore ICMP Broadcast Echo Requests on IPv4 Interfaces |
True |
via sysctl |
To set the runtime status of the net.ipv4.icmp_echo_ignore_broadcasts kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.icmp_echo_ignore_broadcasts = 1 |
Responding to broadcast (ICMP) echoes facilitates network mapping and provides a vector for amplification attacks. Ignoring ICMP echo requests (pings) sent to broadcast or multicast addresses makes the system slightly more difficult to enumerate on the network. |
medium |
CM-7(a),CM-7(b),SC-5 |
NaN |
3.2.5 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-81016-8 |
Disable Kernel Parameter for Accepting Secure ICMP Redirects on all IPv4 Interfaces |
0 |
via sysctl |
To set the runtime status of the net.ipv4.conf.all.secure_redirects kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.all.secure_redirects=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.all.secure_redirects = 0 |
Accepting "secure" ICMP redirects (from those gateways listed as default gateways) has few legitimate uses. It should be disabled unless it is absolutely required. |
medium |
CM-6(a),CM-7(a),CM-7(b),SC-7(a) |
NaN |
3.2.3 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-80919-4 |
Disable Kernel Parameter for Accepting ICMP Redirects by Default on IPv4 Interfaces |
0 |
via sysctl |
To set the runtime status of the net.ipv4.conf.default.accept_redirects kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.default.accept_redirects=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.default.accept_redirects = 0 |
ICMP redirect messages are used by routers to inform hosts that a more direct route exists for a particular destination. These messages modify the host's route table and are unauthenticated. An illicit ICMP redirect message could result in a man-in-the-middle attack. This feature of the IPv4 protocol has few legitimate uses. It should be disabled unless absolutely required. |
medium |
CM-6(a),CM-7(a),CM-7(b),SC-7(a) |
NaN |
3.2.2 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-81020-0 |
Enable Kernel Paremeter to Log Martian Packets on all IPv4 Interfaces by Default |
True |
via sysctl |
To set the runtime status of the net.ipv4.conf.default.log_martians kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.default.log_martians=1 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.default.log_martians = 1 |
The presence of "martian" packets (which have impossible addresses) as well as spoofed packets, source-routed packets, and redirects could be a sign of nefarious network activity. Logging these packets enables this activity to be detected. |
unknown |
CM-7(a),CM-7(b),SC-5(3)(a) |
NaN |
3.2.4 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-80917-8 |
Disable Accepting ICMP Redirects for All IPv4 Interfaces |
0 |
via sysctl |
To set the runtime status of the net.ipv4.conf.all.accept_redirects kernel parameter, run the following command: $ sudo sysctl -w net.ipv4.conf.all.accept_redirects=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv4.conf.all.accept_redirects = 0 |
ICMP redirect messages are used by routers to inform hosts that a more direct route exists for a particular destination. These messages modify the host's route table and are unauthenticated. An illicit ICMP redirect message could result in a man-in-the-middle attack. This feature of the IPv4 protocol has few legitimate uses. It should be disabled unless absolutely required." |
medium |
CM-6(a),CM-7(a),CM-7(b),SC-7(a) |
NaN |
3.2.2 |
SRG-OS-000480-GPOS-00227 |
Network Related Kernel Runtime Parameters for Hosts and Routers |
| CCE-82998-6 |
Install firewalld Package |
install |
via yum |
The firewalld package can be installed with the following command: $ sudo yum install firewalld |
The firewalld package should be installed to provide access control methods. |
medium |
CM-6(a) |
NaN |
3.4.1.1 |
SRG-OS-000298-GPOS-00116,SRG-OS-000480-GPOS-00227 |
Inspect and Activate Default firewalld Rules |
| CCE-80877-4 |
Verify firewalld Enabled |
enable |
via systemctl |
The firewalld service can be enabled with the following command: $ sudo systemctl enable firewalld.service |
Access control methods provide the ability to enhance system security posture by restricting services and known good IP addresses and address ranges. This prevents connections from unknown hosts and protocols. |
medium |
AC-4,CA-3(5),CM-6(a),CM-7(b),SC-7(21) |
FMT_MOF_EXT.1 |
3.4.2.1 |
SRG-OS-000480-GPOS-00227,SRG-OS-000480-GPOS-00231,SRG-OS-000480-GPOS-00232 |
Inspect and Activate Default firewalld Rules |
| CCE-84300-3 |
Configure the Firewalld Ports |
configure |
via firewall-cmd |
Configure the firewalld ports to allow approved services to have access to the system. To configure firewalld to open ports, run the following command: $ sudo firewall-cmd --permanent --add-port=port_number/tcp or $ sudo firewall-cmd --permanent --add-port=service_name Run the command list above for each of the ports listed below: To configure firewalld to allow access, run the following command(s): firewall-cmd --permanent --add-service=ssh |
In order to prevent unauthorized connection of devices, unauthorized transfer of information, or unauthorized tunneling (i.e., embedding of data types within data types), organizations must disable or restrict unused or unnecessary physical and logical ports/protocols on information systems. Operating systems are capable of providing a wide variety of functions and services. Some of the functions and services provided by default may not be necessary to support essential organizational operations. Additionally, it is sometimes convenient to provide multiple services from a single component (e.g., VPN and IPS); however, doing so increases risk over limiting the services provided by any one component. To support the requirements and principles of least functionality, the operating system must support the organizational requirements, providing only essential capabilities and limiting the use of ports, protocols, and/or services to only those required, authorized, and approved to conduct official business or to address authorized quality of life issues. |
medium |
AC-4,CA-3(5),CM-6(a),CM-7(b),SC-7(21) |
NaN |
NaN |
SRG-OS-000096-GPOS-00050,SRG-OS-000297-GPOS-00115 |
Strengthen the Default Ruleset |
| CCE-80890-7 |
Set Default firewalld Zone for Incoming Packets |
drop |
via /etc/firewalld/firewalld.conf |
To set the default zone to drop for the built-in default zone which processes incoming IPv4 and IPv6 packets, modify the following line in /etc/firewalld/firewalld.conf to be: DefaultZone=drop |
In firewalld the default zone is applied only after all the applicable rules in the table are examined for a match. Setting the default zone to drop implements proper design for a firewall, i.e. any packets which are not explicitly permitted should not be accepted. |
medium |
CA-3(5),CM-6(a),CM-7(b),SC-7(23) |
FMT_MOF_EXT.1 |
3.4.2.4 |
SRG-OS-000480-GPOS-00227 |
Strengthen the Default Ruleset |
| CCE-82982-0 |
Install iptables Package |
install |
via yum |
The iptables package can be installed with the following command: $ sudo yum install iptables |
iptables controls the Linux kernel network packet filtering code. iptables allows system operators to set up firewalls and IP masquerading, etc. |
medium |
CM-6(a) |
NaN |
3.4.1.1 |
SRG-OS-000480-GPOS-00227 |
iptables and ip6tables |
| CCE-80832-9 |
Disable Bluetooth Kernel Module |
disable |
via modprobe.d |
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 bluetooth /bin/true |
If Bluetooth functionality must be disabled, preventing the kernel from loading the kernel module provides an additional safeguard against its activation. |
medium |
AC-18(3),AC-18(a),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
Disable Wireless Through Software Configuration |
| CCE-83501-7 |
Deactivate Wireless Network Interfaces |
disable |
via nmcli |
Deactivating wireless network interfaces should prevent normal usage of the wireless capability. Configure the system to disable all wireless network interfaces with the following command: $ sudo nmcli radio wifi off |
The use of wireless networking can introduce many different attack vectors into the organization's network. Common attack vectors such as malicious association and ad hoc networks will allow an attacker to spoof a wireless access point (AP), allowing validated systems to connect to the malicious AP and enabling the attacker to monitor and record network traffic. These malicious APs can also serve to create a man-in-the-middle attack or be used to create a denial of service to valid network resources. |
medium |
AC-18(3),AC-18(a),CM-6(a),CM-7(a),CM-7(b),MP-7 |
NaN |
3.5 |
SRG-OS-000424-GPOS-00188 |
Disable Wireless Through Software Configuration |
| CCE-80845-1 |
Install libreswan Package |
install |
via yum |
The Libreswan package provides an implementation of IPsec and IKE, which permits the creation of secure tunnels over untrusted networks. The libreswan package can be installed with the following command: $ sudo yum install libreswan |
Providing the ability for remote users or systems to initiate a secure VPN connection protects information when it is transmitted over a wide area network. |
medium |
CM-6(a) |
NaN |
NaN |
SRG-OS-000120-GPOS-00061,SRG-OS-000480-GPOS-00227 |
IPSec Support |
| CCE-80836-0 |
Verify Any Configured IPSec Tunnel Connections |
verify |
via /etc/ipsec.conf |
Libreswan provides an implementation of IPsec and IKE, which permits the creation of secure tunnels over untrusted networks. As such, IPsec can be used to circumvent certain network requirements such as filtering. Verify that if any IPsec connection (conn) configured in /etc/ipsec.conf and /etc/ipsec.d exists is an approved organizational connection. |
IP tunneling mechanisms can be used to bypass network filtering. |
medium |
AC-17(a),AC-4,CM-6(a),MA-4(6),SC-8 |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
IPSec Support |
| CCE-80834-5 |
Disable SCTP Support |
disable |
via modprobe.d |
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/true |
Disabling SCTP protects the system against exploitation of any flaws in its implementation. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.5.2 |
SRG-OS-000095-GPOS-00049 |
Uncommon Network Protocols |
| CCE-82059-7 |
Disable CAN Support |
disable |
via modprobe.d |
The Controller Area Network (CAN) is a serial communications protocol which was initially developed for automotive and is now also used in marine, industrial, and medical applications. To configure the system to prevent the can kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install can /bin/true |
Disabling CAN protects the system against exploitation of any flaws in its implementation. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000095-GPOS-00049 |
Uncommon Network Protocols |
| CCE-82870-7 |
Disable RDS Support |
disable |
via modprobe.d |
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/true |
Disabling RDS protects the system against exploitation of any flaws in its implementation. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.3.3 |
NaN |
Uncommon Network Protocols |
| CCE-82297-3 |
Disable TIPC Support |
NaN |
NaN |
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/true |
Disabling TIPC protects the system against exploitation of any flaws in its implementation. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
FMT_SMF_EXT.1 |
3.3.4 |
SRG-OS-000095-GPOS-00049 |
Uncommon Network Protocols |
| CCE-82028-2 |
Disable ATM Support |
NaN |
NaN |
The Asynchronous Transfer Mode (ATM) is a protocol operating on network, data link, and physical layers, based on virtual circuits and virtual paths. To configure the system to prevent the atm kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install atm /bin/true |
Disabling ATM protects the system against exploitation of any flaws in its implementation. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000095-GPOS-00049 |
Uncommon Network Protocols |
| CCE-80833-7 |
Disable DCCP Support |
NaN |
NaN |
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/true |
Disabling DCCP protects the system against exploitation of any flaws in its implementation. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.3.1 |
SRG-OS-000096-GPOS-00050,SRG-OS-000378-GPOS-00163 |
Uncommon Network Protocols |
| CCE-82005-0 |
Disable IEEE 1394 (FireWire) Support |
NaN |
NaN |
The IEEE 1394 (FireWire) is a serial bus standard for high-speed real-time communication. To configure the system to prevent the firewire-core kernel module from being loaded, add the following line to a file in the directory /etc/modprobe.d: install firewire-core /bin/true |
Disabling FireWire protects the system against exploitation of any flaws in its implementation. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000095-GPOS-00049 |
Uncommon Network Protocols |
| CCE-82872-3 |
Disable IPv6 Networking Support Automatic Loading |
NaN |
NaN |
To prevent the IPv6 kernel module (ipv6) from binding to 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. |
Any unnecessary network stacks - including IPv6 - should be disabled, to reduce the vulnerability to exploitation. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.6 |
NaN |
Disable Support for IPv6 Unless Needed |
| CCE-82887-1 |
Ensure IPv6 is disabled through kernel boot parameter |
NaN |
NaN |
To disable IPv6 protocol support in the Linux kernel, add the argument ipv6.disable=1 to the default GRUB2 command line for the Linux operating system in /boot/grub2/grubenv, in the manner below: sudo grub2-editenv - set "$(grub2-editenv - list | grep kernelopts) ipv6.disable=1" |
Any unnecessary network stacks, including IPv6, should be disabled to reduce the vulnerability to exploitation. |
low |
NaN |
NaN |
3.6 |
NaN |
Disable Support for IPv6 Unless Needed |
| CCE-84298-9 |
Manually Assign Global IPv6 Address |
NaN |
NaN |
To manually assign an IP address for an interface, edit the file /etc/sysconfig/network-scripts/ifcfg-interface. Add or correct the following line (substituting the correct IPv6 address): IPV6ADDR=2001:0DB8::ABCD/64 Manually assigning an IP address is preferable to accepting one from routers or from the network otherwise. The example address here is an IPv6 address reserved for documentation purposes, as defined by RFC3849. |
NaN |
unknown |
NaN |
NaN |
NaN |
NaN |
Configure IPv6 Settings if Necessary |
| CCE-81013-5 |
Disable Kernel Parameter for Accepting Source-Routed Packets on all IPv6 Interfaces |
NaN |
NaN |
To set the runtime status of the net.ipv6.conf.all.accept_source_route kernel parameter, run the following command: $ sudo sysctl -w net.ipv6.conf.all.accept_source_route=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv6.conf.all.accept_source_route = 0 |
Source-routed packets allow the source of the packet to suggest routers forward the packet along a different path than configured on the router, which can be used to bypass network security measures. This requirement applies only to the forwarding of source-routerd traffic, such as when IPv6 forwarding is enabled and the system is functioning as a router. Accepting source-routed packets in the IPv6 protocol has few legitimate uses. It should be disabled unless it is absolutely required. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.2.1 |
SRG-OS-000480-GPOS-00227 |
Configure IPv6 Settings if Necessary |
| CCE-81007-7 |
Disable Accepting Router Advertisements on all IPv6 Interfaces by Default |
NaN |
NaN |
To set the runtime status of the net.ipv6.conf.default.accept_ra kernel parameter, run the following command: $ sudo sysctl -w net.ipv6.conf.default.accept_ra=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv6.conf.default.accept_ra = 0 |
An illicit router advertisement message could result in a man-in-the-middle attack. |
unknown |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.2.9 |
SRG-OS-000480-GPOS-00227 |
Configure IPv6 Settings if Necessary |
| CCE-81010-1 |
Disable Kernel Parameter for Accepting ICMP Redirects by Default on IPv6 Interfaces |
NaN |
NaN |
To set the runtime status of the net.ipv6.conf.default.accept_redirects kernel parameter, run the following command: $ sudo sysctl -w net.ipv6.conf.default.accept_redirects=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv6.conf.default.accept_redirects = 0 |
An illicit ICMP redirect message could result in a man-in-the-middle attack. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.3.2 |
SRG-OS-000480-GPOS-00227 |
Configure IPv6 Settings if Necessary |
| CCE-81015-0 |
Disable Kernel Parameter for Accepting Source-Routed Packets on IPv6 Interfaces by Default |
NaN |
NaN |
To set the runtime status of the net.ipv6.conf.default.accept_source_route kernel parameter, run the following command: $ sudo sysctl -w net.ipv6.conf.default.accept_source_route=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv6.conf.default.accept_source_route = 0 |
Source-routed packets allow the source of the packet to suggest routers forward the packet along a different path than configured on the router, which can be used to bypass network security measures. This requirement applies only to the forwarding of source-routerd traffic, such as when IPv6 forwarding is enabled and the system is functioning as a router. Accepting source-routed packets in the IPv6 protocol has few legitimate uses. It should be disabled unless it is absolutely required. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.2.1 |
SRG-OS-000480-GPOS-00227 |
Configure IPv6 Settings if Necessary |
| CCE-81006-9 |
Configure Accepting Router Advertisements on All IPv6 Interfaces |
NaN |
NaN |
To set the runtime status of the net.ipv6.conf.all.accept_ra kernel parameter, run the following command: $ sudo sysctl -w net.ipv6.conf.all.accept_ra=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv6.conf.all.accept_ra = 0 |
An illicit router advertisement message could result in a man-in-the-middle attack. |
unknown |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.2.9 |
SRG-OS-000480-GPOS-00227 |
Configure IPv6 Settings if Necessary |
| CCE-81009-3 |
Disable Accepting ICMP Redirects for All IPv6 Interfaces |
NaN |
NaN |
To set the runtime status of the net.ipv6.conf.all.accept_redirects kernel parameter, run the following command: $ sudo sysctl -w net.ipv6.conf.all.accept_redirects=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv6.conf.all.accept_redirects = 0 |
An illicit ICMP redirect message could result in a man-in-the-middle attack. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.3.2 |
SRG-OS-000480-GPOS-00227 |
Configure IPv6 Settings if Necessary |
| CCE-82863-2 |
Disable Kernel Parameter for IPv6 Forwarding |
NaN |
NaN |
To set the runtime status of the net.ipv6.conf.all.forwarding kernel parameter, run the following command: $ sudo sysctl -w net.ipv6.conf.all.forwarding=0 To make sure that the setting is persistent, add the following line to a file in the directory /etc/sysctl.d: net.ipv6.conf.all.forwarding = 0 |
IP forwarding permits the kernel to forward packets from one network interface to another. The ability to forward packets between two networks is only appropriate for systems acting as routers. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
3.1.1 |
NaN |
Configure IPv6 Settings if Necessary |
| CCE-83351-7 |
Enable page allocator poisoning in zIPL |
NaN |
NaN |
To enable poisoning of free pages, check that all boot entries in /boot/loader/entries/*.conf have page_poison=1 included in its options. To ensure that new kernels and boot entries continue to enable page poisoning, add page_poison=1 to /etc/kernel/cmdline. |
Poisoning writes an arbitrary value to freed pages, so any modification or reference to that page after being freed or before being initialized will be detected and prevented. This prevents many types of use-after-free vulnerabilities at little performance cost. Also prevents leak of data and detection of corrupted memory. |
medium |
NaN |
NaN |
NaN |
NaN |
zIPL bootloader configuration |
| CCE-83321-0 |
Enable Auditing to Start Prior to the Audit Daemon in zIPL |
NaN |
NaN |
To ensure all processes can be audited, even those which start prior to the audit daemon, check that all boot entries in /boot/loader/entries/*.conf have audit=1 included in its options. To ensure that new kernels and boot entries continue to enable audit, add audit=1 to /etc/kernel/cmdline. |
Each process on the system carries an "auditable" flag which indicates whether its activities can be audited. Although auditd takes care of enabling this for all processes which launch after it does, adding the kernel argument ensures it is set for every process during boot. |
medium |
NaN |
NaN |
NaN |
NaN |
zIPL bootloader configuration |
| CCE-83381-4 |
Disable vsyscalls in zIPL |
NaN |
NaN |
To disable use of virtual syscalls, check that all boot entries in /boot/loader/entries/*.conf have vsyscall=none included in its options. To ensure that new kernels and boot entries continue to disable virtual syscalls, add vsyscall=none to /etc/kernel/cmdline. |
Virtual Syscalls provide an opportunity of attack for a user who has control of the return instruction pointer. |
medium |
NaN |
NaN |
NaN |
NaN |
zIPL bootloader configuration |
| CCE-83341-8 |
Extend Audit Backlog Limit for the Audit Daemon in zIPL |
NaN |
NaN |
To improve the kernel capacity to queue all log events, even those which start prior to the audit daemon, check that all boot entries in /boot/loader/entries/*.conf have audit_backlog_limit=8192 included in its options. To ensure that new kernels and boot entries continue to extend the audit log events queue, add audit_backlog_limit=8192 to /etc/kernel/cmdline. |
audit_backlog_limit sets the queue length for audit events awaiting transfer to the audit daemon. Until the audit daemon is up and running, all log messages are stored in this queue. If the queue is overrun during boot process, the action defined by audit failure flag is taken. |
medium |
NaN |
NaN |
NaN |
NaN |
zIPL bootloader configuration |
| CCE-83485-3 |
Ensure all zIPL boot entries are BLS compliant |
NaN |
NaN |
Ensure that zIPL boot entries fully adheres to Boot Loader Specification (BLS) by checking that /etc/zipl.conf doesn't contain image = . |
Red Hat Enterprise Linux 8 adheres to Boot Loader Specification (BLS) and is the prefered method of configuration. |
medium |
NaN |
NaN |
NaN |
NaN |
zIPL bootloader configuration |
| CCE-83486-1 |
Ensure zIPL bootmap is up to date |
NaN |
NaN |
Make sure that /boot/bootmap is up to date. Every time a boot entry or zIPL configuration is changed /boot/bootmap needs to be updated to reflect the changes. Run zipl command to generate an updated /boot/bootmap. |
The file /boot/bootmap contains all boot data, keeping it up to date is crucial to boot correct kernel and options. |
medium |
NaN |
NaN |
NaN |
NaN |
zIPL bootloader configuration |
| CCE-83361-6 |
Enable Kernel Page-Table Isolation (KPTI) in zIPL |
NaN |
NaN |
To enable Kernel page-table isolation, check that all boot entries in /boot/loader/entries/*.conf have pti=on included in its options. To ensure that new kernels and boot entries continue to enable page-table isolation, add pti=on to /etc/kernel/cmdline. |
Kernel page-table isolation is a kernel feature that mitigates the Meltdown security vulnerability and hardens the kernel against attempts to bypass kernel address space layout randomization (KASLR). |
medium |
NaN |
NaN |
NaN |
NaN |
zIPL bootloader configuration |
| CCE-83371-5 |
Enable SLUB/SLAB allocator poisoning in zIPL |
NaN |
NaN |
To enable poisoning of SLUB/SLAB objects, check that all boot entries in /boot/loader/entries/*.conf have slub_debug=P included in its options. To ensure that new kernels and boot entries continue to enable poisoning of SLUB/SLAB objects, add slub_debug=P to /etc/kernel/cmdline. |
Poisoning writes an arbitrary value to freed objects, so any modification or reference to that object after being freed or before being initialized will be detected and prevented. This prevents many types of use-after-free vulnerabilities at little performance cost. Also prevents leak of data and detection of corrupted memory. |
medium |
NaN |
NaN |
NaN |
NaN |
zIPL bootloader configuration |
| CCE-82859-0 |
Ensure rsyslog-gnutls is installed |
install |
via yum |
TLS protocol support for rsyslog is installed. The rsyslog-gnutls package can be installed with the following command: $ sudo yum install rsyslog-gnutls |
The rsyslog-gnutls package provides Transport Layer Security (TLS) support for the rsyslog daemon, which enables secure remote logging. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000120-GPOS-00061,SRG-OS-000480-GPOS-00227 |
Configure Syslog |
| CCE-80847-7 |
Ensure rsyslog is Installed |
install |
via yum |
Rsyslog is installed by default. The rsyslog package can be installed with the following command: $ sudo yum install rsyslog |
The rsyslog package provides the rsyslog daemon, which provides system logging services. |
medium |
CM-6(a) |
NaN |
4.2.1.1 |
SRG-OS-000051-GPOS-00024,SRG-OS-000479-GPOS-00224 |
Configure Syslog |
| CCE-80886-5 |
Enable rsyslog Service |
enable |
via systemctl |
The rsyslog service provides syslog-style logging by default on Red Hat Enterprise Linux 8. The rsyslog service can be enabled with the following command: $ sudo systemctl enable rsyslog.service |
The rsyslog service must be running in order to provide logging services, which are essential to system administration. |
medium |
AU-4(1),CM-6(a) |
NaN |
4.2.1.2 |
NaN |
Configure Syslog |
| CCE-80860-0 |
Ensure Log Files Are Owned By Appropriate Group |
root |
via chgrp |
The group-owner of all log files written by rsyslog should be . 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 , run the following command to correct this: $ sudo chgrp LOGFILE |
The log files generated by rsyslog contain valuable information regarding system configuration, user authentication, and other such information. Log files should be protected from unauthorized access. |
medium |
AC-6(1),CM-6(a) |
NaN |
NaN |
NaN |
Ensure Proper Configuration of Log Files |
| CCE-80861-8 |
Ensure Log Files Are Owned By Appropriate User |
root |
via chown |
The owner of all log files written by rsyslog should be . 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 , run the following command to correct this: $ sudo chown LOGFILE |
The log files generated by rsyslog contain valuable information regarding system configuration, user authentication, and other such information. Log files should be protected from unauthorized access. |
medium |
AC-6(1),CM-6(a) |
NaN |
NaN |
NaN |
Ensure Proper Configuration of Log Files |
| CCE-80859-2 |
Ensure cron Is Logging To Rsyslog |
cron.* |
/etc/rsyslog.conf |
Cron logging must be implemented to spot intrusions or trace cron job status. If cron is not logging to rsyslog, it can be implemented by adding the following to the RULES section of /etc/rsyslog.conf: cron.* /var/log/cron |
Cron logging can be used to trace the successful or unsuccessful execution of cron jobs. It can also be used to spot intrusions into the use of the cron facility by unauthorized and malicious users. |
medium |
CM-6(a) |
FAU_GEN.1.1.c |
NaN |
SRG-OS-000480-GPOS-00227 |
Ensure Proper Configuration of Log Files |
| CCE-80862-6 |
Ensure System Log Files Have Correct Permissions |
600 |
via chmod |
The file permissions for all log files written by rsyslog should be set to 600, or more restrictive. These log files are determined by the second part of each Rule line in /etc/rsyslog.conf and typically all appear in /var/log. For each log file LOGFILE referenced in /etc/rsyslog.conf, run the following command to inspect the file's permissions: $ ls -l LOGFILE If the permissions are not 600 or more restrictive, run the following command to correct this: $ sudo chmod 0600 LOGFILE" |
Log files can contain valuable information regarding system configuration. If the system log files are not protected unauthorized users could change the logged data, eliminating their forensic value. |
medium |
AC-6(1),CM-6(a) |
NaN |
4.2.1.3 |
NaN |
Ensure Proper Configuration of Log Files |
| CCE-82458-1 |
Configure CA certificate for rsyslog remote logging |
configure |
via /etc/rsyslog.conf |
Configure CA certificate for rsyslog logging to remote server using Transport Layer Security (TLS) using correct path for the DefaultNetstreamDriverCAFile global option in /etc/rsyslog.conf, for example with the following command: echo 'global(DefaultNetstreamDriverCAFile="/etc/pki/tls/cert.pem")' >> /etc/rsyslog.conf Replace the /etc/pki/tls/cert.pem in the above command with the path to the file with CA certificate generated for the purpose of remote logging. |
The CA certificate needs to be set or rsyslog.service fails to start with error: ca certificate is not set, cannot continue |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Rsyslog Logs Sent To Remote Host |
| CCE-82457-3 |
Configure TLS for rsyslog remote logging |
configure |
via /etc/rsyslog.conf |
Configure rsyslog to use Transport Layer Security (TLS) support for logging to remote server for the Forwarding Output Module in /etc/rsyslog.conf using action. You can use the following command: echo 'action(type="omfwd" protocol="tcp" Target="<remote system>" port="6514" StreamDriver="gtls" StreamDriverMode="1" StreamDriverAuthMode="x509/name" streamdriver.CheckExtendedKeyPurpose="on")' >> /etc/rsyslog.conf Replace the <remote system> in the above command with an IP address or a host name of the remote logging server. |
For protection of data being logged, the connection to the remote logging server needs to be authenticated and encrypted. |
medium |
AU-9(3),CM-6(a) |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000120-GPOS-00061,SRG-OS-000480-GPOS-00227 |
Rsyslog Logs Sent To Remote Host |
| CCE-80863-4 |
Ensure Logs Sent To Remote Host |
enable |
via /etc/rsyslog.conf |
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 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: *.* @ To use TCP for log message delivery: *.* @@ To use RELP for log message delivery: *.* :omrelp: There must be a resolvable DNS CNAME or Alias record set to "" for logs to be sent correctly to the centralized logging utility. |
A log server (loghost) receives syslog messages from one or more systems. This data can be used as an additional log source in the event a system is compromised and its local logs are suspect. Forwarding log messages to a remote loghost also provides system administrators with a centralized place to view the status of multiple hosts within the enterprise. |
medium |
AU-4(1),AU-9(2),CM-6(a) |
FAU_GEN.1.1.c |
4.2.1.5 |
SRG-OS-000480-GPOS-00227 |
Rsyslog Logs Sent To Remote Host |
| CCE-84275-7 |
Ensure rsyslog Does Not Accept Remote Messages Unless Acting As Log Server |
disable |
via /etc/rsyslog.conf |
The rsyslog daemon should not accept remote messages unless the system acts as a log server. To ensure that it is not listening on the network, ensure the following lines are not found in /etc/rsyslog.conf: $ModLoad imtcp $InputTCPServerRun port $ModLoad imudp $UDPServerRun port $ModLoad imrelp $InputRELPServerRun port |
Any process which receives messages from the network incurs some risk of receiving malicious messages. This risk can be eliminated for rsyslog by configuring it not to listen on the network. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
4.2.1.6 |
SRG-OS-000480-GPOS-00227 |
Configure rsyslogd to Accept Remote Messages If Acting as a Log Server |
| CCE-80794-1 |
Ensure Logrotate Runs Periodically |
daily |
via /etc/logrotate.conf |
The logrotate utility allows for the automatic rotation of log files. The frequency of rotation is specified in /etc/logrotate.conf, which triggers a cron task. To configure logrotate to run daily, add or correct the following line in /etc/logrotate.conf: # rotate log files frequency daily |
Log files that are not properly rotated run the risk of growing so large that they fill up the /var/log partition. Valuable logging information could be lost if the /var/log partition becomes full. |
medium |
CM-6(a) |
NaN |
4.3 |
NaN |
Ensure All Logs are Rotated by logrotate |
| CCE-82724-6 |
Install policycoreutils-python-utils package |
install |
via yum |
The policycoreutils-python-utils package can be installed with the following command: $ sudo yum install policycoreutils-python-utils |
This package is required to operate and manage an SELinux environment and its policies. It provides utilities such as semanage, audit2allow, audit2why, chcat and sandbox. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
SELinux |
| CCE-82976-2 |
Install policycoreutils Package |
install |
via yum |
The policycoreutils package can be installed with the following command: $ sudo yum install policycoreutils |
Security-enhanced Linux is a feature of the Linux kernel and a number of utilities with enhanced security functionality designed to add mandatory access controls to Linux. The Security-enhanced Linux kernel contains new architectural components originally developed to improve security of the Flask operating system. These architectural components provide general support for the enforcement of many kinds of mandatory access control policies, including those based on the concepts of Type Enforcement, Role-based Access Control, and Multi-level Security. policycoreutils contains the policy core utilities that are required for basic operation of an SELinux-enabled system. These utilities include load_policy to load SELinux policies, setfiles to label filesystems, newrole to switch roles, and run_init to run /etc/init.d scripts in the proper context. |
high |
NaN |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
SELinux |
| CCE-82877-2 |
Install libselinux Package |
install |
via yum |
The libselinux package can be installed with the following command: $ sudo yum install libselinux |
Security-enhanced Linux is a feature of the Linux kernel and a number of utilities with enhanced security functionality designed to add mandatory access controls to Linux. The libselinux package contains the core library of the Security-enhanced Linux system. |
high |
NaN |
NaN |
1.7.1.1 |
NaN |
SELinux |
| CCE-82755-0 |
Uninstall setroubleshoot Package |
remove |
via yum |
The SETroubleshoot service notifies desktop users of SELinux denials. The service provides information around configuration errors, unauthorized intrusions, and other potential errors. The setroubleshoot package can be removed with the following command: $ sudo yum erase setroubleshoot |
The SETroubleshoot service is an unnecessary daemon to have running on a server, especially if X Windows is removed or disabled. |
low |
NaN |
NaN |
1.7.1.6 |
NaN |
SELinux |
| CCE-82756-8 |
Uninstall mcstrans Package |
remove |
via yum |
The mcstransd daemon provides category label information to client processes requesting information. The label translations are defined in /etc/selinux/targeted/setrans.conf. The mcstrans package can be removed with the following command: $ sudo yum erase mcstrans |
Since this service is not used very often, disable it to reduce the amount of potentially vulnerable code running on the system. NOTE: This rule was added in support of the CIS RHEL6 v1.2.0 benchmark. Please note that Red Hat does not feel this rule is security relevant. |
low |
NaN |
NaN |
1.7.1.7 |
NaN |
SELinux |
| CCE-80827-9 |
Ensure SELinux Not Disabled in /etc/default/grub |
verify |
via /etc/default/grub |
SELinux can be disabled at boot time by an argument in /etc/default/grub. Remove any instances of selinux=0 from the kernel arguments in that file to prevent SELinux from being disabled at boot. |
Disabling a major host protection feature, such as SELinux, at boot time prevents it from confining system services at boot time. Further, it increases the chances that it will remain off during system operation. |
medium |
AC-3,AC-3(3)(a) |
NaN |
1.7.1.2 |
NaN |
SELinux |
| CCE-80866-7 |
Ensure No Device Files are Unlabeled by SELinux |
verify |
via find |
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 device_t or unlabeled_t, report the bug so that policy can be corrected. Supply information about what the device is and what programs use it. To check for incorrectly labeled device files, run following commands: $ sudo find /dev -context *:device_t:* \( -type c -o -type b \) -printf "%p %Z\n" $ sudo find /dev -context *:unlabeled_t:* \( -type c -o -type b \) -printf "%p %Z\n" It should produce no output in a well-configured system. |
If a device file carries the SELinux type device_t or unlabeled_t, then SELinux cannot properly restrict access to the device file. |
medium |
AC-3(3)(a),AC-6,CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
SELinux |
| CCE-80867-5 |
Ensure No Daemons are Unconfined by SELinux |
verify |
via ps |
Daemons for which the SELinux policy does not contain rules will inherit the context of the parent process. Because daemons are launched during startup and descend from the init process, they inherit the initrc_t context. To check for unconfined daemons, run the following command: $ sudo ps -eZ | egrep "initrc" | egrep -vw "tr|ps|egrep|bash|awk" | tr ':' ' ' | awk '{ print $NF }' It should produce no output in a well-configured system. |
Daemons which run with the initrc_t context may cause AVC denials, or allow privileges that the daemon does not require. |
medium |
AC-3(3)(a),AC-6,CM-6(a),CM-7(a),CM-7(b) |
NaN |
1.7.1.5 |
NaN |
SELinux |
| CCE-80869-1 |
Ensure SELinux State is Enforcing |
Enforcing |
via /etc/selinux/config |
The SELinux state should be set to 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= |
Setting the SELinux state to enforcing ensures SELinux is able to confine potentially compromised processes to the security policy, which is designed to prevent them from causing damage to the system or further elevating their privileges. |
high |
AC-3,AC-3(3)(a),AU-9,SC-7(21) |
NaN |
1.7.1.4 |
SRG-OS-000445-GPOS-00199 |
SELinux |
| CCE-80868-3 |
Configure SELinux Policy |
targeting |
via /etc/selinux/config |
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= Other policies, such as mls, provide additional security labeling and greater confinement but are not compatible with many general-purpose use cases. |
Setting the SELinux policy to targeted or a more specialized policy ensures the system will confine processes that are likely to be targeted for exploitation, such as network or system services. Note: During the development or debugging of SELinux modules, it is common to temporarily place non-production systems in permissive mode. In such temporary cases, SELinux policies should be developed, and once work is completed, the system should be reconfigured to . |
high |
AC-3,AC-3(3)(a),AU-9,SC-7(21) |
NaN |
1.7.1.3 |
SRG-OS-000445-GPOS-00199 |
SELinux |
| CCE-80949-1 |
Disable the selinuxuser_execheap SELinux Boolean |
off |
via setsebool |
By default, the SELinux boolean selinuxuser_execheap is disabled. If this setting is enabled, it should be disabled. To disable the selinuxuser_execheap SELinux boolean, run the following command: $ sudo setsebool -P selinuxuser_execheap off |
NaN |
medium |
NaN |
NaN |
NaN |
NaN |
SELinux - Booleans |
| CCE-84297-1 |
Enable the auditadm_exec_content SELinux Boolean |
on |
via setsebool |
By default, the SELinux boolean auditadm_exec_content is enabled. If this setting is disabled, it should be enabled. To enable the auditadm_exec_content SELinux boolean, run the following command: $ sudo setsebool -P auditadm_exec_content on |
NaN |
medium |
NaN |
NaN |
NaN |
NaN |
SELinux - Booleans |
| CCE-84293-0 |
Enable the kerberos_enabled SELinux Boolean |
on |
via setsebool |
By default, the SELinux boolean kerberos_enabled is enabled. If this setting is disabled, it should be enabled to allow confined applications to run with Kerberos. To enable the kerberos_enabled SELinux boolean, run the following command: $ sudo setsebool -P kerberos_enabled on |
NaN |
medium |
NaN |
NaN |
NaN |
NaN |
SELinux - Booleans |
| CCE-84294-8 |
Disable the authlogin_radius SELinux Boolean |
off |
via setsebool |
By default, the SELinux boolean authlogin_radius is disabled. If this setting is enabled, it should be disabled. To disable the authlogin_radius SELinux boolean, run the following command: $ sudo setsebool -P authlogin_radius off |
NaN |
medium |
NaN |
NaN |
NaN |
NaN |
SELinux - Booleans |
| CCE-84296-3 |
Disable the authlogin_nsswitch_use_ldap SELinux Boolean |
off |
via setsebool |
By default, the SELinux boolean authlogin_nsswitch_use_ldap is disabled. If this setting is enabled, it should be disabled. To disable the authlogin_nsswitch_use_ldap SELinux boolean, run the following command: $ sudo setsebool -P authlogin_nsswitch_use_ldap off |
NaN |
medium |
NaN |
NaN |
NaN |
NaN |
SELinux - Booleans |
| CCE-80951-7 |
disable the selinuxuser_execstack SELinux Boolean |
off |
via setsebool |
By default, the SELinux boolean selinuxuser_execstack is enabled. This setting should be disabled as unconfined executables should not be able to make their stack executable. To disable the selinuxuser_execstack SELinux boolean, run the following command: $ sudo setsebool -P selinuxuser_execstack off |
NaN |
medium |
NaN |
NaN |
NaN |
NaN |
SELinux - Booleans |
| CCE-80950-9 |
Enable the selinuxuser_execmod SELinux Boolean |
on |
via setsebool |
By default, the SELinux boolean selinuxuser_execmod is enabled. If this setting is disabled, it should be enabled. To enable the selinuxuser_execmod SELinux boolean, run the following command: $ sudo setsebool -P selinuxuser_execmod on |
NaN |
medium |
NaN |
NaN |
NaN |
NaN |
SELinux - Booleans |
| CCE-82410-2 |
Authenticate Zone Transfers |
configure |
via /etc/named.conf |
If it is necessary for a secondary nameserver to receive zone data via zone transfer from the primary server, follow the instructions here. Use dnssec-keygen to create a symmetric key file in the current directory: $ cd /tmp $ sudo dnssec-keygen -a HMAC-MD5 -b 128 -n HOST dns.example.com Kdns.example.com .+aaa +iiiii This output is the name of a file containing the new key. Read the file to find the base64-encoded key string: $ sudo cat Kdns.example.com .+NNN +MMMMM .key dns.example.com IN KEY 512 3 157 base64-key-string Add the directives to /etc/named.conf on the primary server: key zone-transfer-key { algorithm hmac-md5; secret "base64-key-string "; }; zone "example.com " IN { type master; allow-transfer { key zone-transfer-key; }; ... }; Add the directives below to /etc/named.conf on the secondary nameserver: key zone-transfer-key { algorithm hmac-md5; secret "base64-key-string "; }; server IP-OF-MASTER { keys { zone-transfer-key; }; }; zone "example.com " IN { type slave; masters { IP-OF-MASTER ; }; ... }; |
The BIND transaction signature (TSIG) functionality allows primary and secondary nameservers to use a shared secret to verify authorization to perform zone transfers. This method is more secure than using IP-based limiting to restrict nameserver access, since IP addresses can be easily spoofed. However, if you cannot configure TSIG between your servers because, for instance, the secondary nameserver is not under your control and its administrators are unwilling to configure TSIG, you can configure an allow-transfer directive with numerical IP addresses or ACLs as a last resort. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Protect DNS Data from Tampering or Attack |
| CCE-82408-6 |
Uninstall bind Package |
remove |
via yum |
The named service is provided by the bind package. The bind package can be removed with the following command: $ sudo yum erase bind |
If there is no need to make DNS server software available, removing it provides a safeguard against its activation. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Disable DNS Server |
| CCE-82409-4 |
Disable named Service |
disable |
via systemctl |
The named service can be disabled with the following command: $ sudo systemctl disable named.service The named service can be masked with the following command: $ sudo systemctl mask named.service |
All network services involve some risk of compromise due to implementation flaws and should be disabled if possible. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.2.11 |
NaN |
Disable DNS Server |
| CCE-82874-9 |
The Chrony package is installed |
install |
via yum |
System time should be synchronized between all systems in an environment. This is typically done by establishing an authoritative time server or set of servers and having all systems synchronize their clocks to them. The chrony package can be installed with the following command: $ sudo yum install chrony |
Time synchronization is important to support time sensitive security mechanisms like Kerberos and also ensures log files have consistent time records across the enterprise, which aids in forensic investigations. |
medium |
NaN |
NaN |
2.2.1.1 |
NaN |
Network Time Protocol |
| CCE-80874-1 |
Enable the NTP Daemon |
enable |
via systemctl |
Run the following command to determine the current status of the chronyd service: $ systemctl is-active chronyd If the service is running, it should return the following: active Note: The chronyd daemon is enabled by default. Run the following command to determine the current status of the ntpd service: $ systemctl is-active ntpd If the service is running, it should return the following: active Note: The ntpd daemon is not enabled by default. Though as mentioned in the previous sections in certain environments the ntpd daemon might be preferred to be used rather than the chronyd one. Refer to: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-Configuring_NTP_Using_the_chrony_Suite.html for guidance which NTP daemon to choose depending on the environment used. |
Enabling some of chronyd or ntpd services ensures that the NTP daemon will be running and that the system will synchronize its time to any servers specified. This is important whether the system is configured to be a client (and synchronize only its own clock) or it is also acting as an NTP server to other systems. Synchronizing time is essential for authentication services such as Kerberos, but it is also important for maintaining accurate logs and auditing possible security breaches. The chronyd and ntpd NTP daemons offer all of the functionality of ntpdate, which is now deprecated. Additional information on this is available at http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate |
medium |
AU-8(1)(a),CM-6(a) |
NaN |
2.2.1.1 |
NaN |
Network Time Protocol |
| CCE-82875-6 |
The Chronyd service is enabled |
enable |
via systemctl |
chrony is a daemon which implements the Network Time Protocol (NTP) is designed to synchronize system clocks across a variety of systems and use a source that is highly accurate. More information on chrony can be found at http://chrony.tuxfamily.org/. Chrony can be configured to be a client and/or a server. To enable Chronyd service, you can run: # systemctl enable chronyd.service This recommendation only applies if chrony is in use on the system. |
If chrony is in use on the system proper configuration is vital to ensuring time synchronization is working properly. |
medium |
NaN |
NaN |
2.2.1.2 |
NaN |
Network Time Protocol |
| CCE-80764-4 |
Specify Additional Remote NTP Servers |
configure |
via /etc/chrony.conf or /etc/ntp.conf |
Depending on specific functional requirements of a concrete production environment, the Red Hat Enterprise Linux 8 system can be configured to utilize the services of the chronyd NTP daemon (the default), or services of the ntpd NTP daemon. Refer to https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-Configuring_NTP_Using_the_chrony_Suite.html for more detailed comparison of the features of both of the choices, and for further guidance how to choose between the two NTP daemons. Additional NTP servers can be specified for time synchronization. To do so, perform the following: if the system is configured to use the chronyd as the NTP daemon (the default), edit the file /etc/chrony.conf as follows, if the system is configured to use the ntpd as the NTP daemon, edit the file /etc/ntp.conf as documented below. Add additional lines of the following form, substituting the IP address or hostname of a remote NTP server for ntpserver: server ntpserver |
Specifying additional NTP servers increases the availability of accurate time data, in the event that one of the specified servers becomes unavailable. This is typical for a system acting as an NTP server for other systems. |
medium |
AU-8(1)(a),AU-8(2),CM-6(a) |
NaN |
NaN |
NaN |
Network Time Protocol |
| CCE-80765-1 |
Specify a Remote NTP Server |
configure |
via /etc/chrony.conf or /etc/ntp.conf |
Depending on specific functional requirements of a concrete production environment, the Red Hat Enterprise Linux 8 system can be configured to utilize the services of the chronyd NTP daemon (the default), or services of the ntpd NTP daemon. Refer to https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-Configuring_NTP_Using_the_chrony_Suite.html for more detailed comparison of the features of both of the choices, and for further guidance how to choose between the two NTP daemons. To specify a remote NTP server for time synchronization, perform the following: if the system is configured to use the chronyd as the NTP daemon (the default), edit the file /etc/chrony.conf as follows, if the system is configured to use the ntpd as the NTP daemon, edit the file /etc/ntp.conf as documented below. 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. |
Synchronizing with an NTP server makes it possible to collate system logs from multiple sources or correlate computer events with real time events. |
medium |
AU-8(1)(a),AU-8(2),CM-6(a) |
NaN |
2.2.1.2 |
NaN |
Network Time Protocol |
| CCE-82879-8 |
Ensure that chronyd is running under chrony user account |
-u chrony |
/etc/sysconfig/chronyd |
chrony is a daemon which implements the Network Time Protocol (NTP). It is designed to synchronize system clocks across a variety of systems and use a source that is highly accurate. More information on chrony can be found at http://chrony.tuxfamily.org/. Chrony can be configured to be a client and/or a server. To ensure that chronyd is running under chrony user account, Add or edit the OPTIONS variable in /etc/sysconfig/chronyd to include -u chrony: OPTIONS="-u chrony" This recommendation only applies if chrony is in use on the system. |
If chrony is in use on the system proper configuration is vital to ensuring time synchronization is working properly. |
medium |
NaN |
NaN |
2.2.1.2 |
NaN |
Network Time Protocol |
| CCE-82840-0 |
Disable network management of chrony daemon |
0 |
via /etc/chrony.conf |
The cmdport option in /etc/chrony.conf can be set to 0 to stop chrony daemon from listening on the UDP port 323 for management connections made by chronyc. |
Not exposing the management interface of the chrony daemon on the network diminishes the attack space. |
unknown |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000096-GPOS-00050 |
Network Time Protocol |
| CCE-82988-7 |
Disable chrony daemon from acting as server |
0 |
via /etc/chrony.conf |
The port option in /etc/chrony.conf can be set to 0 to make chrony daemon to never open any listening port for server operation and to operate strictly in a client-only mode. |
Minimizing the exposure of the server functionality of the chrony daemon diminishes the attack surface. |
unknown |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000096-GPOS-00050 |
Network Time Protocol |
| CCE-82873-1 |
A remote time server for Chrony is configured |
configure |
via /etc/chrony.conf |
Chrony is a daemon which implements the Network Time Protocol (NTP). It is designed to synchronize system clocks across a variety of systems and use a source that is highly accurate. More information on chrony can be found at http://chrony.tuxfamily.org/. Chrony can be configured to be a client and/or a server. Add or edit server or pool lines to /etc/chrony.conf as appropriate: server <remote-server> Multiple servers may be configured. |
If chrony is in use on the system proper configuration is vital to ensuring time synchronization is working properly. |
medium |
NaN |
NaN |
2.2.1.2 |
NaN |
Network Time Protocol |
| CCE-81039-0 |
Uninstall Sendmail Package |
remove |
via yum |
Sendmail is not the default mail transfer agent and is not installed by default. The sendmail package can be removed with the following command: $ sudo yum erase sendmail |
The sendmail software was not developed with security in mind and its design prevents it from being effectively contained by SELinux. Postfix should be used instead. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Mail Server Software |
| CCE-82381-5 |
Configure System to Forward All Mail For The Root Account |
root |
via /etc/aliases |
Set up an alias for root that forwards to a monitored email address: $ sudo echo "root: " >> /etc/aliases $ sudo newaliases |
A number of system services utilize email messages sent to the root user to notify system administrators of active or impending issues. These messages must be forwarded to at least one monitored email address. |
low |
CM-6(a) |
NaN |
NaN |
NaN |
Configure SMTP For Mail Clients |
| CCE-82174-4 |
Disable Postfix Network Listening |
inet_interfaces = loopback-only |
via /etc/postfix/main.cf |
Edit the file /etc/postfix/main.cf to ensure that only the following inet_interfaces line appears: inet_interfaces = |
This ensures postfix accepts mail messages (such as cron job reports) from the local system only, and not from the network, which protects it from network attack. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.2.18 |
NaN |
Configure SMTP For Mail Clients |
| CCE-82379-9 |
Configure SMTP Greeting Banner |
configure |
/etc/postfix/main.cf |
Edit /etc/postfix/main.cf, and add or correct the following line, substituting some other wording for the banner information if you prefer: smtpd_banner = $myhostname ESMTP |
The default greeting banner discloses that the listening mail process is Postfix. When remote mail senders connect to the MTA on port 25, they are greeted by an initial banner as part of the SMTP dialogue. This banner is necessary, but it frequently gives away too much information, including the MTA software which is in use, and sometimes also its version number. Remote mail senders do not need this information in order to send mail, so the banner should be changed to reveal only the hostname (which is already known and may be useful) and the word ESMTP, to indicate that the modern SMTP protocol variant is supported. |
low |
AC-8(a),AC-8(c) |
NaN |
NaN |
NaN |
Configure Postfix if Necessary |
| CCE-82191-8 |
Install fapolicyd Package |
install |
via yum |
The fapolicyd package can be installed with the following command: $ sudo yum install fapolicyd |
fapolicyd (File Access Policy Daemon) implements application whitelisting to decide file access rights. |
medium |
CM-6(a),SI-4(22) |
NaN |
NaN |
SRG-OS-000370-GPOS-00155 |
Application Whitelisting Daemon |
| CCE-82249-4 |
Enable the File Access Policy Service |
enable |
via systemctl |
The File Access Policy service should be enabled. The fapolicyd service can be enabled with the following command: $ sudo systemctl enable fapolicyd.service |
The fapolicyd service (File Access Policy Daemon) implements application whitelisting to decide file access rights. |
medium |
CM-6(a),SI-4(22) |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000370-GPOS-00155 |
Application Whitelisting Daemon |
| CCE-82758-4 |
Disable snmpd Service |
disable |
via systemctl |
The snmpd service can be disabled with the following command: $ sudo systemctl disable snmpd.service The snmpd service can be masked with the following command: $ sudo systemctl mask snmpd.service |
Running SNMP software provides a network-based avenue of attack, and should be disabled if not needed. |
low |
NaN |
NaN |
2.2.5 |
NaN |
Disable SNMP Server if Possible |
| CCE-82733-7 |
Ensure SNMP Read Write is disabled |
remove |
via /etc/snmp/snmpd.conf |
Edit /etc/snmp/snmpd.conf, remove any rwuser entries. Once the read write users have been removed, restart the SNMP service: $ sudo service snmpd restart |
Certain SNMP settings can permit users to execute system behaviors from user writes to the community strings. This may permit a compromised account to execute commands on a remote system. |
medium |
NaN |
NaN |
NaN |
NaN |
Configure SNMP Server if Necessary |
| CCE-84292-2 |
Configure SNMP Service to Use Only SNMPv3 or Newer |
configure |
via /etc/snmp/snmpd.conf |
Edit /etc/snmp/snmpd.conf, removing any references to rocommunity, rwcommunity, or com2sec. Upon doing that, restart the SNMP service: $ sudo service snmpd restart |
Earlier versions of SNMP are considered insecure, as they potentially allow unauthorized access to detailed system management information. |
medium |
NaN |
NaN |
NaN |
NaN |
Configure SNMP Server if Necessary |
| CCE-82757-6 |
Remove the X Windows Package Group |
remove |
via yum |
By removing the xorg-x11-server-common package, the system no longer has X Windows installed. If X Windows is not installed then the system cannot boot into graphical user mode. This prevents the system from being accidentally or maliciously booted into a graphical.target mode. To do so, run the following command:$ sudo yum groupremove base-x $ sudo yum remove xorg-x11-server-common |
Unnecessary service packages must not be installed to decrease the attack surface of the system. X windows has a long history of security vulnerabilities and should not be installed unless approved and documented. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.2.2 |
SRG-OS-000480-GPOS-00227 |
Disable X Windows |
| CCE-83380-6 |
Disable X Windows Startup By Setting Default Target |
mult-user.target |
via systemctl |
Systems that do not require a graphical user interface should only boot by default into multi-user.target mode. This prevents accidental booting of the system into a graphical.target mode. Setting the system's default target to multi-user.target will prevent automatic startup of the X server. To do so, run: $ systemctl set-default multi-user.target You should see the following output: Removed symlink /etc/systemd/system/default.target. Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target. |
Services that are not required for system and application processes must not be active to decrease the attack surface of the system. X windows has a long history of security vulnerabilities and should not be used unless approved and documented. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Disable X Windows |
| CCE-82864-0 |
Disable DHCP Service |
disable |
via systemctl |
The dhcpd service should be disabled on any system that does not need to act as a DHCP server. The dhcpd service can be disabled with the following command: $ sudo systemctl disable dhcpd.service The dhcpd service can be masked with the following command: $ sudo systemctl mask dhcpd.service |
Unmanaged or unintentionally activated DHCP servers may provide faulty information to clients, interfering with the operation of a legitimate site DHCP server if there is one. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.2.15 |
NaN |
Disable DHCP Server |
| CCE-82759-2 |
Disable Samba |
disable |
via systemctl |
The smb service can be disabled with the following command: $ sudo systemctl disable smb.service The smb service can be masked with the following command: $ sudo systemctl mask smb.service |
Running a Samba server provides a network-based avenue of attack, and should be disabled if not needed. |
low |
NaN |
NaN |
2.2.7 |
NaN |
Disable Samba if Possible |
| CCE-82404-5 |
Install the psacct package |
install |
via yum |
The process accounting service, psacct, works with programs including acct and ac to allow system administrators to view user activity, such as commands issued by users of the system. The psacct package can be installed with the following command: $ sudo yum install psacct |
The psacct service can provide administrators a convenient view into some user activities. However, it should be noted that the auditing system and its audit records provide more authoritative and comprehensive records. |
low |
AU-12(a),CM-6(a) |
NaN |
NaN |
NaN |
Base Services |
| CCE-80948-3 |
Uninstall Automatic Bug Reporting Tool (abrt) |
remove |
via yum |
The Automatic Bug Reporting Tool (abrt) collects and reports crash data when an application crash is detected. Using a variety of plugins, abrt 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 abrt package can be removed with the following command: $ sudo yum erase abrt |
Mishandling crash data could expose sensitive information about vulnerabilities in software executing on the system, as well as sensitive information from within a process's address space or registers. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
Base Services |
| CCE-82401-1 |
Enable Process Accounting (psacct) |
enable |
via systemctl |
The process accounting service, psacct, works with programs including acct and ac to allow system administrators to view user activity, such as commands issued by users of the system. The psacct service can be enabled with the following command: $ sudo systemctl enable psacct.service |
The psacct service can provide administrators a convenient view into some user activities. However, it should be noted that the auditing system and its audit records provide more authoritative and comprehensive records. |
low |
AU-12(a),CM-6(a) |
NaN |
NaN |
NaN |
Base Services |
| CCE-80880-8 |
Disable Odd Job Daemon (oddjobd) |
disable |
via systemctl |
The oddjobd service exists to provide an interface and access control mechanism through which specified privileged tasks can run tasks for unprivileged client applications. Communication with oddjobd through the system message bus. The oddjobd service can be disabled with the following command: $ sudo systemctl disable oddjobd.service The oddjobd service can be masked with the following command: $ sudo systemctl mask oddjobd.service |
The oddjobd service may provide necessary functionality in some environments, and can be disabled if it is not needed. Execution of tasks by privileged programs, on behalf of unprivileged ones, has traditionally been a source of privilege escalation security issues. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-82382-3 |
Disable CPU Speed (cpupower) |
disable |
via systemctl |
The cpupower service can adjust the clock speed of supported CPUs based upon the current processing load thereby conserving power and reducing heat. The cpupower service can be disabled with the following command: $ sudo systemctl disable cpupower.service The cpupower service can be masked with the following command: $ sudo systemctl mask cpupower.service |
The cpupower service is only necessary if adjusting the CPU clock speed provides benefit. Traditionally this has included laptops (to enhance battery life), but may also apply to server or desktop environments where conserving power is highly desirable or necessary. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-80883-2 |
Disable Network Router Discovery Daemon (rdisc) |
disable |
via systemctl |
The rdisc service implements the client side of the ICMP Internet Router Discovery Protocol (IRDP), which allows discovery of routers on the local subnet. If a router is discovered then the local routing table is updated with a corresponding default route. By default this daemon is disabled. The rdisc service can be disabled with the following command: $ sudo systemctl disable rdisc.service The rdisc service can be masked with the following command: $ sudo systemctl mask rdisc.service |
General-purpose systems typically have their network and routing information configured statically by a system administrator. Workstations or some special-purpose systems often use DHCP (instead of IRDP) to retrieve dynamic network configuration information. |
medium |
AC-4,CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-80878-2 |
Disable KDump Kernel Crash Analyzer (kdump) |
disable |
via systemctl |
The kdump service provides a kernel crash dump analyzer. It uses the kexec system call to boot a secondary kernel ("capture" kernel) following a system crash, which can load information from the crashed kernel for analysis. The kdump service can be disabled with the following command: $ sudo systemctl disable kdump.service The kdump service can be masked with the following command: $ sudo systemctl mask kdump.service |
Kernel core dumps may contain the full contents of system memory at the time of the crash. Kernel core dumps consume a considerable amount of disk space and may result in denial of service by exhausting the available space on the target file system partition. Unless the system is used for kernel development or testing, there is little need to run the kdump service. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Base Services |
| CCE-82386-4 |
Disable Software RAID Monitor (mdmonitor) |
disable |
via systemctl |
The mdmonitor service is used for monitoring a software RAID array; hardware RAID setups do not use this service. The mdmonitor service can be disabled with the following command: $ sudo systemctl disable mdmonitor.service The mdmonitor service can be masked with the following command: $ sudo systemctl mask mdmonitor.service |
If software RAID monitoring is not required, there is no need to run this service. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-82387-2 |
Disable Red Hat Subscription Manager Daemon (rhsmcertd) |
disable |
via systemctl |
The Red Hat Subscription Manager (rhsmcertd) periodically checks for changes in the entitlement certificates for a registered system and updates it accordingly. The rhsmcertd service can be disabled with the following command: $ sudo systemctl disable rhsmcertd.service The rhsmcertd service can be masked with the following command: $ sudo systemctl mask rhsmcertd.service |
The rhsmcertd service can provide administrators with some additional control over which of their systems are entitled to particular subscriptions. However, for systems that are managed locally or which are not expected to require remote changes to their subscription status, it is unnecessary and can be disabled. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-82388-0 |
Disable System Statistics Reset Service (sysstat) |
disable |
via systemctl |
The sysstat service resets various I/O and CPU performance statistics to zero in order to begin counting from a fresh state at boot time. The sysstat service can be disabled with the following command: $ sudo systemctl disable sysstat.service The sysstat service can be masked with the following command: $ sudo systemctl mask sysstat.service |
By default the sysstat service runs a program at boot to reset performance statistics. This data can be retrieved using programs such as sar and sadc. While the sysstat service may provide useful insight into system operation, through the lens of providing only essential system services, this service should be disabled. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-82389-8 |
Disable Cyrus SASL Authentication Daemon (saslauthd) |
disable |
via systemctl |
The saslauthd service handles plaintext authentication requests on behalf of the SASL library. The service isolates all code requiring superuser privileges for SASL authentication into a single process, and can also be used to provide proxy authentication services to clients that do not understand SASL based authentication. The saslauthd service can be disabled with the following command: $ sudo systemctl disable saslauthd.service The saslauthd service can be masked with the following command: $ sudo systemctl mask saslauthd.service |
The saslauthd service provides essential functionality for performing authentication in some directory environments, such as those which use Kerberos and LDAP. For others, however, in which only local files may be consulted, it is not necessary and should be disabled. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-82390-6 |
Disable Portreserve (portreserve) |
disable |
via systemctl |
The portreserve service is a TCP port reservation utility that can be used to prevent portmap from binding to well known TCP ports that are required for other services. The portreserve service can be disabled with the following command: $ sudo systemctl disable portreserve.service The portreserve service can be masked with the following command: $ sudo systemctl mask portreserve.service |
The portreserve service provides helpful functionality by preventing conflicting usage of ports in the reserved port range, but it can be disabled if not needed. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-82452-4 |
Disable Certmonger Service (certmonger) |
disable |
via systemctl |
Certmonger is a D-Bus based service that attempts to simplify interaction with certifying authorities on networks which use public-key infrastructure. It is often combined with Red Hat's IPA (Identity Policy Audit) security information management solution to aid in the management of certificates. The certmonger service can be disabled with the following command: $ sudo systemctl disable certmonger.service The certmonger service can be masked with the following command: $ sudo systemctl mask certmonger.service |
The services provided by certmonger may be essential for systems fulfilling some roles a PKI infrastructure, but its functionality is not necessary for many other use cases. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-80879-0 |
Disable ntpdate Service (ntpdate) |
disable |
via systemctl |
The ntpdate service sets the local hardware clock by polling NTP servers when the system boots. It synchronizes to the NTP servers listed in /etc/ntp/step-tickers or /etc/ntp.conf and then sets the local hardware clock to the newly synchronized system time. The ntpdate service can be disabled with the following command: $ sudo systemctl disable ntpdate.service The ntpdate service can be masked with the following command: $ sudo systemctl mask ntpdate.service |
The ntpdate service may only be suitable for systems which are rebooted frequently enough that clock drift does not cause problems between reboots. In any event, the functionality of the ntpdate service is now available in the ntpd program and should be considered deprecated. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-80882-4 |
Disable Apache Qpid (qpidd) |
disable |
via systemctl |
The qpidd service provides high speed, secure, guaranteed delivery services. It is an implementation of the Advanced Message Queuing Protocol. By default the qpidd service will bind to port 5672 and listen for connection attempts. The qpidd service can be disabled with the following command: $ sudo systemctl disable qpidd.service The qpidd service can be masked with the following command: $ sudo systemctl mask qpidd.service |
The qpidd service is automatically installed when the base package selection is selected during installation. The qpidd service listens for network connections, which increases the attack surface of the system. If the system is not intended to receive AMQP traffic, then the qpidd service is not needed and should be disabled or removed. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-80870-9 |
Disable Automatic Bug Reporting Tool (abrtd) |
disable |
via systemctl |
The Automatic Bug Reporting Tool (abrtd) daemon collects and reports crash data when an application crash is detected. Using a variety of plugins, abrtd can email crash reports to system administrators, log crash reports to files, or forward crash reports to a centralized issue tracking system such as RHTSupport. The abrtd service can be disabled with the following command: $ sudo systemctl disable abrtd.service The abrtd service can be masked with the following command: $ sudo systemctl mask abrtd.service |
Mishandling crash data could expose sensitive information about vulnerabilities in software executing on the system, as well as sensitive information from within a process's address space or registers. |
medium |
CM-6(a),CM-7(a) |
NaN |
NaN |
NaN |
Base Services |
| CCE-82455-7 |
Disable Network Console (netconsole) |
disable |
via systemctl |
The netconsole service is responsible for loading the netconsole kernel module, which logs kernel printk messages over UDP to a syslog server. This allows debugging of problems where disk logging fails and serial consoles are impractical. The netconsole service can be disabled with the following command: $ sudo systemctl disable netconsole.service The netconsole service can be masked with the following command: $ sudo systemctl mask netconsole.service |
The netconsole service is not necessary unless there is a need to debug kernel panics, which is not common. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-82405-2 |
Disable Red Hat Network Service (rhnsd) |
disable |
via systemctl |
The Red Hat Network service automatically queries Red Hat Network servers to determine whether there are any actions that should be executed, such as package updates. This only occurs if the system was registered to an RHN server or satellite and managed as such. The rhnsd service can be disabled with the following command: $ sudo systemctl disable rhnsd.service The rhnsd service can be masked with the following command: $ sudo systemctl mask rhnsd.service |
Although systems management and patching is extremely important to system security, management by a system outside the enterprise enclave is not desirable for some environments. However, if the system is being managed by RHN or RHN Satellite Server the rhnsd daemon can remain on. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
1.2.2 |
NaN |
Base Services |
| CCE-82406-0 |
Disable Quota Netlink (quota_nld) |
disable |
via systemctl |
The quota_nld service provides notifications to users of disk space quota violations. It listens to the kernel via a netlink socket for disk quota violations and notifies the appropriate user of the violation using D-Bus or by sending a message to the terminal that the user has last accessed. The quota_nld service can be disabled with the following command: $ sudo systemctl disable quota_nld.service The quota_nld service can be masked with the following command: $ sudo systemctl mask quota_nld.service |
If disk quotas are enforced on the local system, then the quota_nld service likely provides useful functionality and should remain enabled. However, if disk quotas are not used or user notification of disk quota violation is not desired then there is no need to run this service. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-82407-8 |
Disable Advanced Configuration and Power Interface (acpid) |
disable |
via systemctl |
The Advanced Configuration and Power Interface Daemon (acpid) dispatches ACPI events (such as power/reset button depressed) to userspace programs. The acpid service can be disabled with the following command: $ sudo systemctl disable acpid.service The acpid service can be masked with the following command: $ sudo systemctl mask acpid.service |
ACPI support is highly desirable for systems in some network roles, such as laptops or desktops. For other systems, such as servers, it may permit accidental or trivially achievable denial of service situations and disabling it is appropriate. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Base Services |
| CCE-82189-2 |
Uninstall squid Package |
remove |
via yum |
The squid package can be removed with the following command: $ sudo yum erase squid |
If there is no need to make the proxy server software available, removing it provides a safeguard against its activation. |
unknown |
NaN |
NaN |
2.2.6 |
NaN |
Disable Squid if Possible |
| CCE-82190-0 |
Disable Squid |
disable |
via systemctl |
The squid service can be disabled with the following command: $ sudo systemctl disable squid.service The squid service can be masked with the following command: $ sudo systemctl mask squid.service |
Running proxy server software provides a network-based avenue of attack, and should be removed if not needed. |
unknown |
NaN |
NaN |
2.2.13 |
NaN |
Disable Squid if Possible |
| CCE-82861-6 |
Disable the CUPS Service |
disable |
via systemctl |
The cups service can be disabled with the following command: $ sudo systemctl disable cups.service The cups service can be masked with the following command: $ sudo systemctl mask cups.service |
Turn off unneeded services to reduce attack surface. |
unknown |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.2.16 |
NaN |
Print Support |
| CCE-82444-1 |
Install the SSSD Package |
install |
via yum |
The sssd package should be installed. The sssd package can be installed with the following command: $ sudo yum install sssd |
NaN |
medium |
CM-6(a) |
NaN |
NaN |
NaN |
System Security Services Daemon |
| CCE-82994-5 |
Install sssd-ipa Package |
install |
via yum |
The sssd-ipa package can be installed with the following command: $ sudo yum install sssd-ipa |
sssd-ipa provides the IPA back end that the SSSD can utilize to fetch identity data from and authenticate against an IPA server. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
System Security Services Daemon |
| CCE-82440-9 |
Enable the SSSD Service |
enable |
via systemctl |
The SSSD service should be enabled. The sssd service can be enabled with the following command: $ sudo systemctl enable sssd.service |
NaN |
medium |
CM-6(a),IA-5(10) |
NaN |
NaN |
NaN |
System Security Services Daemon |
| CCE-82442-5 |
Configure SSSD to Expire SSH Known Hosts |
180 |
via /etc/sssd/sssd.conf |
SSSD should be configured to expire keys from known SSH hosts after seconds. To configure SSSD to known SSH hosts, set ssh_known_hosts_timeout to under the [ssh] section in /etc/sssd/sssd.conf. For example: [ssh] ssh_known_hosts_timeout = |
If cached authentication information is out-of-date, the validity of the authentication information may be questionable. |
medium |
CM-6(a),IA-5(13) |
NaN |
NaN |
SRG-OS-000383-GPOS-00166 |
System Security Services Daemon |
| CCE-80909-5 |
Enable Smartcards in SSSD |
True |
via /etc/sssd/sssd.conf |
SSSD should be configured to authenticate access to the system using smart cards. To enable smart cards in SSSD, set pam_cert_auth to true under the [pam] section in /etc/sssd/sssd.conf. For example: [pam] pam_cert_auth = true |
Using an authentication device, such as a CAC or token that is separate from the information system, ensures that even if the information system is compromised, that compromise will not affect credentials stored on the authentication device. Multifactor solutions that require devices separate from information systems gaining access include, for example, hardware tokens providing time-based or challenge-response authenticators and smart cards such as the U.S. Government Personal Identity Verification card and the DoD Common Access Card. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000375-GPOS-00160 |
System Security Services Daemon |
| CCE-80910-3 |
Configure SSSD's Memory Cache to Expire |
300 |
via /etc/sssd/sssd.conf |
SSSD's memory cache should be configured to set to expire records after seconds. To configure SSSD to expire memory cache, set memcache_timeout to under the [nss] section in /etc/sssd/sssd.conf. For example: [nss] memcache_timeout = |
If cached authentication information is out-of-date, the validity of the authentication information may be questionable. |
medium |
CM-6(a),IA-5(13) |
NaN |
NaN |
SRG-OS-000383-GPOS-00166 |
System Security Services Daemon |
| CCE-82460-7 |
Configure SSSD to Expire Offline Credentials |
True |
via /etc/sssd/sssd.conf |
SSSD should be configured to expire offline credentials after 1 day. To configure SSSD to expire offline credentials, set offline_credentials_expiration to 1 under the [pam] section in /etc/sssd/sssd.conf. For example: [pam] offline_credentials_expiration = 1 |
If cached authentication information is out-of-date, the validity of the authentication information may be questionable. |
medium |
CM-6(a),IA-5(13) |
NaN |
NaN |
SRG-OS-000383-GPOS-00166 |
System Security Services Daemon |
| CCE-82446-6 |
Configure PAM in SSSD Services |
configure |
via /etc/sssd/sssd.conf |
SSSD should be configured to run SSSD pam services. To configure SSSD to known SSH hosts, add pam to services under the [sssd] section in /etc/sssd/sssd.conf. For example: [sssd] services = sudo, autofs, pam |
Using an authentication device, such as a CAC or token that is separate from the information system, ensures that even if the information system is compromised, that compromise will not affect credentials stored on the authentication device. |
medium |
CM-6(a),IA-2(1) |
NaN |
NaN |
SRG-OS-000375-GPOS-00160,SRG-OS-000375-GPOS-00161,SRG-OS-000375-GPOS-00162 |
System Security Services Daemon |
| CCE-82438-3 |
Configure SSSD LDAP Backend Client CA Certificate |
configure |
via /etc/sssd/sssd.conf |
Configure SSSD to implement cryptography to protect the integrity of LDAP remote access sessions. By setting the ldap_tls_cacert option in /etc/sssd/sssd.conf to point to the path for the X.509 certificates used for peer authentication. ldap_tls_cacert /path/to/tls/ca.cert |
Without cryptographic integrity protections, information can be altered by unauthorized users without detection. Cryptographic mechanisms used for protecting the integrity of information include, for example, signed hash functions using asymmetric cryptography enabling distribution of the public key to verify the hash information while maintaining the confidentiality of the key used to generate the hash. |
medium |
CM-6(a),SC-12(3) |
NaN |
NaN |
SRG-OS-000250-GPOS-00093 |
System Security Services Daemon (SSSD) - LDAP |
| CCE-82456-5 |
Configure SSSD LDAP Backend Client CA Certificate Location |
configure |
via /etc/sssd/sssd.conf |
Configure SSSD to implement cryptography to protect the integrity of LDAP remote access sessions. By setting the ldap_tls_cacertdir option in /etc/sssd/sssd.conf to point to the path for the X.509 certificates used for peer authentication. ldap_tls_cacertdir /path/to/tls/cacert |
Without cryptographic integrity protections, information can be altered by unauthorized users without detection. Cryptographic mechanisms used for protecting the integrity of information include, for example, signed hash functions using asymmetric cryptography enabling distribution of the public key to verify the hash information while maintaining the confidentiality of the key used to generate the hash. |
medium |
CM-6(a),SC-12(3) |
NaN |
NaN |
SRG-OS-000250-GPOS-00093 |
System Security Services Daemon (SSSD) - LDAP |
| CCE-82437-5 |
Configure SSSD LDAP Backend to Use TLS For All Transactions |
True |
via /etc/sssd/sssd.conf |
The LDAP client should be configured to implement TLS for the integrity of all remote LDAP authentication sessions. If the id_provider is set to ldap or ipa in /etc/sssd/sssd.conf or any of the /etc/sssd/sssd.conf.d configuration files, ldap_id_use_start_tls must be set to true. To check if LDAP is configured to use TLS when id_provider is set to ldap or ipa, use the following command: $ sudo grep -i ldap_id_use_start_tls /etc/sssd/sssd.conf |
Without cryptographic integrity protections, information can be altered by unauthorized users without detection. The ssl directive specifies whether to use TLS or not. If not specified it will default to no. It should be set to start_tls rather than doing LDAP over SSL. |
high |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000250-GPOS-00093 |
System Security Services Daemon (SSSD) - LDAP |
| CCE-82831-9 |
Enable the Hardware RNG Entropy Gatherer Service |
enable |
via systemctl |
The Hardware RNG Entropy Gatherer service should be enabled. The rngd service can be enabled with the following command: $ sudo systemctl enable rngd.service |
The rngd service feeds random data from hardware device to kernel random device. |
medium |
NaN |
FCS_RBG_EXT.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Hardware RNG Entropy Gatherer Daemon |
| CCE-83335-0 |
Ensure rsyncd service is diabled |
disable |
via systemctl |
The rsyncd service can be disabled with the following command: $ sudo systemctl disable rsyncd.service The rsyncd service can be masked with the following command: $ sudo systemctl mask rsyncd.service |
The rsyncd service presents a security risk as it uses unencrypted protocols for communication. |
medium |
NaN |
NaN |
2.2.3 |
NaN |
Obsolete Services |
| CCE-82432-6 |
Uninstall ypserv Package |
remove |
via yum |
The ypserv package can be removed with the following command: $ sudo yum erase ypserv |
The NIS service provides an unencrypted authentication service which does not provide for the confidentiality and integrity of user passwords or the remote session. Removing the ypserv package decreases the risk of the accidental (or intentional) activation of NIS or NIS+ services. |
high |
CM-6(a),CM-7(a),CM-7(b),IA-5(1)(c) |
NaN |
2.2.16 |
SRG-OS-000095-GPOS-00049 |
NIS |
| CCE-82181-9 |
Remove NIS Client |
remove |
via yum |
The Network Information Service (NIS), formerly known as Yellow Pages, is a client-server directory service protocol used to distribute system configuration files. The NIS client (ypbind) was used to bind a system to an NIS server and receive the distributed configuration files. |
The NIS service is inherently an insecure system that has been vulnerable to DOS attacks, buffer overflows and has poor authentication for querying NIS maps. NIS generally has been replaced by such protocols as Lightweight Directory Access Protocol (LDAP). It is recommended that the service be removed. |
unknown |
NaN |
NaN |
2.3.1 |
NaN |
NIS |
| CCE-82433-4 |
Disable ypbind Service |
disable |
via systemctl |
The ypbind service, which allows the system to act as a client in a NIS or NIS+ domain, should be disabled. The ypbind service can be disabled with the following command: $ sudo systemctl disable ypbind.service The ypbind service can be masked with the following command: $ sudo systemctl mask ypbind.service |
Disabling the ypbind service ensures the system is not acting as a client in a NIS or NIS+ domain. This service should be disabled unless in use. |
medium |
CM-6(a),CM-7(a),CM-7(b),IA-5(1)(c) |
NaN |
NaN |
NaN |
NIS |
| CCE-80850-1 |
Uninstall xinetd Package |
remove |
via yum |
The xinetd package can be removed with the following command: $ sudo yum erase xinetd |
Removing the xinetd package decreases the risk of the xinetd service's accidental (or intentional) activation. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.1.1 |
NaN |
Xinetd |
| CCE-80888-1 |
Disable xinetd Service |
disable |
via systemctl |
The xinetd service can be disabled with the following command: $ sudo systemctl disable xinetd.service The xinetd service can be masked with the following command: $ sudo systemctl mask xinetd.service |
The xinetd service provides a dedicated listener service for some programs, which is no longer necessary for commonly-used network services. Disabling it ensures that these uncommon services are not running, and also prevents attacks against xinetd itself. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.1.7 |
NaN |
Xinetd |
| CCE-82436-7 |
Uninstall tftp-server Package |
remove |
via yum |
The tftp-server package can be removed with the following command: $ sudo yum erase tftp-server |
Removing the tftp-server package decreases the risk of the accidental (or intentional) activation of tftp services. If TFTP is required for operational support (such as transmission of router configurations), its use must be documented with the Information Systems Securty Manager (ISSM), restricted to only authorized personnel, and have access control rules established. |
high |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
TFTP Server |
| CCE-82435-9 |
Disable tftp Service |
disable |
via systemctl |
The tftp service should be disabled. The tftp service can be disabled with the following command: $ sudo systemctl disable tftp.service The tftp service can be masked with the following command: $ sudo systemctl mask tftp.service |
Disabling the tftp service ensures the system is not acting as a TFTP server, which does not provide encryption or authentication. |
high |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.1.6 |
NaN |
TFTP Server |
| CCE-82434-2 |
Ensure tftp Daemon Uses Secure Mode |
configure |
via /etc/xinetd.d/tftp |
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: server_args = -s |
Using the -s option causes the TFTP service to only serve files from the given directory. Serving files from an intentionally-specified directory reduces the risk of sharing files which should remain private. |
high |
AC-6,CM-6(b),CM-7(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
TFTP Server |
| CCE-80849-3 |
Remove telnet Clients |
remove |
via yum |
The telnet client allows users to start connections to other systems via the telnet protocol. |
The telnet protocol is insecure and unencrypted. The use of an unencrypted transmission medium could allow an unauthorized user to steal credentials. The ssh package provides an encrypted session and stronger security and is included in Red Hat Enterprise Linux 8. |
low |
NaN |
NaN |
2.3.2 |
NaN |
Telnet |
| CCE-82182-7 |
Uninstall telnet-server Package |
remove |
via yum |
The telnet-server package can be removed with the following command: $ sudo yum erase telnet-server |
It is detrimental for operating systems to provide, or install by default, functionality exceeding requirements or mission objectives. These unnecessary capabilities are often overlooked and therefore may remain unsecure. They increase the risk to the platform by providing additional attack vectors. The telnet service provides an unencrypted remote access service which does not provide for the confidentiality and integrity of user passwords or the remote session. If a privileged user were to login using this service, the privileged user password could be compromised. Removing the telnet-server package decreases the risk of the telnet service's accidental (or intentional) activation. |
high |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.1.1 |
SRG-OS-000095-GPOS-00049 |
Telnet |
| CCE-80887-3 |
Disable telnet Service |
disable |
via systemctl |
The telnet service configuration file /etc/xinetd.d/telnet is not created automatically. If it was created manually, check the /etc/xinetd.d/telnet file and ensure that disable = no is changed to read disable = yes as follows below: # description: The telnet server serves telnet sessions; it uses \\ # unencrypted username/password pairs for authentication. service telnet { flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USERID disable = yes } If the /etc/xinetd.d/telnet file does not exist, make sure that the activation of the telnet service on system boot is disabled via the following command: The rexec socket can be disabled with the following command: $ sudo systemctl disable rexec.socket The rexec socket can be masked with the following command: $ sudo systemctl mask .socket |
The telnet protocol uses unencrypted network communication, which means that data from the login session, including passwords and all other information transmitted during the session, can be stolen by eavesdroppers on the network. The telnet protocol is also subject to man-in-the-middle attacks. |
high |
CM-6(a),CM-7(a),CM-7(b),IA-5(1)(c) |
NaN |
2.2.18 |
NaN |
Telnet |
| CCE-82183-5 |
Uninstall rsh Package |
remove |
via yum |
The rsh package contains the client commands for the rsh services |
These legacy clients contain numerous security exposures and have been replaced with the more secure SSH package. Even if the server is removed, it is best to ensure the clients are also removed to prevent users from inadvertently attempting to use these commands and therefore exposing their credentials. Note that removing the rsh package removes the clients for rsh,rcp, and rlogin. |
unknown |
NaN |
NaN |
2.3.2 |
NaN |
Rlogin, Rsh, and Rexec |
| CCE-82184-3 |
Uninstall rsh-server Package |
remove |
via yum |
The rsh-server package can be removed with the following command: $ sudo yum erase rsh-server |
The rsh-server service provides unencrypted remote access service which does not provide for the confidentiality and integrity of user passwords or the remote session and has very weak authentication. If a privileged user were to login using this service, the privileged user password could be compromised. The rsh-server package provides several obsolete and insecure network services. Removing it decreases the risk of those services' accidental (or intentional) activation. |
high |
CM-6(a),CM-7(a),CM-7(b),IA-5(1)(c) |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
Rlogin, Rsh, and Rexec |
| CCE-80885-7 |
Disable rlogin Service |
disable |
via systemctl |
The rlogin service, which is available with the rsh-server package and runs as a service through xinetd or separately as a systemd socket, should be disabled. If using xinetd, set disable to yes in /etc/xinetd.d/rlogin. The rlogin socket can be disabled with the following command: $ sudo systemctl disable rlogin.socket The rlogin socket can be masked with the following command: $ sudo systemctl mask .socket |
The rlogin service uses unencrypted network communications, which means that data from the login session, including passwords and all other information transmitted during the session, can be stolen by eavesdroppers on the network. |
high |
CM-6(a),CM-7(a),CM-7(b),IA-5(1)(c) |
NaN |
2.2.17 |
NaN |
Rlogin, Rsh, and Rexec |
| CCE-82431-8 |
Disable rsh Service |
disable |
via systemctl |
The rsh service, which is available with the rsh-server package and runs as a service through xinetd or separately as a systemd socket, should be disabled. If using xinetd, set disable to yes in /etc/xinetd.d/rsh. The rsh socket can be disabled with the following command: $ sudo systemctl disable rsh.socket The rsh socket can be masked with the following command: $ sudo systemctl mask .socket |
The rsh service uses unencrypted network communications, which means that data from the login session, including passwords and all other information transmitted during the session, can be stolen by eavesdroppers on the network. |
high |
CM-6(a),CM-7(a),CM-7(b),IA-5(1)(c) |
NaN |
2.2.17 |
NaN |
Rlogin, Rsh, and Rexec |
| CCE-80884-0 |
Disable rexec Service |
disable |
via systemctl |
The rexec service, which is available with the rsh-server package and runs as a service through xinetd or separately as a systemd socket, should be disabled. If using xinetd, set disable to yes in /etc/xinetd.d/rexec. The rexec socket can be disabled with the following command: $ sudo systemctl disable rexec.socket The rexec socket can be masked with the following command: $ sudo systemctl mask .socket |
The rexec service uses unencrypted network communications, which means that data from the login session, including passwords and all other information transmitted during the session, can be stolen by eavesdroppers on the network. |
high |
CM-6(a),CM-7(a),CM-7(b),IA-5(1)(c) |
NaN |
2.2.17 |
NaN |
Rlogin, Rsh, and Rexec |
| CCE-80842-8 |
Remove Rsh Trust Files |
delete |
via rm |
The files /etc/hosts.equiv and ~/.rhosts (in each user's home directory) list remote hosts and users that are trusted by the local system when using the rshd daemon. To remove these files, run the following command to delete them from any location: $ sudo rm /etc/hosts.equiv $ rm ~/.rhosts |
This action is only meaningful if .rhosts support is permitted through PAM. Trust files are convenient, but when used in conjunction with the R-services, they can allow unauthenticated access to a system. |
high |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
6.2.13 |
NaN |
Rlogin, Rsh, and Rexec |
| CCE-82180-1 |
Uninstall talk-server Package |
remove |
via yum |
The talk-server package can be removed with the following command: $ sudo yum erase talk-server |
The talk software presents a security risk as it uses unencrypted protocols for communications. Removing the talk-server package decreases the risk of the accidental (or intentional) activation of talk services. |
medium |
NaN |
NaN |
2.2.21 |
NaN |
Chat/Messaging Services |
| CCE-80848-5 |
Uninstall talk Package |
remove |
via yum |
The talk package contains the client program for the Internet talk protocol, which allows the user to chat with other users on different systems. Talk is a communication program which copies lines from one terminal to the terminal of another user. The talk package can be removed with the following command: $ sudo yum erase talk |
The talk software presents a security risk as it uses unencrypted protocols for communications. Removing the talk package decreases the risk of the accidental (or intentional) activation of talk client program. |
medium |
NaN |
NaN |
2.3.3 |
NaN |
Chat/Messaging Services |
| CCE-82188-4 |
Disable Avahi Server Software |
disable |
via systemctl |
The avahi-daemon service can be disabled with the following command: $ sudo systemctl disable avahi-daemon.service The avahi-daemon service can be masked with the following command: $ sudo systemctl mask avahi-daemon.service |
Because the Avahi daemon service keeps an open network port, it is subject to network attacks. Its functionality is convenient but is only appropriate if the local network can be trusted. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.2.4 |
NaN |
Disable Avahi Server if Possible |
| CCE-82377-3 |
Check Avahi Responses' TTL Field |
yes |
via /etc/avahi/avahi-daemon.conf |
To make Avahi ignore packets unless the TTL field is 255, edit /etc/avahi/avahi-daemon.conf and ensure the following line appears in the [server] section: check-response-ttl=yes |
This helps to ensure that only mDNS responses from the local network are processed, because the TTL field in a packet is decremented from its initial value of 255 whenever it is routed from one network to another. Although a properly-configured router or firewall should not allow mDNS packets into the local network at all, this option provides another check to ensure they are not permitted. |
low |
CM-6(a) |
NaN |
NaN |
NaN |
Configure Avahi if Necessary |
| CCE-82375-7 |
Restrict Information Published by Avahi |
configure |
via /etc/avahi/avahi-daemon.conf |
If it is necessary to publish some information to the network, it should not be joined by any extraneous information, or by information supplied by a non-trusted source on the system. Prevent user applications from using Avahi to publish services by adding or correcting the following line in the [publish] section: disable-user-service-publishing=yes Implement as many of the following lines as possible, to restrict the information published by Avahi. publish-addresses=no publish-hinfo=no publish-workstation=no publish-domain=no Inspect the files in the directory /etc/avahi/services/. Unless there is an operational need to publish information about each of these services, delete the corresponding file. |
These options prevent publishing attempts from succeeding, and can be applied even if publishing is disabled entirely via disable-publishing. Alternatively, these can be used to restrict the types of published information in the event that some information must be published. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Configure Avahi if Necessary |
| CCE-82376-5 |
Prevent Other Programs from Using Avahi's Port |
yes |
via /etc/avahi/avahi-daemon.conf |
To prevent other mDNS stacks from running, edit /etc/avahi/avahi-daemon.conf and ensure the following line appears in the [server] section: disallow-other-stacks=yes |
This helps ensure that only Avahi is responsible for mDNS traffic coming from that port on the system. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Configure Avahi if Necessary |
| CCE-82378-1 |
Serve Avahi Only via Required Protocol |
no |
via /etc/avahi/avahi-daemon.conf |
If you are using only IPv4, edit /etc/avahi/avahi-daemon.conf and ensure the following line exists in the [server] section: use-ipv6=no Similarly, if you are using only IPv6, disable IPv4 sockets with the line: use-ipv4=no |
NaN |
low |
CM-6(a) |
NaN |
NaN |
NaN |
Configure Avahi if Necessary |
| CCE-82372-4 |
Disable Avahi Publishing |
yes |
via /etc/avahi/avahi-daemon.conf |
To prevent Avahi from publishing its records, edit /etc/avahi/avahi-daemon.conf and ensure the following line appears in the [publish] section: disable-publishing=yes |
This helps ensure that no record will be published by Avahi. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Configure Avahi if Necessary |
| CCE-82932-5 |
Uninstall nfs-utils Package |
remove |
via yum |
The nfs-utils package can be removed with the following command: $ sudo yum erase nfs-utils |
nfs-utils provides a daemon for the kernel NFS server and related tools. This package also contains the showmount program. showmount queries the mount daemon on a remote host for information about the Network File System (NFS) server on the remote host. For example, showmount can display the clients which are mounted on that host. |
low |
NaN |
NaN |
NaN |
SRG-OS-000095-GPOS-00049 |
NFS and RPC |
| CCE-80924-4 |
Use Kerberos Security on All Exports |
krb5:krb5i:krb5p |
via /etc/exports |
Using Kerberos on all exported mounts prevents a malicious client or user from impersonating a system user. To cryptography authenticate users to the NFS server, add sec=krb5:krb5i:krb5p to each export in /etc/exports. |
When an NFS server is configured to use AUTH_SYS a selected userid and groupid are used to handle requests from the remote user. The userid and groupid could mistakenly or maliciously be set incorrectly. The AUTH_GSS method of authentication uses certificates on the server and client systems to more securely authenticate the remote mount request. |
medium |
AC-17(a),CM-6(a),CM-7(a),CM-7(b),IA-2,IA-2(8),IA-2(9) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure NFS Servers |
| CCE-82858-2 |
Disable rpcbind Service |
disable |
via systemctl |
The rpcbind utility maps RPC services to the ports on which they listen. RPC processes notify rpcbind when they start, registering the ports they are listening on and the RPC program numbers they expect to serve. The rpcbind service redirects the client to the proper port number so it can communicate with the requested service. If the system does not require RPC (such as for NFS servers) then this service should be disabled. The rpcbind service can be disabled with the following command: $ sudo systemctl disable rpcbind.service The rpcbind service can be masked with the following command: $ sudo systemctl mask rpcbind.service |
If the system does not require rpc based services, it is recommended that rpcbind be disabled to reduce the attack surface. |
low |
NaN |
NaN |
2.2.13 |
NaN |
Disable Services Used Only by NFS |
| CCE-82762-6 |
Disable Network File System (nfs) |
disable |
via systemctl |
The Network File System (NFS) service allows remote hosts to mount and interact with shared filesystems on the local system. If the local system is not designated as a NFS server then this service should be disabled. The nfs service can be disabled with the following command: $ sudo systemctl disable nfs.service The nfs service can be masked with the following command: $ sudo systemctl mask nfs.service |
Unnecessary services should be disabled to decrease the attack surface of the system. |
unknown |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.2.12 |
NaN |
Disable NFS Server Daemons |
| CCE-82752-7 |
Remove the FreeRadius Server Package |
remove |
via yum |
The freeradius package should be removed if not in use. Is this system a RADIUS server? If not, remove the package. The freeradius package can be removed with the following command: $ sudo yum erase freeradius The freeradius RPM is not installed by default on a Red Hat Enterprise Linux 8 system. It is needed only by the RADIUS servers, not by the clients which use RADIUS for authentication. If the system is not intended for use as a RADIUS Server it should be removed. |
Unnecessary packages should not be installed to decrease the attack surface of the system. While this software is clearly essential on a RADIUS server, it is not necessary on typical desktop or workstation systems. |
low |
NaN |
NaN |
NaN |
NaN |
Remote Authentication Dial-In User Service (RADIUS) |
| CCE-82760-0 |
Disable Dovecot Service |
disable |
via systemctl |
The dovecot service can be disabled with the following command: $ sudo systemctl disable dovecot.service The dovecot service can be masked with the following command: $ sudo systemctl mask dovecot.service |
Running an IMAP or POP3 server provides a network-based avenue of attack, and should be disabled if not needed. |
unknown |
NaN |
NaN |
2.2.8 |
NaN |
Disable Dovecot |
| CCE-80875-8 |
Enable cron Service |
enable |
via systemctl |
The crond service is used to execute commands at preconfigured times. It is required by almost all systems to perform necessary maintenance tasks, such as notifying root of system activity. The crond service can be enabled with the following command: $ sudo systemctl enable crond.service |
Due to its usage for maintenance and security-supporting tasks, enabling the cron daemon is essential. |
medium |
CM-6(a) |
NaN |
5.1.1 |
NaN |
Cron and At Daemons |
| CCE-80871-7 |
Disable At Service (atd) |
disable |
via systemctl |
The at and batch commands can be used to schedule tasks that are meant to be executed only once. This allows delayed execution in a manner similar to cron, except that it is not recurring. The daemon atd keeps track of tasks scheduled via at and batch, and executes them at the specified time. The atd service can be disabled with the following command: $ sudo systemctl disable atd.service The atd service can be masked with the following command: $ sudo systemctl mask atd.service |
The atd service could be used by an unsophisticated insider to carry out activities outside of a normal login session, which could complicate accountability. Furthermore, the need to schedule tasks with at or batch is not common. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Cron and At Daemons |
| CCE-82256-9 |
Verify Group Who Owns cron.monthly |
root |
via chgrp |
To properly set the group owner of /etc/cron.monthly, run the command: $ sudo chgrp root /etc/cron.monthly |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct group to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.6 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82234-6 |
Verify Group Who Owns cron.daily |
root |
via chgrp |
To properly set the group owner of /etc/cron.daily, run the command: $ sudo chgrp root /etc/cron.daily |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct group to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.4 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82277-5 |
Verify Permissions on cron.d |
700 |
via chmod |
To properly set the permissions of /etc/cron.d, run the command: $ sudo chmod 0700 /etc/cron.d |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should have the correct access rights to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.7 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82272-6 |
Verify Owner on cron.d |
root |
via chown |
To properly set the owner of /etc/cron.d, run the command: $ sudo chown root /etc/cron.d |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct user to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.7 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82237-9 |
Verify Owner on cron.daily |
root |
via chown |
To properly set the owner of /etc/cron.daily, run the command: $ sudo chown root /etc/cron.daily |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct user to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.4 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82206-4 |
Verify Permissions on crontab |
600 |
via chmod |
To properly set the permissions of /etc/crontab, run the command: $ sudo chmod 0600 /etc/crontab |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should have the correct access rights to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.2 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82230-4 |
Verify Permissions on cron.hourly |
700 |
via chmod |
To properly set the permissions of /etc/cron.hourly, run the command: $ sudo chmod 0700 /etc/cron.hourly |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should have the correct access rights to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.3 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82244-5 |
Verify Group Who Owns cron.weekly |
root |
via chgrp |
To properly set the group owner of /etc/cron.weekly, run the command: $ sudo chgrp root /etc/cron.weekly |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct group to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.5 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82209-8 |
Verify Owner on cron.hourly |
root |
via chown |
To properly set the owner of /etc/cron.hourly, run the command: $ sudo chown root /etc/cron.hourly |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct user to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.3 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82268-4 |
Verify Group Who Owns cron.d |
root |
via chgrp |
To properly set the group owner of /etc/cron.d, run the command: $ sudo chgrp root /etc/cron.d |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct group to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.7 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82223-9 |
Verify Group Who Owns Crontab |
root |
via chgrp |
To properly set the group owner of /etc/crontab, run the command: $ sudo chgrp root /etc/crontab |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct group to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.2 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82224-7 |
Verify Owner on crontab |
root |
via chown |
To properly set the owner of /etc/crontab, run the command: $ sudo chown root /etc/crontab |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct user to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.2 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82247-8 |
Verify Owner on cron.weekly |
root |
via chown |
To properly set the owner of /etc/cron.weekly, run the command: $ sudo chown root /etc/cron.weekly |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct user to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.5 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82240-3 |
Verify Permissions on cron.daily |
700 |
via chmod |
To properly set the permissions of /etc/cron.daily, run the command: $ sudo chmod 0700 /etc/cron.daily |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should have the correct access rights to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.4 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82260-1 |
Verify Owner on cron.monthly |
root |
via chown |
To properly set the owner of /etc/cron.monthly, run the command: $ sudo chown root /etc/cron.monthly |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct user to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.6 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82253-6 |
Verify Permissions on cron.weekly |
700 |
via chmod |
To properly set the permissions of /etc/cron.weekly, run the command: $ sudo chmod 0700 /etc/cron.weekly |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should have the correct access rights to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.5 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82263-5 |
Verify Permissions on cron.monthly |
700 |
via chmod |
To properly set the permissions of /etc/cron.monthly, run the command: $ sudo chmod 0700 /etc/cron.monthly |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should have the correct access rights to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.6 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82227-0 |
Verify Group Who Owns cron.hourly |
root |
via chgrp |
To properly set the group owner of /etc/cron.hourly, run the command: $ sudo chgrp root /etc/cron.hourly |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct group to prevent unauthorized changes. |
medium |
AC-6(1),CM-6(a) |
NaN |
5.1.3 |
SRG-OS-000480-GPOS-00227 |
Cron and At Daemons |
| CCE-82761-8 |
Disable httpd Service |
disable |
via systemctl |
The httpd service can be disabled with the following command: $ sudo systemctl disable httpd.service The httpd service can be masked with the following command: $ sudo systemctl mask httpd.service |
Running web server software provides a network-based avenue of attack, and should be disabled if not needed. |
unknown |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.2.9 |
NaN |
Disable Apache if Possible |
| CCE-83303-8 |
Install the OpenSSH Server Package |
install |
via yum |
The openssh-server package should be installed. The openssh-server package can be installed with the following command: $ sudo yum install openssh-server |
Without protection of the transmitted information, confidentiality, and integrity may be compromised because unprotected communications can be intercepted and either read or altered. |
medium |
CM-6(a) |
FIA_UAU.5,FTP_ITC_EXT.1 |
NaN |
SRG-OS-000423-GPOS-00187,SRG-OS-000424-GPOS-00188,SRG-OS-000425-GPOS-00189,SRG-OS-000426-GPOS-00190 |
SSH Server |
| CCE-82722-0 |
Install OpenSSH client software |
install |
via yum |
The openssh-clients package can be installed with the following command: $ sudo yum install openssh-clients |
This package includes utilities to make encrypted connections and transfer files securely to SSH servers. |
medium |
NaN |
FIA_UAU.5,FTP_ITC_EXT.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
SSH Server |
| CCE-82426-8 |
Enable the OpenSSH Service |
enable |
via systemctl |
The SSH server service, sshd, is commonly needed. The sshd service can be enabled with the following command: $ sudo systemctl enable sshd.service |
Without protection of the transmitted information, confidentiality, and integrity may be compromised because unprotected communications can be intercepted and either read or altered. This checklist item applies to both internal and external networks and all types of information system components from which information can be transmitted (e.g., servers, mobile devices, notebook computers, printers, copiers, scanners, etc). Communication paths outside the physical protection of a controlled boundary are exposed to the possibility of interception and modification. |
medium |
CM-6(a),SC-8,SC-8(1),SC-8(2),SC-8(3),SC-8(4) |
NaN |
NaN |
SRG-OS-000423-GPOS-00187,SRG-OS-000423-GPOS-00188,SRG-OS-000423-GPOS-00189,SRG-OS-000423-GPOS-00190 |
SSH Server |
| CCE-82901-0 |
Verify Group Who Owns SSH Server config file |
root |
via chgrp |
To properly set the group owner of /etc/ssh/sshd_config, run the command: $ sudo chgrp root /etc/ssh/sshd_config |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct group to prevent unauthorized changes. |
medium |
AC-17(a),AC-6(1),CM-6(a) |
NaN |
5.2.1 |
SRG-OS-000480-GPOS-00227 |
SSH Server |
| CCE-82898-8 |
Verify Owner on SSH Server config file |
root |
via chown |
To properly set the owner of /etc/ssh/sshd_config, run the command: $ sudo chown root /etc/ssh/sshd_config |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct group to prevent unauthorized changes. |
medium |
AC-17(a),AC-6(1),CM-6(a) |
NaN |
5.2.1 |
SRG-OS-000480-GPOS-00227 |
SSH Server |
| CCE-82424-3 |
Verify Permissions on SSH Server Private *_key Key Files |
640 |
via chmod |
To properly set the permissions of /etc/ssh/*_key, run the command: $ sudo chmod 0640 /etc/ssh/*_key |
If an unauthorized user obtains the private SSH host key file, the host could be impersonated. |
medium |
AC-17(a),AC-6(1),CM-6(a) |
NaN |
5.2.3 |
SRG-OS-000480-GPOS-00227 |
SSH Server |
| CCE-82894-7 |
Verify Permissions on SSH Server config file |
600 |
via chmod |
To properly set the permissions of /etc/ssh/sshd_config, run the command: $ sudo chmod 0600 /etc/ssh/sshd_config |
Service configuration files enable or disable features of their respective services that if configured incorrectly can lead to insecure and vulnerable configurations. Therefore, service configuration files should be owned by the correct group to prevent unauthorized changes. |
medium |
AC-17(a),AC-6(1),CM-6(a) |
NaN |
5.2.1 |
SRG-OS-000480-GPOS-00227 |
SSH Server |
| CCE-82428-4 |
Verify Permissions on SSH Server Public *.pub Key Files |
644 |
via chmod |
To properly set the permissions of /etc/ssh/*.pub, run the command: $ sudo chmod 0644 /etc/ssh/*.pub |
If a public host key file is modified by an unauthorized user, the SSH service may be compromised. |
medium |
AC-17(a),AC-6(1),CM-6(a) |
NaN |
5.2.4 |
SRG-OS-000480-GPOS-00227 |
SSH Server |
| CCE-80904-6 |
Enable Use of Strict Mode Checking |
yes |
/etc/ssh/sshd_config |
SSHs StrictModes option checks file and ownership permissions in the user's home directory .ssh folder before accepting login. If world- writable permissions are found, logon is rejected. To enable StrictModes in SSH, add or correct the following line in the /etc/ssh/sshd_config file: StrictModes yes |
If other users have access to modify user-specific SSH configuration files, they may be able to log into the system as another user. |
medium |
AC-17(a),AC-6,CM-6(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-80906-1 |
Set SSH Idle Timeout Interval |
600 |
/etc/ssh/sshd_config |
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 The timeout interval is given in seconds. For example, have a timeout of 10 minutes, set interval to 600. If a shorter timeout has already been set for the login shell, that value will preempt any SSH setting made in /etc/ssh/sshd_config. Keep in mind that some processes may stop SSH from correctly detecting that the user is idle. |
Terminating an idle ssh session within a short time period reduces the window of opportunity for unauthorized personnel to take control of a management session enabled on the console or console port that has been let unattended. |
medium |
AC-12,AC-17(a),AC-17(a),AC-2(5),CM-6(a),CM-6(a),SC-10 |
NaN |
5.2.13 |
SRG-OS-000126-GPOS-00066,SRG-OS-000163-GPOS-00072,SRG-OS-000279-GPOS-00109,SRG-OS-000395-GPOS-00175 |
Configure OpenSSH Server if Necessary |
| CCE-82421-9 |
Enable Encrypted X11 Forwarding |
yes |
/etc/ssh/sshd_config |
By default, remote X11 connections are not encrypted when initiated by users. SSH has the capability to encrypt remote X11 connections when SSH's X11Forwarding option is enabled. To enable X11 Forwarding, add or correct the following line in /etc/ssh/sshd_config: X11Forwarding yes |
Non-encrypted X displays allow an attacker to capture keystrokes and to execute commands remotely. |
high |
AC-17(2),AC-17(a),CM-6(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-82422-7 |
Limit Users' SSH Access |
configure |
/etc/ssh/sshd_config |
By default, the SSH configuration allows any user with an account to access the system. In order to specify the users that are allowed to login via SSH and deny all other users, add or correct the following line in the /etc/ssh/sshd_config file: DenyUsers USER1 USER2 Where USER1 and USER2 are valid user names. |
Specifying which accounts are allowed SSH access into the system reduces the possibility of unauthorized access to the system. |
unknown |
AC-3,CM-6(a) |
NaN |
NaN |
NaN |
Configure OpenSSH Server if Necessary |
| CCE-80897-2 |
Disable GSSAPI Authentication |
no |
/etc/ssh/sshd_config |
Unless needed, SSH should not permit extraneous or unnecessary authentication mechanisms like GSSAPI. To disable GSSAPI authentication, add or correct the following line in the /etc/ssh/sshd_config file: GSSAPIAuthentication no |
GSSAPI authentication is used to provide additional authentication mechanisms to applications. Allowing GSSAPI authentication through SSH exposes the system's GSSAPI to remote hosts, increasing the attack surface of the system. |
medium |
AC-17(a),CM-6(a),CM-7(a),CM-7(b) |
FTP_ITC_EXT.1 |
NaN |
SRG-OS-000364-GPOS-00151 |
Configure OpenSSH Server if Necessary |
| CCE-83357-4 |
Set SSH MaxSessions limit |
10 |
/etc/ssh/sshd_config |
The MaxSessions parameter specifies the maximum number of open sessions permitted from a given connection. To set MaxSessions edit /etc/ssh/sshd_config as follows: MaxSessions |
To protect a system from denial of service due to a large number of concurrent sessions, use the rate limiting function of MaxSessions to protect availability of sshd logins and prevent overwhelming the daemon. |
medium |
NaN |
NaN |
5.2.19 |
NaN |
Configure OpenSSH Server if Necessary |
| CCE-82281-7 |
Enable SSH Print Last Log |
yes |
/etc/ssh/sshd_config |
When enabled, SSH will display the date and time of the last successful account logon. To enable LastLog in SSH, add or correct the following line in the /etc/ssh/sshd_config file: PrintLastLog yes |
Providing users feedback on when account accesses last occurred facilitates user recognition and reporting of unauthorized account use. |
medium |
AC-17(a),AC-9,CM-6(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-80820-4 |
Enable SSH Server firewalld Firewall Exception |
ssh |
via firewall-cmd |
By default, inbound connections to SSH's port are allowed. If the SSH server is being used but denied by the firewall, this exception should be added to the firewall configuration. To configure firewalld to allow access, run the following command(s): firewall-cmd --permanent --add-service=ssh |
If inbound SSH connections are expected, adding a firewall rule exception will allow remote access through the SSH port. |
medium |
AC-17(a),CM-6(b),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Configure OpenSSH Server if Necessary |
| CCE-82345-0 |
Disable PubkeyAuthentication Authentication |
no |
/etc/ssh/sshd_config |
Unless needed, SSH should not permit extraneous or unnecessary authentication mechanisms. To disable PubkeyAuthentication authentication, add or correct the following line in the /etc/ssh/sshd_config file: PubkeyAuthentication no |
PubkeyAuthentication authentication is used to provide additional authentication mechanisms to applications. Allowing PubkeyAuthentication authentication through SSH allows users to generate their own authentication tokens, increasing the attack surface of the system. |
medium |
NaN |
NaN |
NaN |
NaN |
Configure OpenSSH Server if Necessary |
| CCE-82462-3 |
SSH server uses strong entropy to seed |
32 |
/etc/sysconfig/sshd |
To set up SSH server to use entropy from a high-quality source, edit the /etc/sysconfig/sshd file. The SSH_USE_STRONG_RNG configuration value determines how many bytes of entropy to use, so make sure that the file contains line SSH_USE_STRONG_RNG=32 |
SSH implementation in RHEL8 uses the openssl library, which doesn't use high-entropy sources by default. Randomness is needed to generate data-encryption keys, and as plaintext padding and initialization vectors in encryption algorithms, and high-quality entropy elliminates the possibility that the output of the random number generator used by SSH would be known to potential attackers. |
medium |
NaN |
FCS_RBG_EXT.1.2 |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-80901-2 |
Disable SSH Root Login |
no |
/etc/ssh/sshd_config |
The root user should never be allowed to login to a system directly over a network. To disable root login via SSH, add or correct the following line in /etc/ssh/sshd_config: PermitRootLogin no |
Even though the communications channel may be encrypted, an additional layer of security is gained by extending the policy of not logging directly on as root. In addition, logging in with a user-specific account provides individual accountability of actions performed on the system and also helps to minimize direct attack attempts on root's password. |
medium |
AC-17(a),AC-6(2),CM-6(a),CM-7(a),CM-7(b),IA-2,IA-2(5) |
FIA_UAU.1 |
5.2.10 |
SRG-OS-000109-GPOS-00056,SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-80896-4 |
Disable SSH Access via Empty Passwords |
no |
/etc/ssh/sshd_config |
To explicitly disallow SSH 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. |
Configuring this setting for the SSH daemon provides additional assurance that remote login via SSH will require a password, even in the event of misconfiguration elsewhere. |
high |
AC-17(a),CM-6(a),CM-7(a),CM-7(b) |
FIA_UAU.1 |
5.2.11 |
SRG-OS-000106-GPOS-00053,SRG-OS-000480-GPOS-00229 |
Configure OpenSSH Server if Necessary |
| CCE-80903-8 |
Do Not Allow SSH Environment Options |
no |
/etc/ssh/sshd_config |
To ensure users are not able to override environment variables of the SSH daemon, add or correct the following line in /etc/ssh/sshd_config: PermitUserEnvironment no |
SSH environment options potentially allow users to bypass access restriction in some configurations. |
medium |
AC-17(a),CM-6(a),CM-7(a),CM-7(b) |
NaN |
5.2.12 |
SRG-OS-000480-GPOS-00229 |
Configure OpenSSH Server if Necessary |
| CCE-80902-0 |
Disable SSH Support for User Known Hosts |
yes |
/etc/ssh/sshd_config |
SSH can allow system users to connect to systems if a cache of the remote systems public keys is available. This should be disabled. To ensure this behavior is disabled, add or correct the following line in /etc/ssh/sshd_config: IgnoreUserKnownHosts yes |
Configuring this setting for the SSH daemon provides additional assurance that remote login via SSH will require a password, even in the event of misconfiguration elsewhere. |
medium |
AC-17(a),CM-6(a),CM-7(a),CM-7(b) |
FIA_UAU.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-80898-0 |
Disable Kerberos Authentication |
no |
/etc/ssh/sshd_config |
Unless needed, SSH should not permit extraneous or unnecessary authentication mechanisms like Kerberos. To disable Kerberos authentication, add or correct the following line in the /etc/ssh/sshd_config file: KerberosAuthentication no |
Kerberos authentication for SSH is often implemented using GSSAPI. If Kerberos is enabled through SSH, the SSH daemon provides a means of access to the system's Kerberos implementation. Vulnerabilities in the system's Kerberos implementations may be subject to exploitation. |
medium |
AC-17(a),CM-6(a),CM-7(a),CM-7(b) |
FTP_ITC_EXT.1 |
NaN |
SRG-OS-000364-GPOS-00151 |
Configure OpenSSH Server if Necessary |
| CCE-80899-8 |
Disable SSH Support for .rhosts Files |
yes |
/etc/ssh/sshd_config |
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 |
SSH trust relationships mean a compromise on one host can allow an attacker to move trivially to other hosts. |
medium |
AC-17(a),CM-6(a),CM-7(a),CM-7(b) |
FIA_UAU.1 |
5.2.8 |
SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-80905-3 |
Enable SSH Warning Banner |
/etc/issue |
/etc/ssh/sshd_config |
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. |
The warning message reinforces policy awareness during the logon process and facilitates possible legal action against attackers. Alternatively, systems whose ownership should not be obvious should ensure usage of a banner that does not provide easy attribution. |
medium |
AC-17(a),AC-8(a),AC-8(c),CM-6(a) |
FTA_TAB.1 |
5.2.15 |
SRG-OS-000023-GPOS-00006,SRG-OS-000024-GPOS-00007,SRG-OS-000228-GPOS-00088 |
Configure OpenSSH Server if Necessary |
| CCE-80907-9 |
Set SSH Client Alive Max Count |
0 |
/etc/ssh/sshd_config |
To ensure the SSH idle timeout occurs precisely when the ClientAliveInterval is set, edit /etc/ssh/sshd_config as follows: ClientAliveCountMax |
This ensures a user login will be terminated as soon as the ClientAliveInterval is reached. |
medium |
AC-12,AC-17(a),AC-2(5),CM-6(a),SC-10 |
NaN |
5.2.13 |
SRG-OS-000163-GPOS-00072,SRG-OS-000279-GPOS-00109 |
Configure OpenSSH Server if Necessary |
| CCE-82177-7 |
Force frequent session key renegotiation |
512M |
/etc/ssh/sshd_config |
The RekeyLimit parameter specifies how often the session key of the is renegotiated, both in terms of amount of data that may be transmitted and the time elapsed. To decrease the default limits, put line RekeyLimit to file /etc/ssh/sshd_config. |
By decreasing the limit based on the amount of data and enabling time-based limit, effects of potential attacks against encryption keys are limited. |
medium |
NaN |
FCS_SSHS_EXT.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-83500-9 |
Set SSH authentication attempt limit |
3 |
/etc/ssh/sshd_config |
The MaxAuthTries parameter specifies the maximum number of authentication attempts permitted per connection. Once the number of failures reaches half this value, additional failures are logged. to set MaxAUthTries edit /etc/ssh/sshd_config as follows: MaxAuthTries |
Setting the MaxAuthTries parameter to a low number will minimize the risk of successful brute force attacks to the SSH server. |
medium |
NaN |
NaN |
5.2.7 |
NaN |
Configure OpenSSH Server if Necessary |
| CCE-80786-7 |
Disable Host-Based Authentication |
no |
/etc/ssh/sshd_config |
SSH's cryptographic host-based authentication is more secure than .rhosts authentication. However, it is not recommended that hosts unilaterally trust one another, even within an organization. To disable host-based authentication, add or correct the following line in /etc/ssh/sshd_config: HostbasedAuthentication no |
SSH trust relationships mean a compromise on one host can allow an attacker to move trivially to other hosts. |
medium |
AC-17(a),AC-3,CM-6(a),CM-7(a),CM-7(b) |
FIA_UAU.1 |
5.2.9 |
SRG-OS-000480-GPOS-00229 |
Configure OpenSSH Server if Necessary |
| CCE-83301-2 |
Disable SSH TCP Forwarding |
no |
/etc/ssh/sshd_config |
The AllowTcpForwarding parameter specifies whether TCP forwarding is permitted. To disable TCP forwarding, add or correct the following line in /etc/ssh/sshd_config: AllowTcpForwarding no |
Leaving port forwarding enabled can expose the organization to security risks and back-doors. |
medium |
NaN |
NaN |
5.2.17 |
NaN |
Configure OpenSSH Server if Necessary |
| CCE-80900-4 |
Disable SSH Support for Rhosts RSA Authentication |
no |
/etc/ssh/sshd_config |
SSH can allow authentication through the obsolete rsh command through the use of the authenticating user's SSH keys. This should be disabled. To ensure this behavior is disabled, add or correct the following line in /etc/ssh/sshd_config: RhostsRSAAuthentication no |
Configuring this setting for the SSH daemon provides additional assurance that remote login via SSH will require a password, even in the event of misconfiguration elsewhere. |
medium |
AC-17(a),CM-6(a),CM-7(a),CM-7(b) |
FIA_UAU.1 |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-82420-1 |
Set SSH Daemon LogLevel to VERBOSE |
VERBOSE |
/etc/ssh/sshd_config |
The VERBOSE parameter configures the SSH daemon to record login and logout activity. To specify the log level in SSH, add or correct the following line in the /etc/ssh/sshd_config file: LogLevel VERBOSE |
SSH provides several logging levels with varying amounts of verbosity. DEBUG is specifically not recommended other than strictly for debugging SSH communications since it provides so much data that it is difficult to identify important security information. INFO or VERBOSE level is the basic level that only records login activity of SSH users. In many situations, such as Incident Response, it is important to determine when a particular user was active on a system. The logout record can eliminate those users who disconnected, which helps narrow the field. |
medium |
AC-17(1),AC-17(a),CM-6(a) |
NaN |
NaN |
SRG-OS-000032-GPOS-00013 |
Configure OpenSSH Server if Necessary |
| CCE-82198-3 |
Use Only FIPS 140-2 Validated MACs |
configure |
/etc/ssh/sshd_config |
Limit the MACs to those hash algorithms which are FIPS-approved. The following line in /etc/ssh/sshd_config demonstrates use of FIPS-approved MACs: MACs hmac-sha2-512,hmac-sha2-256,hmac-sha1 The man page sshd_config(5) contains a list of supported MACs. The rule is parametrized to use the following MACs: . |
DoD Information Systems are required to use FIPS-approved cryptographic hash functions. The only SSHv2 hash algorithms meeting this requirement is SHA2. |
medium |
AC-17(2),AC-17(a),CM-6(a),MA-4(6),SC-12(2),SC-12(3),SC-13 |
NaN |
5.2.12 |
SRG-OS-000125-GPOS-00065,SRG-OS-000250-GPOS-00093,SRG-OS-000394-GPOS-00174 |
Configure OpenSSH Server if Necessary |
| CCE-81032-5 |
Use Only FIPS 140-2 Validated Ciphers |
configure |
/etc/ssh/sshd_config |
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. The rule is parametrized to use the following ciphers: . |
Unapproved mechanisms that are used for authentication to the cryptographic module are not verified and therefore cannot be relied upon to provide confidentiality or integrity, and system data may be compromised. Operating systems utilizing encryption are required to use FIPS-compliant mechanisms for authenticating to cryptographic modules. FIPS 140-2 is the current standard for validating that mechanisms used to access cryptographic modules utilize authentication that meets industry and government requirements. For government systems, this allows Security Levels 1, 2, 3, or 4 for use on Red Hat Enterprise Linux 8. |
medium |
AC-17(2),AC-17(a),CM-6(a),IA-5(1)(c),MA-4(6),SC-12(2),SC-12(3),SC-13 |
NaN |
5.2.10 |
SRG-OS-000033-GPOS-00014,SRG-OS-000120-GPOS-00061,SRG-OS-000125-GPOS-00065,SRG-OS-000250-GPOS-00093,SRG-OS-000393-GPOS-00173,SRG-OS-000394-GPOS-00174 |
Configure OpenSSH Server if Necessary |
| CCE-80895-6 |
Disable Compression Or Set Compression to delayed |
no |
/etc/ssh/sshd_config |
Compression is useful for slow network connections over long distances but can cause performance issues on local LANs. If use of compression is required, it should be enabled only after a user has authenticated; otherwise, it should be disabled. To disable compression or delay compression until after a user has successfully authenticated, add or correct the following line in the /etc/ssh/sshd_config file: Compression |
If compression is allowed in an SSH connection prior to authentication, vulnerabilities in the compression software could result in compromise of the system from an unauthenticated connection, potentially with root privileges. |
medium |
AC-17(a),CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-80894-9 |
Allow Only SSH Protocol 2 |
2 |
/etc/ssh/sshd_config |
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 |
SSH protocol version 1 is an insecure implementation of the SSH protocol and has many well-known vulnerability exploits. Exploits of the SSH daemon could provide immediate root access to the system. |
high |
AC-17(2),AC-17(a),CM-6(a),IA-5(1)(c),MA-4(6),SC-13 |
NaN |
5.2.2 |
SRG-OS-000074-GPOS-00042,SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-80908-7 |
Enable Use of Privilege Separation |
sandbox |
/etc/ssh/sshd_config |
When enabled, SSH will create an unprivileged child process that has the privilege of the authenticated user. To enable privilege separation in SSH, add or correct the following line in the /etc/ssh/sshd_config file: UsePrivilegeSeparation |
SSH daemon privilege separation causes the SSH process to drop root privileges when not needed which would decrease the impact of software vulnerabilities in the unprivileged section. |
medium |
AC-17(a),AC-6,CM-6(a) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Configure OpenSSH Server if Necessary |
| CCE-82282-5 |
Set LogLevel to INFO |
INFO |
/etc/ssh/sshd_config |
The INFO parameter specifices that record login and logout activity will be logged. To specify the log level in SSH, add or correct the following line in the /etc/ssh/sshd_config file: LogLevel INFO |
SSH provides several logging levels with varying amounts of verbosity. DEBUG is specifically not recommended other than strictly for debugging SSH communications since it provides so much data that it is difficult to identify important security information. INFO level is the basic level that only records login activity of SSH users. In many situations, such as Incident Response, it is important to determine when a particular user was active on a system. The logout record can eliminate those users who disconnected, which helps narrow the field. |
low |
AC-17(a),CM-6(a) |
NaN |
5.2.5 |
NaN |
Configure OpenSSH Server if Necessary |
| CCE-83360-8 |
Disable X11 Forwarding |
no |
/etc/ssh/sshd_config |
The X11Forwarding parameter provides the ability to tunnel X11 traffic through the connection to enable remote graphic connections. SSH has the capability to encrypt remote X11 connections when SSH's X11Forwarding option is enabled. To disable X11 Forwarding, add or correct the following line in /etc/ssh/sshd_config: X11Forwarding no |
Disable X11 forwarding unless there is an operational requirement to use X11 applications directly. There is a small risk that the remote X11 servers of users who are logged in via SSH with X11 forwarding could be compromised by other users on the X11 server. Note that even if X11 forwarding is disabled, users can always install their own forwarders. |
low |
NaN |
NaN |
5.2.6 |
NaN |
Configure OpenSSH Server if Necessary |
| CCE-82959-8 |
Install usbguard Package |
install |
via yum |
The usbguard package can be installed with the following command: $ sudo yum install usbguard |
usbguard is a software framework that helps to protect against rogue USB devices by implementing basic whitelisting/blacklisting capabilities based on USB device attributes. |
medium |
NaN |
NaN |
NaN |
SRG-OS-000378-GPOS-00163 |
USBGuard daemon |
| CCE-82853-3 |
Enable the USBGuard Service |
enable |
via systemctl |
The USBGuard service should be enabled. The usbguard service can be enabled with the following command: $ sudo systemctl enable usbguard.service |
The usbguard service must be running in order to enforce the USB device authorization policy for all USB devices. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000378-GPOS-00163 |
USBGuard daemon |
| CCE-82368-2 |
Authorize Human Interface Devices and USB hubs in USBGuard daemon |
configure |
via /etc/usbguard/rules.conf |
To allow authorization of USB devices combining human interface device and hub capabilities by USBGuard daemon, add the line allow with-interface match_all { 03:*:* 09:00:* } to /etc/usbguard/rules.conf. |
Without allowing Human Interface Devices, it might not be possible to interact with the system. Without allowing hubs, it might not be possible to use any USB devices on the system. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000114-GPOS-00059 |
USBGuard daemon |
| CCE-82274-2 |
Authorize Human Interface Devices in USBGuard daemon |
configure |
via /etc/usbguard/rules.conf |
To allow authorization of Human Interface Devices (keyboard, mouse) by USBGuard daemon, add the line allow with-interface match_all { 03:*:* } to /etc/usbguard/rules.conf. |
Without allowing Human Interface Devices, it might not be possible to interact with the system. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000114-GPOS-00059 |
USBGuard daemon |
| CCE-82168-6 |
Log USBGuard daemon audit events using Linux Audit |
LinuxAudit |
via /etc/usbguard/rules.conf |
To configure USBGuard daemon to log via Linux Audit (as opposed directly to a file), AuditBackend option in /etc/usbguard/usbguard-daemon.conf needs to be set to LinuxAudit. |
Using the Linux Audit logging allows for centralized trace of events. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000062-GPOS-00031 |
USBGuard daemon |
| CCE-82273-4 |
Authorize USB hubs in USBGuard daemon |
configure |
via /etc/usbguard/rules.conf |
To allow authorization of USB hub devices by USBGuard daemon, add line allow with-interface match-all { 09:00:* } to /etc/usbguard/rules.conf. |
Without allowing hubs, it might not be possible to use any USB devices on the system. |
medium |
NaN |
FMT_SMF_EXT.1 |
NaN |
SRG-OS-000114-GPOS-00059 |
USBGuard daemon |
| CCE-82187-6 |
Uninstall quagga Package |
remove |
via yum |
The quagga package can be removed with the following command: $ sudo yum erase quagga |
Routing software is typically used on routers to exchange network topology information with other routers. If routing software is used when not required, system network information may be unnecessarily transmitted across the network. If there is no need to make the router software available, removing it provides a safeguard against its activation. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Disable Quagga if Possible |
| CCE-80889-9 |
Disable Quagga Service |
disable |
via systemctl |
The zebra service can be disabled with the following command: $ sudo systemctl disable zebra.service The zebra service can be masked with the following command: $ sudo systemctl mask zebra.service |
Routing protocol daemons are typically used on routers to exchange network topology information with other routers. If routing daemons are used when not required, system network information may be unnecessarily transmitted across the network. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Disable Quagga if Possible |
| CCE-82412-8 |
Restrict Access to Anonymous Users if Possible |
NO |
via /etc/vsftpd/vsftpd.conf |
Is there a mission-critical reason for users to transfer files to/from their own accounts using FTP, rather than using a secure protocol like SCP/SFTP? If not, edit the vsftpd configuration file. Add or correct the following configuration option: local_enable=NO If non-anonymous FTP logins are necessary, follow the guidance in the remainder of this section to secure these logins as much as possible. |
The use of non-anonymous FTP logins is strongly discouraged. Since SSH clients and servers are widely available, and since SSH provides support for a transfer mode which resembles FTP in user interface, there is no good reason to allow password-based FTP access.' |
medium |
AC-17(a),AC-3,CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Restrict the Set of Users Allowed to Access FTP |
| CCE-82414-4 |
Uninstall vsftpd Package |
remove |
via yum |
The vsftpd package can be removed with the following command: $ sudo yum erase vsftpd |
Removing the vsftpd package decreases the risk of its accidental activation. |
high |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
SRG-OS-000480-GPOS-00227 |
Disable vsftpd if Possible |
| CCE-82413-6 |
Disable vsftpd Service |
disable |
via systemctl |
The vsftpd service can be disabled with the following command: $ sudo systemctl disable vsftpd.service The vsftpd service can be masked with the following command: $ sudo systemctl mask vsftpd.service |
Running FTP server software provides a network-based avenue of attack, and should be disabled if not needed. Furthermore, the FTP protocol is unencrypted and creates a risk of compromising sensitive information. |
medium |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
2.2.10 |
NaN |
Disable vsftpd if Possible |
| CCE-82411-0 |
Install vsftpd Package |
install |
via yum |
If this system must operate as an FTP server, install the vsftpd package via the standard channels. The vsftpd package can be installed with the following command: $ sudo yum install vsftpd |
After Red Hat Enterprise Linux 2.1, Red Hat switched from distributing wu-ftpd with Red Hat Enterprise Linux to distributing vsftpd. For security and for consistency with future Red Hat releases, the use of vsftpd is recommended. |
low |
CM-6(a) |
NaN |
NaN |
NaN |
Use vsftpd to Provide FTP Service if Necessary |
| CCE-82175-1 |
Disable Kerberos by removing host keytab |
remove |
via rm |
Kerberos is not an approved key distribution method for Common Criteria. To prevent using Kerberos by system daemons, remove the Kerberos keytab files, especially /etc/krb5.keytab. |
The key derivation function (KDF) in Kerberos is not FIPS compatible. |
medium |
NaN |
FTP_ITC_EXT.1 |
NaN |
SRG-OS-000120-GPOS-00061 |
Kerberos |
| CCE-82885-5 |
Ensure LDAP client is not installed |
remove |
via yum |
The Lightweight Directory Access Protocol (LDAP) is a service that provides a method for looking up information from a central database. The openldap-clients package can be removed with the following command: $ sudo yum erase openldap-clients |
If the system does not need to act as an LDAP client, it is recommended that the software is removed to reduce the potential attack surface. |
low |
NaN |
NaN |
2.3.3 |
NaN |
Configure OpenLDAP Clients |
| CCE-82418-5 |
Enable the LDAP Client For Use in Authconfig |
useldapauth |
/etc/sysconfig/authconfig |
To determine if LDAP is being used for authentication, use the following command: $ sudo grep -i useldapauth /etc/sysconfig/authconfig If USELDAPAUTH=yes, then LDAP is being used. If not, set USELDAPAUTH to yes. |
Without cryptographic integrity protections, information can be altered by unauthorized users without detection. The ssl directive specifies whether to use TLS or not. If not specified it will default to no. It should be set to start_tls rather than doing LDAP over SSL. |
medium |
AC-17(a),CM-6(a) |
NaN |
NaN |
SRG-OS-000250-GPOS-00093 |
Configure OpenLDAP Clients |
| CCE-82417-7 |
Configure Certificate Directives for LDAP Use of TLS |
configure |
via /etc/nslcd.conf |
Ensure a copy of a trusted CA certificate has been placed in the file /etc/pki/tls/CA/cacert.pem. Configure LDAP to enforce TLS use and to trust certificates signed by that CA. First, edit the file /etc/nslcd.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. |
The tls_cacertdir or tls_cacertfile directives are required when tls_checkpeer is configured (which is the default for openldap versions 2.1 and up). These directives define the path to the trust certificates signed by the site CA. |
medium |
CM-6(a) |
NaN |
NaN |
NaN |
Configure OpenLDAP Clients |
| CCE-82416-9 |
Configure LDAP Client to Use TLS For All Transactions |
configure |
via /etc/pam_ldap.conf |
This check verifies cryptography has been implemented to protect the integrity of remote LDAP authentication sessions. To determine if LDAP is being used for authentication, use the following command: $ sudo grep -i useldapauth /etc/sysconfig/authconfig If USELDAPAUTH=yes, then LDAP is being used. To check if LDAP is configured to use TLS, use the following command: $ sudo grep -i ssl /etc/pam_ldap.conf |
Without cryptographic integrity protections, information can be altered by unauthorized users without detection. The ssl directive specifies whether to use TLS or not. If not specified it will default to no. It should be set to start_tls rather than doing LDAP over SSL. |
medium |
AC-17(2),AC-17(a),CM-6(a),SC-12(a),SC-12(b) |
NaN |
NaN |
SRG-OS-000250-GPOS-00093 |
Configure OpenLDAP Clients |
| CCE-82415-1 |
Uninstall openldap-servers Package |
remove |
via yum |
The openldap-servers RPM is not installed by default on a Red Hat Enterprise Linux 8 system. 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. |
Unnecessary packages should not be installed to decrease the attack surface of the system. While this software is clearly essential on an LDAP server, it is not necessary on typical desktop or workstation systems. |
low |
CM-6(a),CM-7(a),CM-7(b) |
NaN |
NaN |
NaN |
Configure OpenLDAP Server |