SV-281321r1167113_rule
V-281321
SRG-OS-000433-GPOS-00192
RHEL-10-701190
CAT II
10
Configure RHEL 10 to enable ExecShield.
If "/proc/cpuinfo" shows that one or more processors do not enable ExecShield (lack the "nx" feature flag), verify the NX/XD feature is not disabled in the BIOS or UEFI. If it is disabled, enable it.
If the "noexec" option is present on the kernel command line, update the GRUB 2 bootloader configuration to remove it by running the following command:
$ sudo grubby --update-kernel=ALL --remove-args=noexec
Verify RHEL 10 enables ExecShield.
Run the following command:
$ sudo grep ^flags /proc/cpuinfo | grep -Ev '([^[:alnum:]])(nx)([^[:alnum:]]|$)'
If any output is returned, this is a finding.
Run the following command:
$ sudo grubby --info=ALL | grep args | grep -E '([^[:alnum:]])(noexec)([^[:alnum:]])'
If any output is returned, this is a finding.
V-281321
False
RHEL-10-701190
Verify RHEL 10 enables ExecShield.
Run the following command:
$ sudo grep ^flags /proc/cpuinfo | grep -Ev '([^[:alnum:]])(nx)([^[:alnum:]]|$)'
If any output is returned, this is a finding.
Run the following command:
$ sudo grubby --info=ALL | grep args | grep -E '([^[:alnum:]])(noexec)([^[:alnum:]])'
If any output is returned, this is a finding.
M
5733