TMAegisBeta
更多 macos 规则

macOS

TMA-MACOS-5.1.5

Ensure Appropriate Permissions Are Enabled for System Wide Applications

高级别 1自动化macos

说明

Applications in the System Applications Directory (/Applications) should be world- executable since that is their reason to be on the system. They should not be world- writable and allow any process or user to alter them for other processes or users to then execute modified versions. Some application vendors use a world-writable folder for their applications. This is against the standard practice on POSIX systems.

检查方式

审计方法: Shell 命令

shell
[ -d /System/Volumes/Data/Applications ] || exit 1
/usr/bin/find /System/Volumes/Data/Applications -iname "*.app" -type d -perm -2 -ls 2>/dev/null | /usr/bin/grep -v Xcode.app | /usr/bin/wc -l | /usr/bin/xargs
预期输出
0

修复方式

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

Terminal: IFS=$'\n' for apps in $( sudo /usr/bin/find /System/Volumes/Data/Applications -iname "*\.app" -type d -perm -2 | grep -v Xcode.app ); do sudo /bin/chmod -R o-w "$apps" done.

属性

操作系统
macos-26
标签
macossystem-access
参考
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.1.5 Ensure Appropriate Permissions Are Enabled for System Wide Applications

检查本机

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

shell
tmaegis scan --target macos