SV-274173r1120507_rule
V-274173
SRG-OS-000324-GPOS-00125
AZLX-23-002555
CAT II
10
Configure Amazon Linux 2023 to mask the debug-shell systemd service with the following command:
$ sudo systemctl disable --now debug-shell.service
$ sudo systemctl mask --now debug-shell.service
Verify Amazon Linux 2023 is configured to mask the debug-shell systemd service with the following command:
$ sudo systemctl status debug-shell.service
O debug-shell.service
Loaded: masked (Reason: Unit debug-shell.service is masked.)
Active: inactive (dead)
If the "debug-shell.service" is loaded and not masked, this is a finding.
V-274173
False
AZLX-23-002555
Verify Amazon Linux 2023 is configured to mask the debug-shell systemd service with the following command:
$ sudo systemctl status debug-shell.service
O debug-shell.service
Loaded: masked (Reason: Unit debug-shell.service is masked.)
Active: inactive (dead)
If the "debug-shell.service" is loaded and not masked, this is a finding.
M
5700