Rule ID
SV-277104r1148764_rule
Version
V1R2
CCIs
Sending data to Apple to help improve search must be disabled. The information system must be configured to provide only essential capabilities. Disabling the submission of search data will mitigate the risk of unwanted data being sent to Apple.
Verify the macOS system is configured to disable sending search data from Spotlight with the following command:
/usr/bin/osascript -l JavaScript << EOS
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.assistant.support')\
.objectForKey('Search Queries Data Sharing Status').js
EOS
If the result is not "2", this is a finding.Configure the macOS system to disable sending search data from Spotlight by installing the "com.apple.assistant.support" configuration profile.