AZLX-23-001015 - Amazon Linux 2023 must require users to reauthenticate for privilege escalation.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Without reauthentication, users may access resources or perform tasks for which they do not have authorization.

Solution

Configure Amazon Linux 2023 to not allow users to execute privileged actions without authenticating.

Remove any occurrence of "!authenticate" found in "/etc/sudoers" file or files in the "/etc/sudoers.d" directory.

$ sudo sed -i '/\!authenticate/ s/^/# /g' /etc/sudoers /etc/sudoers.d/*

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Amazon_Linux_2023_V1R1_STIG.zip

Item Details

References: CAT|II, CCI|CCI-002038, Rule-ID|SV-274015r1120033_rule, STIG-ID|AZLX-23-001015, Vuln-ID|V-274015

Plugin: Unix

Control ID: fe6b3785126338c3e59753486a63850a5dd5aed995ca764e51b4ca0bb40b3e37