ClamAV explained

ClamAV
Author:Tomasz Kojm
Developer:Cisco Talos
Programming Language:C, C++
Operating System:Unix, AIX, BSD, HP-UX, Linux, macOS, OpenVMS, Tru64 UNIX, Windows, Haiku
Genre:Antivirus software
License:GPL-2.0-only

ClamAV (antivirus) is a free software, cross-platform antimalware toolkit able to detect many types of malware, including viruses. It was developed for Unix and has third party versions available for AIX, BSD, HP-UX, Linux, macOS, OpenVMS, OSF (Tru64), Solaris and Haiku. As of version 0.97.5, ClamAV builds and runs on Microsoft Windows.[1] [2] Both ClamAV and its updates are made available free of charge. One of its main uses is on mail servers as a server-side email virus scanner.

History

ClamAV was initially released with version 0.10 on May 8, 2002, by Polish university student Tomasz Kojm.[3] In 2007, it was acquired by Sourcefire,[4] which in turn was acquired by Cisco in 2013[5] and now operates under its Talos cybersecurity division.

Patent lawsuit

In 2008, Barracuda Networks was sued by Trend Micro for its distribution of ClamAV as part of a security package.[6] Trend Micro claimed that Barracuda's utilization of ClamAV infringes on a software patent for filtering viruses on an Internet gateway. The free software community responded in part by calling for a boycott against Trend Micro. The boycott was also endorsed by the Free Software Foundation.[7] Barracuda Networks counter-sued with IBM-obtained patents in July 2008.[8] On May 19, 2011, the U.S. Patent and Trademark Office issued a Final Rejection[9] in the reexamination of Trend Micro's U.S. patent 5,623,600.[10]

Features

ClamAV includes a command-line scanner, automatic database updater, and a scalable multi-threaded daemon running on an anti-virus engine from a shared library.[1] The application features a Milter interface for sent mail and on-demand scanning. It recognizes:

The ClamAV virus database is updated at least every four hours and as of 10 February 2017 contained over 5,760,000 virus signatures[11] with the daily update Virus DB number at 23040.[12] [13]

Real-time file scanning

In older Linux application versions, ClamAV did support real-time protection via the Fanotify add-on for the Linux kernel (version 3.8 and later.)[14] Alternatively, one could use ClamFS (for any Unix-like operating system supporting FUSE).

Nowadays, the Real-Time Protection in Linux Systems, is provided through ClamAV's ClamOnAcc application (under the name of "On-Access Scanning") – which uses Clamd to provide real-time protection by scanning files when they are accessed.[15]

In other words, the On-Access Scanner can detect and prevent access to malicious files based on the verdict received from Clamd. By default, it operates in "notify-only mode", alerting users of any threats detected without actively blocking file access.

Enabling "prevention mode" can considerably impact performance, especially in commonly accessed directories, so it is advised to use it judiciously.

In order to use ClamOnAcc, users need to first run clamd and then start the On-Access Scanner as root (to leverage its kernel event detection and intervention capabilities).

Configuration for On-Access Scanning is primarily done through clamd.conf, with additional options available in the On-Access Scanning User Guide.

Users can run multiple instances of ClamOnAcc simultaneously with different configurations, allowing for customized protection settings for various directories.

ClamOnAcc (v0.102+) is a client application that operates alongside clamd (the ClamAV daemon), to perform On-Access Scanning.

Regarding previous versions that were meant for Microsoft Windows, a free, open-source app called Clam Sentinel did use to detect file changes and scanned modified files using ClamWin.[16] It did work with Windows 98 and later. In addition to on-access scanning, it used to feature optional system change messages and proactive heuristic protection.[17]

Effectiveness

In the 2008 AV-TEST comparison of antivirus tools, ClamAV scored poorly in on-demand detection, avoiding false positives, and rootkit detection.[18]

In a Shadowserver six-month test between June and December 2011, ClamAV detected over 75.45% of all viruses tested, putting it in fifth place behind AhnLab, Avira, BitDefender and Avast. AhnLab, the top antivirus, detected 80.28%.[19]

In 2022 Splunk conducted an efficacy study involving 416,561 malware samples sourced from MalwareBazaar, bucketed as follows: 106135 Banking Trojans (trojans targeted towards stealing financial information); 26875 Botnets (malware for making the victim a part of a botnet); 190371 Information Stealers (programs designed to steal client information. E.g. Keyloggers); 52422 Loaders (program that loads one or more other malicious programs – that is, a stager that fetches harmful things directly into memory); 1321 Miners (crypto currency miners); 30251 RATs (Remote access tools. E.g. Backdoors); and 8273 Trojans (a generic multipurpose malware that harms the user in different ways – generally disguises itself and delivered by tricking the user). Splunk's study concluded ClamAV was 59.94% effective overall at detecting commodity malware – being able to detect 249,696/416,561 samples.[20]

