Hi again!

A whole weekend without a single virus detected, not likely... or?

Next up will be to uninstall the UBUNTU clam packages and compile newest.
I'll be back.

/Pontus

-----Original Message-----
From: Pontus Hellgren [mailto:[email protected]] 
Sent: den 6 december 2013 11:52
To: 'ASSP development mailing list'
Subject: Re: [Assp-test] Problems with clamav and filescanner.

Ok, I'm gonna let the logs be verbose over the weekend and check if there
are anything blocked.

Be back on Monday ;-)

/Pontus

-----Original Message-----
From: aquilinux [mailto:[email protected]]
Sent: den 6 december 2013 11:40
To: [email protected]; ASSP development mailing list
Subject: Re: [Assp-test] Problems with clamav and filescanner.

i had same problems with EICAR test.
i don't know why but it was not detected when coming through assp.
i tried with a real virus and assp+clamav detected it.
here is my post on the forum: http://goo.gl/De93iQ

cheers.


On Fri, Dec 6, 2013 at 11:29 AM, Pontus Hellgren <
[email protected]> wrote:

> Hi Again!
>
> Well as you can read from the script(avg.sh below), I get output in a 
> log file while running avg or clamd in filescanner mode.
> And they tell me that all files they scan are [OK] no matter if the 
> file contains a virus or not...
> So, when I send a mail with any form of eicar to ASSP the scanner 
> scans the file but say its [OK]. (which is wrong...) Running the 
> filescanner script(avg.sh below) from commandline gives output [VIRUS] 
> for any eicar tested, so then it works!
>
> I would love to know if there was a way to log all scans with 
> File::Scan::ClamAV in a special logfile or get debug info in the 
> normal logfiles to be able to track down where/why it goes wrong.
> Ideeas how to, anyone?
>
> Regards,
> Pontus
>
> -----Original Message-----
> From: Colin Waring [mailto:[email protected]]
> Sent: den 5 december 2013 15:42
> To: 'ASSP development mailing list'
> Subject: Re: [Assp-test] Problems with clamav and filescanner.
>
> Have you any logs that show ASSP calling the virus scanner and what it 
> returns?
>
> Have you got AVG or clamscan configured to log what they do when they 
> are called?
>
> Those kind of logs will probably tell you what is going on and if 
> there are any obvious issues.
>
> -----Original Message-----
> From: Pontus Hellgren [mailto:[email protected]]
> Sent: 05 December 2013 13:29
> To: 'ASSP development mailing list'
> Subject: Re: [Assp-test] Problems with clamav and filescanner.
>
> Hi again!
>
> As stated in the mail, filescan mode was only used to verify that/or 
> not clamscan or any other commandline scanner had the same failing 
> result. (as was the case) I am using File::Scan::ClamAV but since it 
> does not report any viruses anymore I had to test different ways to 
> establish if/or not clamAV was a problem. (seems not to be)
>
> I will compare your install below to mine and see if there is anything 
> that differs(at a glance, not much!) Thanks for fast reply.
> I'll be back!
>
> Regards,
> Pontus
>
> -----Original Message-----
> From: Colin Waring [mailto:[email protected]]
> Sent: den 5 december 2013 13:55
> To: 'ASSP development mailing list'
> Subject: Re: [Assp-test] Problems with clamav and filescanner.
>
> Any reason you're using filescan for clam?
>
> This is an extract from my server build document for Ubuntu 12.04 LTS
> - note that a couple of Perl modules fail to build when using the ASSP 
> mod_inst.pl so you have to get them installed manually. Below assumes 
> you are starting with a completely fresh perl install so does some 
> config you may not need.
> Also verify with the clamav-unofficial-sigs project that 3.7.2 has not 
> been replaced by a newer version and remember to check for updates
occasionally.
>
> apt-get install rsync clamav clamd clamav-daemon #For some reason I 
> have clamd and -daemon, I think one is deprecated but you would need 
> to check that perl -MCPAN -e shell install Bundle::LWP install YAML o 
> conf init connect_to_internet_ok urllist o conf init urllist o conf 
> urllist push http://mirror.bytemark.co.uk/CPAN/
> o conf urllist push http://mirror.ox.ac.uk/sites/www.cpan.org/
> o conf commit
> install CPAN
> reload cpan
> install File::Scan::ClamAV
> cd /root
> wget
>
> http://downloads.sourceforge.net/project/unofficial-sigs/clamav-unoffi
> cial-s
>
> igs-3.7.2.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Funofficia
> l-sigs
> %2F&ts=1382875090&use_mirror=heanet
> tar -xzvf clamav-unofficial-sigs-3.7.2.tar.gz
> cd clamav-unofficial-sigs-3.7.2
>
> You'll then need to put the script in a permenant location, set up the 
> conf, logrotate and cron files where they should be and you'll get a 
> lot of handy extra definitions
>
> Back in ASSP, simply check UseAvClamd. Make sure the other clam 
> settings are ok and consider using the ASSP_AFC plugin.
>
> I've never touched filescan settings and the stats report plenty of 
> viruses detected.
>
> All the best,
> Colin Waring.
>
> -----Original Message-----
> From: Pontus Hellgren [mailto:[email protected]]
> Sent: 05 December 2013 11:14
> To: 'ASSP development mailing list'
> Subject: [Assp-test] Problems with clamav and filescanner.
>
> Hi There!
>
> I run ASSP version 2.3.4(13335) on Ubuntu 12,4 LTS and have installed 
> clamd for antivirus scanning.
> For some reason it does not catch anything running it with ASSP.
> If I run tests with eicar.com (txt, zip, 2xzip) files via commadline
> (clamscan) picks it out, but if I mail them by ASSP there is no catch.
> So, I installed AVG commandline scanner and made a script to use it as 
> a filescanner and ran some testruns, no catch via filescan in ASSP.
> (logs say files where OK but they should not have been) Running the 
> AVG commadline scanner by hand worked every time, but not in ASSP.
> So, I rewrote the script to use clamscan as a filescanner, made same 
> tests, still no catch.
>
> Somehow, I belive, ASSP write the .eml files, in the  virusscan 
> directory, in a fashion(I don't kon how), so it makes clamd, 
> clamscan/filescanners unable to catch the eicar.com(txt, zip, 2xzip) 
> and then probably all other viruses.
>
> Here is the script I used for filescanning in ASSP:
> #!/bin/bash
> # Filename: avg.sh
> # Createor: Pontus Hellgren 20131201
> # Use: Script using avgscan for filescanning in ASSP
>
> logfile=/var/log/assp-avg.log # Set a logfile
>
> if [ -z "$1" ] # Check for input filename then echo "OK" # NO filename 
> input, no need to confuse ASSP echo "No file to scan, sending [OK]" >> 
> $logfile # Log it to logfile exit # No need to continue fi
>
> scanfilename=$1 # Set filename to scan
>
> if [ -f "$scanfilename" ] # If file exist do scan then result=`avgscan 
> -a $scanfilename >/dev/null 2>&1; echo $?` # Scan with AVG and save 
> result, discard other output if [ $result -eq 0  ] # If 0 then no 
> virus found, reply OK else reply VIRUS then echo "OK"
> echo "$scanfilename [OK]" >> $logfile # Log ok to logfile echo >> 
> $logfile elif [[ $result -eq 4 || $result -eq 5 ]] # If 4 or 5, Virus 
> or potentially unwanted program detected then echo "VIRUS"
> echo "$scanfilename [VIRUS]" >> $logfile # Log virus to logfile echo
> >> $logfile else echo "OK" # Return of any other number equals to us
> an error, don't confuse ASSP echo "$scanfilename [ERROR]" >> $logfile 
> # Log error to logfile echo >> $logfile fi fi
>
> In ASSP I set the following:
> FileScanDir: /usr/share/assp/virusscan/
> FileScanCMD: /usr/share/assp/virusscan/avg.sh FILENAME 
> FileScanBad:VIRUS FileScanGood:OK
> FileScanRespRe:
>
> Any ideeas to what goes wrong?
>
> To use script for clamscan, change "avgscan -a" to "clamscan", change 
> the ELIF to only 1 for VIRUS.
> Clamscan only reports 2 for any error else but OK or VIRUS.
>
> Regards,
> Pontus
>
>
>
>
>
>
> ----------------------------------------------------------------------
> ------
> --
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.
> clktrk _______________________________________________
> Assp-test mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/assp-test
>
>
>
> ----------------------------------------------------------------------
> ------
> --
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.
> clktrk _______________________________________________
> Assp-test mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/assp-test
>
>
>
>
> ----------------------------------------------------------------------
> ------
> --
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.
> clktrk _______________________________________________
> Assp-test mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/assp-test
>
>
>
> ----------------------------------------------------------------------
> ------
> --
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.
> clktrk _______________________________________________
> Assp-test mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/assp-test
>
>
>
>
> ----------------------------------------------------------------------
> --------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.
> clktrk _______________________________________________
> Assp-test mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/assp-test
>



--
"Madness, like small fish, runs in hosts, in vast numbers of instances."

Nessuno mi pettina bene come il vento.
----------------------------------------------------------------------------
--
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test



----------------------------------------------------------------------------
--
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test



------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to