SV-274132r1208253_rule
V-274132
SRG-OS-000259-GPOS-00100
AZLX-23-002350
CAT II
10
Configure Amazon Linux 2023 so that system commands are protected from unauthorized access.
Run the following command, replacing "[FILE]" with any system command file not group-owned by "root" or a required system account.
$ sudo chgrp root [FILE]
Verify Amazon Linux 2023 system commands contained in the following directories are group-owned by "root", or a required system account, with the following command:
$ sudo find -L /bin /sbin /usr/bin /usr/sbin /usr/libexec /usr/local/bin /usr/local/sbin ! -group root -exec ls -l {} \;
If any system commands are returned and is not group-owned by a required system account, this is a finding.
V-274132
False
AZLX-23-002350
Verify Amazon Linux 2023 system commands contained in the following directories are group-owned by "root", or a required system account, with the following command:
$ sudo find -L /bin /sbin /usr/bin /usr/sbin /usr/libexec /usr/local/bin /usr/local/sbin ! -group root -exec ls -l {} \;
If any system commands are returned and is not group-owned by a required system account, this is a finding.
M
5700