mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-03-18 14:42:12 +00:00
check changed to be less than or equal to
This commit is contained in:
@@ -6,11 +6,18 @@ discussion: |
|
||||
An unattended system with an excessive grace period is vulnerable to a malicious user.
|
||||
check: |
|
||||
/usr/bin/osascript -l JavaScript << EOS
|
||||
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.screensaver')\
|
||||
.objectForKey('askForPasswordDelay').js
|
||||
function run() {
|
||||
let delay = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.screensaver')\
|
||||
.objectForKey('askForPasswordDelay'))
|
||||
if ( delay <= 5 ) {
|
||||
return("true")
|
||||
} else {
|
||||
return("false")
|
||||
}
|
||||
}
|
||||
EOS
|
||||
result:
|
||||
integer: 5
|
||||
string: "true"
|
||||
fix: |
|
||||
This is implemented by a Configuration Profile.
|
||||
references:
|
||||
|
||||
@@ -6,11 +6,18 @@ discussion: |
|
||||
This rule ensures that a full session lock is triggered within no more than 20 minutes of inactivity.
|
||||
check: |
|
||||
/usr/bin/osascript -l JavaScript << EOS
|
||||
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.screensaver')\
|
||||
.objectForKey('idleTime').js
|
||||
function run() {
|
||||
let timeout = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.screensaver')\
|
||||
.objectForKey('idleTime'))
|
||||
if ( timeout <= 1200 ) {
|
||||
return("true")
|
||||
} else {
|
||||
return("false")
|
||||
}
|
||||
}
|
||||
EOS
|
||||
result:
|
||||
integer: 1200
|
||||
string: "true"
|
||||
fix: |
|
||||
This is implemented by a Configuration Profile.
|
||||
references:
|
||||
|
||||
Reference in New Issue
Block a user