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
All changes in this version
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
----