BaselineWatch
Desk

os_system_wide_applications_configure Ensure Appropriate Permissions Are Enabled for System Wide Applications

NIST macOS Security Compliance Project Sequoia Guidance, Revision 4.0 (be5491f)
All changes in this version
first version loaded macOS

Title

Ensure Appropriate Permissions Are Enabled for System Wide Applications

Control

/usr/bin/find /Applications -iname "*\.app" -type d -perm -2 -ls | /usr/bin/wc -l | /usr/bin/xargs

Discussion

Applications in the System Applications Directory (/Applications) _MUST_ not be world-writable.

Fix

[source,bash]
----
IFS=$'\n'
for apps in $( /usr/bin/find /Applications -iname "*\.app" -type d -perm -2 ); do
/bin/chmod -R o-w "$apps"
done
----