5.2.1 Ensure new passwords are controlled by password attributes (disable NOCHECK)

Information

Ensure new passwords are required to pass password attribute controls.

Rationale:

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.

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.

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

See Also

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

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

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

Plugin: Unix

Control ID: 1af706777b7805dd0df08f404993e7477a40e9d4ed02dc9e7c3cdbec565198a7