macOS
TMA-MACOS14-5.2.5
Ensure Complex Password Must Contain Special Character Is Configured
Deskripsi
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 a special character is part of the password policy on the computer. The more complex a password, the more resistant it will be against persons seeking unauthorized access to a system.
Cara pemeriksaan
Metode audit: Tinjauan manual
Graphical Method: Perform the following steps to ensure that the passwords must contain at least 1 special character: 1. Open System Settings 2. Select Privacy & Security 3. Select Profiles 4. Verify that an installed profile has Min Complex Length set to ≥ 1 Terminal Method: Run the following command to verify that the password requires at least one special character: % pref1=$(/usr/bin/sudo /usr/bin/pwpolicy -getaccountpolicies | /usr/bin/grep -e "policyAttributePassword matches '(.*[^a-zA-Z0-9].*){1,}'" | cut -b 12-67) && pref2=$(/usr/bin/sudo /usr/bin/pwpolicy -getaccountpolicies | /usr/bin/grep -A1 minimumSymbols | /usr/bin/tail -1 | /usr/bin/cut -d'>' - f2 | /usr/bin/cut -d '<' -f1) && if [ "$pref1" = "policyAttributePassword matches '(.*[^a-zA-Z0-9].*){1,}'" ]; then echo "true"; elif [[ "$pref2" != "" && pref2 -ge 1 ]]; then echo "true"; else echo "false"; fi true
Cara perbaikan
Metode perbaikan: Panduan atau patch infrastruktur
Terminal Method: Run the following command to set passwords to require at least one special character: % /usr/bin/sudo /usr/bin/pwpolicy -n /Local/Default -setglobalpolicy - setaccountpolicies "requiresSymbol=<value≥1>" example: % /usr/bin/sudo /usr/bin/pwpolicy -n /Local/Default -setglobalpolicy "requiresSymbol=1" Profile Method: Create or edit a configuration profile with the following information: 1. The PayloadType string is com.apple.mobiledevice.passwordpolicy 2. The key to include is minComplexChars 3. The key must be set to <integer><value≥1></integer> Note: The profile method is the preferred method for setting password policy since - setglobalpolicy in pwpolicy is deprecated and will likely be removed in a future macOS release.
Properti
- Sistem operasi
- macos-14
- Tag
- authmacossonoma
- Referensi
- CIS Apple macOS 14.0 Sonoma Benchmark v3.1.0 - 5.2.5 Ensure Complex Password Must Contain Special Character Is Configured