os_anti_virus_installed Must Use an Approved Antivirus Program
All changes in this version
Title
Must Use an Approved Antivirus Program
Control
/usr/bin/xprotect status | /usr/bin/grep -cE "(launch scans: enabled|background scans: enabled)"
Discussion
An approved antivirus product _MUST_ be installed and configured to run.
Malicious software can establish a base on individual desktops and servers. Employing an automated mechanism to detect this type of software will aid in elimination of the software from the operating system.'
Fix
[source,bash]
----
/bin/launchctl load -w /Library/Apple/System/Library/LaunchDaemons/com.apple.XProtect.daemon.scan.plist
/bin/launchctl load -w /Library/Apple/System/Library/LaunchDaemons/com.apple.XprotectFramework.PluginService.plist
----
NOTE: These services cannot be unloaded or loaded while System Integrity Protection (SIP) is enabled.