SV-268538r1131239_rule
V-268538
SRG-OS-000266-GPOS-00101
APPL-15-003011
CAT II
10
Configure the macOS system to require that passwords contain a minimum of one special character by installing the "com.apple.mobiledevice.passwordpolicy" configuration profile.
Verify the macOS system is configured to require passwords contain a minimum of one special character with the following command:
/usr/bin/pwpolicy -getaccountpolicies 2>/dev/null | /usr/bin/tail -n +2 | /usr/bin/xmllint --xpath "//string[contains(text(), \"policyAttributePassword matches '(.*[^a-zA-Z0-9].*){\")]" - 2>/dev/null | /usr/bin/awk -F"{|}" '{if ($2 >= 1) {print "true"} else {print "false"}}'
If the result is not "true", this is a finding.
V-268538
False
APPL-15-003011
Verify the macOS system is configured to require passwords contain a minimum of one special character with the following command:
/usr/bin/pwpolicy -getaccountpolicies 2>/dev/null | /usr/bin/tail -n +2 | /usr/bin/xmllint --xpath "//string[contains(text(), \"policyAttributePassword matches '(.*[^a-zA-Z0-9].*){\")]" - 2>/dev/null | /usr/bin/awk -F"{|}" '{if ($2 >= 1) {print "true"} else {print "false"}}'
If the result is not "true", this is a finding.
M
5661