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

Mailing List Archive: ClamAV: users

Re: viruses in comments in scripts not detected by 0.93

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


steveb_clamav at sanesecurity

May 2, 2008, 12:39 AM

Post #1 of 5 (57 views)
Permalink
Re: viruses in comments in scripts not detected by 0.93

> The implication of the above is that clamav 0.93 would now
> no longer detect many once prevalent viruses for which it
> only has hexdump signatures.

The whitespace change will cause slightly lower detection rates on some
Third Party sigs too (depending on the sig type)... unless the old sigs
are re-written :(

Take a peek here...

https://wwws.clamav.net/bugzilla/show_bug.cgi?id=780

There's been a large number of changes to the normalisation code, so might
be worth taking a peek at the change log.

Cheers,

Steve

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


d.shrimpton at its

May 2, 2008, 1:42 AM

Post #2 of 5 (55 views)
Permalink
Re: viruses in comments in scripts not detected by 0.93 [In reply to]

Thanks,

This quote from the bugzilla posts is quite amusing:

"As for the official clamav signatures, please stand assured that when the new
code will be in the stable release, all the broken signatures will be properly
fixed."

--
David Shrimpton



On Fri, 2 May 2008, Steve Basford wrote:

>
> Take a peek here...
>
> https://wwws.clamav.net/bugzilla/show_bug.cgi?id=780
>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


d.shrimpton at its

May 2, 2008, 4:12 AM

Post #3 of 5 (53 views)
Permalink
Re: viruses in comments in scripts not detected by 0.93 [In reply to]

A signature that detects WScr.Unsafe.D under 0.93 is below


HTML.WScr.Unsafe.D:3:*:22293b7362663d666c2e737562666f6c646572733b666f72287661726d79653d6e6577656e756d657261746f7228736266293b216d79652e6174656e6428293b6d79652e6d6f76656e6578742829296964643d6d79652e6974656d28293b6964733d6e65

create by:

0. Get main.db from main.cvd with sigtool --unpack
grep WScr.Unsafe.D in main.db
remove the label leaving only the hex
1. reverse the hex to get the partial script text eg
cat the hex | perl -ne 'chomp;print pack("H*",$_)'
2. wrap the script text with <HTML><SCRIPT><!-- --></SCRIPT></HTML>
to convince sigtool it is html
(should also work without the SCRIPT or comment)
3. normalize the html with
sigtool --html-normalise
4. remove tags (ie <html><script><!-- --></script></html>
from nocomment.html
5. create a hex signature from the result
eg sigtool --hex-dump
6. create a .ndb database file by adding a name, type and offset
(use sigtool --list to make sure the name you choose doesn't clash
with an existing one. Also choose a name you think won't clash with
a future clamav signature name )


On Fri, 2 May 2008, David Shrimpton wrote:

> Thanks,
>
> This quote from the bugzilla posts is quite amusing:
>
> "As for the official clamav signatures, please stand assured that when the new
> code will be in the stable release, all the broken signatures will be properly
> fixed."
>
>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


edwintorok at gmail

May 2, 2008, 9:13 AM

Post #4 of 5 (51 views)
Permalink
Re: viruses in comments in scripts not detected by 0.93 [In reply to]

David Shrimpton wrote:
> Hi,
>
> Some viruses eg WScr.Unsafe.D for which a hexdump signature exists and
> which used to be detected by 0.91.2 are no
> longer detected by 0.93 .

Hi,

Please submit a sample at http://www.clamav.org/sendvirus/

> Thanks,
>
> This quote from the bugzilla posts is quite amusing:
>
> "As for the official clamav signatures, please stand assured that when the new
> code will be in the stable release, all the broken signatures will be properly
> fixed."

The signatures for which we have samples *did* get updated.
It is true that some samples no longer match (that we don't have), but also
there are other samples that are now detected, and were previously
undetected.

Best regards,
--Edwin

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


d.shrimpton at its

May 2, 2008, 10:06 PM

Post #5 of 5 (48 views)
Permalink
Re: viruses in comments in scripts not detected by 0.93 [In reply to]

Sample Submitted.

thanks

David

>
> Please submit a sample at http://www.clamav.org/sendvirus/
>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.