TMAegisBeta
macos için daha fazla kural

macOS

TMA-MACOS14-5.1.5

Ensure Appropriate Permissions Are Enabled for System Wide Applications

YüksekDüzey 1Otomatikmacos

Açıklama

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. If your organization is using an application that does not follow standard practices, you can add the application to the exclusion list in the audit and remediation (ie. the way Xcode is excluded with the grep -v Xcode.app command). It is also recommended that you alert the vendor that their application should be updated to follow security best practices. Unauthorized modifications of applications could lead to the execution of malicious code.

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

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
Beklenen çıktı
0

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

Terminal Method: Run the following command to change the permissions for each application that does not meet the requirements: % IFS=$'\n' for apps in $( /usr/bin/sudo /usr/bin/find /System/Volumes/Data/Applications -iname "*\.app" -type d -perm -2 | grep -v Xcode.app ); do /usr/bin/sudo /bin/chmod -R o-w "$apps" done Note: Global changes should not be performed where mission-critical applications are part of the improperly permissioned applications.

Özellikler

İşletim sistemleri
macos-14
Etiketler
access-controlmacossonoma
Referans
CIS Apple macOS 14.0 Sonoma Benchmark v3.1.0 - 5.1.5 Ensure Appropriate Permissions Are Enabled for System Wide Applications

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target macos