Virus Scanner

Hide Topic ContentsShow Topic Contents
  1. Virus Detected
  2. Virus Scanner Endpoint
  3. About ClamAV
    1. Install ClamAV for Windows
    2. Install 'clamd' as a Windows Service

At this time, the open-source ClamAV is the only supported virus scanner. Once installed, its endpoint needs to be defined in the CM4D Configuration Manager.

Confirm before release

Unsecured files are a common concern with applications that need to upload files to a server or database. If a server is not scanning for malicious files or the server antivirus does not detect threats in real-time, unsafe files may be allowed to spread onto the server.

CM4D Upload Portal projects can be configured to have files scanned by an antivirus engine to detect Trojans, viruses, malware & other malicious threats before the file is uploaded to the server for processing. Using a virus scanner is completely optional.

The virus scanner must be installed on the same machine as the DataSmith Batch Proxy and defined as an endpoint in CM4D Settings. Each project has the option to have the virus scanner enabled or disabled.

Virus Detected

If a threat is detected, the file will not complete processing and format validation and the user will be notified.

Virus Scanner Endpoint

Define the endpoint for the virus scanner in CM4D Settings. Enter the server name and port for the virus scanner host machine. This may be localhost in lieu of a server name if it is installed on the same machine as the CM4D Configuration Manager.

ClamAV server must be installed with services, using port 3310.

About ClamAV

ClamAV is an open source antivirus engine for detecting trojans, viruses, malware & other malicious threats.

To connect CM4D Upload Portal to an instance of ClamAV, you must have ClamAV running as a service and port 3310.

Install ClamAV for Windows

Download the installer that corresponds to your computer and run the installer. It is best to let the installer deploy to the default location, which is c:\clamav\, or you will have to manually modify a bunch of clamav settings files afterwards.

Install and configure according to the documentation provided by ClamAV.

Install 'clamd' as a Windows Service

  1. Open a command prompt (as Administrator).
  2. Change directory to c:\clamav\ or wherever you installed clamav.
  3. Run clamd.exe --install
  4. Open services.msc and edit the newly installed "ClamWin Free Antivirus Scanner Service" to start Automatically and/or use credentials other than the local system account, etc.

Can we improve this topic?