Rule ID
SV-288921r1316757_rule
Version
V1R1
The ability to submit diagnostic data to Apple must be disabled. The information system must be configured to provide only essential capabilities. Disabling the submission of diagnostic and usage information will mitigate the risk of unwanted data being sent to Apple. Satisfies: SRG-OS-000205-GPOS-00083, SRG-OS-000206-GPOS-00084
Verify the macOS system is configured to disable sending diagnostic and usage data to Apple with the following command:
/usr/bin/osascript -l JavaScript -e 'var s1 = $.NSUserDefaults.alloc.initWithSuiteName("com.apple.SubmitDiagInfo"); var s2 = $.NSUserDefaults.alloc.initWithSuiteName("com.apple.applicationaccess"); var v1 = ObjC.unwrap(s1.objectForKey("AutoSubmit")); var v2 = ObjC.unwrap(s2.objectForKey("allowDiagnosticSubmission")); var f1 = s1.objectIsForcedForKey("AutoSubmit"); var f2 = s2.objectIsForcedForKey("allowDiagnosticSubmission"); (v1 == false && v2 == false && f1 && f2) ? "PASS" : "FAIL"'
If the result is not "PASS", this is a finding.Configure the macOS system to disable sending diagnostic and usage data to Apple by installing the "com.apple.SubmitDiagInfo" configuration profile.