TMAegis
Plus de règles pour macos

macOS

TMA-MACOS-5.1.6

Ensure No World Writable Folders Exist in the System Folder

ÉlevéeNiveau 1Automatiséemacos

Description

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.

Méthode de vérification

Méthode d'audit: Commande shell

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
Sortie attendue
0

Méthode de correction

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

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.

Propriétés

Systèmes d'exploitation
macos-26
Étiquettes
macossystem-access
Référence
CIS Apple macOS 26 Tahoe Benchmark v1.1.0 - 5.1.6 Ensure No World Writable Folders Exist in the System 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