SV-274137r1120725_rule
V-274137
SRG-OS-000078-GPOS-00046
AZLX-23-002375
CAT II
10
Configure Amazon Linux 2023 to enforce a minimum 15-character password length.
Add or update the following line in the "/etc/security/pwquality.conf" file or a configuration file in the "/etc/security/pwquality.conf.d/" directory to contain the "minlen" parameter:
minlen = 15
Remove any configurations that conflict with the above value.
Verify Amazon Linux 2023 enforces a minimum 15-character password length with the following command:
$ sudo grep -rs minlen /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
/etc/security/pwquality.conf: minlen = 15
If the command does not return a "minlen" value of 15 or greater, or the line is commented out, this is a finding.
If conflicting results are returned, this is a finding.
V-274137
False
AZLX-23-002375
Verify Amazon Linux 2023 enforces a minimum 15-character password length with the following command:
$ sudo grep -rs minlen /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
/etc/security/pwquality.conf: minlen = 15
If the command does not return a "minlen" value of 15 or greater, or the line is commented out, this is a finding.
If conflicting results are returned, this is a finding.
M
5700