macOS
TMA-MACOS-5.1.6
Ensure No World Writable Folders Exist in the System Folder
高レベル 1自動macos
説明
Software sometimes insists on being installed in the /System/Volumes/Data/System Directory and has inappropriate world-writable permissions. Macs with writable files in System should be investigated forensically. A file with open writable permissions is a sign of at best a rogue application. It could also be a sign of a computer compromise and a persistent presence on the system.
チェック方法
監査方法: シェルコマンド
shell
[ -d /System/Volumes/Data/System ] || exit 1
/usr/bin/find /System/Volumes/Data/System -type d -perm -2 -ls 2>/dev/null | /usr/bin/grep -vE "downloadDir|locks" | /usr/bin/wc -l | /usr/bin/xargs- 期待される出力
0
修正方法
修正方法: ガイダンスまたは IaC パッチ
Terminal: IFS=$'\n' for sysPermissions in $( sudo /usr/bin/find /System/Volumes/Data/System -type d -perm -2 2>/dev/null | /usr/bin/grep -vE "downloadDir|locks" ); do /bin/chmod -R o-w "$sysPermissions" done.
プロパティ
- オペレーティングシステム
- macos-26
- タグ
- macossystem-access
- 参照
- CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.1.6 Ensure No World Writable Folders Exist in the System Folder
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target macos