1.155 AZLX-23-002425

Information

Amazon Linux 2023 must be able to enforce a 60-day maximum password lifetime restriction.

GROUP ID: V-274148RULE ID: SV-274148r1120432

Any password, no matter how complex, can eventually be cracked. Therefore, passwords need to be changed periodically. If Amazon Linux 2023 does not limit the lifetime of passwords and force users to change their passwords, there is the risk that Amazon Linux 2023 passwords could be compromised.

Solution

Configure Amazon Linux 2023 to set noncompliant accounts to enforce a 60-day maximum password lifetime restriction.

$ sudo chage -M 60 [user]

See Also

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