Another option is to download it from the ClamAV Web site, which provides additional links to ClamAV scanners built for Windows and Mac OS X. ClamAV works as a client/server system, but you can. Choose Mac OSX from the Operating System drop-down list. Rules created for the chosen operating system are displayed at the bottom of the page. Click the check box for the rule you created in Step 1, and then click Update. Configure a Rule to Check if ClamAV is Updated. Managing Virus Scans With ClamAV 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. ClamAV includes a multi-threaded scanner daemon, command line utilities for on demand file scanning and automatic signature updates. Install and Configure ClamAV for MacOS To enable Malware Scanning with an Acunetix installation on MacOS, you will first need to install ClamAV. Since there is no native MacOS build for ClamAV, we need to first install a mechanism to package ClamAV for installation.
The ClamAuth kernel extension enables ClamAV to provide on-access scanning for Mac OS X 10.5 and later.The current version works in a passive mode only - ClamAV will log the detection but won't block access to the infected file. However, it's possible to perform special actions (eg. quarantine files) with the VirusEvent directive of clamd.
Usage
-----
1. Run ClamAuth_load to load the kernel extension (you can edit the script to change or add more paths that will be monitored).
2. Add 'ClamAuth yes' to your clamd.conf (ClamAV 0.97.4) or 'ScanOnAccess yes' (ClamAV-devel)
3. Start clamd with root privileges ('sudo /usr/local/sbin/clamd')
If clamd properly connects to the driver, you should see a line like this in the log file:
ClamAuth: Driver version: 0.3, protocol version: 2
ClamAV is now monitoring the paths specified in ClamAuth_load.
If you have any questions or feedback about this module please send it to the ClamAV mailing list here:
Download Os X Mavericks Installer
http://www.clamav.net/lang/en/ml/
Reference: https://gist.github.com/zhurui1008/4fdc875e557014c3a34e |
Get ClamAV running on Mac OS X (using Homebrew) |
The easiest way to get the ClamAV package is using Homebrew |
$ brew install clamav |
Before trying to start the clamd process, you'll need a copy of the ClamAV databases. |
$ cp /usr/local/etc/clamav/freshclam.conf.sample /usr/local/etc/clamav/freshclam.conf |
comment out line 8 'Example' in freshclam.conf and make sure the following line is there around line 79: 'DatabaseMirror database.clamav.net' |
$ cp /usr/local/etc/clamav/clamd.conf.sample /usr/local/etc/clamav/clamd.conf |
comment out line 8 'Example' and uncomment line 85 'LocalSocket /tmp/clamd.socket' |
Then run |
$ /usr/local/Cellar/clamav/0.99.2_1/bin/freshclam -v |
to download the ClamAV databases. The output will look something like this: |
Current working dir is /usr/local/Cellar/clamav/0.99.2_1/share/clamav |
Max retries 3 |
ClamAV update process started at Tue Jan 3 15:31:22 2017 |
Using IPv6 aware code |
Querying current.cvd.clamav.net |
TTL: 1651 |
Software version from DNS: 0.99.2 |
main.cvd version from DNS: 57 |
main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer) |
daily.cvd version from DNS: 22830 |
Retrieving http://database.clamav.net/daily-22830.cdiff |
Trying to download http://database.clamav.net/daily-22830.cdiff (IP: 172.110.204.67) |
nonblock_recv: recv timing out (30 secs) |
WARNING: getfile: Error while reading database from database.clamav.net (IP: 172.110.204.67): Operation now in progress |
WARNING: getpatch: Can't download daily-22830.cdiff from database.clamav.net |
Querying daily.22830.82.0.0.AC6ECC43.ping.clamav.net |
Retrieving http://database.clamav.net/daily-22830.cdiff |
Trying to download http://database.clamav.net/daily-22830.cdiff (IP: 198.148.78.4) |
Downloading daily-22830.cdiff [100%] |
... |
Database updated (5451300 signatures) from database.clamav.net (IP: 198.148.78.4) |
... |
then run |
$ /usr/local/Cellar/clamav/0.99.2_1/sbin/clamd |
to start the process. |
To scan a file, run |
$ /usr/local/Cellar/clamav/0.99.2_1/bin/clamdscan --fdpass /tmp/ver.out |
$ add clamav commands in PATH in ~/.bash_profile. Should be able to run freshclam, clamd and clamdscan afterwards. |
export PATH=/usr/local/Cellar/clamav/0.99.2_1/bin:/usr/local/Cellar/clamav/0.99.2_1/sbin:$PATH |