Clam AntiVirus (ClamAV) is a free software, cross-platform and open-source antivirus software toolkit able to detect many types of malicious software, including viruses. One of its main uses is on mail servers as a server-side email virus scanner. The application was developed for Unix and has third party versions available for AIX, BSD, HP-UX, Linux, macOS, OpenVMS, OSF (Tru64) and Solaris.

ClamAV includes a number of utilities: a command-line scanner, automatic database updater and a scalable multi-threaded daemon, running on an anti-virus engine from a shared library.

1 Using clam daemon client

To test for viruses simply create a clamd client on specific host and port and test the data.

    var clam = new"", 3310);

    var EICAR = new Ax.lang.String("X5O!P%@AP[4\\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*").getBytes("ASCII");
    console.log('is clean EICAR', clam.isClean(EICAR));

    var SAFE_STRING = new Ax.lang.String("Hello world!").getBytes("ASCII");
    console.log('is clean SAFE_STRING', clam.isClean(SAFE_STRING));