TMAegisBeta
Mais regras para macos

macOS

TMA-MACOS-5.1.7

Ensure No World Writable Folders Exist in the Library Folder

AltaNível 2Automatizadamacos

Descrição

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.

Como é verificado

Método de auditoria: Comando shell

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
Saída esperada
0

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

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.

Propriedades

Sistemas operacionais
macos-26
Tags
macossystem-access
Referência
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.1.7 Ensure No World Writable Folders Exist in the Library Folder

Verificar este host

Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.

shell
tmaegis scan --target macos --level 2