Rule ID
SV-288993r1316815_rule
Version
V1R1
CCIs
Erase Content and Settings must be disabled. Without disabling the Erase Content and Settings configuration, forensics data could be lost if this feature is activated on a compromised system.
Verify the macOS system is configured to disable Erase Content and Settings with the following command:
/usr/bin/osascript -l JavaScript -e 'var s = $.NSUserDefaults.alloc.initWithSuiteName("com.apple.applicationaccess"); (ObjC.unwrap(s.objectForKey("allowEraseContentAndSettings")) == false && s.objectIsForcedForKey("allowEraseContentAndSettings")) ? "PASS" : "FAIL"'
If the result is not "PASS", this is a finding.Configure the macOS system to disable Erase Content and Settings by installing the "com.apple.applicationaccess" configuration profile.