Malware Analysis with ClamAV in Acunetix 360

In order to enable an Acunetix 360 scan agent to carry out malware analysis for your web application, you need to download and install ClamAV.

ClamAV is an open-source, free, and widely used project backed by Cisco.

In order to enable Acunetix 360 to perform malware analysis, see Malware Analyzer.



  • ClamAV is optional. If you want an Acunetix 360 agent to identify malware, you need to use it.
  • Please note that you may need administrator privileges to run the following operations.

How to Set ClamAV as a Windows Service
  1. From ClamAV, download the program relevant to your environment

  1. Extract .zip file to a folder
  2. Navigate to the conf_examples folder and copy the clamd.conf.sample and the freshclam.conf.sample file

  1. Paste the clamd.conf.sample and freshclam.conf.sample files into the ClamAV's main folder and delete .sample extension from the files. The Rename popup is displayed. Click Yes.
  2. Open the freshclam.conf file with a text editor, and edit Log and Database directories, if necessary. Remove hashtags from the Log and Database lines.

  1. Now, open Command Prompt and navigate to the extracted folder
  2. Run freshclam.exe to update the ClamAV

  1. Next, run clamd install to configure ClamAV as a windows service
  2. Now, run sc config ClamD start auto so that the ClamAV service starts automatically
  3. Then, run sc config FreshClam start auto so that the ClamAV virus update service starts automatically.

How to Set ClamAV as a Linux Service
  1. Open terminal
  2. Run sudo apt-get install clamav clamav-daemon



You may want to run sudo apt update & sudo apt upgrade first before installing ClamAV to update your system.

  1. Run sudo nano /etc/clamav/freshclam.conf and increase ReceiveTimeout to 300
  2. Run sudo systemctl restart clamav-freshclam to apply changed configuration. Then, you may wait 2 - 3 minutes so that ClamAV updates the virus database.
  3. Run sudo nano /etc/clamav/clamd.conf in order to edit the file.
  • Then, delete the following entries from the clamd.conf file:
  1. LocalSocket /var/run/clamav/clamd.ctl
  2. FixStaleSocket true
  3. LocalSocketGroup clamav
  4. LocalSocketMode 666
  • And, add the following entries to the clamd.config file:
  1. TCPSocket 3310
  2. TCPAddr
  1. Run sudo systemctl restart clamav-daemon to apply changed configurations.



You can run sudo apt --purge autoremove clamav-daemon to uninstall ClamAV from your machine.

After the installation, you can run a test to confirm that ClamAV is working as expected.

How to test ClamAV
  1. Open terminal
  2. Run wget
  3. Run sudo clamdscan

  1. echo VERSION | nc -v 3310
  2. echo "SCAN ~/" | nc -v 3310

« Back to the Acunetix Support Page