Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

Some Virus not detected by Clamav

 

 

First page Previous page 1 2 Next page Last page  View All ClamAV users RSS feed   Index | Next | Previous | View Threaded


Jose-Marcio.Martins at ensmp

Oct 13, 2009, 1:28 AM

Post #1 of 36 (2868 views)
Permalink
Some Virus not detected by Clamav

Hello,

I have 49 virus (2 kinds only) received at our mailserver last night
which weren't detected by ClamAV, but are detected by most other
antivirus available at www.virustotal.com

The name of the virus, as detected by Sophos are SophoMal/Bredo-A
(detected by 16/41) and Troj/Agent-LKL (detected by 24/41).

These are surely variants of virus already detected by Clamav.

I've just submitted one sample of each at Clamav submission interface.
Shall I submit all others ?

As long as this happens near every day since a week ago, it's becoming
annoying.

Thanks,

José-Marcio
--

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


ged at jubileegroup

Oct 13, 2009, 4:57 AM

Post #2 of 36 (2793 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

Hi there,

On Tue, 13 Oct 2009 Jose-Marcio Martins da Cruz wrote:

> I have 49 virus (2 kinds only) ... weren't detected by ClamAV
> ... surely variants of virus already detected by Clamav. ...
> As long as this happens near every day since a week ago, it's
> becoming annoying.

Check the documentation on how to add your own signatures.

That way, it won't annoy you so much when you have to wait for people,
who already have too much work to do, to do some work for you. :)

--

73,
Ged.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Jose-Marcio.Martins at ensmp

Oct 13, 2009, 5:30 AM

Post #3 of 36 (2794 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

G.W. Haywood wrote:
> Hi there,

>
> Check the documentation on how to add your own signatures.
>
> That way, it won't annoy you so much when you have to wait for people,
> who already have too much work to do, to do some work for you. :)

Are you talking by yourself or on behalf of Clamav team ?

There are many ways to do some work, for free, for other people...
Inform yourself... ;-)

Thanks,

--
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


tshaw at oitc

Oct 13, 2009, 4:34 PM

Post #4 of 36 (2789 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

At 10:28 AM +0200 10/13/09, Jose-Marcio Martins da Cruz wrote:
>Hello,
>
>I have 49 virus (2 kinds only) received at our mailserver last night
>which weren't detected by ClamAV, but are detected by most other
>antivirus available at www.virustotal.com
>
>The name of the virus, as detected by Sophos are SophoMal/Bredo-A
>(detected by 16/41) and Troj/Agent-LKL (detected by 24/41).
>
>These are surely variants of virus already detected by Clamav.
>
>I've just submitted one sample of each at Clamav submission interface.
>Shall I submit all others ?
>
>As long as this happens near every day since a week ago, it's
>becoming annoying.

Jose,

If you use the unofficial signatures it might help you. See
http://www.sanesecurity.co.uk/databases.htm

One of my signatures, winnow_malware.hdb, detect numerous (over 3000
at present) malware that are not yet detected in stock ClamAV sigs.
The current list is documented at
http://www.oitc.com/winnow/clamsigs/MalwareSignatures.html

Undetected virus samples or urls to the virus paylaod can be sent to
virus_samples at oitc.com. They will be processed and added if
necessary to winnow_malware.hdb and will be forwarded to the official
ClamAV signature team.

Tom
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Jose-Marcio.Martins at mines-paristech

Oct 14, 2009, 12:49 AM

Post #5 of 36 (2783 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

Hello Tom,

Tom Shaw wrote:

> Jose,
>
> If you use the unofficial signatures it might help you. See
> http://www.sanesecurity.co.uk/databases.htm
>
> One of my signatures, winnow_malware.hdb, detect numerous (over 3000 at
> present) malware that are not yet detected in stock ClamAV sigs. The
> current list is documented at
> http://www.oitc.com/winnow/clamsigs/MalwareSignatures.html
>
> Undetected virus samples or urls to the virus paylaod can be sent to
> virus_samples at oitc.com. They will be processed and added if necessary
> to winnow_malware.hdb and will be forwarded to the official ClamAV
> signature team.

