TMAegisベータ
macos のその他のルール

macOS

TMA-MACOS-5.1.7

Ensure No World Writable Folders Exist in the Library Folder

高レベル 2自動macos

説明

Software sometimes insists on being installed in the /System/Volumes/Data/Library directory and has inappropriate world-writable permissions. This software could be compromised with the folder(s) being world-writable by unauthorized actions.

チェック方法

監査方法: シェルコマンド

shell
[ -d /System/Volumes/Data ] || exit 1
/usr/bin/find /Library -type d -perm -002 ! -perm -1000 ! -xattrname com.apple.rootless 2>/dev/null | /usr/bin/grep -vE "/Library/AppStore" | /usr/bin/wc -l | /usr/bin/xargs
期待される出力
0

修正方法

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

Terminal: sudo IFS=$'\n' for libPermissions in $(/usr/bin/find /Library -type d -perm -002 ! -perm -1000 ! -xattrname com.apple.rootless 2>/dev/null); do /bin/chmod -R o-w "$libPermissions" done.

プロパティ

オペレーティングシステム
macos-26
タグ
macossystem-access
参照
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.1.7 Ensure No World Writable Folders Exist in the Library Folder

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target macos --level 2