macOS
TMA-MACOS-2.3.3.1
Ensure Screen Sharing Is Disabled
高级别 1自动化macos
说明
Screen Sharing allows a computer to connect to another computer on a network and display the computer’s screen. While sharing the computer’s screen, the user can control what happens on that computer, such as opening documents or applications, opening, moving, or closing windows, and even shutting down the computer.
检查方式
审计方法: Shell 命令
shell
out=$(/bin/launchctl list 2>/dev/null) || exit 1
printf '%s\n' "$out" | /usr/bin/grep -cE 'com.apple.screensharing$' || true- 预期输出
0
修复方式
修复方法: 操作指南或基础设施补丁
Terminal: sudo /bin/launchctl disable system/com.apple.screensharing ; sudo /bin/launchctl bootout system/com.apple.screensharing. GUI: System Settings > General > Sharing > Set Screen Sharing to disabled.
属性
- 操作系统
- macos-26
- 标签
- macossystem-settings
- 参考
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 2.3.3.1 Ensure Screen Sharing Is Disabled
检查本机
请在您有权审计的机器上运行此命令。扫描为只读操作。
shell
tmaegis scan --target macos