SV-230311r1155408_rule
V-230311
SRG-OS-000480-GPOS-00227
RHEL-08-010671
CAT II
10
Configure RHEL 8 to restrict usage of ptrace to descendant processes by adding the following line to a dropfile in the "/etc/sysctl.d" directory:
Create a dropfile if it does not already exist:
$ sudo vi /etc/sysctl.d/99-disable-coredump.conf
Add the following to the file:
kernel.core_pattern = |/bin/false
The system configuration files need to be reloaded for the changes to take effect. To reload the contents of the files, run the following command:
$ sudo sysctl --system
Verify RHEL 8 disables storing core dumps with the following commands:
$ sudo sysctl kernel.core_pattern
kernel.core_pattern = |/bin/false
If the returned line does not have a value of "|/bin/false", or a line is not returned and the need for core dumps is not documented with the information system security officer (ISSO) as an operational requirement, this is a finding.
V-230311
False
RHEL-08-010671
Verify RHEL 8 disables storing core dumps with the following commands:
$ sudo sysctl kernel.core_pattern
kernel.core_pattern = |/bin/false
If the returned line does not have a value of "|/bin/false", or a line is not returned and the need for core dumps is not documented with the information system security officer (ISSO) as an operational requirement, this is a finding.
M
2921