SV-274120r1120348_rule
V-274120
SRG-OS-000259-GPOS-00100
AZLX-23-002285
CAT II
10
Configure Amazon Linux 2023 systemwide shared library directories (/lib, /lib64, /usr/lib and /usr/lib64) to be protected from unauthorized access.
Run the following command, replacing "[DIRECTORY]" with any library directory with a mode more permissive than "755".
$ sudo chmod 755 [DIRECTORY]
Verify Amazon Linux 2023 systemwide shared library directories have mode "755" or less permissive with the following command:
$ sudo find -L /lib /lib64 /usr/lib /usr/lib64 -perm /022 -type d -exec ls -l {} \;
If any systemwide shared library file is found to be group-writable or world-writable, this is a finding.
V-274120
False
AZLX-23-002285
Verify Amazon Linux 2023 systemwide shared library directories have mode "755" or less permissive with the following command:
$ sudo find -L /lib /lib64 /usr/lib /usr/lib64 -perm /022 -type d -exec ls -l {} \;
If any systemwide shared library file is found to be group-writable or world-writable, this is a finding.
M
5700