Thanks for the suggestion. I'll give a try and even submit samples.

What I do here is to quarantine all messages with small zips. Virus
scanning is done offline. After some hours, if the message is clean,
it's freed, if not, it's definitively deleted. In the last days, very
most quarantined messages were infected but not detected by Clamav.

I'll integrate winnow_malware.hdb.

Thanks for the suggestion.


--
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


upscope at nwi

Oct 14, 2009, 8:51 AM

Post #6 of 36 (2773 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

On Wednesday 14 October 2009 12:49:47 am Jose-Marcio Martins da Cruz wrote:
> Hello Tom,
>
> Tom Shaw wrote:
> > Jose,
> >
> > If you use the unofficial signatures it might help you. See
> > http://www.sanesecurity.co.uk/databases.htm
> I'll integrate winnow_malware.hdb.
Is there a good tutorial somewhere on how to do this?

Thanks
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Bowie_Bailey at BUC

Oct 14, 2009, 9:23 AM

Post #7 of 36 (2772 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

upscope wrote:
> On Wednesday 14 October 2009 12:49:47 am Jose-Marcio Martins da Cruz wrote:
>
>> Hello Tom,
>>
>> Tom Shaw wrote:
>>
>>> Jose,
>>>
>>> If you use the unofficial signatures it might help you. See
>>> http://www.sanesecurity.co.uk/databases.htm
>>>
>> I'll integrate winnow_malware.hdb.
>>
> Is there a good tutorial somewhere on how to do this?
>

The simplest way is to use the provided download scripts. Go to the
website linked above and then go to the "Usage" menu and select either
"Download Scripts: Linux" or "Download Scripts: Windows", whichever is
appropriate.

