TMAegisBêta
Plus de règles pour macos

macOS

TMA-MACOS15-5.1.7

Ensure No World Writable Folders Exist in the Library Folder

ÉlevéeNiveau 2Automatiséemacos

Description

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.

Méthode de vérification

Méthode d'audit: Commande 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
Sortie attendue
0

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

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.

Propriétés

Systèmes d'exploitation
macos-15
Étiquettes
macossystem-access
Référence
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.1.7 Ensure No World Writable Folders Exist in the Library Folder

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target macos --level 2