TMAegisБета
Више правила за macos

macOS

TMA-MACOS15-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

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

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

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-15
Ознаке
macossystem-access
Референца
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.1.6 Ensure No World Writable Folders Exist in the System Folder

Проверите овај рачунар

Покрените ово на рачунару за који имате дозволу за проверу. Скенирање ради у режиму само за читање.

shell
tmaegis scan --target macos