macOS
TMA-MACOS-2.12.1
Ensure Users' Accounts Do Not Have a Password Hint
高等級 1自動化macos
說明
Password hints help the user recall their passwords for various systems and/or accounts. In most cases, password hints are simple and closely related to the user's password. Audit: Counts users that have any password hint text.
檢查方式
稽核方法: Shell 指令
shell
out=$(/usr/bin/dscl . -list /Users hint 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/awk 'NF > 1 {n++} END {print n+0}'- 預期輸出
0
修補方式
修補方法: 操作指南或基礎設施修補檔
Terminal: sudo /usr/bin/dscl . -list /Users hint . -delete /Users/<username> hint ; sudo /usr/bin/dscl . -list /Users hint . -delete /Users/firstuser hint ; sudo /usr/bin/dscl . -list /Users hint . -delete /Users/seconduser hint. GUI: System Settings > Touch ID & Passwords (or Login Password on non-Touch ID Macs) > Change > Change the password and ensure that no text is entered in the Password hint box.
屬性
- 作業系統
- macos-26
- 標籤
- macossystem-settings
- 參考資料
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.12.1 Ensure Users' Accounts Do Not Have a Password Hint
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target macos