SV-268547r1034581_rule
V-268547
SRG-OS-000069-GPOS-00037
APPL-15-003060
CAT II
10
Configure the macOS system to require at least one lowercase character and one uppercase character in password complexity by installing the "com.apple.mobiledevice.passwordpolicy" configuration profile.
Verify the macOS system is configured to require that passwords contain a minimum of one lowercase character and one uppercase character with the following command:
/usr/bin/pwpolicy -getaccountpolicies 2> /dev/null | /usr/bin/tail +2 | /usr/bin/xmllint --xpath 'boolean(//*[contains(text(),"policyAttributePassword matches '\''^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9]).*$'\''")])' -
If the result is not "true", this is a finding.
V-268547
False
APPL-15-003060
Verify the macOS system is configured to require that passwords contain a minimum of one lowercase character and one uppercase character with the following command:
/usr/bin/pwpolicy -getaccountpolicies 2> /dev/null | /usr/bin/tail +2 | /usr/bin/xmllint --xpath 'boolean(//*[contains(text(),"policyAttributePassword matches '\''^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9]).*$'\''")])' -
If the result is not "true", this is a finding.
M
5661