1.4.2 Ensure access to bootloader config is configured

Information

The grub files contain information on boot settings and passwords for unlocking boot options.

Setting the permissions to read and write for root only prevents non-root users from seeing the boot parameters or changing them. Non-root users who read the boot parameters may be able to identify weaknesses in security upon boot and be able to exploit them.

Solution

Run the following command to set owner and group owner on the grub configuration files:

# find -L /boot/grub2/ -mindepth 1 -maxdepth 1 \
-type f \( ! -user root -o ! -group root \) -exec chown root:root {} +

Run the following command to set mode on the grub configuration files to 0600 or more restrictive:

# find -L /boot/grub2/ -mindepth 1 -maxdepth 1 -type f \
-perm /0177 -exec chmod u-x,go-rwx {} +

See Also

https://workbench.cisecurity.org/benchmarks/24009

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: dc0daa3c7849ed5b3c97b69ca48f7b5a567f0fa1da05cc765416568eb384f29e