SV-274164r1137695_rule
V-274164
SRG-OS-000138-GPOS-00069
AZLX-23-002500
CAT II
10
Configure Amazon Linux 2023 world-writable directories to have the sticky bit set to prevent unauthorized and unintended information transferred via shared system resources.
Set the sticky bit on all world-writable directories using the following command:
$ sudo find / -type d -perm -0002 ! -perm -1000 -exec chmod +t {} +
Verify Amazon Linux 2023 world-writable directories have the sticky bit set.
Determine if all world-writable directories have the sticky bit set by running the following command:
$ sudo find / -type d -perm -0002 ! -perm -1000 -exec ls -ld {} +
If any output is returned, these directories are world-writable and do not have the sticky bit set, and this is a finding.
V-274164
False
AZLX-23-002500
Verify Amazon Linux 2023 world-writable directories have the sticky bit set.
Determine if all world-writable directories have the sticky bit set by running the following command:
$ sudo find / -type d -perm -0002 ! -perm -1000 -exec ls -ld {} +
If any output is returned, these directories are world-writable and do not have the sticky bit set, and this is a finding.
M
5700