1.21 AZLX-23-001010

Information

Amazon Linux 2023 must require reauthentication when using the "sudo" command.

GROUP ID: V-274014RULE ID: SV-274014r1120030

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

Solution

Configure Amazon Linux 2023 to reauthenticate "sudo" commands after the specified timeout:

Add the following line to "/etc/sudoers" or a file in "/etc/sudoers.d":

Defaults timestamp_timeout=0

See Also

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