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