1.4.3 Ensure authentication is required when booting into rescue mode - /etc/systemd/system/rescue.service.d

Information

Rescue mode (former single user mode) is used for recovery when the system detects an issue during boot or by manual selection from the bootloader.

Rationale:

Requiring authentication in rescue mode (former single user mode) prevents an unauthorized user from rebooting the system into rescue mode to gain root privileges without credentials.

Solution

The systemd drop-in files must be created if it is necessary to change the default settings:
Create the file /etc/systemd/system/rescue.service.d/00-require-auth.conf which contains only the configuration to be overridden:

[Service]
ExecStart=-/usr/lib/systemd/systemd-sulogin-shell rescue

Additional Information:

systemd-unit(5)

See Also

https://workbench.cisecurity.org/files/3796

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1), CSCv7|4.4

Plugin: Unix

Control ID: 7565042542718dae350881d08d4fe68c3af1e09aee0031e5c3ce1ed1f7f5e06e