In that same study, ClamAV performed relatively well at detecting certain types of malware in certain types of files (E.g. docx files, dil files, elf files, doc files and exe files), but was less effective in detecting malware in jar files, js files, vbs files, z files, rar files, and xlsb files. In addition, ClamAV performed well to detect a few top level categories of malware like Trojans & Botnets but performed poorly on other malware types like Crypto Miners, RATs and Info Stealers.[21]

Unofficial databases

The ClamAV engine can be reliably used to detect several kinds of files. In particular, some phishing emails can be detected using antivirus techniques. However, false positive rates are inherently higher than those of traditional malware detection.[22]

There are several unofficial databases for ClamAV:

ClamAV Unofficial Signatures are mainly used by system administrators to filter email messages.[25] Detections of these groups should be scored, rather than causing an outright block of the "infected" message.[23]

Platforms

Linux, BSD

ClamAV is available for Linux and BSD-based operating systems.[1] In most cases it is available through the distribution's repositories for installation.

On Linux servers ClamAV can be run in daemon mode, servicing requests to scan files sent from other processes. These can include mail exchange programs, files on Samba shares, or packets of data passing through a proxy server.

On Linux and BSD desktops ClamAV provides on-demand scanning of individual files, directories or the whole PC.[1]

macOS

macOS Server has included ClamAV since version 10.4. It is used within the operating system's email service. A paid-for graphical user interface is available from Canimaan Software Ltd[26] in the form of ClamXav.[27] Additionally, Fink, Homebrew and MacPorts have ported ClamAV.

Another program which uses the ClamAV engine on macOS, is Counteragent. Working alongside the Eudora Internet Mail Server program, Counteragent scans emails for viruses using ClamAV and also optionally provides spam filtering through SpamAssassin.

OpenVMS

ClamAV for OpenVMS is available for DEC Alpha and Itanium platforms. The build process is simple and provides basic functionality, including library, the clamscan utility, the clamd daemon, and freshclam for update.[28]

Windows

There are IA-32 and x64 variants of ClamAV available for Windows; additionally, Cisco's Immunet uses ClamAV as its engine.[29]

OS/2

A port of ClamAV is available for OS/2 (including eComStation and ArcaOS) with a native UI written in REXX.[30] [31]

Graphical interfaces

Since ClamAV does not include a graphical user interface (GUI) but instead is run from the command line, a number of third-party developers have written GUIs for the application for various platforms and uses.

These include:

[33] [34]

ClamWin

See main article: ClamWin Free Antivirus.

ClamWin is a graphical user interface front-end ClamWin Pty Ltd. developed for ClamAV on Microsoft Windows. Features include on-demand (user-started) scanning, automatic updates, scheduled scanning, and integration with File Explorer and Microsoft Outlook. ClamWin does not provide on-access scanning. A Firefox add-on enables ClamWin to scan downloaded files.[39] [40] Several other extensions allow users to process downloaded files with any software and scan the files with ClamWin.[41] [42] [43] [44]

See also

Further reading

