os_screensaver_timeout_loginwindow_enforce Enforce Screen Saver Timeout at LoginWindow
NIST macOS Security Compliance Project Sequoia Guidance, Revision 4.0 (be5491f)
All changes in this version
All changes in this version
Title
Enforce Screen Saver Timeout at LoginWindow
Control
/usr/bin/osascript -l JavaScript << EOS
function run() {
let timeout = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.screensaver')\
.objectForKey('loginWindowIdleTime'))
if ( timeout <= $ODV ) {
return("true")
} else {
return("false")
}
}
EOS
Discussion
The screen saver timeout at LoginWindow _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.
Fix
This is implemented by a Configuration Profile.