os_software_update_deferral Ensure Software Update Deferment Is Less Than or Equal to $ODV Days
NIST macOS Security Compliance Project Tahoe Guidance, Revision 3.0 (cf656e8)
All changes in this version
All changes in this version
Title
Ensure Software Update Deferment Is Less Than or Equal to $ODV Days
Control
/usr/bin/osascript -l JavaScript << EOS
function run() {
let timeout = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.applicationaccess')\
.objectForKey('enforcedSoftwareUpdateDelay')) || 0
if ( timeout <= $ODV ) {
return("true")
} else {
return("false")
}
}
EOS
Discussion
Software updates _MUST_ be deferred for $ODV days or less.
If you need to defer software updates, create a Restrictions profile using the com.apple.applicationaccess domain and the key enforcedSoftwareUpdateDelay.
Fix
This is implemented by a Configuration Profile.