docs/clamdoc.tex
8589f1a0
 %  Clam AntiVirus: User Manual
 %
28715a7c
 %  Copyright (C) 2008-2013 Sourcefire, Inc.
73e034df
 %  Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm*clamav.net>
8589f1a0
 %  Version 0.2x corrected by Dennis Leeuw <dleeuw*made-it.com>
 %  Version 0.80 corrected by Tomasz Papszun <tomek*clamav.net>
 %
 %  This program is free software; you can redistribute it and/or modify
 %  it under the terms of the GNU General Public License as published by
 %  the Free Software Foundation; either version 2 of the License, or
 %  (at your option) any later version.
 %
 %  This program is distributed in the hope that it will be useful,
 %  but WITHOUT ANY WARRANTY; without even the implied warranty of
 %  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 %  GNU General Public License for more details.
 %
 %  You should have received a copy of the GNU General Public License
 %  along with this program; if not, write to the Free Software
48b7b4a7
 %  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 %  MA 02110-1301, USA.
8589f1a0
 
 \documentclass[a4paper,titlepage,12pt]{article}
 \usepackage{amssymb}
 \usepackage{pslatex}
 \usepackage[dvips]{graphicx}
 \usepackage{wrapfig}
 \usepackage{boxedminipage}
 \usepackage{url}
 \usepackage{fancyhdr}
 \usepackage{titlesec}
 \addtolength{\hoffset}{-0.5cm}
 \addtolength{\textwidth}{1cm}
 \date{}
 
 \usepackage{color}
 \definecolor{grey1}{gray}{0.8}
 \definecolor{grey2}{gray}{0.3}
 
 % Based on Antonina Liedtke's article in Linux+ 6/2003
 \def\greyp{%
     \unitlength=1mm%
     \begin{picture}(0,0)
 	\put(0,-1.5){\textcolor{grey1}{\rule{13.9cm}{5.3mm}}\textcolor{grey2}%
 	{\rule{9mm}{5.3mm}}\hss}
     \end{picture}
 }
 
 \pagestyle{fancy}
 \fancyhead{}
 \fancyfoot{}
 \renewcommand{\headrulewidth}{0pt}
 \fancyhead[RO]{\textbf{\sffamily{{\textcolor{white}{\thepage}}~}}}
 \fancyhead[RE]{\footnotesize{\nouppercase{\rightmark~}}}
 \fancyhead[LO]{\footnotesize{\greyp{\nouppercase{\leftmark}}}}
 
 
 \newcommand{\pl}{\vspace{.3cm}}
 \newcommand{\rc}[2]{\textbf{#1: } #2\\[4pt]}
 \newcommand{\up}[2]{\textbf{--#1: } #2\\[4pt]}
 \newcommand{\email}[1]{\texttt{#1}}
 \newcommand{\vbt}[1]{\verb+#1+}
 \newcommand{\cons}[1]{\vspace{2mm} \noindent \ovalbox {\sffamily #1}
 		      \vspace{2mm}}
 
 \begin{document}
     \setcounter{page}{0}
 
     \pagestyle{empty}
8ea83d13
     \includegraphics[width=353pt]{clam}
8589f1a0
     \vspace{3cm}
     \begin{flushright}
 	\rule[-1ex]{8cm}{3pt}\\
4ce30499
 	\huge Clam AntiVirus 0.97.8\\
8589f1a0
 	\huge \emph{User Manual}\\
     \end{flushright}
 
     \newpage
     \pagestyle{fancy}
     \tableofcontents
ee93a07e
     \vspace{1.0cm}
8589f1a0
 
     \noindent
     \begin{boxedminipage}[b]{\textwidth}
61b40ee3
     ClamAV User Manual,
28715a7c
     \copyright \  2007 - 2013 Sourcefire, Inc.
afcd3fea
     Authors: Tomasz Kojm\\
8589f1a0
     This document is distributed under the terms of the GNU General
73e034df
     Public License v2.\\
8589f1a0
 
     Clam AntiVirus is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
73e034df
     (at your option) any later version.\\
8589f1a0
 
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
73e034df
     GNU General Public License for more details.\\
8589f1a0
 
     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
48b7b4a7
     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
     MA 02110-1301, USA.
8589f1a0
     \end{boxedminipage}
 
ee93a07e
     \vspace{0.3cm}
73e034df
     \noindent
     \begin{boxedminipage}[b]{\textwidth}
5ded1e94
     ClamAV and Clam AntiVirus are trademarks of Sourcefire, Inc.
73e034df
     \end{boxedminipage}
 
8589f1a0
     \newpage
 
     \section{Introduction}
af76dfbd
     Clam AntiVirus is an open source (GPL) anti-virus toolkit for UNIX,
     designed especially for e-mail scanning on mail gateways. It provides
     a number of utilities including a flexible and scalable multi-threaded
     daemon, a command line scanner and advanced tool for automatic database
     updates. The core of the package is an anti-virus engine available in a
     form of shared library.
8589f1a0
 
     \subsection{Features}
 
     \begin{itemize}
 	\item{Licensed under the GNU General Public License, Version 2}
 	\item{POSIX compliant, portable}
 	\item{Fast scanning}
 	\item{Supports on-access scanning (Linux and FreeBSD only)}
b64a3b38
 	\item{Detects over 1 million viruses, worms and trojans, including
73e034df
 	      Microsoft Office macro viruses, mobile malware, and other threats}
a86c2ddc
 	\item{Built-in bytecode interpreter allows the ClamAV signature writers
 	      to create and distribute very complex detection routines and
 	      remotely enhance the scanner's functionality}
8589f1a0
 	\item{Scans within archives and compressed files (also protects
 	      against archive bombs), built-in support includes:
73e034df
 	    \begin{itemize}
 		\item Zip (including SFX)
 		\item RAR (including SFX)
a86c2ddc
 		\item 7Zip
5ded1e94
 		\item ARJ (including SFX)
8589f1a0
 		\item Tar
a86c2ddc
 		\item CPIO
8589f1a0
 		\item Gzip
 		\item Bzip2
 		\item MS OLE2
73e034df
 		\item MS Cabinet Files (including SFX)
8589f1a0
 		\item MS CHM (Compiled HTML)
 		\item MS SZDD compression format
73e034df
 		\item BinHex
 		\item SIS (SymbianOS packages)
50b8f5d6
 		\item AutoIt
a86c2ddc
 		\item InstallShield
73e034df
 	    \end{itemize}}
 	\item{Supports Portable Executable (32/64-bit) files compressed or obfuscated with:}
 	    \begin{itemize}
50b8f5d6
 		\item AsPack
8589f1a0
 		\item UPX
 		\item FSG
 		\item Petite
50b8f5d6
 		\item PeSpin
73e034df
 		\item NsPack
 		\item wwpack32
 		\item MEW
 		\item Upack
 		\item Y0da Cryptor
 	    \end{itemize}
a86c2ddc
 	\item{Supports ELF and Mach-O files (both 32- and 64-bit)}
73e034df
 	\item{Supports almost all mail file formats}
 	\item{Support for other special files/formats includes:}
 	    \begin{itemize}
 		\item HTML
 		\item RTF
 		\item PDF
 		\item Files encrypted with CryptFF and ScrEnc
 		\item uuencode
 		\item TNEF (winmail.dat)
 	    \end{itemize}
 	\item{Advanced database updater with support for scripted updates,
 	      digital signatures and DNS based database version queries}
8589f1a0
     \end{itemize}
 
73e034df
     \subsection{Mailing lists and IRC channel}
     If you have a trouble installing or using ClamAV try asking on our mailing
8589f1a0
     lists. There are four lists available:
     \begin{itemize}
     \item \textbf{clamav-announce*lists.clamav.net} - info about new versions,
     moderated\footnote{Subscribers are not allowed to post to the mailing
     list}.
     \item \textbf{clamav-users*lists.clamav.net} - user questions
     \item \textbf{clamav-devel*lists.clamav.net} - technical discussions
     \item \textbf{clamav-virusdb*lists.clamav.net} - database update announcements, moderated
     \end{itemize}
     \noindent You can subscribe and search the mailing list archives at: 
73e034df
     \url{http://www.clamav.net/support/ml/}\\
     Alternatively you can try asking on the \verb+#clamav+ IRC channel - launch
     your favourite irc client and type:
     \begin{verbatim}
 	/server irc.freenode.net
 	/join #clamav
     \end{verbatim}
8589f1a0
 
     \subsection{Virus submitting}
     If you have got a virus which is not detected by your ClamAV with the latest
73e034df
     databases, please submit the sample at our website:
8589f1a0
     \begin{center}
61409916
 	\url{http://www.clamav.net/sendvirus}
8589f1a0
     \end{center}
 
     \section{Base package}
 
     \subsection{Supported platforms}
a86c2ddc
 	\subsubsection{UNIX}
 	The most popular UNIX operating systems are supported. Clam AntiVirus 0.9x is
 	regularly tested on:
 	\begin{itemize}
 	    \item{GNU/Linux}
 	    \item{Solaris}
 	    \item{FreeBSD}
 	    \item{OpenBSD} \footnote{Installation from a port is recommended.}
 	    \item{Mac OS X}
 	\end{itemize}
 
 	\subsubsection{Windows}
 	Starting with 0.96 ClamAV builds natively under Visual Studio.
8589f1a0
 
     \subsection{Binary packages}
73e034df
     You can find the up-to-date list of binary packages at our website:
     \url{http://www.clamav.net/download/packages/}
8589f1a0
 
     \section{Installation}
 
     \subsection{Requirements}
a86c2ddc
     The following components are required to compile ClamAV under UNIX:
     \footnote{For Windows instructions please see win32/README in the
     main source code directory.}
8589f1a0
     \begin{itemize}
 	\item zlib and zlib-devel packages
50b8f5d6
 	\item gcc compiler suite (tested with 2.9x, 3.x and 4.x series)\\
 	      \textbf{If you are compiling with higher optimization levels
 	      than the default one (\hbox{-O2} for gcc), be aware that there
 	      have been reports of misoptimizations. The build system of ClamAV
 	      only checks for bugs affecting the default settings, it is your
 	      responsibility to check that your compiler version doesn't
 	      have any bugs.}
8589f1a0
     \end{itemize}
     The following packages are optional but \textbf{highly recommended}:
     \begin{itemize}
 	\item bzip2 and bzip2-devel library
41fc7304
 	\item \verb+check+ unit testing framework \footnote{See section \ref{unit-testing} on how to run the unit tests}.
8589f1a0
     \end{itemize}
8ea83d13
     The following packages are optional, but \textbf{required for bytecode JIT support}:
     \footnote{if not available ClamAV will fall back to an interpreter}
     \begin{itemize}
         \item GCC C and C++ compilers (minimum 4.1.3, recommended 4.3.4 or newer)\\
 	    the package for these compilers are usually called: gcc, g++, or gcc-c++.
 	    \footnote{Note that several versions of GCC have bugs when compiling LLVM, see
 		\url{http://llvm.org/docs/GettingStarted.html#brokengcc} for a
 		    full list.}
 	\item A supported CPU for the JIT, either of: X86, X86-64, PowerPC, PowerPC64
     \end{itemize}
117bf903
     The following packages are optional, but needed for the JIT unit tests:
     \begin{itemize}
      \item GNU Make (version 3.79, recommended 3.81)
      \item Python (version 2.5.4 or newer), for running the JIT unit tests
     \end{itemize}
8589f1a0
 
73e034df
     \subsection{Installing on shell account}
     To install ClamAV locally on an unprivileged shell account you need not
     create any additional users or groups. Assuming your home directory is
     \verb+/home/gary+ you should build it as follows:
8589f1a0
     \begin{verbatim}
 	$ ./configure --prefix=/home/gary/clamav --disable-clamav
 	$ make; make install
     \end{verbatim}
     To test your installation execute:
     \begin{verbatim}
 	$ ~/clamav/bin/freshclam
 	$ ~/clamav/bin/clamscan ~
     \end{verbatim}
73e034df
     The \verb+--disable-clamav+ switch disables the check for existence of
8589f1a0
     the \emph{clamav} user and group but \verb+clamscan+ would still require an
     unprivileged account to work in a superuser mode.
 
     \subsection{Adding new system user and group}
     If you are installing ClamAV for the first time, you have to add a new
ee93a07e
     user and group to your system:
8589f1a0
     \begin{verbatim}
 	# groupadd clamav
 	# useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav
     \end{verbatim}
     Consult a system manual if your OS has not \emph{groupadd} and
73e034df
     \emph{useradd} utilities. \textbf{Don't forget to lock access to the
     account!}
8589f1a0
 
     \subsection{Compilation of base package}
     Once you have created the clamav user and group, please extract the archive:
     \begin{verbatim}
 	$ zcat clamav-x.yz.tar.gz | tar xvf -
 	$ cd clamav-x.yz
     \end{verbatim}
     Assuming you want to install the configuration files in /etc, configure
73e034df
     and build the software as follows:
8589f1a0
     \begin{verbatim}
 	$ ./configure --sysconfdir=/etc
 	$ make
 	$ su -c "make install"
     \end{verbatim}
73e034df
     In the last step the software is installed into the /usr/local directory
     and the config files into /etc. \textbf{WARNING: Never enable the SUID
     or SGID bits for Clam AntiVirus binaries.}
8589f1a0
 
     \subsection{Compilation with clamav-milter enabled}
     libmilter and its development files are required. To enable clamav-milter,
     configure ClamAV with
     \begin{verbatim}
 	$ ./configure --enable-milter
     \end{verbatim}
 
41fc7304
     \subsection{Running unit tests}\label{unit-testing}
 	ClamAV includes unit tests that allow you to test that the compiled binaries work correctly on your platform.
 
 	The first step is to use your OS's package manager to install the \verb+check+ package. 
 	If your OS doesn't have that package, you can download it from \url{http://check.sourceforge.net/}, 
 	build it and install it.
 
 	To help clamav's configure script locate \verb+check+, it is recommended that you install \verb+pkg-config+, preferably
 	using your OS's package manager, or from \url{http://pkg-config.freedesktop.org}.
 
 	The recommended way to run unit-tests is the following, which ensures you will get an error if unit tests cannot be built:
 	\footnote{The configure script in ClamAV automatically enables the unit tests, if it finds the check framework, however it doesn't consider it a fatal error if unit tests cannot be enabled.}
 	\begin{verbatim}
 	 $ ./configure --enable-check
 	 $ make
 	 $ make check
 	\end{verbatim}
 
 	When \verb+make check+ is finished, you should get a message similar to this:
 	\begin{verbatim}
 ==================
afcd3fea
 All 8 tests passed
41fc7304
 ==================
 	\end{verbatim}
 
 	If a unit test fails, you get a message similar to the following. 
 	See the next section on how to report a bug when a unit test fails.
 	\begin{verbatim}
 ========================================
afcd3fea
 1 of 8 tests failed
41fc7304
 Please report to http://bugs.clamav.net/
 ========================================
 	\end{verbatim}
 
 	If unit tests are disabled (and you didn't use --enable-check), you will get this message:
 	\begin{verbatim}
 *** Unit tests disabled in this build
 *** Use ./configure --enable-check to enable them
 
 SKIP: check_clamav
 PASS: check_clamd.sh
 PASS: check_freshclam.sh
 PASS: check_sigtool.sh
 PASS: check_clamscan.sh
 ======================
 All 4 tests passed
 (1 tests were not run)
 ======================
 	\end{verbatim}
 	Running \verb+./configure --enable-check+ should tell you why.
 
     \subsection{Reporting a unit test failure bug}
 	If \verb+make check+ says that some tests failed we encourage you to report a bug on our bugzilla: \url{http://bugs.clamav.net}.
 	The information we need is (see also \url{http://clamav.net/bugs}):
 	\begin{itemize}
 	 \item The exact output from \verb+make check+	 
 	 \item Output of \verb+uname -mrsp+ 
 	 \item your \verb+config.log+	 
2e11bcdf
 	 \item The following files from the \verb+unit_tests/+ directory:
41fc7304
 		\begin{itemize}
 			\item \verb+test.log+
 	 		\item \verb+clamscan.log+
 			\item \verb+clamdscan.log+
 		\end{itemize}
 	 \item \verb+/tmp/clamd-test.log+ if it exists
          \item where and how you installed the check package
 	 \item Output of \verb+pkg-config check --cflags --libs+
 	 \item Optionally if \verb+valgrind+ is available on your platform, the output of the following:
 	 \begin{verbatim}
 $ make check
 $ CK_FORK=no ./libtool --mode=execute valgrind unit_tests/check-clamav
 	 \end{verbatim}	
 	\end{itemize}
 
8589f1a0
     \section{Configuration}
 
     \subsection{clamd}
73e034df
     Before you start using the daemon you have to edit the configuration file
8589f1a0
     (in other case \verb+clamd+ won't run):
     \begin{verbatim}
 	$ clamd
 	ERROR: Please edit the example config file /etc/clamd.conf.
     \end{verbatim}
     This shows the location of the default configuration file. The format and
     options of this file are fully described in the \emph{clamd.conf(5)}
     manual. The config file is well commented and configuration should be
     straightforward.
 
     \subsubsection{On-access scanning}
73e034df
     One of the interesting features of \verb+clamd+ is on-access scanning
     based on the Dazuko module, available from \url{http://dazuko.org/}.
     \textbf{This module is not required to run clamd - furthermore, you
     shouldn't run Dazuko on production systems}. At the moment Dazuko is
     avaliable for Linux and FreeBSD, but the following information only covers
     Linux.
8589f1a0
     \begin{verbatim}
 	$ tar zxpvf dazuko-a.b.c.tar.gz
 	$ cd dazuko-a.b.c
 	$ make dazuko
 	or
 	$ make dazuko-smp (for smp kernels)
 	$ su
 	# insmod dazuko.o
 	# cp dazuko.o /lib/modules/`uname -r`/misc
 	# depmod -a
     \end{verbatim}
73e034df
     Depending on your Linux distribution you may need to add a "dazuko" entry to
8589f1a0
     \emph{/etc/modules} or run the module during system's startup by adding
     \begin{verbatim}
73e034df
 	/sbin/modprobe dazuko
8589f1a0
     \end{verbatim}
     to some startup file. You must also create a new device:
     \begin{verbatim}
 	$ cat /proc/devices | grep dazuko
 	254 dazuko
 	$ su -c "mknod -m 600 /dev/dazuko c 254 0"
     \end{verbatim}
     Now configure Clamuko in \verb+clamd.conf+ and read the \ref{clamuko}
     section.
 
     \subsection{clamav-milter}
a86c2ddc
     ClamAV $\ge0.95$ includes a new, redesigned clamav-milter. The most notable
afcd3fea
     difference is that the internal mode has been dropped and now a working
     clamd companion is required. The second important difference is that now
     the milter has got its own configuration and log files. To compile ClamAV
     with the clamav-milter just run \verb+./configure+ \verb+--enable-milter+
     and make as usual. Please consult your MTA's manual on how to connect it
     with the milter.
8589f1a0
 
     \subsection{Testing}
     Try to scan recursively the source directory:
     \begin{verbatim}
 	$ clamscan -r -l scan.txt clamav-x.yz
     \end{verbatim}
     It should find some test files in the clamav-x.yz/test directory.
     The scan result will be saved in the \verb+scan.txt+ log file
73e034df
     \footnote{To get more info on clamscan options run 'man clamscan'}.
     To test \verb+clamd+, start it and use \verb+clamdscan+ (or instead connect
     directly to its socket and run the SCAN command):
8589f1a0
     \begin{verbatim}
 	$ clamdscan -l scan.txt clamav-x.yz
     \end{verbatim}
     Please note that the scanned files must be accessible by the user running
73e034df
     \verb+clamd+ or you will get an error.
8589f1a0
 
     \subsection{Setting up auto-updating}
73e034df
     \verb+freshclam+ is the automatic database update tool for Clam AntiVirus.
8589f1a0
     It can work in two modes:
     \begin{itemize}
73e034df
 	\item interactive - on demand from command line
 	\item daemon - silently in the background
8589f1a0
     \end{itemize}
73e034df
     \verb+freshclam+ is advanced tool: it supports scripted updates (instead
     of transferring the whole CVD file at each update it only transfers the
     differences between the latest and the current database via a special
     script), database version checks through DNS, proxy servers (with
8589f1a0
     authentication), digital signatures and various error scenarios.
     \textbf{Quick test: run freshclam (as superuser) with no parameters
     and check the output.} If everything is OK you may create the log file in
     /var/log (owned by \emph{clamav} or another user \verb+freshclam+ will be
73e034df
     running as):
8589f1a0
     \begin{verbatim}
5638b256
 	# touch /var/log/freshclam.log
 	# chmod 600 /var/log/freshclam.log
 	# chown clamav /var/log/freshclam.log
8589f1a0
     \end{verbatim}
73e034df
     Now you \emph{should} edit the configuration file \verb+freshclam.conf+
     and point the \emph{UpdateLogFile} directive to the log file. Finally, to
     run \verb+freshclam+ in the daemon mode, execute:
8589f1a0
     \begin{verbatim}
 	# freshclam -d
     \end{verbatim}
73e034df
     The other way is to use the \emph{cron} daemon. You have to add the
     following line to the crontab of \textbf{root} or \textbf{clamav} user:
8589f1a0
     {\small
     \begin{verbatim}
 N * * * *	/usr/local/bin/freshclam --quiet
     \end{verbatim}}
     \noindent to check for a new database every hour. \textbf{N should be a
     number between 3 and 57 of your choice. Please don't choose any multiple
     of 10, because there are already too many clients using those time slots.}
     Proxy settings are only configurable via the configuration file and
73e034df
     \verb+freshclam+ will require strict permission settings for the config
     file when \verb+HTTPProxyPassword+ is turned on.
8589f1a0
     \begin{verbatim}
 	HTTPProxyServer myproxyserver.com
 	HTTPProxyPort 1234
 	HTTPProxyUsername myusername
 	HTTPProxyPassword mypass
     \end{verbatim}
 
73e034df
     \subsubsection{Closest mirrors}
8589f1a0
     The \verb+DatabaseMirror+ directive in the config file specifies the
     database server \verb+freshclam+ will attempt (up to \verb+MaxAttempts+
     times) to download the database from. The default database mirror
     is \url{database.clamav.net} but multiple directives are allowed.
     In order to download the database from the closest mirror you should  
     configure \verb+freshclam+ to use \url{db.xx.clamav.net} where xx
     represents your country code. For example, if your server is in "Ascension
73e034df
     Island" you should have the following lines included in \verb+freshclam.conf+:
8589f1a0
     \begin{verbatim}
 	DNSDatabaseInfo current.cvd.clamav.net
 	DatabaseMirror db.ac.clamav.net
 	DatabaseMirror database.clamav.net
     \end{verbatim}
73e034df
     The second entry acts as a fallback in case the connection to the first
8589f1a0
     mirror fails for some reason. The full list of two-letters country codes
     is available at \url{http://www.iana.org/cctld/cctld-whois.htm}
 
afcd3fea
     \subsection{ClamAV Active Malware Report}
 
     The ClamAV Active Malware Report that was introduced in ClamAV 0.94.1 uses
     freshclam to send summary data to our server about the malware that has
     been detected. This data is then used to generate real-time reports on
     active malware. These reports, along with geographical and historic trends,
     will be published on \url{http://www.clamav.net/}.
 
     The more data that we receive from ClamAV users, the more reports, and the
     better the quality of the reports, will be. To enable the submission of
     data to us for use in the Active Malware Report, enable
     SubmitDetectionStats in freshclam.conf, and LogTime and LogFile in
     clamd.conf. You should only enable this feature if you're running clamd
     to scan incoming data in your environment.
 
     The only private data that is transferred is an IP address, which is used
     to create the geographical data. The size of the data that is sent is small;
     it contains just the filename, malware name and time of detection. The data
     is sent in sets of 10 records, up to 50 records per session. For example,
     if you have 45 new records, then freshclam will submit 40; if 78 then it
     will submit the latest 50 entries; and if you have 9 records no statistics
     will be sent.
 
8589f1a0
     \section{Usage}
 
     \subsection{Clam daemon}\label{clamd}
     \verb+clamd+ is a multi-threaded daemon that uses \emph{libclamav}
73e034df
     to scan files for viruses. It may work in one or both modes listening on:
8589f1a0
     \begin{itemize}
 	\item Unix (local) socket
 	\item TCP socket
     \end{itemize}
     The daemon is fully configurable via the \verb+clamd.conf+ file
     \footnote{man 5 clamd.conf}. \verb+clamd+ recognizes the following commands:
     \begin{itemize}
 	\item \textbf{PING}\\
73e034df
 	    Check the daemon's state (should reply with "PONG").
8589f1a0
 	\item \textbf{VERSION}\\
 	    Print program and database versions.
 	\item \textbf{RELOAD}\\
73e034df
 	    Reload the databases.
8589f1a0
 	\item \textbf{SHUTDOWN}\\
 	    Perform a clean exit.
73e034df
 	\item \textbf{SCAN file/directory}\\
8589f1a0
 	    Scan file or directory (recursively) with archive support
 	    enabled (a full path is required).
73e034df
 	\item \textbf{RAWSCAN file/directory}\\
 	    Scan file or directory (recursively) with archive and special file
 	    support disabled (a full path is required).
 	\item \textbf{CONTSCAN file/directory}\\
8589f1a0
 	    Scan file or directory (recursively) with archive support
73e034df
 	    enabled and don't stop the scanning when a virus is found.
 	\item \textbf{MULTISCAN file/directory}\\
 	    Scan file in a standard way or scan directory (recursively) using
 	    multiple threads (to make the scanning faster on SMP machines).
afcd3fea
 	\item \textbf{INSTREAM}\\
 	    \emph{It is mandatory to prefix this command with \textbf{n} or
 	    \textbf{z}.}\\
 	    Scan a stream of data. The stream is sent to clamd in chunks,
 	    after INSTREAM, on the same socket on which the command
 	    was sent. This avoids the overhead of establishing new TCP
 	    connections and problems with NAT. The format of the chunk is:
 	    \verb+<length><data>+ where \verb+<length>+ is the size of the
 	    following data in bytes expressed as a 4 byte unsigned integer in
 	    network byte order and \verb+<data>+ is the actual chunk. Streaming
 	    is terminated by sending a zero-length chunk. Note: do not exceed
 	    StreamMaxLength as defined in clamd.conf, otherwise clamd will
 	    reply with \emph{INSTREAM size limit exceeded} and close the
 	    connection.
 	\item \textbf{FILDES}\\
 	    \emph{It is mandatory to newline terminate this command, or prefix
 	    with \textbf{n} or \textbf{z}. This command only works on UNIX
 	    domain sockets.}\\
 	    Scan a file descriptor. After issuing a FILDES command a subsequent
 	    rfc2292/bsd4.4 style packet (with at least one dummy character) is
 	    sent to clamd carrying the file descriptor to be scanned inside the
 	    ancillary data. Alternatively the file descriptor may be sent in
 	    the same packet, including the extra character.
 	\item \textbf{STATS}\\
 	    \emph{It is mandatory to newline terminate this command, or prefix
 	    with \textbf{n} or \textbf{z}, it is recommended to only use the
 	    \textbf{z} prefix.}\\
 	    On this command clamd provides statistics about the scan queue,
 	    contents of scan queue, and memory usage. The exact reply format is
 	    subject to changes in future releases.
 	\item \textbf{IDSESSION, END}\\
 	    \emph{It is mandatory to prefix this command with \textbf{n} or
 	    \textbf{z}, also all commands inside \textbf{IDSESSION} must be
 	    prefixed.}\\
 	    Start/end a clamd session. Within a session multiple
 	    SCAN, INSTREAM, FILDES, VERSION, STATS commands can be sent on the
 	    same socket without opening new connections. Replies from clamd
 	    will be in the form \verb+<id>: <response>+ where \verb+<id>+ is
 	    the request number (in ASCII, starting from 1) and \verb+<response>+
 	    is the usual clamd reply. The reply lines have the same delimiter
 	    as the corresponding command had. Clamd will process the commands
 	    asynchronously, and reply as soon as it has finished processing.
 	    Clamd requires clients to read all the replies it sent, before
 	    sending more commands to prevent send() deadlocks. The recommended
 	    way to implement a client that uses IDSESSION is with non-blocking
 	    sockets, and a select()/poll() loop: whenever send would block,
 	    sleep in select/poll until either you can write more data, or read
 	    more replies. \emph{Note that using non-blocking sockets without
 	    the select/poll loop and alternating recv()/send() doesn't comply
 	    with clamd's requirements.} If clamd detects that a client has
 	    deadlocked, it will close the connection. Note that clamd may
 	    close an IDSESSION connection too if the client doesn't follow the
 	    protocol's requirements.
 	\item \textbf{STREAM} (deprecated, use \textbf{INSTREAM} instead)\\
 	    Scan stream: clamd will return a new port number you should
8589f1a0
 	    connect to and send data to scan.
     \end{itemize}
afcd3fea
     It's recommended to prefix clamd commands with the letter \textbf{z}
     (eg. zSCAN) to indicate that the command will be delimited by a NULL
     character and that clamd should continue reading command data until a NULL
     character is read. The null delimiter assures that the complete command
     and its entire argument will be processed as a single command. Alternatively
     commands may be prefixed with the letter \textbf{n} (e.g. nSCAN) to use
     a newline character as the delimiter. Clamd replies will honour the
     requested terminator in turn. If clamd doesn't recognize the command, or
     the command doesn't follow the requirements specified below, it will reply
     with an error message, and close the connection.
aef5cf19
     \noindent
     Clamd can handle the following signals:
8589f1a0
     \begin{itemize}
 	\item \textbf{SIGTERM} - perform a clean exit
73e034df
 	\item \textbf{SIGHUP} - reopen the log file
8589f1a0
 	\item \textbf{SIGUSR2} - reload the database
     \end{itemize}
4207463d
     Clamd should not be started in the background using the shell operator
     \verb+&+ or external tools. Instead, you should run and wait for clamd
     to load the database and daemonize itself. After that, clamd is instantly
     ready to accept connections and perform file scanning.
8589f1a0
 
     \subsection{Clam\textbf{d}scan}
     \verb+clamdscan+ is a simple \verb+clamd+ client. In many cases you can
73e034df
     use it as a \verb+clamscan+ replacement however you must remember that:
8589f1a0
     \begin{itemize}
 	\item it only depends on \verb+clamd+
 	\item although it accepts the same command line options as
 	      \verb+clamscan+ most of them are ignored because they must be
 	      enabled directly in \verb+clamd+, i.e. \verb+clamd.conf+
afcd3fea
 	\item in TCP mode scanned files must be accessible for \verb+clamd+,
 	      if you enabled LocalSocket in clamd.conf then clamdscan will
 	      try to workaround this limitation by using FILDES
8589f1a0
     \end{itemize}
 
     \subsection{Clamuko}\label{clamuko}
     Clamuko is a special thread in \verb+clamd+ that performs on-access
     scanning under Linux and FreeBSD and shares internal virus database
     with the daemon. \textbf{You must follow some important rules when
     using it:}
     \begin{itemize}
 	\item Always stop the daemon cleanly - using the SHUTDOWN command or
73e034df
 	      the\\ SIGTERM signal. In other case you can lose access
8589f1a0
 	      to protected files until the system is restarted.
73e034df
 	\item Never protect the directory your mail-scanner software
8589f1a0
 	      uses for attachment unpacking. Access to all infected
73e034df
 	      files will be automatically blocked and the scanner (including
 	      \verb+clamd+!) will not be able to detect any viruses. In the
 	      result \textbf{all infected mails may be delivered.}
8589f1a0
     \end{itemize}
73e034df
     For example, to protect the whole system add the following lines to
8589f1a0
     \verb+clamd.conf+:
     \begin{verbatim}
 	ClamukoScanOnAccess
 	ClamukoIncludePath /
 	ClamukoExcludePath /proc
 	ClamukoExcludePath /temporary/dir/of/your/mail/scanning/software
     \end{verbatim}
73e034df
     You can also use clamuko to protect files on Samba/Netatalk but a far
     more better and safe idea is to use the \textbf{samba-vscan} module.
     NFS is not supported because Dazuko doesn't intercept NFS access calls.
8589f1a0
 
     \subsection{Output format}
 
     \subsubsection{clamscan}
73e034df
     \verb+clamscan+ writes all regular program messages to \textbf{stdout} and
     errors/warnings to \textbf{stderr}. You can use the option \verb+--stdout+
     to redirect all program messages to \textbf{stdout}. Warnings and error
     messages from \verb+libclamav+ are always printed to \textbf{stderr}.
     A typical output from \verb+clamscan+ looks like this:
8589f1a0
     \begin{verbatim}
 	/tmp/test/removal-tool.exe: Worm.Sober FOUND
 	/tmp/test/md5.o: OK
 	/tmp/test/blob.c: OK
 	/tmp/test/message.c: OK
 	/tmp/test/error.hta: VBS.Inor.D FOUND
     \end{verbatim}
     When a virus is found its name is printed between the \verb+filename:+ and
     \verb+FOUND+ strings. In case of archives the scanner depends on libclamav
     and only prints the first virus found within an archive:
     \begin{verbatim}
 	zolw@localhost:/tmp$ clamscan malware.zip 
 	malware.zip: Worm.Mydoom.U FOUND
     \end{verbatim}
 
     \subsubsection{clamd}
73e034df
     The output format of \verb+clamd+ is very similar to \verb+clamscan+.
8589f1a0
     \begin{verbatim}
 	zolw@localhost:~$ telnet localhost 3310
 	Trying 127.0.0.1...
 	Connected to localhost.
 	Escape character is '^]'.
 	SCAN /home/zolw/test
 	/home/zolw/test/clam.exe: ClamAV-Test-File FOUND
 	Connection closed by foreign host.
     \end{verbatim}
     In the \textbf{SCAN} mode it closes the connection when the first virus
     is found.
     \begin{verbatim}
 	SCAN /home/zolw/test/clam.zip
 	/home/zolw/test/clam.zip: ClamAV-Test-File FOUND
     \end{verbatim}
73e034df
     \textbf{CONTSCAN} and \textbf{MULTISCAN} don't stop scanning in case
     a virus is found.\\
8589f1a0
     Error messages are printed in the following format:
     \begin{verbatim}
 	SCAN /no/such/file
 	/no/such/file: Can't stat() the file. ERROR
     \end{verbatim}
 
     \section{LibClamAV}
73e034df
     Libclamav provides an easy and effective way to add a virus protection into
     your software. The library is thread-safe and transparently recognizes and
8589f1a0
     scans within archives, mail files, MS Office document files, executables
73e034df
     and other special formats.
8589f1a0
 
     \subsection{Licence}
73e034df
     Libclamav is licensed under the GNU GPL v2 licence. This means you are
a86c2ddc
     \textbf{not allowed} to link commercial, closed-source software
     against it. All software using libclamav must be GPL compliant.
8589f1a0
 
a86c2ddc
     \subsection{Supported formats and features}
73e034df
 
     \subsubsection{Executables}
a86c2ddc
     The library has a built-in support for 32- and 64-bit Portable Executable,
     ELF and Mach-O files. Additionally, it can handle PE files compressed or
73e034df
     obfuscated with the following tools:
     \begin{itemize}
50b8f5d6
 	\item Aspack (2.12)
73e034df
 	\item UPX (all versions)
 	\item FSG (1.3, 1.31, 1.33, 2.0)
 	\item Petite (2.x)
50b8f5d6
 	\item PeSpin (1.1)
73e034df
 	\item NsPack
 	\item wwpack32 (1.20)
 	\item MEW
 	\item Upack
 	\item Y0da Cryptor (1.3)
     \end{itemize}
 
     \subsubsection{Mail files}
     Libclamav can handle almost every mail file format including TNEF
     (winmail.dat) attachments.
8589f1a0
 
     \subsubsection{Archives and compressed files}
73e034df
     The following archive and compression formats are supported by internal
     handlers:
8589f1a0
     \begin{itemize}
73e034df
 	\item Zip (+ SFX)
 	\item RAR (+ SFX)
a86c2ddc
 	\item 7Zip
8589f1a0
 	\item Tar
a86c2ddc
 	\item CPIO
8589f1a0
 	\item Gzip
 	\item Bzip2
 	\item MS OLE2
73e034df
 	\item MS Cabinet Files (+ SFX)
8589f1a0
 	\item MS CHM (Compiled HTML)
 	\item MS SZDD compression format
73e034df
 	\item BinHex
 	\item SIS (SymbianOS packages)
50b8f5d6
 	\item AutoIt
afcd3fea
 	\item NSIS
a86c2ddc
 	\item InstallShield
8589f1a0
     \end{itemize}
 
73e034df
     \subsubsection{Documents}
     The most popular file formats are supported:
     \begin{itemize}
 	\item MS Office and MacOffice files
 	\item RTF
 	\item PDF
 	\item HTML
     \end{itemize}
1d15fd32
     In the case of Office, RTF and PDF files, libclamav will only extract the
     embedded objects and will not decode the text data itself. The text
     decoding and normalization is only performed for HTML files.
8589f1a0
 
afcd3fea
     \subsubsection{Data Loss Prevention}
     Libclamav includes a DLP module which can detect credit card and
     social security numbers inside text files.
 
73e034df
     \subsubsection{Others}
     Libclamav can handle various obfuscators, encoders, files vulnerable to
     security risks such as:
     \begin{itemize}
 	\item JPEG (exploit detection)
 	\item RIFF (exploit detection)
 	\item uuencode
 	\item ScrEnc obfuscation
 	\item CryptFF
     \end{itemize}
8589f1a0
 
     \subsection{API}
 
     \subsubsection{Header file}
73e034df
     Every program using libclamav must include the header file \verb+clamav.h+:
8589f1a0
     \begin{verbatim}
 	#include <clamav.h>
     \end{verbatim}
 
a86c2ddc
     \subsubsection{Initialization}
afcd3fea
     Before using libclamav, you should call \verb+cl_init()+ to initialize
     it. When it's done, you're ready to create a new scan engine by calling
     \verb+cl_engine_new()+. To free resources allocated by the engine use
     \verb+cl_engine_free()+. Function prototypes:
     \begin{verbatim}
 	int cl_init(unsigned int options);
 	struct cl_engine *cl_engine_new(void);
 	int cl_engine_free(struct cl_engine *engine);
     \end{verbatim}
     \verb+cl_init()+ and \verb+cl_engine_free()+ return \verb+CL_SUCCESS+
     on success or another code on error. \verb+cl_engine_new()+ return
     a pointer or NULL if there's not enough memory to allocate a new
     engine structure.
 
8589f1a0
     \subsubsection{Database loading}
73e034df
     The following set of functions provides an interface for loading
     the virus database:
8589f1a0
     \begin{verbatim}
 	const char *cl_retdbdir(void);
73e034df
 
afcd3fea
 	int cl_load(const char *path, struct cl_engine *engine,
73e034df
 		    unsigned int *signo, unsigned int options);
8589f1a0
     \end{verbatim}
afcd3fea
     \verb+cl_retdbdir()+ returns the default (hardcoded) path to the directory
73e034df
     with ClamAV databases.
afcd3fea
     \verb+cl_load()+ loads a single database file or all databases from a
     given directory (when \verb+path+ points to a directory). The second
     argument is used for passing in the pointer to the engine that should
     be previously allocated with \verb+cl_engine_new()+. A number of loaded
     signatures will be \textbf{added} to \verb+signo+ \footnote{Remember to
     initialize the virus counter variable with 0.}. The last argument can
     pass the following flags:
73e034df
     \begin{itemize}
 	\item \textbf{CL\_DB\_STDOPT}\\
 	This is an alias for a recommended set of scan options.
 	\item \textbf{CL\_DB\_PHISHING}\\
 	Load phishing signatures.
 	\item \textbf{CL\_DB\_PHISHING\_URLS}\\
 	Initialize the phishing detection module and load .wdb and .pdb files.
50b8f5d6
 	\item \textbf{CL\_DB\_PUA}\\
 	Load signatures for Potentially Unwanted Applications.
a86c2ddc
 	\item \textbf{CL\_DB\_OFFICIAL\_ONLY}\\
 	Only load official signatures from digitally signed databases.
 	\item \textbf{CL\_DB\_BYTECODE}\\
 	Load bytecode.
73e034df
     \end{itemize}
afcd3fea
     \verb+cl_load()+ returns \verb+CL_SUCCESS+ on success and another code on
     failure.
8589f1a0
     \begin{verbatim}
 	    ...
afcd3fea
 	    struct cl_engine *engine;
73e034df
 	    unsigned int sigs = 0;
 	    int ret;
8589f1a0
 
afcd3fea
 	if((ret = cl_init()) != CL_SUCCESS) {
 	    printf("cl_init() error: %s\n", cl_strerror(ret));
 	    return 1;
 	}
 
 	if(!(engine = cl_engine_new())) {
 	    printf("Can't create new engine\n");
 	    return 1;
 	}
 
 	ret = cl_load(cl_retdbdir(), engine, &sigs, CL_DB_STDOPT);
8589f1a0
     \end{verbatim}
 
     \subsubsection{Error handling}
afcd3fea
     Use \verb+cl_strerror()+ to convert error codes into human readable
     messages.  The function returns a statically allocated string:
8589f1a0
     \begin{verbatim}
afcd3fea
 	if(ret != CL_SUCCESS) {
73e034df
 	    printf("cl_load() error: %s\n", cl_strerror(ret));
afcd3fea
 	    cl_engine_free(engine);
 	    return 1;
8589f1a0
 	}
     \end{verbatim}
 
73e034df
     \subsubsection{Engine structure}
     When all required databases are loaded you should prepare the detection
afcd3fea
     engine by calling \verb+cl_engine_compile()+. In case of failure you
     should still free the memory allocated to the engine with
     \verb+cl_engine_free()+:
8589f1a0
     \begin{verbatim}
afcd3fea
 	int cl_engine_compile(struct cl_engine *engine);
8589f1a0
     \end{verbatim}
     In our example:
     \begin{verbatim}
afcd3fea
 	if((ret = cl_engine_compile(engine)) != CL_SUCCESS) {
 	    printf("cl_engine_compile() error: %s\n", cl_strerror(ret));
 	    cl_engine_free(engine);
 	    return 1;
73e034df
 	}
8589f1a0
     \end{verbatim}
 
a86c2ddc
     \subsubsection{Limits}
afcd3fea
     When you create a new engine with \verb+cl_engine_new()+, it will have
     all internal settings set to default values as recommended by the
6c79c106
     ClamAV authors. It's possible to check and modify the values (numerical
     and strings) using the following set of functions:
afcd3fea
     \begin{verbatim}
6c79c106
 int cl_engine_set_num(struct cl_engine *engine,
   enum cl_engine_field field, long long num);
afcd3fea
 
6c79c106
 long long cl_engine_get_num(const struct cl_engine *engine,
   enum cl_engine_field field, int *err);
 
 int cl_engine_set_str(struct cl_engine *engine,
   enum cl_engine_field field, const char *str);
 
 const char *cl_engine_get_str(const struct cl_engine *engine,
   enum cl_engine_field field, int *err);
afcd3fea
     \end{verbatim}
     Please don't modify the default values unless you know what you're doing.
6c79c106
     Refer to the ClamAV sources (clamscan, clamd) for examples.
afcd3fea
 
a86c2ddc
     \subsubsection{Database checks}
afcd3fea
     It's very important  to keep the internal instance of the database up to
     date. You can watch database changes with the \verb+cl_stat..()+ family
     of functions.
8589f1a0
     \begin{verbatim}
 	int cl_statinidir(const char *dirname, struct cl_stat *dbstat);
 	int cl_statchkdir(const struct cl_stat *dbstat);
 	int cl_statfree(struct cl_stat *dbstat);
     \end{verbatim}
     Initialization:
     \begin{verbatim}
 	    ...
 	    struct cl_stat dbstat;
 
 	memset(&dbstat, 0, sizeof(struct cl_stat));
 	cl_statinidir(dbdir, &dbstat);
     \end{verbatim}
73e034df
     To check for a change you just need to call \verb+cl_statchkdir+ and check
a86c2ddc
     its return value (0 - no change, 1 - some change occured). Remember to reset
     the \verb+cl_stat+ structure after reloading the database.
8589f1a0
     \begin{verbatim}
 	if(cl_statchkdir(&dbstat) == 1) {
 	    reload_database...;
 	    cl_statfree(&dbstat);
 	    cl_statinidir(cl_retdbdir(), &dbstat);
 	}
     \end{verbatim}
a86c2ddc
     Libclamav $\ge0.96$ includes and additional call to check the number of
     signatures that can be loaded from a given directory:
     \begin{verbatim}
 	int cl_countsigs(const char *path, unsigned int countoptions,
 	    unsigned int *sigs);
     \end{verbatim}
     The first argument points to the database directory, the second one
     specifies what signatures should be counted:
     \verb+CL_COUNTSIGS_OFFICIAL+ (official signatures),\\
     \verb+CL_COUNTSIGS_UNOFFICIAL+ (third party signatures),
     \verb+CL_COUNTSIGS_ALL+ (all signatures). The last argument points
     to the counter to which the number of detected signatures will
     be added (therefore the counter should be initially set to 0).
     The call returns \verb+CL_SUCCESS+ or an error code.
8589f1a0
 
     \subsubsection{Data scan functions}
73e034df
     It's possible to scan a file or descriptor using:
8589f1a0
     \begin{verbatim}
73e034df
 	int cl_scanfile(const char *filename, const char **virname,
 	unsigned long int *scanned, const struct cl_engine *engine,
afcd3fea
 	unsigned int options);
8589f1a0
 
 	int cl_scandesc(int desc, const char **virname, unsigned
afcd3fea
 	long int *scanned, const struct cl_engine *engine,
 	unsigned int options);
8589f1a0
     \end{verbatim}
50b8f5d6
     Both functions will store a virus name under the pointer \verb+virname+,
73e034df
     the virus name is part of the engine structure and must not be released
     directly. If the third argument (\verb+scanned+) is not NULL, the
     functions will increase its value with the size of scanned data (in
afcd3fea
     \verb+CL_COUNT_PRECISION+ units).
     The last argument (\verb+options+) specified the scan options and supports
     the following flags (which can be combined using bit operators):
8589f1a0
     \begin{itemize}
 	\item \textbf{CL\_SCAN\_STDOPT}\\
 	      This is an alias for a recommended set of scan options. You
 	      should use it to make your software ready for new features
73e034df
 	      in the future versions of libclamav.
8589f1a0
 	\item \textbf{CL\_SCAN\_RAW}\\
73e034df
 	      Use it alone if you want to disable support for special files.
8589f1a0
 	\item \textbf{CL\_SCAN\_ARCHIVE}\\
 	      This flag enables transparent scanning of various archive formats.
 	\item \textbf{CL\_SCAN\_BLOCKENCRYPTED}\\
73e034df
 	      With this flag the library will mark encrypted archives as viruses
8589f1a0
 	      (Encrypted.Zip, Encrypted.RAR).
 	\item \textbf{CL\_SCAN\_MAIL}\\
73e034df
 	      Enable support for mail files.
8589f1a0
 	\item \textbf{CL\_SCAN\_OLE2}\\
73e034df
 	      Enables support for OLE2 containers (used by MS Office and .msi
 	      files).
c5107e70
 	\item \textbf{CL\_SCAN\_PDF}\\
 	      Enables scanning within PDF files.
8589f1a0
 	\item \textbf{CL\_SCAN\_PE}\\
73e034df
 	      This flag enables deep scanning of Portable Executable files and
 	      allows libclamav to unpack executables compressed with run-time
 	      unpackers.
 	\item \textbf{CL\_SCAN\_ELF}\\
 	      Enable support for ELF files.
8589f1a0
 	\item \textbf{CL\_SCAN\_BLOCKBROKEN}\\
 	      libclamav will try to detect broken executables and mark them as
 	      Broken.Executable.
 	\item \textbf{CL\_SCAN\_HTML}\\
73e034df
 	      This flag enables HTML normalisation (including ScrEnc
8589f1a0
 	      decryption).
73e034df
 	\item \textbf{CL\_SCAN\_ALGORITHMIC}\\
 	      Enable algorithmic detection of viruses.
 	\item \textbf{CL\_SCAN\_PHISHING\_BLOCKSSL}\\
 	      Phishing module: always block SSL mismatches in URLs.
 	\item \textbf{CL\_SCAN\_PHISHING\_BLOCKCLOAK}\\
 	      Phishing module: always block cloaked URLs.
afcd3fea
 	\item \textbf{CL\_SCAN\_STRUCTURED}\\
 	      Enable the DLP module which scans for credit card and SSN
 	      numbers.
 	\item \textbf{CL\_SCAN\_STRUCTURED\_SSN\_NORMAL}\\
 	      Search for SSNs formatted as xx-yy-zzzz.
 	\item \textbf{CL\_SCAN\_STRUCTURED\_SSN\_STRIPPED}\\
 	      Search for SSNs formatted as xxyyzzzz.
 	\item \textbf{CL\_SCAN\_PARTIAL\_MESSAGE}\\
 	      Scan RFC1341 messages split over many emails. You will need to
 	      periodically clean up \verb+$TemporaryDirectory/clamav-partial+
 	      directory.
 	\item \textbf{CL\_SCAN\_HEURISTIC\_PRECEDENCE}\\
 	      Allow heuristic match to take precedence. When enabled, if
 	      a heuristic scan (such as phishingScan) detects a possible
 	      virus/phish it will stop scan immediately. Recommended, saves CPU
 	      scan-time. When disabled, virus/phish detected by heuristic scans
 	      will be reported only at the end of a scan. If an archive
 	      contains both a heuristically detected virus/phishing, and a real
 	      malware, the real malware will be reported.
20685cde
 	\item \textbf{CL\_SCAN\_BLOCKMACROS}\\
 	      OLE2 containers, which contain VBA macros will be marked infected
 	      (Heuristics.OLE2.ContainsMacros).
8589f1a0
     \end{itemize}
afcd3fea
     All functions return \verb+CL_CLEAN+ when the file seems clean,
73e034df
     \verb+CL_VIRUS+ when a virus is detected and another value on failure.
8589f1a0
     \begin{verbatim}
 	    ...
 	    const char *virname;
 
73e034df
 	if((ret = cl_scanfile("/tmp/test.exe", &virname, NULL, engine,
20685cde
 	CL_SCAN_STDOPT)) == CL_VIRUS) {
73e034df
 	    printf("Virus detected: %s\n", virname);
8589f1a0
 	} else {
 	    printf("No virus detected.\n");
 	    if(ret != CL_CLEAN)
 	        printf("Error: %s\n", cl_strerror(ret));
 	}
     \end{verbatim}
 
     \subsubsection{Memory}
50b8f5d6
     Because the engine structure occupies a few megabytes of system memory, you
afcd3fea
     should release it with \verb+cl_engine_free()+ if you no longer need to
     scan files.
8589f1a0
 
74974898
     \subsubsection{Forking daemons}
     If you're using libclamav with a forking daemon you should call
     \verb+srand()+ inside a forked child before making any calls to the
     libclamav functions. This will avoid possible collisions with temporary
     filenames created by other processes of the daemon. This procedure
     is not required for multi-threaded daemons.
 
8589f1a0
     \subsubsection{clamav-config}
73e034df
     Use \verb+clamav-config+ to check compilation information for libclamav.
8589f1a0
     \begin{verbatim}
 	zolw@localhost:~$ clamav-config --libs
 	-L/usr/local/lib -lz -lbz2 -lgmp -lpthread
 	zolw@localhost:~$ clamav-config --cflags
 	-I/usr/local/include -g -O2
     \end{verbatim}
 
     \subsubsection{Example}
afcd3fea
     You will find an example scanner application in the clamav source
     package (/example). Provided you have ClamAV already installed, execute
     the following to compile it:
8589f1a0
     \begin{verbatim}
 	gcc -Wall ex1.c -o ex1 -lclamav
     \end{verbatim}
 
     \subsection{CVD format}
73e034df
     CVD (ClamAV Virus Database) is a digitally signed tarball containing
     one or more databases. The header is a 512-bytes long string with colon
     separated fields:
8589f1a0
     \begin{verbatim}
 ClamAV-VDB:build time:version:number of signatures:functionality
 level required:MD5 checksum:digital signature:builder name:build time (sec)
     \end{verbatim}
     \verb+sigtool --info+ displays detailed information on CVD files:
     \begin{verbatim}
73e034df
 zolw@localhost:/usr/local/share/clamav$ sigtool -i daily.cvd 
50b8f5d6
 File: daily.cvd
 Build time: 10 Mar 2008 10:45 +0000
 Version: 6191
 Signatures: 59084
 Functionality level: 26
73e034df
 Builder: ccordes
50b8f5d6
 MD5: 6e6e29dae36b4b7315932c921e568330
 Digital signature: zz9irc9irupR3z7yX6J+OR6XdFPUat4HIM9ERn3kAcOWpcMFxq
 Fs4toG5WJsHda0Jj92IUusZ7wAgYjpai1Nr+jFfXHsJxv0dBkS5/XWMntj0T1ctNgqmiF
 +RLU6V0VeTl4Oej3Aya0cVpd9K4XXevEO2eTTvzWNCAq0ZzWNdjc
73e034df
 Verification OK.
8589f1a0
     \end{verbatim}
 
     \subsection{Contributors}
     The following people contributed to our project in some way (providing
     patches, bug reports, technical support, documentation, good ideas...):
     \begin{itemize}
73e034df
 	\item Ian Abbott \email{<abbotti*mev.co.uk>}
48b7b4a7
 	\item Clint Adams \email{<schizo*debian.org>}
8589f1a0
 	\item Sergey Y. Afonin \email{<asy*kraft-s.ru>}
 	\item Robert Allerstorfer \email{<roal*anet.at>}
 	\item Claudio Alonso \email{<cfalonso*yahoo.com>}
ef1f6e71
 	\item Kevin Amorin \email{<kamorin*ccs.neu.edu>}
8589f1a0
 	\item Kamil Andrusz \email{<wizz*mniam.net>}
48b7b4a7
 	\item Tayfun Asker \email{<tasker*metu.edu.tr>}
8589f1a0
 	\item Jean-Edouard Babin \email{<Jeb*jeb.com.fr>}
 	\item Marc Baudoin \email{<babafou*babafou.eu.org>}
 	\item Scott Beck \email{<sbeck*gossamer-threads.com>}
 	\item Rolf Eike Beer \email{<eike*mail.math.uni-mannheim.de>}
 	\item Rene Bellora \email{<rbellora*tecnoaccion.com.ar>}
 	\item Carlo Marcelo Arenas Belon \email{<carenas*sajinet.com.pe>}
48b7b4a7
 	\item Joseph Benden \email{<joe*thrallingpenguin.com>}
8589f1a0
 	\item Hilko Bengen \email{<bengen*vdst-ka.inka.de>}
04dc9952
 	\item Hank Beatty \email{<hbeatty*starband.net>}
ef1f6e71
 	\item Alexandre Biancalana \email{<ale*seudns.net>}
8589f1a0
 	\item Patrick Bihan-Faou \email{<patrick*mindstep.com>}
 	\item Martin Blapp \email{<mb*imp.ch>}
 	\item Dale Blount \email{<dale*velocity.net>}
48b7b4a7
 	\item Serge van den Boom \email{<svdb*stack.nl>}
8589f1a0
 	\item Oliver Brandmueller \email{<ob*e-Gitt.NET>}
 	\item Boguslaw Brandys \email{<brandys*o2.pl>}
 	\item Igor Brezac \email{<igor*ipass.net>}
 	\item Mike Brudenell \email{<pmb1*york.ac.uk>}
 	\item Brian Bruns \email{<bruns*2mbit.com>}
 	\item Len Budney \email{<lbudney*pobox.com>}
 	\item Matt Butt \email{<mattb*cre8tiv.com>}
 	\item Christopher X. Candreva \email{<chris*westnet.com>}
 	\item Eric I. Lopez Carreon \email{<elopezc*technitrade.com>}
 	\item Ales Casar \email{<casar*uni-mb.si>}
73e034df
 	\item Jonathan Chen \email{<jon+clamav*spock.org>}
8589f1a0
 	\item Andrey Cherezov \email{<andrey*cherezov.koenig.su>}
 	\item Alex Cherney \email{<alex*cher.id.au>}
 	\item Tom G. Christensen \email{<tgc*statsbiblioteket.dk>}
 	\item Nicholas Chua \email{<nicholas*ncmbox.net>}
 	\item Chris Conn \email{<cconn*abacom.com>}
 	\item Christoph Cordes \email{<ib*precompiled.de>}
 	\item Ole Craig \email{<olc*cs.umass.edu>}
 	\item Eugene Crosser \email{<crosser*rol.ru>}
5638b256
 	\item Calin A. Culianu \email{<calin*ajvar.org>}
8589f1a0
 	\item Damien Curtain \email{<damien*pagefault.org>}
 	\item Krisztian Czako \email{<slapic*linux.co.hu>}
 	\item Diego d'Ambra \email{<da*softcom.dk>}
 	\item Michael Dankov \email{<misha*btrc.ru>}
 	\item Yuri Dario \email{<mc6530*mclink.it>}
 	\item David \email{<djgardner*users.sourceforge.net>}
 	\item Maxim Dounin \email{<mdounin*rambler-co.ru>}
 	\item Alejandro Dubrovsky \email{<s328940*student.uq.edu.au>}
04dc9952
 	\item James P. Dugal \email{<jpd*louisiana.edu>}
8589f1a0
 	\item Magnus Ekdahl \email{<magnus*debian.org>}
 	\item Mehmet Ekiz \email{<ekizm*tbmm.gov.tr>}
 	\item Jens Elkner \email{<elkner*linofee.org>}
 	\item Fred van Engen \email{<fred*wooha.org>}
 	\item Jason Englander \email{<jason*englanders.cc>}
 	\item Oden Eriksson \email{<oeriksson*mandrakesoft.com>}
48b7b4a7
 	\item Daniel Fahlgren \email{<fahlgren*ardendo.se>}
8589f1a0
 	\item Andy Fiddaman \email{<af*jeamland.org>}
 	\item Edison Figueira Junior \email{<edison*brc.com.br>}
 	\item David Ford \email{<david+cert*blue-labs.org>}
 	\item Martin Forssen \email{<maf*appgate.com>}
 	\item Brian J. France \email{<list*firehawksystems.com>}
 	\item Free Oscar \email{<freeoscar*wp.pl>}
 	\item Martin Fuxa \email{<yeti*email.cz>}
 	\item Piotr Gackiewicz \email{<gacek*intertele.pl>}
 	\item Jeremy Garcia \email{<jeremy*linuxquestions.org>}
 	\item Dean Gaudet \email{<dean-clamav*arctic.org>}
 	\item Michel Gaudet \email{<Michel.Gaudet*ehess.fr>}
 	\item Philippe Gay \email{<ph.gay*free.fr>}
 	\item Nick Gazaloff \email{<nick*sbin.org>}
 	\item Geoff Gibbs \email{<ggibbs*hgmp.mrc.ac.uk>}
 	\item Luca 'NERvOus' Gibelli \email{<nervous*nervous.it>}
 	\item Scott Gifford \email{<sgifford*suspectclass.com>}
 	\item Wieslaw Glod \email{<wkg*x2.pl>}
 	\item Stephen Gran \email{<steve*lobefin.net>}
5638b256
 	\item Koryn Grant \email{<koryn*endace.com>}
8589f1a0
 	\item Matthew A. Grant \email{<grantma*anathoth.gen.nz>}
 	\item Christophe Grenier \email{<grenier*cgsecurity.org>}
 	\item Marek Gutkowski \email{<hobbit*core.segfault.pl>}
 	\item Jason Haar \email{<Jason.Haar*trimble.co.nz>}
 	\item Hrvoje Habjanic \email{<hrvoje.habjanic*zg.hinet.hr>}
 	\item Michal Hajduczenia \email{<michalis*mat.uni.torun.pl>}
 	\item Jean-Christophe Heger \email{<jcheger*acytec.com>}
04dc9952
 	\item Martin Heinz \email{<Martin*hemag.ch>}
ef1f6e71
 	\item Kevin Heneveld" \email{<kevin*northstar.k12.ak.us>}
8589f1a0
 	\item Anders Herbjornsen \email{<andersh*gar.no>}
 	\item Paul Hoadley \email{<paulh*logixsquad.net>}
 	\item Robert Hogan \email{<robert*roberthogan.net>}
 	\item Przemyslaw Holowczyc \email{<doozer*skc.com.pl>}
 	\item Thomas W. Holt Jr. \email{<twh*cohesive.net>}
 	\item James F.  Hranicky \email{<jfh*cise.ufl.edu>}
 	\item Douglas J Hunley \email{<doug*hunley.homeip.net>}
 	\item Kurt Huwig \email{<kurt*iku-netz.de>}
 	\item Andy Igoshin \email{<ai*vsu.ru>}
04dc9952
 	\item Michal Jaegermann \email{<michal*harddata.com>}
73e034df
 	\item Christophe Jaillet \email{<christophe.jaillet*wanadoo.fr>}
8589f1a0
 	\item Jay \email{<sysop-clamav*coronastreet.net>}
 	\item Stephane Jeannenot \email{<stephane.jeannenot*wanadoo.fr>}
5638b256
 	\item Per Jessen \email{<per*computer.org>}
8589f1a0
 	\item Dave Jones \email{<dave*kalkbay.co.za>}
 	\item Jesper Juhl \email{<juhl*dif.dk>}
48b7b4a7
 	\item Kamil Kaczkowski \email{<kamil*kamil.eisp.pl>}
8589f1a0
 	\item Alex Kah \email{<alex*narfonix.com>}
 	\item Stefan Kaltenbrunner \email{<stefan*kaltenbrunner.cc>}
 	\item Lloyd Kamara \email{<l.kamara*imperial.ac.uk>}
48b7b4a7
 	\item Stefan Kanthak \email{<stefan.kanthak*fujitsu-siemens.com>}
8589f1a0
 	\item Kazuhiko \email{<kazuhiko*fdiary.net>}
04dc9952
 	\item Jeremy Kitchen \email{<kitchen*scriptkitchen.com>}
8589f1a0
 	\item Tomasz Klim \email{<tomek*euroneto.pl>}
 	\item Robbert Kouprie \email{<robbert*exx.nl>}
 	\item Martin Kraft \email{<martin.kraft*fal.de>}
 	\item Petr Kristof \email{<Kristof.P*fce.vutbr.cz>}
 	\item Henk Kuipers \email{<henk*opensourcesolutions.nl>}
 	\item Nigel Kukard \email{<nkukard*lbsd.net>}
5638b256
 	\item Eugene Kurmanin \email{<smfs*users.sourceforge.net>}
8589f1a0
 	\item Dr Andrzej Kurpiel \email{<akurpiel*mat.uni.torun.pl>}
 	\item Mark Kushinsky \email{<mark*mdspc.com>}
 	\item Mike Lambert \email{<lambert*jeol.com>}
 	\item Thomas Lamy \email{<Thomas.Lamy*in-online.net>}
48b7b4a7
 	\item Stephane Leclerc \email{<sleclerc*aliastec.net>}
8589f1a0
 	\item Marty Lee \email{<marty*maui.co.uk>}
 	\item Dennis Leeuw \email{<dleeuw*made-it.com>}
 	\item Martin Lesser \email{<admin-debian*bettercom.de>}
 	\item Peter N Lewis \email{<peter*stairways.com.au>}
 	\item Matt Leyda \email{<mfleyda*e-one.com>}
 	\item James Lick \email{<jlick*drivel.com>}
04dc9952
 	\item Jerome Limozin \email{<jerome*limozin.net>}
8589f1a0
 	\item Mike Loewen \email{<mloewen*sturgeon.cac.psu.edu>}
 	\item Roger Lucas \email{<roger*planbit.co.uk>}
48b7b4a7
 	\item David Luyer \email{<david\_luyer*pacific.net.au>}
8589f1a0
 	\item Richard Lyons \email{<frob-clamav*webcentral.com.au>}
 	\item David S. Madole \email{<david*madole.net>}
 	\item Thomas Madsen \email{<tm*softcom.dk>}
 	\item Bill Maidment \email{<bill*maidment.com.au>}
 	\item Joe Maimon \email{<jmaimon*ttec.com>}
ef1f6e71
 	\item David Majorel \email{<dm*lagoon.nc>}
8589f1a0
 	\item Andrey V. Malyshev \email{<amal*krasn.ru>}
48b7b4a7
 	\item Fukuda Manabu \email{<fukuda*cri-mw.co.jp>}
8589f1a0
 	\item Stefan Martig \email{<sm*officeco.ch>}
 	\item Alexander Marx \email{<mad-ml*madness.at>}
 	\item Andreas Marx (\url{http://www.av-test.org/})
 	\item Chris Masters \email{<cmasters*insl.co.uk>}
 	\item Fletcher Mattox \email{<fletcher*cs.utexas.edu>}
 	\item Serhiy V. Matveyev \email{<matveyev*uatele.com>}
 	\item Reinhard Max \email{<max*suse.de>}
 	\item Brian May \email{<bam*debian.org>}
 	\item Ken McKittrick \email{<klmac*usadatanet.com>}
 	\item Chris van Meerendonk \email{<cvm*castel.nl>}
 	\item Andrey J. Melnikoff \email{<temnota*kmv.ru>}
 	\item Damian Menscher \email{<menscher*uiuc.edu>}
73e034df
 	\item Denis De Messemacker \email{<ddm*clamav.net>}
48b7b4a7
 	\item Jasper Metselaar \email{<jasper*formmailer.net>}
8589f1a0
 	\item Arkadiusz Miskiewicz \email{<misiek*pld-linux.org>}
 	\item Ted Mittelstaedt \email{<tedm*toybox.placo.com>}
 	\item Mark Mielke \email{<mark*mark.mielke.cc>}
ef1f6e71
 	\item John Miller \email{<contact*glideslopesoftware.co.uk>}
8589f1a0
 	\item Jo Mills \email{<Jonathan.Mills*frequentis.com>}
 	\item Dustin Mollo \email{<dustin.mollo*sonoma.edu>}
 	\item Remi Mommsen \email{<remigius.mommsen*cern.ch>}
 	\item Doug Monroe \email{<doug*planetconnect.com>}
 	\item Alex S Moore \email{<asmoore*edge.net>}
ef1f6e71
 	\item Tim Morgan \email{<tim*sentinelchicken.org>}
8589f1a0
 	\item Dirk Mueller \email{<mueller*kde.org>}
 	\item Flinn Mueller\email{<flinn*activeintra.net>}
 	\item Hendrik Muhs \email{<Hendrik.Muhs*student.uni-magdeburg.de>}
 	\item Simon Munton \email{<simon*munton.demon.co.uk>}
73e034df
 	\item Farit Nabiullin (\url{http://program.farit.ru/})
8589f1a0
 	\item Nemosoft Unv. \email{<nemosoft*smcc.demon.nl>}
 	\item Wojciech Noworyta \email{<wnow*konarski.edu.pl>}
 	\item Jorgen Norgaard \email{<jnp*anneli.dk>}
 	\item Fajar A. Nugraha \email{<fajar*telkom.co.id>}
 	\item Joe Oaks \email{<joe.oaks*hp.com>}
 	\item Washington Odhiambo \email{<wash*wananchi.com>}
 	\item Masaki Ogawa \email{<proc*mac.com>}
5638b256
 	\item John Ogness \email{<jogness*antivir.de>}
8589f1a0
 	\item Phil Oleson \email{<oz*nixil.net>}
 	\item Jan Ondrej \email{<ondrejj*salstar.sk>}
 	\item Martijn van Oosterhout \email{<kleptog*svana.org>}
 	\item OpenAntiVirus Team (\url{http://www.OpenAntiVirus.org/})
 	\item Tomasz Papszun \email{<tomek*lodz.tpsa.pl>}
 	\item Eric Parsonage \email{<eric*eparsonage.com>}
 	\item Oliver Paukstadt \email{<pstadt*stud.fh-heilbronn.de>}
 	\item Christian Pelissier \email{<Christian.Pelissier*onera.fr>}
5638b256
 	\item Rudolph Pereira \email{<rudolph*usyd.edu.au>}
73e034df
 	\item Dennis Peterson \email{<dennispe*inetnw.com>}
8589f1a0
 	\item Ed Phillips \email{<ed*UDel.Edu>}
 	\item Andreas Piesk \email{<Andreas.Piesk*heise.de>}
04dc9952
 	\item Mark Pizzolato \email{<clamav-devel*subscriptions.pizzolato.net>}
5638b256
 	\item Dean Plant \email{<dean.plant*roke.co.uk>}
8589f1a0
 	\item Alex Pleiner \email{<pleiner*zeitform.de>}
 	\item Ant La Porte \email{<ant*dvere.net>}
04dc9952
 	\item Jef Poskanzer \email{<jef*acme.com>}
8589f1a0
 	\item Christophe Poujol \email{<Christophe.Poujol*atosorigin.com>}
 	\item Sergei Pronin \email{<sp*finndesign.fi>}
 	\item Thomas Quinot \email{<thomas*cuivre.fr.eu.org>}
 	\item Ed Ravin \email{<eravin*panix.com>}
48b7b4a7
 	\item Robert Rebbun \email{<robert*desertsurf.com>}
8589f1a0
 	\item Brian A. Reiter \email{<breiter*wolfereiter.com>}
ef1f6e71
 	\item Didi Rieder \email{<adrieder*sbox.tugraz.at>}
 	\item Pavel V. Rochnyack \email{<rpv*fsf.tsu.ru>}
8589f1a0
 	\item Rupert Roesler-Schmidt \email{<r.roesler-schmidt*uplink.at>}
 	\item David Sanchez \email{<dsanchez*veloxia.com>}
 	\item David Santinoli \email{<david*santinoli.com>}
 	\item Vijay Sarvepalli \email{<vssarvep*office.uncg.edu>}
 	\item Martin Schitter
 	\item Theo Schlossnagle \email{<jesus*omniti.com>}
 	\item Enrico Scholz \email{<enrico.scholz*informatik.tu-chemnitz.de>}
 	\item Karina Schwarz \email{<k.schwarz*uplink.at>}
 	\item Scsi \email{<scsi*softland.ru>}
 	\item Dr Matthew J Seaman \email{<m.seaman*infracaninophile.co.uk>}
 	\item Hector M. Rulot Segovia \email{<Hector.Rulot*uv.es>}
 	\item Omer Faruk Sen \email{<ofsen*enderunix.org>}
 	\item Sergey \email{<a\_s\_y*sama.ru>}
 	\item Tuomas Silen \email{<tuomas.silen*nodeta.fi>}
48b7b4a7
 	\item David F. Skoll \email{<dfs*roaringpenguin.com>}
8589f1a0
 	\item Al Smith \email{<ajs+clamav*aeschi.ch.eu.org>}
5638b256
 	\item Sergey Smitienko \email{<hunter*comsys.com.ua>}
 	\item Solar Designer \email{<solar*openwall.com>}
48b7b4a7
 	\item Joerg Sonnenberger \email{<joerg*britannica.bec.de>}
73e034df
 	\item Michal 'GiM' Spadlinski (\url{http://gim.org.pl/})
8589f1a0
 	\item Kevin Spicer \email{<kevin*kevinspicer.co.uk>}
ef1f6e71
 	\item GertJan Spoelman \email{<cav*gjs.cc>}
8589f1a0
 	\item Ole Stanstrup \email{<ole*stanstrup.dk>}
 	\item Adam Stein \email{<adam*scan.mc.xerox.com>}
 	\item Steve \email{<steveb*webtribe.net>}
 	\item Richard Stevenson \email{<richard*endace.com>}
04dc9952
 	\item Sven Strickroth \email{<sstrickroth*gym-oha.de>}
8589f1a0
 	\item Matt Sullivan \email{<matt*sullivan.gen.nz>}
 	\item Dr Zbigniew Szewczak \email{<zssz*mat.uni.torun.pl>}
 	\item Joe Talbott \email{<josepht*cstone.net>}
 	\item Gernot Tenchio \email{<g.tenchio*telco-tech.de>}
 	\item Masahiro Teramoto \email{<markun*onohara.to>}
ef1f6e71
 	\item Daniel Theodoro \email{<dtheodoro*ig.com.br>}
8589f1a0
 	\item Ryan Thompson \email{<clamav*sasknow.com>}
48b7b4a7
 	\item Gianluigi Tiesi \email{<sherpya*netfarm.it>}
8589f1a0
 	\item Yar Tikhiy \email{<yar*comp.chem.msu.su>}
48b7b4a7
 	\item Andrew Toller \email{<atoller*connectfree.co.uk>}
8589f1a0
 	\item Michael L. Torrie \email{<torriem*chem.byu.edu>}
 	\item Trashware \email{<trashware*gmx.net>}
 	\item Matthew Trent \email{<mtrent*localaccess.com>}
 	\item Reini Urban \email{<rurban*x-ray.at>}
 	\item Daniel Mario Vega \email{<dv5a*dc.uba.ar>}
ef1f6e71
 	\item Denis Vlasenko \email{<vda*ilport.com.ua>}
8589f1a0
 	\item Laurent Wacrenier \email{<lwa*teaser.fr>}
 	\item Charlie Watts \email{<cewatts*brainstorminternet.net>}
ef1f6e71
 	\item Florian Weimer \email{<fw*deneb.enyo.de>}
5638b256
 	\item Paul Welsh \email{<paul*welshfamily.com>}
8589f1a0
 	\item Nicklaus Wicker \email{<n.wicker*cnk-networks.de>}
 	\item David Woakes \email{<david*mitredata.co.uk>}
 	\item Troy Wollenslegel \email{<troy*intranet.org>}
 	\item ST Wong \email{<st-wong*cuhk.edu.hk>}
 	\item Dale Woolridge \email{<dwoolridge*drh.net>}
 	\item David Wu \email{<dyw*iohk.com>}
 	\item Takumi Yamane \email{<yamtak*b-session.com>}
 	\item Youza Youzovic \email{<youza*post.cz>}
48b7b4a7
 	\item Anton Yuzhaninov \email{<citrin*rambler-co.ru>}
8589f1a0
 	\item Leonid Zeitlin \email{<lz*europe.com>}
 	\item ZMan Z. \email{<x86zman*go-a-way.dyndns.org>}
 	\item Andoni Zubimendi \email{<andoni*lpsat.net>}
     \end{itemize}
 
     \subsection{Donors}
     We've received financial support from: (in alphabetical order)
     \begin{itemize}
 	\item ActiveIntra.net Inc. (\url{http://www.activeintra.net/})
 	\item Advance Healthcare Group (\url{http://www.ahgl.com.au/})
73e034df
 	\item Allied Quotes (\url{http://www.AlliedQuotes.com /})
8589f1a0
 	\item American Computer \& Electronic Services Corp. (\url{http://www.acesnw.com/})
73e034df
 	\item Amnesty International, Swiss Section (\url{http://www.amnesty.ch/})
 	\item Steve Anderson
8589f1a0
 	\item Anonymous donor from Colorado, US
73e034df
 	\item Arudius (\url{http://arudius.sourceforge.net/})
48b7b4a7
 	\item Peter Ashman
8589f1a0
 	\item Atlas College (\url{http://www.atlascollege.nl/})
73e034df
 	\item Australian Payday Cash Loans (\url{http://www.cashdoctors.com.au/})
8589f1a0
 	\item AWD Online (\url{http://www.awdonline.com/})
48b7b4a7
 	\item BackupAssist Backup Software (\url{http://www.backupassist.com/})
 	\item Dave Baker
8589f1a0
 	\item Bear and Bear Consulting, Inc. (\url{http://www.bear-consulting.com/})
 	\item Aaron Begley
 	\item Craig H. Block
 	\item Norman E. Brake, Jr.
73e034df
 	\item Josh Burstyn
 	\item By Design (\url{http://www.by-design.net/})
5638b256
 	\item Canadian Web Hosting (\url{http://www.canadianwebhosting.com/})
8589f1a0
 	\item cedarcreeksoftware.com (\url{http://www.cedarcreeksoftware.com/})
73e034df
 	\item Ricardo Cerqueira
8589f1a0
 	\item Thanos Chatziathanassiou
 	\item Cheahch from Singapore
 	\item Conexim Australia - business web hosting (\url{http://www.conexim.com.au})
48b7b4a7
 	\item Alan Cook
8589f1a0
 	\item Joe Cooper
48b7b4a7
 	\item CustomLogic LLC (\url{http://www.customlogic.com/})
ef1f6e71
 	\item Ron DeFulio
48b7b4a7
 	\item Digirati (\url{http://oss.digirati.com.br/})
8589f1a0
 	\item Steve Donegan (\url{http://www.donegan.org/})
 	\item Dynamic Network Services, Inc (\url{http://www.dyndns.org/})
5638b256
 	\item EAS Enterprises LLC
73e034df
 	\item eCoupons.com (\url{http://www.ecoupons.com/})
8589f1a0
 	\item Electric Embers (\url{http://electricembers.net})
ef1f6e71
 	\item John T. Ellis
8589f1a0
 	\item Epublica
 	\item Bernhard Erdmann
 	\item David Eriksson (\url{http://www.2good.nu/})
 	\item Philip Ershler
 	\item Explido Software USA Inc. (\url{http://www.explido.us/})
 	\item David Farrick
 	\item Jim Feldman
 	\item Petr Ferschmann (\url{http://petr.ferschmann.cz/})
 	\item Andries Filmer (\url{http://www.netexpo.nl/})
 	\item The Free Shopping Cart people (\url{http://www.precisionweb.net/})
 	\item Paul Freeman
 	\item Jack Fung
48b7b4a7
 	\item Stephen Gageby
8589f1a0
 	\item Paolo Galeazzi
 	\item GANDI (\url{http://www.gandi.net/})
 	\item Jeremy Garcia (\url{http://www.linuxquestions.org/})
 	\item GBC Internet Service Center GmbH (\url{http://www.gbc.net/})
 	\item GCS Tech (\url{http://www.gcstech.net/})
 	\item GHRS (\url{http://www.ghrshotels.com/})
73e034df
 	\item Lyle Giese
8589f1a0
 	\item Todd Goodman
 	\item Bill Gradwohl (\url{http://www.ycc.com/})
 	\item Grain-of-Salt Consulting
 	\item Terje Gravvold
 	\item Hart Computer (\url{http://www.hart.co.jp/})
73e034df
 	\item Pen Helm
8589f1a0
 	\item Hosting Metro LLC (\url{http://www.hostingmetro.com/})
 	\item IDEAL Software GmbH (\url{http://www.IdealSoftware.com/})
 	\item Industry Standard Computers (\url{http://www.ISCnetwork.com/})
48b7b4a7
 	\item Interact2Day (\url{http://www.interact2day.com/})
8589f1a0
 	\item Invisik Corporation (\url{http://www.invisik.com/})
ef1f6e71
 	\item itXcel Internet - Domain Registration (\url{http://www.itxcel.com})
8589f1a0
 	\item Craig Jackson
 	\item Stuart Jones
 	\item Jason Judge
 	\item Keith (\url{http://www.textpad.com/})
48b7b4a7
 	\item Ewald Kicker (\url{http://www.very-clever.com/})
8589f1a0
 	\item Brad Koehn
48b7b4a7
 	\item Christina Kuratli (\url{http://www.virusprotect.ch/})
8589f1a0
 	\item Logic Partners Inc. (\url{http://www.logicpartners.com/})
 	\item Mark Lotspaih (\url{http://www.lotcom.org/})
 	\item Michel Machado (\url{http://oss.digirati.com.br/})
 	\item Olivier Marechal
48b7b4a7
 	\item Matthew McKenzie
73e034df
 	\item Durval Menezes (\url{http://www.durval.com.br/})
ef1f6e71
 	\item Micro Logic Systems (\url{http://www.mls.nc/})
8589f1a0
 	\item Midcoast Internet Solutions
 	\item Mimecast (\url{http://www.mimecast.com/})
 	\item Kazuhiro Miyaji
 	\item Bozidar Mladenovic
 	\item Paul Morgan
 	\item Tomas Morkus
48b7b4a7
 	\item The Names Database (\url{http://static.namesdatabase.com})
73e034df
 	\item Names Directory (\url{http://www.namesdir.com/})
8589f1a0
 	\item Michael Nolan (\url{http://www.michaelnolan.co.uk/})
48b7b4a7
 	\item Jorgen Norgaard
 	\item Numedeon, Inc. creators of Whyville (\url{http://www.whyville.net/})
8589f1a0
 	\item Oneworkspace.com (\url{http://www.oneworkspace.com/})
73e034df
 	\item Online Literature (\url{http://www.couol.com/})
8589f1a0
 	\item Origin Solutions (\url{http://www.originsolutions.com.au/})
 	\item outermedia GmbH (\url{http://www.outermedia.de/})
48b7b4a7
 	\item Kevin Pang (\url{http://www.freebsdblog.org/})
8589f1a0
 	\item Alexander Panzhin
48b7b4a7
 	\item Passageway Communications (\url{http://www.passageway.com})
 	\item Dan Pelleg (\url{http://www.libagent.org/})
8589f1a0
 	\item Thodoris Pitikaris
 	\item Paul Rantin
5638b256
 	\item Thomas J. Raef (\url{http://www.ebasedsecurity.com})
8589f1a0
 	\item Luke Reeves (\url{http://www.neuro-tech.net/})
 	\item RHX (\url{http://www.rhx.it/})
 	\item Stefano Rizzetto
 	\item Roaring Penguin Software Inc. (\url{http://www.roaringpenguin.com/})
 	\item Luke Rosenthal
73e034df
8589f1a0
 	\item School of Engineering, University of Pennsylvania (\url{http://www.seas.upenn.edu/})
 	\item Tim Scoff
 	\item Seattle Server (\url{http://www.seattleserver.com/})
 	\item Software Workshop Inc (\url{http://www.softwareworkshop.com/})
 	\item Solutions In A Box (\url{http://www.siab.com.au/})
 	\item Stephane Rault
48b7b4a7
 	\item SearchMain (\url{http://www.searchmain.com/})
 	\item Olivier Silber
8589f1a0
 	\item Fernando Augusto Medeiros Silva (\url{http://www.linuxplace.com.br/})
48b7b4a7
 	\item Sollentuna Fria Gymnasium, Sweden (\url{http://www.sfg.se/})
8589f1a0
 	\item StarBand (\url{http://www.starband.com/})
5638b256
 	\item Stroke of Color, Inc.
8589f1a0
 	\item Synchro Sistemas de Informacao (\url{http://synchro.com.br/})
 	\item Sahil Tandon
48b7b4a7
 	\item The Spamex Disposable Email Address Service (\url{http://www.spamex.com})
8589f1a0
 	\item Brad Tarver
48b7b4a7
 	\item TGT Tampermeier \& Grill Steuerberatungs- und Wirtschaftstreuhand OEG (\url{http://www.tgt.at/})
8589f1a0
 	\item Per Reedtz Thomsen
 	\item William Tisdale
 	\item Up Time Technology (\url{http://www.uptimetech.com/})
 	\item Ulfi
 	\item Jeremy Vanderburg (\url{http://www.jeremytech.com/})
5638b256
 	\item Web.arbyte - Online-Marketing (\url{http://www.webarbyte.de/})
8589f1a0
 	\item Webzone Srl (\url{http://www.webzone.it/})
 	\item Markus Welsch (\url{http://www.linux-corner.net/})
48b7b4a7
 	\item Julia White (\url{http://www.convert-tools.com/})
8589f1a0
 	\item Nicklaus Wicker
 	\item David Williams (\url{http://kayakero.net/})
5638b256
 	\item Glenn R Williams
48b7b4a7
 	\item Kelly Williams
73e034df
 	\item XRoads Networks (\url{http://xroadsnetworks.com/})
48b7b4a7
 	\item Zimbra open-source collaboration suite (\url{http://www.zimbra.com/})
8589f1a0
     \end{itemize}
 
     \subsection{Graphics}
73e034df
     The ClamAV logo was created by Mia Kalenius and Sergei Pronin from
     Finndesign (\url{http://www.finndesign.fi/}).
8589f1a0
 
     \subsection{OpenAntiVirus}
73e034df
     Our database includes the virus database (about 7000 signatures) from
     OpenAntiVirus (\url{http://OpenAntiVirus.org}).
8589f1a0
 
73e034df
     \section{Core Team}
8589f1a0
 
     \begin{itemize}
28715a7c
 	\item Christoph Cordes \email{<ccordes*clamav.net>}, Germany\\
 	Role: virus database maintainer
 
 	\item Joel Esler \email{<jesler*sourcefire.com>}, USA\\
 	Role: open source community manager
 
 	\item Tom Judge \email{<tjudge*sourcefire.com>}, USA\\
 	Role: infrastucture developer
 
 	\item Steven Morgan \email{<smorgan*sourcefire.com>}, USA\\
 	Role: ClamAV developer
 
 	\item Matthew Olney \email{<molney*sourcefire.com>}, USA\\
 	Role: development manager
 
 	\item David Raynor \email{<draynor*sourcefire.com>}, USA\\
 	Role: ClamAV developer
 
 	\item Shawn Webb \email{<swebb*sourcefire.com>}, USA\\
 	Role: ClamAV developer
 
 	\item Carl Wu \email{<cwu*sourcefire.com>}, USA\\
 	Role: ClamAV developer
 
 	\item Alain Zidouemba \email{<azidouemba*sourcefire.com>}, USA\\
 	Role: virus database maintainer
       
     \end{itemize}
 
     \section{Emeritus Team}
 
     \begin{itemize}
8589f1a0
 	\item aCaB \email{<acab*clamav.net>}, Italy\\
 	Role: virus database maintainer, coder
 
 	\item Mike Cathey \email{<mike*clamav.net>}, USA\\
 	Role: co-sysadmin
 
 	\item Diego d'Ambra \email{<diego*clamav.net>}, Denmark\\
 	Role: virus database maintainer
 
 	\item Luca Gibelli \email{<luca*clamav.net>}, Italy\\
 	Role: sysadmin, mirror coordinator
 
 	\item Nigel Horne \email{<njh*clamav.net>}, United Kingdom\\
 	Role: coder
 
5638b256
 	\item Arnaud Jacques \email{<arnaud*clamav.net>}, France\\
 	Role: virus database maintainer
 
8589f1a0
 	\item Tomasz Kojm \email{<tkojm*clamav.net>}, Poland\\
73e034df
 	Role: project leader, coder
8589f1a0
 
 	\item Tomasz Papszun \email{<tomek*clamav.net>}, Poland\\
73e034df
 	Role: various help
8589f1a0
 
5638b256
 	\item Sven Strickroth \email{<sven*clamav.net>}, Germany\\
73e034df
 	Role: virus database maintainer, virus submission management
 
 	\item Edwin Torok \email{<edwin*clamav.net>}, Romania\\
 	Role: coder
5638b256
 
8589f1a0
 	\item Trog \email{<trog*clamav.net>}, United Kingdom\\
73e034df
 	Role: coder
8589f1a0
     \end{itemize}
 \end{document}