SV-268441r1131199_rule
V-268441
SRG-OS-000029-GPOS-00010
APPL-15-000070
CAT II
10
Configure the macOS system to initiate the screen saver after 15 minutes of inactivity by installing the "com.apple.screensaver" configuration profile.
Verify the macOS system is configured to initiate the screen saver timeout after 15 minutes of inactivity with the following command:
/usr/bin/osascript -l JavaScript << EOS
function run() {
let timeout = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.screensaver')\
.objectForKey('idleTime'))
if ( timeout <= 900 ) {
return("true")
} else {
return("false")
}
}
EOS
If the result is not "true", this is a finding.
V-268441
False
APPL-15-000070
Verify the macOS system is configured to initiate the screen saver timeout after 15 minutes of inactivity with the following command:
/usr/bin/osascript -l JavaScript << EOS
function run() {
let timeout = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.screensaver')\
.objectForKey('idleTime'))
if ( timeout <= 900 ) {
return("true")
} else {
return("false")
}
}
EOS
If the result is not "true", this is a finding.
M
5661