1.151 AZLX-23-002405

Information

Amazon Linux 2023 must enforce a delay of at least four seconds between logon prompts following a failed logon attempt.

GROUP ID: V-274144RULE ID: SV-274144r1120420

Increasing the time between a failed authentication attempt and re-prompting to enter credentials helps to slow a single-threaded brute force attack.

Solution

Configure Amazon Linux 2023 to enforce a delay of at least four seconds between logon prompts following a failed console logon attempt.

Modify the "/etc/login.defs" file to set the "FAIL_DELAY" parameter to "4" or greater:

FAIL_DELAY 4

See Also

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