5.2.4 Ensure passwords are controlled by password attributes

Information

Ensure passwords are required to pass password attribute controls.

If password restrictions are not enforced for some accounts, those accounts represent a much greater risk of being compromised by an attacker as they may have weaker passwords vulnerable to brute force attack or provide an indefinite window of opportunity for the use of already compromised credentials if the same password has been used on multiple systems.

Solution

In the file /etc/security/passwd clear the NOCHECK attribute from all users:

#!/usr/bin/ksh -e
# Copyright AIXTools, 2022

/usr/bin/grep -p NOCHECK /etc/security/passwd | /usr/bin/egrep ":$" | sed -e 's/://' | while read USER; do
/usr/bin/pwdadm -c $USER
/usr/bin/pwdadm -f ADMCHG $USER
done

Impact:

When exceptions to the defaults are required - rather than disable all password checking - an account needs to have the attribute redefined per account .

SHA512 password encryption is recommended as the most secure.

See Also

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

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1), CSCv7|4.4

Plugin: Unix

Control ID: a25aed07a87247e83c81328513177d5653fa54cf5c965496066e3039ce12babe