macOS
TMA-MACOS15-5.1.5
Ensure Appropriate Permissions Are Enabled for System Wide Applications
Description
Applications in the System Applications Directory (/Applications) should be world- executable since that is their reason to be on the system. They should not be world- writable and allow any process or user to alter them for other processes or users to then execute modified versions. Some application vendors use a world-writable folder for their applications. This is against the standard practice on POSIX systems.
Méthode de vérification
Méthode d'audit: Commande shell
[ -d /System/Volumes/Data/Applications ] || exit 1
/usr/bin/find /System/Volumes/Data/Applications -iname "*.app" -type d -perm -2 -ls 2>/dev/null | /usr/bin/grep -v Xcode.app | /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 apps in $( sudo /usr/bin/find /System/Volumes/Data/Applications -iname "*\.app" -type d -perm -2 | grep -v Xcode.app ); do sudo /bin/chmod -R o-w "$apps" 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.5 Ensure Appropriate Permissions Are Enabled for System Wide Applications
Vérifier cet hôte
Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.
tmaegis scan --target macos