APPL-14-002069 - The macOS system must require administrator privileges to modify systemwide settings.

Information

The system must be configured to require an administrator password in order to modify the systemwide preferences in System Settings.

Some Preference Panes in System Settings contain settings that affect the entire system. Requiring a password to unlock these systemwide settings reduces the risk of a nonauthorized user modifying system configurations.

Solution

Configure the macOS system to require administrator privileges to modify systemwide settings with the following command:

authDBs=('system.preferences' 'system.preferences.energysaver' 'system.preferences.network' 'system.preferences.printing' 'system.preferences.sharing' 'system.preferences.softwareupdate' 'system.preferences.startupdisk' 'system.preferences.timemachine')

for section in ${authDBs[@]}; do
/usr/bin/security -q authorizationdb read '$section' > '/tmp/$section.plist'
key_value=$(/usr/libexec/PlistBuddy -c 'Print :shared' '/tmp/$section.plist' 2>&1)
if [[ '$key_value' == *'Does Not Exist'* ]]; then
/usr/libexec/PlistBuddy -c 'Add :shared bool false' '/tmp/$section.plist'
else
/usr/libexec/PlistBuddy -c 'Set :shared false' '/tmp/$section.plist'
fi
/usr/bin/security -q authorizationdb write '$section' < '/tmp/$section.plist'
done

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_macOS_14_V2R1_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(10), CAT|I, CCI|CCI-002235, Rule-ID|SV-259515r958726_rule, STIG-ID|APPL-14-002069, Vuln-ID|V-259515

Plugin: Unix

Control ID: a8728b9b0a6b0e1012415c745cb6ae0036d757b1b26b92aa493eb264201999e5