BaselineWatch
Desk

system_settings_screensaver_timeout_enforce Enforce Screen Saver Timeout

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

Title

Enforce Screen Saver Timeout

Control

/usr/bin/osascript -l JavaScript << EOS
function run() {
let timeout = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.screensaver')\
.objectForKey('idleTime'))
if ( timeout <= $ODV ) {
return("true")
} else {
return("false")
}
}
EOS

Discussion

The screen saver timeout _MUST_ be set to $ODV seconds or a shorter length of time.

This rule ensures that a full session lock is triggered within no more than $ODV seconds of inactivity.

Related controls

ac-11, ia-11

Fix

This is implemented by a Configuration Profile.