Rule ID
SV-288940r1316779_rule
Version
V1R1
CCIs
Gatekeeper must be enabled. Gatekeeper is a security feature that ensures applications are digitally signed by an Apple-issued certificate before they are permitted to run. Digital signatures allow the macOS host to verify the application has not been modified by a malicious third party. Administrator users will still have the option to override these settings on a case-by-case basis.
Verify the macOS system is configured to enable gatekeeper with the following command:
/usr/bin/osascript -l JavaScript -e 'var s = $.NSUserDefaults.alloc.initWithSuiteName("com.apple.systempolicy.control"); (ObjC.unwrap(s.objectForKey("EnableAssessment")) == true && s.objectIsForcedForKey("EnableAssessment")) ? "PASS" : "FAIL"'
If the result is not "PASS", this is a finding.Configure the macOS system to enable gatekeeper by installing the "com.apple.systempolicy.control" configuration profile.