1.122 APPL-26-003014

Information

The macOS system must remove password hints from user accounts.

GROUP ID: V-277149
RULE ID: SV-277149r1148899

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/26538