Home
        Clam AntiVirus 0.96.5 User Manual
         Contents
1.     e Nicklaus Wicker   e David Williams  http    kayakero net     e Glenn R Williams   e Kelly Williams   e XRoads Networks  http    xroadsnetworks com      e Zimbra open source collaboration suite  http     www zimbra com      6 7 Graphics    The ClamAV logo was created by Mia Kalenius and Sergei Pronin from Finndesign   http   www finndesign fi       6 8 OpenAntiVirus    Our database includes the virus database  about 7000 signatures  from OpenAntiVirus   http   OpenAntiVirus org      7 Core Team    e aCaB   acab clamav net    Italy  Role  virus database maintainer  coder    e Mike Cathey   mike clamav net    USA  Role  co sysadmin    e Christoph Cordes   ccordes clamav net    Germany  Role  virus database maintainer    e Diego d Ambra   diego clamav net    Denmark  Role  virus database maintainer    e Luca Gibelli   1uca clamav net    Italy  Role  sysadmin  mirror coordinator    Core Team    Nigel Horne  lt njh clamav net gt   United Kingdom  Role  coder    Arnaud Jacques  lt arnaud clamav net gt   France  Role  virus database maintainer    Tomasz Kojm  lt tkojm clamav net gt   Poland  Role  project leader  coder    Tomasz Papszun  lt tomek clamav net gt   Poland  Role  various help    Sven Strickroth  lt sven clamav net gt   Germany  Role  virus database maintainer  virus submission management    Edwin Torok  lt edwin clamav net gt   Romania  Role  coder    Trog  lt trog clamav net gt   United Kingdom  Role  coder    
2.    Clam AntiVirus 0 96 5  User Manual    Contents    Contents    Introduction   lil  Features  s Au Ee doe be ba Fed Fed BSS 6 Se RSS oe  1 2 Mailing lists and IRC channel                         1 3   Virus submiinne  uo vom aa o RO cR AAA    Base package    2 1 Supported platforms  eh see daa ad  2L UNIX 2 og aed demi a eed do e Hae Ee 49 ook eo aS  2 1 2  Wandows ita a qr A eo i9 eiu Ros  2 2  Binary packages c ode qoot dun dus P WERL REOR WC eR  Installation  m Beguiremenis sus xg chord eR EH eh Ped ex  3 2 Installing on shell account                           3 3 Adding new system user and group                       3 4 Compilation of base package    5 45045 445 04  dee y  3 5 Compilation with clamav milter enabled                    3 6 Running unit tests                    a doe ROS  3 7 Reporting a unit test failure bug                        Configuration  SEH  clamd 2222942442443 935 10 e GS  4 1 1 On access scanning                           42  Elamav M    S A   4 6 5 4 000 000 ra L9 E 9    at Yo x Yep X Yes  Eno usarse Ea A eee CS ee  44 Setting up auto updating                            4 41 Closestmirors ou qoe ope A e A ES  4 5 ClamAV Active Malware Report                        Usage  SL Clam daemon er ses 344 4 oa     Oe eh aS Se SEES SESE SS  32 lamuseBH   4 364265 2465   24454  4  5646 024  E ob A  9 0 o e ou  dee et Saeed eee FSH P Sepe s  2b  MME    ow dios doe Bow erben  SOLI leng   ide a a AR RA A ER ER    o A Ei re HEEN    Contents    6 LibClamAV   
3.    e Matt Butt   mattb cre8tiv com     e Christopher X  Candreva   chris westnet com     e Eric I  Lopez Carreon  lt elopezc technitrade com gt   e Ales Casar  lt casar uni mb si gt    e Jonathan Chen  lt jon clamav spock org gt    e Andrey Cherezov   andrey cherezov koenig su    e Alex Cherney  lt alex cher id au gt    e Tom G  Christensen   tgc statsbiblioteket dk    e Nicholas Chua  lt nicholas ncmbox net gt    e Chris Conn  lt cconn abacom  com gt    e Christoph Cordes  lt ib precompiled de gt    e Ole Craig  lt olc cs umass edu gt    e Eugene Crosser   crosser rol ru     e Calin A  Culianu  lt calin ajvar org gt    e Damien Curtain  lt damien pagefault org gt    e Krisztian Czako  lt slapic linux co hu gt    e Diego d Ambra  lt da softcom  dk    e Michael Dankov  lt misha btrc ru gt    e Yuri Dario  lt mc6530 mclink it gt    e David  lt djgardner users sourceforge net gt    e Maxim Dounin  lt mdounin rambler co ru gt     e Alejandro Dubrovsky  lt s328940 student  uq edu au gt     LibClamAV    e James P  Dugal  lt jpd louisiana edu gt    e Magnus Ekdahl  lt magnus debian org gt    e Mehmet Ekiz  lt ekizm tbmm gov tr gt    e Jens Elkner  lt elkner linofee org gt    e Fred van Engen  lt fred wooha org gt    e Jason Englander  lt jason englanders cc gt    e Oden Eriksson  lt oeriksson mandrakesoft com gt   e Daniel Fahlgren  lt fahlgren ardendo se gt    e Andy Fiddaman  lt af jeamland org gt    e Edison Figueira Junior  lt edison brc com br gt    e David Ford  lt david cert 
4.  OA Licence  won 6d ee Ba a KE HR EO 3x cx  6 2 Supported formats and features                          6 2 1   xecuiables 2 oo sac px X  oxco  O34 Se Yo ala  O22 Mall DS  s sig 64 daria Edo X er a el  6 23 Archives and compressed files                     024  Documents d aca ae ee o Se oe a ES  6 23 Data Loss Prevention     5 2 45 44  Aa   da   A9 x RR XC  O 2O OMES MEE  LTD  03 APL ge e ux we RR ee ee oe ee Pe NUES E X NE  pal Header tle Qa aeg oe tardara meds RR  6 3 2  tert   PC  6 3 3 Database loading                            0 3 4 Errorhandling 22 0 2 2 2022 4 23 50 esasta A  635   Engine str    t  te   secs so aoro ro p havens ELS  OO  LIMIS  lt  lt  wed tar Su  doi  d i hk Bee Ge Be HG E 3  6 37 Database checks  wu 22g de ER OSE DES EM eh  6 3 5 Data scan TuliCHOBS e 644444 hp 4 a A He ge HESS  67 Memory 2344244345 0355 90 595 54 ood 53   6 3 10 Forking daemons                            6 5 11 Clamav ConDE s os 2e 1o x   209 se ein  0 3 12 Example  lt a Pale eee Xe e Sa Ces ee  0  CVD format  ns a ook bre Se eh ewe oe ES  Oa  EE 2 Sag 6444 oe au Sw EEE EEE EY 5  Oc  DIODOS  o as ee Be ES ae oe SAN be Ex  GO  Graphite  duck ug doe dee RE CAO EGE X oue Be A en E  6 8 OpenAntiVirus                eRe X E RR A    7 Core Team    19  20  20  20  20  20  2l  21  22  22  22  22  22  24  24  24  25  26  28  28  28  29  29  29  40  46  46    46    Contents ES     ClamAV User Manual      2007   2010 Sourcefire  Inc  Authors  Tomasz Kojm  This document is distributed under th
5.  and use clamdscan  or instead  connect directly to its socket and run the SCAN command        clamdscan  1 scan txt clamav x yz    Please note that the scanned files must be accessible by the user running clamd or you  will get an error     4 4 Setting up auto updating    freshclam is the automatic database update tool for Clam AntiVirus  It can work in  two modes     e interactive   on demand from command line  e daemon   silently in the background    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 authentication   digital signatures and various error scenarios  Quick test   run freshclam  as superuser  with no parameters and check the output  If every   thing is OK you may create the log file in  var log  owned by clamav or another user  freshclam will be running as        touch  var log freshclam log    chmod 600  var log freshclam log    chown clamav  var log freshclam log       Now you should edit the configuration file freshclam  conf and point the UpdateLog   File directive to the log file  Finally  to run freshclam in the daemon mode  execute       freshclam  d    The other way is to use the cron daemon  You have to add the following line to the  crontab of root or clamav user     N          usr local bin freshclam   quiet     To get more inf
6.  co uk gt   e Jo Mills  lt Jonathan Mills frequentis com gt    e Dustin Mollo  lt dustin mollo sonoma edu gt    e Remi Mommsen  lt remigius mommsen cern ch gt    e Doug Monroe   doug planetconnect com     e Alex S Moore  lt asmoore edge net gt    e Tim Morgan  lt tim sentinelchicken org gt    e Dirk Mueller  lt mueller kde org gt    e Flinn Mueller lt flinn activeintra net gt    e Hendrik Muhs  lt Hendrik Muhs  student  uni magdeburg de gt   e Simon Munton  lt simon munton demon co uk gt    e Farit Nabiullin  http    program  farit ru     e Nemosoft Um   lt nemosoft smcc demon n1 gt    e Wojciech Noworyta  lt wnow konarski edu pl gt    e Jorgen Norgaard  lt jnp anneli dk gt    e Fajar A  Nugraha  lt fajar telkom co id gt    e Joe Oaks  lt joe oaks hp com gt    e Washington Odhiambo  lt wash wananchi com gt     e Masaki Ogawa  lt proc mac  com gt     LibClamAV    e John Ogness  lt jogness antivir de gt    e Phil Oleson  lt oz nixil net gt    e Jan Ondrej  lt ondrejj salstar sk gt    e Martijn van Oosterhout  lt kleptog svana org gt    e OpenAntiVirus Team  http    www OpenAntiVirus org    e Tomasz Papszun  lt tomek lodz  tpsa pl gt    e Eric Parsonage  lt eric eparsonage com gt    e Oliver Paukstadt  lt pstadt stud  fh heilbronn de gt     e Christian Pelissier  lt Christian Pelissier onera fr gt        e Rudolph Pereira  lt rudolph usyd edu au gt   e Dennis Peterson  lt dennispe inetnw com gt   e Ed Phillips  lt ed UDel  Edu gt     e Andreas Piesk  lt Andreas  Piesk heise de g
7.  configur nable check should tell you why     3 7 Reporting a unit test failure bug    If make check says that some tests failed we encourage you to report a bug on our  bugzilla  http   bugs clamav net  The information we need is  see also http     clamav net bugs      e The exact output from make check    4 Configuration KO    e Output of uname  mrsp  e your config log  e The following files from the unit_tests  directory         test log        clamscan log           clamdscan log  e  tmp clamd test 1log if it exists  e where and how you installed the check package  e Output of pkg config check   cflags   libs    e Optionally if valgrindis available on your platform  the output of the following       make check    CK FORK no   libtool   mode execute valgrind unit tests check clamav       4 Configuration    4 1 clamd    Before you start using the daemon you have to edit the configuration file  in other case  clamd won t run        clamd  ERROR  Please edit the example config file  etc clamd conf     This shows the location of the default configuration file  The format and options of this  file are fully described in the clamd conf 5  manual  The config file is well commented  and configuration should be straightforward     4 1 1 On access scanning    One of the interesting features of clamd is on access scanning based on the Dazuko  module  available from http    dazuko org   This module is not required to run  clamd   furthermore  you shouldn   t run Dazuko on production s
8.  e Joerg Sonnenberger   joerg britannica bec de     e Michal  GiM  Spadlinski  http    gim org pl     e Kevin Spicer  lt kevin kevinspicer co uk gt    e GertJan Spoelman  lt cav gjs cc gt    e Ole Stanstrup  lt ole stanstrup dk gt     e Adam Stein  lt adam scan mc xerox com gt     LibClamAV    e Steve  lt steveb webtribe net gt    e Richard Stevenson  lt richard endace com gt    e Sven Strickroth  lt sstrickroth gym oha de gt    e Matt Sullivan  lt matt sullivan gen nz gt    e Dr Zbigniew Szewczak   zssz mat uni torun pl      e Joe Talbott  lt josepht cstone net gt        e Gernot Tenchio  lt g tenchio telco tech  de gt   e Masahiro Teramoto  lt markun onohara to gt    e Daniel Theodoro  lt dtheodoro ig com br gt    e Ryan Thompson  lt clamav sasknow  com gt    e Gianluigi Tiesi  lt sherpya netfarm it gt     e Yar Tikhiy  lt yar comp chem msu su gt        e Andrew Toller  lt atoller connectfree co uk gt   e Michael L  Torrie  lt torriem chem byu edu gt    e Trashware   trashware gmx net     e Matthew Trent   mt rent  localaccess com     e Reini Urban  lt rurban x ray at gt    e Daniel Mario Vega  lt dv5a dc uba ar gt    e Denis Vlasenko  lt vda ilport com ua gt    e Laurent Wacrenier   lwa teaser fr     e Charlie Watts  lt cewatts brainstorminternet net gt   e Florian Weimer  lt fw deneb enyo de gt    e Paul Welsh  lt paul welshfamily com gt    e Nicklaus Wicker   n wicker cnk networks de      e David Woakes  lt david mitredata co uk gt     6 LibClamAV    6 6    Troy Wollensl
9.  sources allocated by the engine use cl engine free    Function prototypes        int cl init unsigned int options    struct cl engine  cl engine new void    int cl engine free struct cl engine  engine                     cl init   and cl  engine  free   return CL SUCCESS on success or another code on  error  cl engine new   return a pointer or NULL if there s not enough memory to  allocate a new engine structure     6 3 3 Database loading    The following set of functions provides an interface for loading the virus database     6 LibClamAV    const char  cl_retdbdir  void       int cl_load const char  path  struct cl_engine  engine     cl_retdbdir   returns the default  hardcoded  path to the directory with ClamAV  databases  cl load   loads a single database file or all databases from a given di   rectory  when path points to a directory   The second argument is used for passing in  the pointer to the engine that should be previously allocated with cl_engine_new    A  number of loaded signatures will be added to signo     The last argument can pass the       unsigned int  signo  unsigned int options      following flags     CL_DB_STDOPT  This is an alias for a recommended set of scan options     CL_DB_PHISHING  Load phishing signatures     CL_DB_PHISHING_URLS  Initialize the phishing detection module and load  wdb and  pdb files     CL_DB_PUA  Load signatures for Potentially Unwanted Applications     CL DB OFFICIAL  ONLY  Only load official signatures from digitally signed 
10.  strings  using the following set of functions     6 LibClamAV EJ    int cl engine set num struct cl  engine  engine   enum cl engine field field  long long num            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         Please don t modify the default values unless you know what you re doing  Refer to the  ClamAV sources  clamscan  clamd  for examples     6 3 7 Database checks    It   s very important to keep the internal instance of the database up to date  You can  watch database changes with the cl stat     family of functions        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         Initialization     struct cl stat dbstat     memset  amp dbstat  0  sizeof struct cl stat     cl statinidir dbdir   amp dbstat         To check for a change you just need to call cl statchkdir and check its return value   0   no change  1   some change occured   Remember to reset the c1  stat structure  after reloading the database     if cl statchkdir  amp dbstat     1     reload database      cl statfree  amp dbstat    cl statinidir cl retdbdir     amp dbstat            6 LibClamAV EJ    Libclamav  gt  0 9
11. 6 includes and additional call to check the number of signatures that  can be loaded from a given directory     int cl countsigs const char  path  unsigned int countoptions   unsigned int  sigs         The first argument points to the database directory  the second one specifies what signa   tures should be counted  CL COUNTSIGS  OFFICIAL  official signatures     CL COUNTSIGS UNOFFICIAL  third party signatures   CL COUNTSIGS ALL  all signa   tures   The last argument points to the counter to which the number of detected signa   tures will be added  therefore the counter should be initially set to 0   The call returns  CL SUCCESS or an error code     6 3 8 Data scan functions    It s possible to scan a file or descriptor using     int cl scanfile const char  filename  const char   virname   unsigned long int  scanned  const struct cl engine  engine   unsigned int options         int cl scandesc int desc  const char   virname  unsigned  long int  scanned  const struct cl  engine  engine   unsigned int options            Both functions will store a virus name under the pointer virname  the virus name is  part of the engine structure and must not be released directly  If the third argument   scanned  is not NULL  the functions will increase its value with the size of scanned  data  in CL  COUNT  PRECISION units   The last argument  options  specified the scan  options and supports the following flags  which can be combined using bit operators      e CL SCAN  STDOPT  This is an al
12. PPED  Search for SSNs formatted as xxyyzzzz     6 LibClamAV EJ    e CL SCAN PARTIAL MESSAGE  Scan RFC1341 messages split over many emails  You will need to periodically  clean up  TemporaryDirectory clamav partial directory     e 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  Rec   ommended  saves CPU scan time  When disabled  virus phish detected by heuris   tic 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     All functions return CL CLEAN when the file seems clean  CL VIRUS when a virus is  detected and another value on failure     const char  virname     if  ret   cl scanfile   tmp test exe    amp virname  NULL  engine   CL STDOPT      CL VIRUS     printf   Virus detected   s n   virname      else    printf  No virus detected  Mn     if ret    CL CLEAN   printf  Error  s n   cl strerror ret       6 3 9 Memory   Because the engine structure occupies a few megabytes of system memory  you should  release it with cl engine free   if you no longer need to scan files    6 3 10 Forking daemons    If you   re using libclamav with a forking daemon you should call srand   inside a  forked child before making any calls to the libclamav functions  This will avoid possi   ble collisions with temporary filenames crea
13. acro viruses  mobile malware  and other threats    e Built in bytecode interpreter allows the ClamAV signature writers to create and  distribute very complex detection routines and remotely enhance the scanner s  functionality    e Scans within archives and compressed files  also protects against archive bombs    built in support includes     Zip  including SFX       RAR  including SFX     7Zip      ARJ  including SFX     Tar    CPIO    Gzip    Bzip2    MS OLE2    MS Cabinet Files  including SFX     MS CHM  Compiled HTML     1 Introduction S        MS SZDD compression format      BinHex       SIS  SymbianOS packages        Autolt       InstallShield    e Supports Portable Executable  32 64 bit  files compressed or obfuscated with         AsPack     UPX     FSG       Petite       PeSpin       NsPack  wwpack32     MEW       Upack       YOda Cryptor    e Supports ELF and Mach O files  both 32  and 64 bit   e Supports almost all mail file formats  e Support for other special files formats includes       HTML      RTF    PDF    Files encrypted with CryptFF and ScrEnc      uuencode      TNEF  winmail dat     e Advanced database updater with support for scripted updates  digital signatures  and DNS based database version queries    2 Base package EJ    1 2 Mailing lists and IRC channel    If you have a trouble installing or using ClamAV try asking on our mailing lists  There  are four lists available     e clamav announce lists clamav net   info about new versions  moderated      e 
14. anos Chatziathanassiou   e Cheahch from Singapore   e Conexim Australia   business web hosting  http     www conexim com au   e Alan Cook   e Joe Cooper   e CustomLogic LLC  http    www customlogic com     e Ron DeFulio   e Digirati  http   oss digirati com br     e Steve Donegan  http    www donegan org     e Dynamic Network Services  Inc  http     www dyndns  org     e EAS Enterprises LLC    e eCoupons com  http    www ecoupons com         e Electric Embers  http    electricembers net     e John T  Ellis    LibClamAV    e Epublica   e Bernhard Erdmann   e David Eriksson  http    www 2good nu     e Philip Ershler   e Explido Software USA Inc   http   www explido us    e David Farrick   e Jim Feldman   e Petr Ferschmann  http    petr ferschmann cz     e Andries Filmer  http    www netexpo nl     e The Free Shopping Cart people  http    www precisionweb net    e Paul Freeman   e Jack Fung   e Stephen Gageby   e Paolo Galeazzi   e GANDI  http    www gandi net     e Jeremy Garcia  http    www linuxquestions org     e GBC Internet Service Center GmbH  http     www gbc net    e GCS Tech  http    www gcstech net     e GHRS  http   www ghrshotels com     e Lyle Giese   e Todd Goodman   e Bill Gradwohl  http    www ycc com     e Grain of Salt Consulting   e Terje Gravvold    e Hart Computer  http    www hart co jp      LibClamAV    e Pen Helm   e Hosting Metro LLC  http   www  hostingmetro com     e IDEAL Software GmbH  http   www  IdealSoftware com    e Industry Standard Computers  
15. av    make  make install    To test your installation execute         clamav bin freshclam      clamav bin clamscan         The   disable clamav switch disables the check for existence of the clamav user and  group but clamscan would still require an unprivileged account to work in a superuser  mode     3 3 Adding new system user and group    If you are installing ClamAV for the first time  you have to add a new user and group to  your system       groupadd clamav    useradd  g clamav  s  bin false  c  Clam AntiVirus  clamav    Consult a system manual if your OS has not groupadd and useradd utilities  Don   t  forget to lock access to the account     3 Installation   9      3 4 Compilation of base package    Once you have created the clamav user and group  please extract the archive       zcat clamav x yz tar gz   tar xvf      cd clamav x yz    Assuming you want to install the configuration files in  etc  configure and build the  software as follows         configure   sysconfdir  etc    make    su  c  make install     In the last step the software is installed into the  usr local directory and the config files  into  etc  WARNING  Never enable the SUID or SGID bits for Clam AntiVirus  binaries     3 5 Compilation with clamav milter enabled    libmilter and its development files are required  To enable clamav milter  configure  ClamAV with           configur nable milter    3 6 Running unit tests    ClamAV includes unit tests that allow you to test that the compiled binaries 
16. blue labs org gt    e Martin Forssen  lt maf appgate com gt    e Brian J  France  lt list firehawksystems com gt   e Free Oscar  lt freeoscar wp pl gt    e Martin Fuxa  lt yeti email cz gt    e Piotr Gackiewicz  lt gacek intertele pl gt    e Jeremy Garcia  lt jeremy linuxquestions org gt   e Dean Gaudet  lt dean clamav arctic org gt    e Michel Gaudet  lt Michel Gaudet ehess fr gt    e Philippe Gay  lt ph gay free fr gt    e Nick Gazaloff  lt nick sbin org gt    e Geoff Gibbs  lt ggibbs hgmp mrc ac uk gt    e Luca  NERvOus  Gibelli  lt nervous nervous it gt   e Scott Gifford  lt sgifford suspectclass com gt     e Wieslaw Glod  lt wkg x2 pl gt     LibClamAV    e Stephen Gran  lt steve lobefin net gt        e Koryn Grant  lt koryn endace com gt    e Matthew A  Grant  lt grantma anathoth gen nz gt    e Christophe Grenier  lt grenier cgsecurity org gt    e Marek Gutkowski  lt hobbit core segfault pl gt    e Jason Haar  lt Jason Haar trimble co nz gt    e Hrvoje Habjanic  lt hrvoje habjanic zg hinet hr gt   e Michal Hajduczenia  lt michalis mat uni torun pl gt   e Jean Christophe Heger  lt jcheger acytec com gt    e Martin Heinz  lt Martin hemag ch gt    e Kevin Heneveld     lt kevin northstar k12 ak us gt    e Anders Herbjornsen  lt andersh gar no gt    e Paul Hoadley  lt paulh logixsquad net gt    e Robert Hogan  lt robert roberthogan net gt    e Przemyslaw Holowczyc   doozer skc com pl     e Thomas W  Holt Jr   lt twh cohesive net gt    e James F  Hranicky  lt jfh cise ufl edu 
17. clamav users lists clamav net   user questions   e clamav devel lists clamav net   technical discussions   e clamav virusdb lists clamav net   database update announcements  moderated    You can subscribe and search the mailing list archives at  http    www clamav net      support  ml   Alternatively you can try asking on the  clamav IRC channel   launch your favourite    irc client and type      server irc freenode net        join  clamav    1 3 Virus submitting    If you have got a virus which is not detected by your ClamAV with the latest databases   please submit the sample at our website     http   www clamav net sendvirus    2 Base package    2 1 Supported platforms  2 1 1 UNIX    The most popular UNIX operating systems are supported  Clam AntiVirus 0 9x is reg   ularly tested on     e GNU Linux  e Solaris    e FreeBSD      Subscribers are not allowed to post to the mailing list    3 Installation    e OpenBSD    e MacOS X    2 1 2 Windows  Starting with 0 96 ClamAV builds natively under Visual Studio     2 20 Binary packages    You can find the up to date list of binary packages at our website  http    www clamav   net download packages     3 Installation    3 1 Requirements  The following components are required to compile ClamAV under UNIX     e zlib and zlib devel packages    e gcc compiler suite  tested with 2 9x  3 x and 4 x series   If you are compiling with higher optimization levels than the default one   O2  for gcc   be aware that there have been reports of mi
18. cluding clamd   will not be able to detect any viruses  In the result all infected  mails may be delivered     For example  to protect the whole system add the following lines to clamd  conf     lamukoScanOnAccess   lamukoIncludePath     lamukoExcludePath  proc   lamukoExcludePath  temporary dir of your mail scanning software       C3 CH CX C2             You can also use clamuko to protect files on Samba Netatalk but a far more better and  safe idea is to use the samba vscan module  NFS is not supported because Dazuko  doesn t intercept NFS access calls     5 4 Output format    5 4 1 clamscan    clamscan writes all regular program messages to stdout and errors warnings to stderr   You can use the option   stdout to redirect all program messages to stdout  Warnings  and error messages from 1ibclamav are always printed to stderr  A typical output from  clamscan looks like this         tmp test removal tool exe  Worm Sober FOUND   tmp test md5 o  OK   tmp test blob c  OK    6 LibClamAV   19       tmp test message c  OK   tmp test error hta  VBS Inor D FOUND    When a virus is found its name is printed between the filename  and FOUND strings  In  case of archives the scanner depends on libclamav and only prints the first virus found  within an archive        zolw localhost  tmp  clamscan malware zip  malware zip  Worm Mydoom U FOUND          5 4 2 clamd  The output format of clamd is very similar to clamscan     zolw localhost    telnet localhost 3310   Trying 127 0 0 1      Con
19. com  de gt     e Peter N Lewis  lt peter stairways com au gt     LibClamAV    Matt Leyda  lt mfleyda e one  com gt     James Lick  lt jlick drivel com gt        Jerome Limozin  lt jerome limozin net gt    Mike Loewen  lt mloewen  sturgeon cac psu edu gt   Roger Lucas  lt roger planbit co uk gt    David Luyer  lt david_luyer pacific net au gt   Richard Lyons  lt frob clamav webcentral com au gt   David S  Madole  lt david madole net gt   Thomas Madsen  lt tm softcom  dk    Bill Maidment  lt bi11 maidment  com au gt    Joe Maimon  lt jmaimon ttec com gt    David Majorel  lt dm lagoon nc gt    Andrey V  Malyshev  lt amal krasn  ru gt   Fukuda Manabu  lt fukuda cri mw co  jp gt   Stefan Martig  lt sm officeco ch gt    Alexander Marx  lt mad ml madness at gt   Andreas Marx  http    www av test org    Chris Masters  lt cmasters insl co uk gt   Fletcher Mattox  lt fletcher cs utexas edu gt   Serhiy V  Matveyev  lt matveyev uatele com gt   Reinhard Max  lt max suse de gt    Brian May  lt bam debian org gt    Ken McKittrick   k1mac usadatanet com    Chris van Meerendonk   cvm castel nl      Andrey J  Melnikoff  lt temnota kmv  ru gt     LibClamAV    e Damian Menscher  lt menscher uiuc edu gt   e Denis De Messemacker  lt ddm clamav net gt   e Jasper Metselaar  lt jasper formmailer net gt     e Arkadiusz Miskiewicz  lt misiek pld linux org gt        e Ted Mittelstaedt  lt tedm toybox placo com gt    e Mark Mielke  lt mark mark mielke cc gt    e John Miller  lt contact glideslopesoftware
20. databases     CL DB BYTECODE  Load bytecode     cl load   returns CL SUCCESS on success and another code on failure     struct cl engine  engine   unsigned int sigs   0   int ret     if  ret   cl_init       CL SUCCESS       printf   cl init   error   s n   cl strerror ret     return 1      ORemember to initialize the virus counter variable with 0     6 LibClamAV   24      if    engine   cl engine new        printf   Can t create new engine n     return 1        ret   cl_load cl_retdbdir    engine   amp sigs  CL_DB_STDOPT      6 3 4 Error handling    Use cl_strerror   to convert error codes into human readable messages  The func   tion returns a statically allocated string     if ret    CL SUCCESS     printf  cl load   error   s n   cl strerror ret     cl engine free  engine         return 1     6 3 5 Engine structure    When all required databases are loaded you should prepare the detection engine by  calling cl engine compile    In case of failure you should still free the memory  allocated to the engine with c1 engine free       int cl engine compile struct cl engine  engine      In our example     if  ret   cl engine compile engine      CL SUCCESS     printf  cl engine compile   error   s n   cl strerror ret          cl engine free engine    return 1     6 3 6 Limits    When you create a new engine with c1 engine new   it will have all internal settings  set to default values as recommended by the ClamAV authors  It s possible to check and  modify the values  numerical and
21. e Paul Rantin   e Thomas J  Raef  http    www ebasedsecurity com    e Luke Reeves  http    www neuro tech net     e RHX  http   www  rhx it     e Stefano Rizzetto   e Roaring Penguin Software Inc   http   www  roaringpenguin com    e Luke Rosenthal    e Jenny Sfstrm  http    PokerListings com     LibClamAV EJ    e School of Engineering  University of Pennsylvania  http    www seas upenn   edu      e Tim Scoff   e Seattle Server  http    www seattleserver com     e Software Workshop Inc  http    www softwareworkshop com     e Solutions In A Box  http   www siab com au     e Stephane Rault   e SearchMain  http    www searchmain com     e Olivier Silber   e Fernando Augusto Medeiros Silva  http    www linuxplace com br    e Sollentuna Fria Gymnasium  Sweden  http     www sfg se     e StarBand  http    www starband com     e Stroke of Color  Inc    e Synchro Sistemas de Informacao  http    synchro com br     e Sahil Tandon   e The Spamex Disposable Email Address Service  http     www spamex com   e Brad Tarver    e TGT Tampermeier  amp  Grill Steuerberatungs  und Wirtschaftstreuhand OEG  http     www tgt at      e Per Reedtz Thomsen   e William Tisdale   e Up Time Technology  http    www uptimetech com    e Ulfi   e Jeremy Vanderburg  http   www  jeremytech com      e Web arbyte   Online Marketing  http    www webarbyte de      7 Core Team ES    e Webzone Srl  http    www webzone it     e Markus Welsch  http   www  linux corner net    e Julia White  http   www  convert tools com 
22. e terms of the GNU General Public License v2     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  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 Foundation  Inc   51 Franklin Street  Fifth  Floor  Boston  MA 02110 1301  USA     ClamAV and Clam AntiVirus are trademarks of Sourcefire  Inc        1 Introduction E    1 Introduction    Clam AntiVirus is an open source  GPL  anti virus toolkit for UNIX  designed espe   cially 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     1 1 Features    e Licensed under the GNU General Public License  Version 2  e POSIX compliant  portable   e Fast scanning   e Supports on access scanning  Linux and FreeBSD only     e Detects over 850 000 viruses  worms and trojans  including Microsoft Office  m
23. egel  lt t roy  intranet  org gt    ST Wong  lt st wong cuhk edu hk gt    Dale Woolridge  lt dwoolridge drh net gt   David Wu  lt dyw iohk com gt    Takumi Yamane  lt yamtak b session com gt   Youza Youzovic  lt youza post cz gt    Anton Yuzhaninov  lt citrin rambler co ru gt   Leonid Zeitlin  lt 1z europe com gt    ZMan Z   lt x86zman go a way dyndns org gt     Andoni Zubimendi  lt andoni lpsat  net gt     Donors    We   ve received financial support from   in alphabetical order     Activelntra net Inc   http    www activeintra net     Advance Healthcare Group  http     www ahgl com au     Allied Quotes  http    www AlliedQuotes com     American Computer  amp  Electronic Services Corp   http    www acesnw com    Amnesty International  Swiss Section  http    www amnesty ch     Steve Anderson   Anonymous donor from Colorado  US   Arudius  http    arudius sourceforge net     Peter Ashman    Atlas College  http    www atlascollege nl         Australian Payday Cash Loans  http    www cashdoctors com au      AWD Online  http     www awdonline com      LibClamAV EN    e BackupAssist Backup Software  http    www backupassist com    e Dave Baker   e Bear and Bear Consulting  Inc   http    www bear consulting com    e Aaron Begley   e Craig H  Block   e Norman E  Brake  Jr    e Josh Burstyn   e By Design  http    www by design net     e Canadian Web Hosting  http    www canadianwebhosting com    e cedarcreeksoftware com  http    www cedarcreeksoftware com    e Ricardo Cerqueira   e Th
24. gt    e Douglas J Hunley  lt doug hunley homeip net gt    e Kurt Huwig  lt kurt iku netz de gt    e Andy Igoshin  lt ai vsu ru gt    e Michal Jaegermann  lt michal harddata com gt    e Christophe Jaillet  lt christophe  jaillet wanadoo fr gt   e Jay  lt sysop clamav coronastreet net gt     e Stephane Jeannenot  lt stephane  jeannenot wanadoo fr         e Per Jessen  lt per computer org gt     LibClamAV    e Dave Jones  lt dave kalkbay co za gt   e Jesper Juhl  lt juhl dif dk gt     e Kamil Kaczkowski  lt kamil kamil eisp pl gt        e Alex Kah  lt alex narfonix com gt    e Stefan Kaltenbrunner  lt stefan kaltenbrunner cc gt   e Lloyd Kamara  lt 1 kamara imperial ac uk gt    e Stefan Kanthak  lt stefan kanthak fujitsu siemens com gt   e Kazuhiko  lt kazuhiko fdiary net gt    e Jeremy Kitchen  lt kitchen scriptkitchen com gt    e Tomasz Klim  lt tomek euroneto pl gt    e Robbert Kouprie   robbert exx nl     e Martin Kraft   martin kraft fal de     e Petr Kristof   Kristof P fce vutbr cz     e Henk Kuipers  lt henk opensourcesolutions nl gt    e Nigel Kukard   nkukard lbsd net     e Eugene Kurmanin  lt smfs users sourceforge net gt   e Dr Andrzej Kurpiel   akurpiel mat uni torun pl    e Mark Kushinsky   mark mdspc com      e Mike Lambert  lt lambert jeol com gt        e Thomas Lamy   Thomas  Lamy in online net gt   e Stephane Leclerc   sleclerc aliastec net     e Marty Lee  lt marty maui co uk gt    e Dennis Leeuw   dleeuw made it com     e Martin Lesser  lt admin debian better
25. http   www  ISCnetwork com    e Interact2Day  http    www interact2day com     e Invisik Corporation  http     www invisik com     e itXcel Internet   Domain Registration  http    www itxcel com   e Craig Jackson   e Stuart Jones   e Jason Judge   e Keith  http    www textpad com     e Ewald Kicker  http    www very clever com     e Brad Koehn   e Christina Kuratli  http    www virusprotect ch     e Logic Partners Inc   http   www logicpartners com     e Mark Lotspaih  http    www lotcom org     e Michel Machado  http    oss digirati com br     e Olivier Marechal   e Matthew McKenzie    e Durval Menezes  http    www durval com br         e Micro Logic Systems  http     www mls nc    e Midcoast Internet Solutions   e Mimecast  http    www mimecast com     e Kazuhiro Miyaji    e Bozidar Mladenovic    LibClamAV    e Paul Morgan   e Tomas Morkus   e The Names Database  http    static namesdatabase com   e Names Directory  http    www namesdir com     e Michael Nolan  http    www michaelnolan co uk     e Jorgen Norgaard   e Numedeon  Inc  creators of Whyville  http     www whyville net    e Oneworkspace com  http    www oneworkspace com     e Online Literature  http    www couol com     e Origin Solutions  http    www originsolutions com au    e outermedia GmbH  http    www outermedia de     e Kevin Pang  http   www  freebsdblog org     e Alexander Panzhin   e Passageway Communications  http    www passageway com   e Dan Pelleg  http    www libagent org     e Thodoris Pitikaris   
26. ias for a recommended set of scan options  You should use it to make  your software ready for new features in the future versions of libclamav     e CLSCAN  RAW  Use it alone if you want to disable support for special files     e CL SCAN  ARCHIVE  This flag enables transparent scanning of various archive formats     LibClamAV    e CL_SCAN_BLOCKENCRYPTED  With this flag the library will mark encrypted archives as viruses  Encrypted Zip   Encrypted RAR      e CL SCAN  MAIL  Enable support for mail files     e CL SCAN OLE2  Enables support for OLE2 containers  used by MS Office and  msi files      e CL SCAN PDF  Enables scanning within PDF files     e CL SCAN PE  This flag enables deep scanning of Portable Executable files and allows libclamav  to unpack executables compressed with run time unpackers     e CL SCAN  ELF  Enable support for ELF files     e CL SCAN  BLOCKBROKEN  libclamav will try to detect broken executables and mark them as Broken Executable     e CL SCAN HTML  This flag enables HTML normalisation  including ScrEnc decryption      e CL SCAN ALGORITHMIC  Enable algorithmic detection of viruses     e CL SCAN PHISHING BLOCKSSL  Phishing module  always block SSL mismatches in URLs     e CL SCAN PHISHING BLOCKCLOAK  Phishing module  always block cloaked URLs     e CL SCAN STRUCTURED  Enable the DLP module which scans for credit card and SSN numbers     e CL SCAN  STRUCTURED  SSN NORMAL  Search for SSNs formatted as xx yy zzzz           e CL SCAN  STRUCTURED  SSN  STRI
27. lies 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  Note that us   ing 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 dead   locked  it will close the connection  Note that clamd may close an IDSESSION  connection too if the client doesn   t follow the protocol   s requirements     e STREAM  deprecated  use INSTREAM instead   Scan stream  clamd will return a new port number you should connect to and send  data to scan     It   s recommended to prefix clamd commands with the letter z  eg  zSCAN  to indi   cate 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 as   sures that the complete command and its entire argument will be processed as a single  command  Alternatively commands may be prefixed with the letter 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  Clamd ca
28. limit exceeded and close the connection     e FILDES  It is mandatory to newline terminate this command  or prefix with n or 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     e STATS  It is mandatory to newline terminate this command  or prefix with n or z  it is  recommended to only use the 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     e IDSESSION  END   It is mandatory to prefix this command with n or z  also all commands inside ID   SESSION 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   id      response    where   id   is the request number  in ASCII  starting from 1  and   response    is the usual clamd reply  The reply lines have the same delimiter as the corre   sponding command had  Clamd will process the commands asynchronously  and    5 Usage    reply as soon as it has finished processing  Clamd requires clients to read all  the rep
29. mail file format including TNEF  winmail dat  at   tachments     6 2 3 Archives and compressed files    The following archive and compression formats are supported by internal handlers   e Zip    SFX   e RAR    SEX     6 LibClamAV EE    e 7Zip   e Tar   e CPIO   e Gzip   e Bzip2   e MS OLE2   e MS Cabinet Files    SFX    e MS CHM  Compiled HTML        e MS SZDD compression format  e BinHex   e SIS  SymbianOS packages    e Autolt   e NSIS   e InstallShield    6 2 4 Documents  The most popular file formats are supported   e MS Office and MacOffice files  e RTF  e PDF  e HTML    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     6 2 5 Data Loss Prevention    Libclamav includes a DLP module which can detect credit card and social security  numbers inside text files     6 LibClamAV   22      6 2 6 Others    Libclamav can handle various obfuscators  encoders  files vulnerable to security risks  such as     e JPEG  exploit detection   e RIFF  exploit detection   e uuencode    ScrEnc obfuscation    CryptFF    6 3 API    6 3 1 Header file    Every program using libclamav must include the header file clamav h      include  lt clamav h gt     6 3 2 Initialization    Before using libclamav  you should call cl_init    to initialize it  When it   s done   you re ready to create a new scan engine by calling cl engine new    To free re  
30. md recognizes the  following commands     e PING  Check the daemon s state  should reply with PONG         e VERSION  Print program and database versions     e RELOAD  Reload the databases     e SHUTDOWN  Perform a clean exit     e SCAN file directory  Scan file or directory  recursively  with archive support enabled  a full path is  required      e RAWSCAN file directory  Scan file or directory  recursively  with archive and special file support disabled   a full path is required       man 5 clamd conf    Usage   16      e CONTSCAN file directory  Scan file or directory  recursively  with archive support enabled and don   t stop  the scanning when a virus is found     e MULTISCAN file directory  Scan file in a standard way or scan directory  recursively  using multiple threads   to make the scanning faster on SMP machines      e INSTREAM   It is mandatory to prefix this command with n or 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   lt length gt  lt data gt  where   length   is the size of the following data in  bytes expressed as a 4 byte unsigned integer in network byte order and   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 INSTREAM size 
31. n handle the following signals     e SIGTERM   perform a clean exit  e SIGHUP   reopen the log file  e SIGUSR2   reload the database    Clamd should not be started in the background using the shell operator  amp  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 scan   ning     5 2 Clamdscan    clamdscan is a simple clamd client  In many cases you can use it as a clamscan  replacement however you must remember that     e it only depends on clamd    e although it accepts the same command line options as clamscan most of them are  ignored because they must be enabled directly in clama  i e  clamd  conf    5 Usage   18      e in TCP mode scanned files must be accessible for clamd  if you enabled Local   Socket in clamd conf then clamdscan will try to workaround this limitation by  using FILDES    5 3 Clamuko    Clamuko is a special thread in clamd that performs on access scanning under Linux and  FreeBSD and shares internal virus database with the daemon  You must follow some  important rules when using it     e Always stop the daemon cleanly   using the SHUTDOWN command or the  SIGTERM signal  In other case you can lose access to protected files until the  system is restarted     e Never protect the directory your mail scanner software uses for attachment un   packing  Access to all infected files will be automatically blocked and the scanner   in
32. nected to localhost    Escape character is         SCAN  home zolw test    home zolw test clam exe  ClamAV Test File FOUND  Connection closed by foreign host        In the SCAN mode it closes the connection when the first virus is found     SCAN  home zolw test clam zip   home zolw test clam zip  ClamAV Test File FOUND    CONTSCAN and MULTISCAN don   t stop scanning in case a virus is found   Error messages are printed in the following format     SCAN  no such file   no such file  Can t stat   the file  ERROR    6 LibClamAV    Libclamav provides an easy and effective way to add a virus protection into your soft   ware  The library is thread safe and transparently recognizes and scans within archives   mail files  MS Office document files  executables and other special formats     6 LibClamAV EN    6 1 Licence   Libclamav is licensed under the GNU GPL v2 licence  This means you are not allowed  to link commercial  closed source software against it  All software using libclamav  must be GPL compliant     6 2 Supported formats and features    6 2 1 Executables    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 obfuscated with the following  tools     e Aspack  2 12    e UPX  all versions    e FSG  1 3  1 31  1 33  2 0   e Petite  2 x    e PeSpin  1 1    e NsPack   e wwpack32  1 20    e MEW   e Upack   e YOda Cryptor  1 3     6 2 2 Mail files    Libclamav can handle almost every 
33. o on clamscan options run  man clamscan     4 Configuration   14      to check for a new database every hour  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 freshclam will require strict permission settings for the config  file when HTTPProxyPassword is tured on         PProxyServer myproxyserver com   PProxyPort 1234   PProxyUsername myusername             Hi Hi Hi RH           PProxyPassword mypass    4 4 1 Closest mirrors    The DatabaseMirror directive in the config file specifies the database server freshclam  will attempt  up to MaxAttempts times  to download the database from  The default  database mirror is database clamav net but multiple directives are allowed  In or   der to download the database from the closest mirror you should configure   reshclam  to use db xx clamav net where xx represents your country code  For example  if  your server is in  Ascension Island  you should have the following lines included in  freshclam conf     DNSDatabaseInfo current cvd clamav net  DatabaseMirror db ac clamav net  DatabaseMirror database clamav net       The second entry acts as a fallback in case the connection to the first mirror fails for  some reason  The full list of two letters country codes is available at http   www   iana org cctld cctld whois htm       4 5 ClamAV Active Malware Re
34. port    The ClamAV Active Malware Report that was introduced in ClamAV 0 94 1 uses fresh   clam 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 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     5 Usage   15      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     5 Usage    5 1 Clam daemon    clamd is a multi threaded daemon that uses libclamav to scan files for viruses  It may  work in one or both modes listening on     e Unix  local  socket  e TCP socket    The daemon is fully configurable via the clamd conf file    cla
35. soptimizations  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     The following packages are optional but highly recommended   e bzip2 and bzip2 devel library  e check unit testing framework     The following packages are optional  but required for bytecode JIT support       e 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             Installation from a port is recommended    3For Windows instructions please see win32 README in the main source code directory    4See section 3 6 on how to run the unit tests   Sif not available ClamAV will fall back to an interpreter   Note that several versions of GCC have bugs when compiling LLVM  see http    11vm org docs   GettingStarted html brokengcc for a full list     3 Installation EJ    e A supported CPU for the JIT  either of  X86  X86 64  PowerPC  PowerPC64  The following packages are optional  but needed for the JIT unit tests   e GNU Make  version 3 79  recommended 3 81     e Python  version 2 5 4 or newer   for running the JIT unit tests    3 2 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  home gary you should  build it as follows         configure   prefix  home gary clamav   disable clam
36. t        e Mark Pizzolato  lt clamav devel subscriptions pizzolato net gt        e Dean Plant  lt dean plant roke co uk gt    e Alex Pleiner  lt pleiner zeitform de gt    e Ant La Porte  lt ant dvere net gt    e Jef Poskanzer    jef acme com     e Christophe Poujol  lt Christophe Poujol atosorigin com gt   e Sergei Pronin  lt sp finndesign fi gt    e Thomas Quinot  lt thomas cuivre fr eu org gt    e Ed Ravin  lt eravin panix com gt    e Robert Rebbun   robert desertsurf com     e Brian A  Reiter  lt breiter wolfereiter com gt     e Didi Rieder  lt adrieder sbox tugraz at gt     LibClamAV    e Pavel V  Rochnyack  lt rpv fsf tsu ru gt    e Rupert Roesler Schmidt  lt r roesler schmidt uplink at gt   e David Sanchez  lt dsanchez veloxia com gt    e David Santinoli  lt david santinoli com gt    e Vijay Sarvepalli  lt vssarvep office uncg edu gt    e Martin Schitter   e Theo Schlossnagle  lt jesus omniti com gt    e Enrico Scholz  lt enrico scholz informatik tu chemnitz de gt   e Karina Schwarz  lt k schwarz uplink at gt    e Scsi  lt scsi softland ru gt    e Dr Matthew J Seaman  lt m seaman infracaninophile co uk gt   e Hector M  Rulot Segovia  lt Hector Rulot uv es gt    e Omer Faruk Sen  lt ofsen enderunix org gt    e Sergey  lt a_s_y sama ru gt    e Tuomas Silen   tuomas silen nodeta fi     e David F  Skoll  lt dfs roaringpenguin com gt    e Al Smith  lt ajs clamav aeschi ch eu org gt    e Sergey Smitienko  lt hunter comsys com ua gt    e Solar Designer   solar openwall com    
37. ted by other processes of the daemon  This  procedure is not required for multi threaded daemons     6 3 11 clamav config    Use clamav config to check compilation information for libclamav     6 LibClamAV EJ    zolw localhost    clamav config   libs   L usr local lib  lz  1bz2  lgmp  lpthread  zolw localhost    clamav config   cflags   I usr local include  g  02                                              6 3 12 Example    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        gcc  Wall exl c  o exl  lclamav    6 4 CVD format    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     ClamAV VDB build time version number of signatures functionality  level required MD5 checksum digital signature builder name build time  sec                    sigtool   info displays detailed information on CVD files   zolw localhost  usr local share clamav  sigtool  i daily cvd  File  daily cvd             Build time  10 Mar 2008 10 45  0000   Version  6191   Signatures  59084   Functionality level  26   Builder  ccordes   MD5  6e6e29dae36b4b7315932c921e568330   Digital signature  zz9irc9irupR3zT7yX6J4O0R6XdFPUat4HIM9ERn3kACOWpcMFxq  Fs4toG5WJsHda0Jj921UusZ 7wAgY jpailNr  jFfXHsJxvOdBkS5 XWMnt 30T1ctNgqmiF   RLU6VOVeT140ej3Aya0cVpd9KA4XXevEO2eTTvzWNCAq0ZzWNdjc   Verifica
38. tion OK                 6 5 Contributors    The following people contributed to our project in some way  providing patches  bug  reports  technical support  documentation  good ideas         LibClamAV    e Ian Abbott  lt abbotti mev co uk gt    e Clint Adams  lt schizo debian org gt    e Sergey Y  Afonin  lt asy kraft s ru gt    e Robert Allerstorfer  lt roal anet  at gt    e Claudio Alonso  lt cfalonso yahoo com gt    e Kevin Amorin  lt kamorin ccs neu edu gt    e Kamil Andrusz  lt wizz mniam net gt    e Tayfun Asker  lt tasker metu edu tr gt    e Jean Edouard Babin  lt Jeb  jeb com  fr gt    e Marc Baudoin  lt babafou babafou eu org gt     e Scott Beck  lt sbeck gossamer threads com gt        e Rolf Eike Beer  lt eike mail math uni mannheim  de gt    e Rene Bellora  lt rbellora tecnoaccion com ar gt    e Carlo Marcelo Arenas Belon  lt carenas sajinet com pe gt   e Joseph Benden  lt joe thrallingpenguin com gt    e Hilko Bengen  lt bengen vdst ka inka de gt    e Hank Beatty  lt hbeatty starband net gt    e Alexandre Biancalana  lt ale seudns net gt    e Patrick Bihan Faou  lt patrick mindstep com gt    e Martin Blapp  lt mb imp ch gt    e Dale Blount  lt dale velocity net gt     e Serge van den Boom   svdb stack nl         e Oliver Brandmueller  lt ob e Gitt  NET gt   e Boguslaw Brandys   brandys o2 pl      e Igor Brezac  lt igor ipass net gt     LibClamAV    e Mike Brudenell  lt pmb1 york ac uk gt    e Brian Bruns  lt bruns 2mbit com gt    e Len Budney   1budney pobox com  
39. work cor   rectly on your platform    The first step is to use your OS s package manager to install the check package  If  your OS doesn t have that package  you can download it from http     check sourceforge   net    build it and install it    To help clamav s configure script locate check  it is recommended that you install  pkg config  preferably using your OS s package manager  or from 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        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     3 Installation   10          configure   enable check    make    make check    When make check is finished  you should get a message similar to this           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        1 of 8 tests failed  Please report to http   bugs clamav net        If unit tests are disabled  and you didn t use    enable check   you will get this mes   sage         Unit tests disabled in this build      Use   configure nable 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           Running  
40. ystems  At the  moment Dazuko is avaliable for Linux and FreeBSD  but the following information  only covers Linux     4 Configuration   12        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    Depending on your Linux distribution you may need to add a  dazuko  entry to  etc modules  or run the module during system   s startup by adding     sbin modprobe dazuko    to some startup file  You must also create a new device       cat  proc devices   grep dazuko  254 dazuko    su  c  mknod  m 600  dev dazuko c 254 0        Now configure Clamuko in clamd conf and read the 5 3 section     4 2 clamav milter    ClamAV  gt  0 95 includes a new  redesigned clamav milter  The most notable difference  1s 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 config   uration and log files  To compile ClamAV with the clamav milter just run    configure   enable milter and make as usual  Please consult your MTA   s manual on how to  connect it with the milter        4 3 Testing    Try to scan recursively the source directory       clamscan  r  1 scan txt clamav x yz    4 Configuration   13      It should find some test files in the clamav x yz test directory  The scan result will be  saved in the scan txt log file 8 To test clama  start it
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
LED STRIP COLOR DIMMER  Samsung CE2913 User Manual  Sylvania 6615LF4 Flat Panel Television User Manual  Samsung DCB-P850R User Manual  Samsung HL-R5066W User's Manual    SMT IPMI  Manual de Usuario TELDE    Copyright © All rights reserved. 
   Failed to retrieve file