Notes and References

  1. Web site: About ClamAV . 2008-12-25 . ClamAV . 2007.
  2. Web site: ClamAV Packages and Ports . 2008-12-31 . ClamAV . 2007 . https://web.archive.org/web/20080720205113/http://www.clamav.net/download/packages/ . 2008-07-20 . dead .
  3. https://blog.clamav.net/2022/05/celebrating-20-years-of-clamav.html Celebrating 20 years of ClamAV
  4. https://www.techrepublic.com/article/sourcefire-acquires-clamav/ Sourcefire acquires ClamAV
  5. https://techcrunch.com/2013/07/23/cisco-acquires-cybersecurity-company-sourcefire-for-2-7b/ Cisco Acquires Cybersecurity Company Sourcefire For $2.7B
  6. Web site: Trend Micro patent claim provokes FOSS community, leads to boycott . Linux.com . 2008-02-11 . 2008-02-12.
  7. Web site: Boycott Trend Micro . . 2008-02-11 . 2008-02-12.
  8. Web site: Paul . Ryan . Barracuda bites back at Trend Micro in ClamAV patent lawsuit . Arstechnica.com . 2008-07-02 . 2012-02-14.
  9. Web site: Ex Parte Reexamination . U.S. Patent and Trademark Office . 2011-05-19 . 2015-10-04.
  10. Web site: Anatomy of a Dying Patent – The Reexamination of Trend Micro's '600 Patent . Groklaw.net . 2011-06-13 . 2015-10-04.
  11. Web site: Introduction – ClamAV Documentation . 2024-03-09 . docs.clamav.net.
  12. Web site: About ClamAV . https://web.archive.org/web/20081120213532/http://www.clamav.net./about . dead . 2008-11-20 . 2008-12-25.
  13. Web site: Latest Stable Release . https://web.archive.org/web/20100918141732/http://www.clamav.net/lang/en/about/ . dead . 2010-09-18 . 2010-08-21.
  14. Web site: Configuring On-Access Scanning in ClamAV. Mickey. Sola.
  15. Web site: Scanning – ClamAV Documentation . 2024-05-02 . docs.clamav.net.
  16. Web site: Clam Sentinel – Making ClamWin Be Used In Real-Time . Cyber Pillar . 2014-09-01 . 2014-08-19 . https://web.archive.org/web/20140819161847/http://cyberpillar.com/dirsver/1/mainsite/techns/bhndscen/protsoft/antimalw/antivir/avmswin/clamwin/mkclmwrt/mkclmwrt.htm . dead .
  17. Web site: Clam Sentinel . 2014-06-19.
  18. Web site: Anti-virus comparison test of current anti-malware products, Q1/2008 . AV-Test GmbH . 22 January 2008 . 12 February 2008 . https://web.archive.org/web/20110715060200/http://blogs.pcmag.com/securitywatch/Results-2008q1.htm . 15 July 2011.
  19. Web site: ShadowServer 180 Day Stats . shadowserver.org . 2011-08-16 . 2011-12-16 . https://web.archive.org/web/20111127145417/http://www.shadowserver.org/wiki/pmwiki.php/AV/Virus180-DayStats . 2011-11-27 . dead .
  20. Web site: How Good is ClamAV at Detecting Commodity Malware?. Splunk-Blogs.
  21. Web site: How Good is ClamAV at Detecting Commodity Malware?. Splunk-Blogs.
  22. Web site: High-Performance Content-Based Phishing Attack Detection . Brad Wardman . Tommy Stallings . Gary Warner . Anthony Skjellum . 5 August 2011 . uab.edu . 19 March 2018.
  23. Sanesecurity Phishing, Scam and Malware signatures for ClamAV
  24. SecuriteInfo.com Add 4.000.000 signatures to ClamAV Antivirus
  25. Web site: ClamAV Unofficial Signatures Updater . . 24 May 2009 . sourceforge.net . 2 September 2014.
  26. News: About us. ClamXAV. 2017-07-15. en.
  27. Web site: ClamXAV.com . 2009-01-24 . ClamXav.com . n.d..
  28. Web site: Clam AntiVirus OpenVMS Project News . 2008-12-25 . Chupahin . Alexey . December 2008 . https://web.archive.org/web/20111006011551/http://clamav.dyndns.org/clamav/ . 2011-10-06 . dead .
  29. Web site: Alternate Versions of ClamAV. live. https://web.archive.org/web/20211122150607/https://www.clamav.net/downloads#otherversions. 22 November 2021. 26 November 2021. clamav.net. Cisco Systems. Immunet, powered by ClamAV, is a [...] Windows desktop anti-virus (AV) solution.
  30. Web site: My graphical user interface for "ClamAV". 2020-09-03.
  31. Web site: Clamav, ClamAV-GUI (Rexx & QT4) & eCSClamav. 2020-09-03.
  32. Web site: ClamTk Virus Scanner . 2008-12-25 . Mauroni . Dave . December 2008.
  33. Web site: use clamav with nodejs . manjeet.info . 2024-07-01.
  34. Web site: ClamTk README . 2008-12-26 . Mauroni . Dave . October 2008 . 2011-09-14 . https://web.archive.org/web/20110914050853/http://clamtk.sourceforge.net/README . dead .
  35. Web site: KlamAV – Main Page . 2013-03-04 . KlamAV F. . May 2006.
  36. Web site: wbmclamav – The Webmin ClamAV Antivirus manager. Emmanuel. Saracco. wbmclamav.esaracco.fr.
  37. Web site: ClamXav.com . 2008-12-25 . ClamXav.com . November 2008.
  38. Web site: CS Anti-Virus description . Softpedia.com . 2009-03-23 . 2010-11-09.
  39. Web site: FireClam: Use ClamAV to scan Firefox downloads for viruses . Firefox Addons . 2009-11-02.
  40. Web site: ClamWin Antivirus Glue for Firefox . https://archive.today/20121220214917/https://addons.mozilla.org/en-US/firefox/addon/clamwin-antivirus-glue-for-fir/ . dead . 2012-12-20 . Firefox Addons . 2008-04-15 .
  41. Web site: Download Scan . Downloadstatusbar.mozdev.org . 2005-08-19 . 2010-11-09.
  42. Web site: Download Statusbar.
  43. Web site: Safe Download . Extensions.geckozone.org . 2010-11-09.
  44. Web site: About ClamWin Free Antivirus . 2009-03-13 . ClamWin Pty Ltd . 2009 . https://web.archive.org/web/20100125005824/http://www.clamwin.com/content/view/71/1/ . 2010-01-25 . dead .