1.125 APPL-15-003014

Information

The macOS system must remove password hints from user accounts.

GROUP ID: V-268541
RULE ID: SV-268541r1034563

User accounts must not contain password hints.

Password hints leak information about passwords in use and can lead to loss of confidentiality.

Solution

Configure the macOS system to remove password hints from user accounts with the following command:

for u in $(/usr/bin/dscl . -list /Users UniqueID | /usr/bin/awk '$2 > 500 {print $1}'); do
/usr/bin/dscl . -delete /Users/$u hint
done

See Also

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