I'm using the one linked as "download script 1" for Linux
(http://www.inetmsg.com/pub/clamav-unofficial-sigs.tar.gz). The INSTALL
and config files are very easy to use.

--
Bowie
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


rchapman at aardvark

Oct 15, 2009, 12:54 AM

Post #8 of 36 (2758 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

I am interested in Tom's list of unofficial signatures - but haven't
found the recommended way to use the signatures. Do I need to download
them periodically - or do I just add an additional freshclam
DataBaseMirror directive. In either case - exactly what is the url to
download from - or to add to the freshclam directive?

Thanks
Richard.


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


steveb_clamav at sanesecurity

Oct 15, 2009, 2:18 AM

Post #9 of 36 (2759 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

> I am interested in Tom's list of unofficial signatures - but haven't
> found the recommended way to use the signatures. Do I need to download
> them periodically - or do I just add an additional freshclam
> DataBaseMirror directive. In either case - exactly what is the url to
> download from - or to add to the freshclam directive?

Hi Richard,

Download one of the scripts here, ideally script 1 (Bill Landry):
http://sanesecurity.co.uk/download_scripts_linux.htm

Current databases are described here:

http://sanesecurity.co.uk/databases.htm

Note that rougue.hdb, phish.ndb and winnow_malware.hdb and
winnow_malware_links.ndb, all deal with malware.

Example stats:
http://www.oucs.ox.ac.uk/network/smtp/relay/stats/index.xml.ID=malware
(using phish.ndb, scam.ndb, junk.ndb)

BTW, current fake Microsoft Outlook Notification is currently being
blocked, as Sanesecurity.Malware.12699

Cheers,

Steve
Sanesecurity

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


tshaw at oitc

Oct 15, 2009, 4:55 AM

Post #10 of 36 (2758 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

At 10:18 AM +0100 10/15/09, Steve Basford wrote:
> > I am interested in Tom's list of unofficial signatures - but haven't
>> found the recommended way to use the signatures. Do I need to download
>> them periodically - or do I just add an additional freshclam
>> DataBaseMirror directive. In either case - exactly what is the url to
>> download from - or to add to the freshclam directive?
>
>Hi Richard,
>
>Download one of the scripts here, ideally script 1 (Bill Landry):
>http://sanesecurity.co.uk/download_scripts_linux.htm
>
>Current databases are described here:
>
>http://sanesecurity.co.uk/databases.htm
>
>Note that rougue.hdb, phish.ndb and winnow_malware.hdb and
>winnow_malware_links.ndb, all deal with malware.
>
>Example stats:
>http://www.oucs.ox.ac.uk/network/smtp/relay/stats/index.xml.ID=malware
>(using phish.ndb, scam.ndb, junk.ndb)
>
>BTW, current fake Microsoft Outlook Notification is currently being
>blocked, as Sanesecurity.Malware.12699

Steve,

The samples I have of that one are being detected by ClamAV standard
sigs as Trojan.Peed-477. Wonder why you and some others didn't detect
it with standard sigs? Could this be a problem? Do you have samples
that were undetectable?

Tom


--
Tom Shaw - Chief Engineer, OITC
<tshaw at oitc.com>, http://www.oitc.com/ local wx: http://www.oitc.com/weather
US Phone Numbers: 321-984-3714, 321-729-6258(fax), 321-258-2475
(cell/voice mail,pager) US skypeline: 321-622-9098
Text Paging: http://www.oitc.com/Pager/sendmessage.html
AIM/iChat: trshaw [at] mac
Skype: trshaw

Fish more and Live longer
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


jarif at iki

Oct 15, 2009, 5:14 AM

Post #11 of 36 (2757 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

15.10.2009 14:55, Tom Shaw kirjoitti:
>
> The samples I have of that one are being detected by ClamAV standard
> sigs as Trojan.Peed-477. Wonder why you and some others didn't detect it
> with standard sigs? Could this be a problem? Do you have samples that
> were undetectable?
>
> Tom
>
>

Undetected Outlook Express malware:
http://www.iki.fi/jarif/malware/install.zip


--
http://www.iki.fi/jarif/

I've touch'd the highest point of all my greatness;
And from that full meridian of my glory
I haste now to my setting. I shall fall,
Like a bright exhalation in the evening
And no man see me more.
-- Shakespeare


steveb_clamav at sanesecurity

Oct 15, 2009, 5:20 AM

Post #12 of 36 (2759 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

> Steve,
>
> The samples I have of that one are being detected by ClamAV standard
> sigs as Trojan.Peed-477. Wonder why you and some others didn't detect
> it with standard sigs? Could this be a problem? Do you have samples
> that were undetectable?

Not sure Tom... here's a quick test...

Official only (up-to-date):

Copy_7_of_install.zip: OK
Copy_8_of_DHL_Label_95957.zip: OK
Copy_8_of_install.zip: OK
Copy_9_of_DHL_Label_95957.zip: OK
Copy_9_of_install.zip: OK
DHL_Label_8fb71.zip: OK
\DHL_Label_95957.zip: OK
DHL_Label_c60bd.zip: OK
DHL_Label_d606e.zip: OK
DHL_Label_f48bf.zip: OK
install.zip: OK
Postcard.zip: Trojan.Buzus-5795 FOUND
Sent_10-14-09.zip: OK

----------- SCAN SUMMARY -----------
Known viruses: 667501
Engine version: 0.95.2
Scanned directories: 0
Scanned files: 99
Infected files: 1
Data scanned: 8.11 MB
Data read: 3.01 MB (ratio 2.69:1)
Time: 18.265 sec (0 m 18 s)


Sanesecurity sigs:

Copy_7_of_DHL_Label_95957.zip: Sanesecurity.Malware.12698.UNOFFICIAL FOUND
Copy_7_of_install.zip: Sanesecurity.Rogue.736.UNOFFICIAL FOUND
Copy_8_of_DHL_Label_95957.zip: Sanesecurity.Malware.12698.UNOFFICIAL FOUND
Copy_8_of_install.zip: Sanesecurity.Rogue.736.UNOFFICIAL FOUND
Copy_9_of_DHL_Label_95957.zip: Sanesecurity.Malware.12698.UNOFFICIAL FOUND
Copy_9_of_install.zip: Sanesecurity.Rogue.736.UNOFFICIAL FOUND
DHL_Label_8fb71.zip: Sanesecurity.Malware.12698.UNOFFICIAL FOUND
DHL_Label_95957.zip: Sanesecurity.Malware.12698.UNOFFICIAL FOUND
DHL_Label_c60bd.zip: Sanesecurity.Malware.12698.UNOFFICIAL FOUND
DHL_Label_d606e.zip: Sanesecurity.Malware.12698.UNOFFICIAL FOUND
DHL_Label_f48bf.zip: Sanesecurity.Malware.12698.UNOFFICIAL FOUND
install.zip: Sanesecurity.Rogue.736.UNOFFICIAL FOUND
Postcard.zip: Sanesecurity.Malware.11523.UNOFFICIAL FOUND
Sent_10-14-09.zip: OK

----------- SCAN SUMMARY -----------
Known viruses: 264975
Engine version: 0.95.2
Scanned directories: 0
Scanned files: 99
Infected files: 98
Data scanned: 2.76 MB
Data read: 3.01 MB (ratio 0.92:1)
Time: 17.282 sec (0 m 17 s)

A few common md5's:

1fb9d8caac345588129286cf03c2770b Copy_1_of_DHL_Label_f48bf.zip
7782e8231872ebba7817eb4a133f00d5 DHL_Label_c60bd.zip
80f416cefb580521df55c0fd934b25f3 Postcard.zip
94df42de96c74f15326e5e41dc47be09 DHL_Label_8fb71.zip
965cd03dd2886c57157d0f7d5b65bbfa DHL_Label_95957.zip
9cc44ce6bd99d42dd44cd4984edf0504 Copy_1_of_install.zip
e18bb718da88c82b58dfb52d40f6a65a DHL_Label_d606e.zip

If I get time later on I'll sort out some samples for you but snowed under
at the min..

Cheers,

Steve
Sanesecurity


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


steveb_clamav at sanesecurity

Oct 15, 2009, 5:23 AM

Post #13 of 36 (2761 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

> Undetected Outlook Express malware:
> h t t p :/ / www.iki.fi/jarif/malware/install.zip

That's one of 'em:

Sanesecurity.Rogue.736.UNOFFICIAL

Cheers,

Steve
Sanesecurity

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


jarif at iki

Oct 15, 2009, 6:30 AM

Post #14 of 36 (2757 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

Undetected IRS scam variant.

http://www.iki.fi/jarif/malware/tax-statement.exe

--
http://www.iki.fi/jarif/

A classic is something that everyone wants to have read
and nobody wants to read.
-- Mark Twain, "The Disappearance of Literature"


tshaw at oitc

Oct 15, 2009, 6:41 AM

Post #15 of 36 (2759 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

At 1:23 PM +0100 10/15/09, Steve Basford wrote:
> > Undetected Outlook Express malware:
>> h t t p :/ / www.iki.fi/jarif/malware/install.zip
>
>That's one of 'em:
>
>Sanesecurity.Rogue.736.UNOFFICIAL

Well that one didn't get detected by standard ClamAV. Must be running
multiple payloads

That one is also typed as winnow.malware.7515/6.UNOFFICIAL

Tom

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


tshaw at oitc

Oct 15, 2009, 6:41 AM

Post #16 of 36 (2758 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

At 3:14 PM +0300 10/15/09, Jari Fredriksson wrote:
>Content-Type: multipart/signed; micalg=pgp-sha1;
> protocol="application/pgp-signature";
>boundary="=_20nrA2UWvqBocwzbhDgZQrQ22plLxr"
>Content-Disposition: inline
>
>
>
>15.10.2009 14:55, Tom Shaw kirjoitti:
>>
>>The samples I have of that one are being detected by ClamAV standard
>>sigs as Trojan.Peed-477. Wonder why you and some others didn't detect it
>>with standard sigs? Could this be a problem? Do you have samples that
>>were undetectable?
>>
>>Tom
>>
>
>Undetected Outlook Express malware:
>http://www.iki.fi/jarif/malware/install.zip
>

Thanks. Detected as winnow.malware.7515/6.UNOFFICIAL

Tom
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


tshaw at oitc

Oct 15, 2009, 6:47 AM

Post #17 of 36 (2759 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

At 4:30 PM +0300 10/15/09, Jari Fredriksson wrote:
>Content-Type: multipart/signed; micalg=pgp-sha1;
> protocol="application/pgp-signature";
>boundary="=_6GorA2txt0CVliaTmJuBPNhCIqDzZA"
>Content-Disposition: inline
>
>
>Undetected IRS scam variant.
>
>http://www.iki.fi/jarif/malware/tax-statement.exe
>
>--
>http://www.iki.fi/jarif/
>

"You don't have permission to access /~jarif/ikipage/malware/tax-statement.exe
on this server." :-(

Also to you have link url to that samples as well. But that should
have been detected than winnow.malware.ts.irs.1.UNOFFICIAL unless
they changed their attack vector.

Tom

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


jarif at iki

Oct 15, 2009, 6:54 AM

Post #18 of 36 (2755 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

15.10.2009 16:47, Tom Shaw kirjoitti:
> At 4:30 PM +0300 10/15/09, Jari Fredriksson wrote:
>> Content-Type: multipart/signed; micalg=pgp-sha1;
>> protocol="application/pgp-signature";
>> boundary="=_6GorA2txt0CVliaTmJuBPNhCIqDzZA"
>> Content-Disposition: inline
>>
>>
>> Undetected IRS scam variant.
>>
>> http://www.iki.fi/jarif/malware/tax-statement.exe
>>
>> --
>> http://www.iki.fi/jarif/
>>
>
> "You don't have permission to access
> /~jarif/ikipage/malware/tax-statement.exe
> on this server." :-(

Oops, fixed.

>
> Also to you have link url to that samples as well.

Does not compute.

> But that should have
> been detected than winnow.malware.ts.irs.1.UNOFFICIAL unless they
> changed their attack vector.

Good.

I will post a question in near future about how to install and maintain
SaneSecurity for 'malware' and NOT 'spam'. But not yet. Probably the
solution will be script #1 with some help from forum about the correct
databases to load.

--
http://www.iki.fi/jarif/

A classic is something that everyone wants to have read
and nobody wants to read.
-- Mark Twain, "The Disappearance of Literature"


tshaw at oitc

Oct 15, 2009, 6:57 AM

Post #19 of 36 (2756 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

At 1:23 PM +0100 10/15/09, Steve Basford wrote:
> > Undetected Outlook Express malware:
>> h t t p :/ / www.iki.fi/jarif/malware/install.zip
>
>That's one of 'em:
>
>Sanesecurity.Rogue.736.UNOFFICIAL

FYI Official ClamAV sigs now detect as Trojan.Inject-2443 I just
noticed that my winnow.malware.7515.UNOFFICIAL was removed due to
detection on recent official sig updates.

Tom

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


jarif at iki

Oct 15, 2009, 7:24 AM

Post #20 of 36 (2755 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

Does ClamAV somehow dedicate to email format (base64) or how it is
possible that is does not recognise this

http://www.iki.fi/jarif/malware/FILE_UPS_c380a16.zip

That's an UPS fraud, W32/Bredolab.D.gen!Eldorado by F-Prot.


--
http://www.iki.fi/jarif/

An exotic journey in downtown Newark is in your future.


jarif at iki

Oct 15, 2009, 7:44 AM

Post #21 of 36 (2759 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

15.10.2009 17:24, Jari Fredriksson kirjoitti:
>
> Does ClamAV somehow dedicate to email format (base64) or how it is
> possible that is does not recognise this
>
> http://www.iki.fi/jarif/malware/FILE_UPS_c380a16.zip
>
> That's an UPS fraud, W32/Bredolab.D.gen!Eldorado by F-Prot.
>

Uh. The point was that the file is dated as 30-oct-2009, 15 days ago.

--
http://www.iki.fi/jarif/

An exotic journey in downtown Newark is in your future.


tshaw at oitc

Oct 15, 2009, 8:02 AM

Post #22 of 36 (2756 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

At 5:24 PM +0300 10/15/09, Jari Fredriksson wrote:
>Content-Type: multipart/signed; micalg=pgp-sha1;
> protocol="application/pgp-signature";
>boundary="=_T3prA2NkQhJdMqo4E_3U4WfuiiDVVM"
>Content-Disposition: inline
>
>
>Does ClamAV somehow dedicate to email format (base64) or how it is
>possible that is does not recognise this
>
>http://www.iki.fi/jarif/malware/FILE_UPS_c380a16.zip
>
>That's an UPS fraud, W32/Bredolab.D.gen!Eldorado by F-Prot.

winnow.malware.7520/1.UNOFFICIAL

Tom

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


dennispe at inetnw

Oct 15, 2009, 9:05 PM

Post #23 of 36 (2750 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

Richard Chapman wrote:
> I am interested in Tom's list of unofficial signatures - but haven't
> found the recommended way to use the signatures. Do I need to download
> them periodically - or do I just add an additional freshclam
> DataBaseMirror directive. In either case - exactly what is the url to
> download from - or to add to the freshclam directive?
>
> Thanks
> Richard.
>
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml

You can the the winnow series at Steve's server using rsync. I didn't care for
any of the canned scripts so wrote my own, but the process is pretty much the same.

Create a text file with a list of signature files you wish to copy from the
site, one line for each file.

Run rsync:

WorkingDirectory="/usr/local/share/clamav/tmp"
SaneServer="rsync://rsync.sanesecurity.net/sanesecurity/"
SaneList="/usr/local/share/clamav/tmp/sane.list"

rsync -a --quiet --files-from=${SaneList} $SaneServer $WorkingDirectory

chown clamav:clamav ${WorkingDirectory}/*

This will pull down a copy of all the signature files in your list and place
them in a working directory. Because of the way rsync runs, the next time you
run it it will bring down only the changed parts of any files that have been
modified since the last download. I also change ownership of the files to my
local clamav account (which is not clamav for security/privacy reasons).

This is done in a script, of course. That script then uses clamscan to test them
for corruption and then moves them into the clamav working dir:

cd $WorkingDirectory
clamscan --quiet -d winnow_phish_complete.ndb clam.txt && \
rsync -ogt winnow_phish_complete.ndb $clamavWorkingDir || \
echo "winnow_phish_complete.ndb is corrupt"

clam.txt is a simple text file that has no virus content. The purpose is to see
if clamscan can load and use the signature file being tested. If the test
succeeds rsync is used to do an atomic move of the sig file to the clamav
working directory otherwise an error message is printed. Ownership and
permissions are preserved when the move is done (-ogt).

I use a local Unix socket to communicate with clamd and a perl script is called
at this point telling clamd to reload the signatures. I think you can use kill
to signal clamd as well, but the perl script provides a bit more feedback. This
reload step is done only after all files in the sane.list are downloaded and
tested so that it runs just once.

The script I use has a bit more finesse than this simple overview. I use a
randomizer to prevent this process from running at the same minute past the hour
each time it's run. It runs at time + rand(30). This avoids to the degree
possible my process hitting Steve's server farm at the same moment many others
around the world hit it. Hopefully nobody sets such cron processes to cardinal
points on the clock dial:
00, 05, 10, 15... Very bad form :)

I also maintain a local copy of the downloaded files in sane.list so that rsync
has a local version to compare to - this prevents a download if the file on the
server has not changed since the previous run, and also limits the downloaded
part to those bits within the file that have changed since the previous
download. This saves bandwidth at the expense of cpu time, but my experience is
bandwidth costs more.

If Steve puts all is changes at the end of the file then this can be very
efficient. If changes are scattered around the files then not so much. When
files were compressed there was not much advantage regardless of where in the
file the changes are placed prior to compressing but that's no longer an issue.

I keep track of which files have changed so I don't have to use clamscan to test
files that have not changed, nor do I bother moving them and notifying clamd if
there are no changed files.

By virtue of the way cron works, if there is any corruption in any downloaded
file, which has not happened in a good long time, BTW, the error message that is
printed is sent to root as an email and I see it immediately.

These steps are repeated for the MSRBL files as well.

dp



_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


steveb_clamav at sanesecurity

Oct 16, 2009, 12:42 AM

Post #24 of 36 (2735 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

> The script I use has a bit more finesse than this simple overview. I use a
> randomizer to prevent this process from running at the same minute past
> the hour

Note there's a *tiny* chance if the script runs at 10.07 and then 11.03,
you'll get temp block for an hour from some of the mirrors, depending if
they have setup hourly "abuse" checks.
>

> If Steve puts all is changes at the end of the file then this can be very
> efficient. If changes are scattered around the files then not so much.

99% of the time they are are all added at the end of the file now, which
means it's much more efficient then it used to be.

As for the databases to use, well it's up to the end user but if I was
only interested in malware only...

I'd use:

phish.ndb
rougue.hdb
winnow_malware_links.ndb
winnow_malware.hdb

For example:

Some malware in my "to look at" folder this morning...

Sanesecurity only (phish.ndb/rougue.hdb)

Scanned files: 226
Infected files: 135

Official only:

Scanned files: 226
Infected files: 119

winnow malware didn't hit.

The phish.ndb inclusion may seem a little odd... but the following two sig
types can block the email(s) that:

a) contains the link(s) to malware or malware serving website
b) contain a malware attachment:

Sanesecurity.Malware
Sanesecurity.Phishing.Fake

But wwith any of the scripts, you can pick and choose what you want :)

Cheers,

Steve
Sanesecurity

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


tshaw at oitc

Oct 16, 2009, 6:18 AM

Post #25 of 36 (2739 views)
Permalink
Re: Some Virus not detected by Clamav [In reply to]

At 8:42 AM +0100 10/16/09, Steve Basford wrote:
> > The script I use has a bit more finesse than this simple overview. I use a
>> randomizer to prevent this process from running at the same minute past
>> the hour
>
>Note there's a *tiny* chance if the script runs at 10.07 and then 11.03,
>you'll get temp block for an hour from some of the mirrors, depending if
>they have setup hourly "abuse" checks.
>>
>
>> If Steve puts all is changes at the end of the file then this can be very
>> efficient. If changes are scattered around the files then not so much.
>
>99% of the time they are are all added at the end of the file now, which
>means it's much more efficient then it used to be.
>
>As for the databases to use, well it's up to the end user but if I was
>only interested in malware only...
>
>I'd use:
>
>phish.ndb
>rougue.hdb
>winnow_malware_links.ndb
>winnow_malware.hdb
>
>For example:
>
>Some malware in my "to look at" folder this morning...
>
>Sanesecurity only (phish.ndb/rougue.hdb)
>
>Scanned files: 226
>Infected files: 135
>
>Official only:
>
>Scanned files: 226
>Infected files: 119
>
>winnow malware didn't hit.
>

Just to clarify winnow_malware.hdb is designed to detect malware
payloads. Thus, it is effective in an email system only when the
payload is attached (such as a dropper, etc). It is also very
effective when used in file system/download checking scenarios.

winnow_malware_links.ndb is a collection of active urls and
zeus/botnet domains used to deliver malware payloads and invoke xsite
injections as well as hand crafted signatures to detect links to
malware. It also contains other signatures to augment
winnow_malware.hdb to detect malware loaded on your system.

Tom
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

First page Previous page 1 2 Next page Last page  View All ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.