TMAegis
Више правила за 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

Како се исправља

Метод исправке: Смерница или закрпа инфраструктуре

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