Download ClamAV - An antivirus solution that is able to detect over 750.000 viruses, worms and trojans in order to protect your computer and email from security threats.
There are a number of solutions on the market for scanning a Mac for files that have become infected with a virus or macro-virus. Many of these have a negative return on investment. So customers can instead go the open source route to scan files and quarantine them. And customers can use Jamf Pro to enable doing so. This page is meant to provide a quick and dirty guide to doing so, along with how this might be packaged and potentially tracked with Jamf Pro. First, we’ll install and configure a free tool called clamav.There are a number of ways to install clam. For this example, just to get it done quickly, we’ll use homebrew which is simply brew with the install verb and clamav as the recipe to be brewed:This is going to place your configuration files in /usr/local/etc/clamav and these cannot be used as those supplied by default are simply sample configurations. Because the .sample files have a line that indicates they are an “Example” they cannot be used. So we’ll copy the sample configuration files for freshclam.conf and clamd.conf (the demonized version) and then remove the Example line using the following two lines:cp
/usr/local/etc/clamav/freshclam
.conf.sample
/usr/local/etc/clamav/freshclam
.conf;
sed
-ie
's/^Example/#Example/g'
/usr/local/etc/clamav/freshclam
.conf
Mac mini, Mac OS X (10.6.8), server Posted on Oct 30, 2016 3:06 AM Reply I have this question too (22) I have this question too Me too (22) Me too. September 17, 2017 October 7, 2017 admin Security clam antivirus mac, clamav mac, clamxav mac. Install clamav on Mac OS. App name: clamav 0.99.2 App description: Anti.
cp
/usr/local/etc/clamav/clamd
.conf.sample
/usr/local/etc/clamav/clamd
.conf;
sed
-ie
's/^Example/#Example/g'
/usr/local/etc/clamav/clamd
.conf
sudo
mkdir
/Users/Shared/Quarantine
sudo
clamscan -r — scan-pdf=
yes
-l
/Users/Shared/Quarantine/Quarantine
.txt — move=
/Users/Shared/Quarantine/
/
result = `
cat
/Users/Shared/Quarantine/Quarantine
.txt`
#Echo Quarantine into EA
echo
'<result>$result</result>'
clamdscan is multithreaded and hence runs a lot faster than a clamscan call.
This repo has a plist that automatically runs on-demand clamdscan on a schedule.