TMAegisベータ
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
[ -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

修正方法

修正方法: ガイダンスまたは IaC パッチ

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