SV-274131r1120381_rule
V-274131
SRG-OS-000259-GPOS-00100
AZLX-23-002345
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 owned by "root".
$ sudo chown root [FILE]
Verify Amazon Linux 2023 system commands contained in the following directories are owned by "root" with the following command:
$ sudo find -L /bin /sbin /usr/bin /usr/sbin /usr/libexec /usr/local/bin /usr/local/sbin ! -user root -exec ls -l {} \;
If any system commands are found to not be owned by root, this is a finding.
V-274131
False
AZLX-23-002345
Verify Amazon Linux 2023 system commands contained in the following directories are owned by "root" with the following command:
$ sudo find -L /bin /sbin /usr/bin /usr/sbin /usr/libexec /usr/local/bin /usr/local/sbin ! -user root -exec ls -l {} \;
If any system commands are found to not be owned by root, this is a finding.
M
5700