For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/z23-f9p-six.md. A documentation index is available at /llms.txt.

Password policy should prevent password reuse

Description

AWS IAM account password policies should prevent password reuse by remembering at least the last 24 passwords for each user. Allowing password reuse increases the risk of account compromise, particularly when previously exposed or weak passwords are reused. This rule fails when Prevent password reuse is not enabled or when PasswordReusePrevention is set below 24.

Remediation

  1. In the IAM console, select Account settings, check Prevent password reuse, and set Remember XX password(s) to 24 or greater.
  2. Alternatively, run aws iam update-account-password-policy --password-reuse-prevention 24, as described in update-account-password-policy. The command replaces the entire password policy, so also pass the account’s existing settings, which you can get with aws iam get-account-password-policy.

References