TMAegisBeta
更多 macos 规则

macOS

TMA-MACOS15-5.7

Ensure an Administrator Account Cannot Login to Another User's Active and Locked Session

高级别 1自动化macos

说明

macOS has a privilege that can be granted to any user that will allow that user to unlock active users' sessions. Note: For organizations that are using Platform Single-Sign-On (PSSO), this setting can cause issues with syncing with your PSSO. See the note in the audit to verify if you are using PSSO. Audit: Organisations using Platform SSO (app-sso platform -s shows a configuration) should not apply this change.

检查方式

审计方法: Shell 命令

shell
out=$(/usr/bin/security authorizationdb read system.login.screensaver 2>&1) || exit 1
printf '%s\n' "$out" | /usr/bin/awk -F "[<>]" '$3=="authenticate-session-owner" { ++x } END { print x+0 }'
预期输出
1

修复方式

修复方法: 操作指南或基础设施补丁

Terminal: sudo /usr/bin/security authorizationdb write system.login.screensaver authenticate-session-owner ; sudo /usr/bin/defaults write /Library/Preferences/com.apple.loginwindow screenUnlockMode -int 1.

属性

操作系统
macos-15
标签
macossystem-access
参考
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.7 Ensure an Administrator Account Cannot Login to Another User's Active and Locked Session

检查本机

请在您有权审计的机器上运行此命令。扫描为只读操作。

shell
tmaegis scan --target macos