1.20 AZLX-23-001005

Information

Amazon Linux 2023 must not be configured to bypass password requirements for privilege escalation.

GROUP ID: V-274013RULE ID: SV-274013r1120027

Without reauthentication, users may access resources or perform tasks for which they do not have authorization. When operating systems provide the capability to escalate a functional capability, it is critical the user reauthenticate.

Solution

Configure Amazon Linux 2023 to require users to supply a password for privilege escalation.

Remove any occurrences of "pam_succeed_if " in the "/etc/pam.d/sudo" file.

See Also

https://workbench.cisecurity.org/benchmarks/26107