macOS
TMA-MACOS-5.2.6
Ensure Complex Password Must Contain Uppercase and Lowercase Characters Is Configured
说明
Complex passwords contain one character from each of the following classes: English uppercase letters, English lowercase letters, Westernized Arabic numerals, and non- alphanumeric characters. Ensure that both uppercase and lowercase letters are part of the password policy on the computer.
检查方式
审计方法: 人工审核
Terminal: pref=$(sudo /usr/bin/pwpolicy -getaccountpolicies | /usr/bin/grep -A1 minimumMixedCaseCharacters | /usr/bin/tail -1 | /usr/bin/cut -d'>' -f2 | /usr/bin/cut -d '<' -f1) && if [[ "$pref" != "" && pref -ge 1 ]]; then echo "true"; else echo "false"; fi
修复方式
修复方法: 操作指南或基础设施补丁
Terminal: sudo /usr/bin/pwpolicy -n /Local/Default -setglobalpolicy "requiresMixedCase=<value≥1>" ; sudo /usr/bin/pwpolicy -n /Local/Default -setglobalpolicy "requiresMixedCase=1".
属性
- 操作系统
- macos-26
- 标签
- macossystem-access
- 参考
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.2.6 Ensure Complex Password Must Contain Uppercase and Lowercase Characters Is Configured