SV-274138r1120402_rule
V-274138
SRG-OS-000266-GPOS-00101
AZLX-23-002380
CAT II
10
Configure Amazon Linux 2023 to enforce password complexity by requiring at least one special character be used by setting the "ocredit" option.
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 "ocredit" parameter:
ocredit = -1
Verify Amazon Linux 2023 enforces password complexity by requiring at least one special character with the following command:
$ sudo grep -rs ocredit /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
/etc/security/pwquality.conf: ocredit = -1
If the value of "ocredit" is a positive number or is commented out, this is a finding.
V-274138
False
AZLX-23-002380
Verify Amazon Linux 2023 enforces password complexity by requiring at least one special character with the following command:
$ sudo grep -rs ocredit /etc/security/pwquality.conf /etc/security/pwquality.conf.d/*.conf
/etc/security/pwquality.conf: ocredit = -1
If the value of "ocredit" is a positive number or is commented out, this is a finding.
M
5700