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.