AZLX-23-002380 - Amazon Linux 2023 must enforce password complexity by requiring that at least one special character be used.

Information

Use of a complex password helps to increase the time and resources required to compromise the password. Password complexity or strength is a measure of the effectiveness of a password in resisting attempts at guessing and brute-force attacks.

Password complexity is one factor in determining how long it takes to crack a password. The more complex the password, the greater the number of possible combinations that need to be tested before the password is compromised.

Special characters are those characters that are not alphanumeric. Examples include: ~ ! @ # $ % ^ *.

Satisfies: SRG-OS-000266-GPOS-00101, SRG-OS-000725-GPOS-00180

Solution

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

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Amazon_Linux_2023_V1R1_STIG.zip

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1)(a), 800-53|IA-5(1)(f), CAT|II, CCI|CCI-004064, CCI|CCI-004066, Rule-ID|SV-274138r1120402_rule, STIG-ID|AZLX-23-002380, Vuln-ID|V-274138

Plugin: Unix

Control ID: 007e3f41214e3b86508252b476f29cfcaa94da05aa2eb898670886b97e74d853