Henri Salo | 5 Jun 2010 10:20
Picon
Gravatar

Sharing samples

Is there an email-address where I can send my samples automatically to
ClamAV? I am collecting malware with automated scripts and checking
those with several AV-engines. I could share everything, which isn't
detected by the newest ClamAV-databases.

Best regards,
Henri Salo
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Török Edwin | 5 Jun 2010 10:33
Favicon

Re: Sharing samples

On 06/05/2010 11:20 AM, Henri Salo wrote:
> Is there an email-address where I can send my samples automatically to
> ClamAV? I am collecting malware with automated scripts and checking
> those with several AV-engines. I could share everything, which isn't
> detected by the newest ClamAV-databases.

Yes. Please contact Luca Gibelli, after June 15th.

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Mohammed Al-Saleh | 6 Jun 2010 10:00
Picon

Sigs Order

Hi,

Are new viruses always added to the end of the database files (in both
main.* and daily.*)?
From few samples, I see that new viruses are appended to the DB files, but I
need to get confirmed that this always (or not necessarily) happens.

Thanks,

~Moe
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Török Edwin | 6 Jun 2010 12:46
Favicon

Re: Sigs Order

On 06/06/2010 11:00 AM, Mohammed Al-Saleh wrote:
> Hi,
> 
> Are new viruses always added to the end of the database files (in both
> main.* and daily.*)?
> From few samples, I see that new viruses are appended to the DB files, but I
> need to get confirmed that this always (or not necessarily) happens.

For daily.cvd most of the time yes, since this way the .cdiff updates
are smaller.
However if a signature is removed and a new one is added, then the new
signature will replace the old one (i.e. it will be at the same line as
the old one was, not at the end).

So there is not guarantee where new signatures will end up, but the
order of signatures doesn't matter anyway.

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Mohammed Al-Saleh | 6 Jun 2010 14:19
Picon

Re: Sigs Order

Hi Edwin,

Thanks for your kind replies.
I think the order of viruses matters when you add them to the BM linked
lists (in cli_bm_addpatt function).
The code tries to avoid hash collision in the first phase. So, one signature
could cause another to have a different place in the linked lists.

~Moe

2010/6/6 Török Edwin <edwin <at> clamav.net>

> On 06/06/2010 11:00 AM, Mohammed Al-Saleh wrote:
> > Hi,
> >
> > Are new viruses always added to the end of the database files (in both
> > main.* and daily.*)?
> > From few samples, I see that new viruses are appended to the DB files,
> but I
> > need to get confirmed that this always (or not necessarily) happens.
>
> For daily.cvd most of the time yes, since this way the .cdiff updates
> are smaller.
> However if a signature is removed and a new one is added, then the new
> signature will replace the old one (i.e. it will be at the same line as
> the old one was, not at the end).
>
> So there is not guarantee where new signatures will end up, but the
> order of signatures doesn't matter anyway.
>
(Continue reading)

唐杰 | 25 Jun 2010 05:56
Picon

what does the filter do?

Hi all~

I am a freshman of clamav and is reading the code of clamscan recently. I
don't know why we need a filter? Does it filter some files which can be
confirmed not a virus?

Regards
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Török Edwin | 26 Jun 2010 08:47
Picon

Re: what does the filter do?

On Fri, 25 Jun 2010 11:56:48 +0800
唐杰 <outstandingcandy <at> gmail.com> wrote:

> Hi all~
> 
> I am a freshman of clamav and is reading the code of clamscan
> recently. I don't know why we need a filter? Does it filter some
> files which can be confirmed not a virus?

Do you mean the --exclude command-line parameter?
That is there for directories you'd never wish to scan like /sys, /dev
and so on.

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
唐杰 | 27 Jun 2010 02:57
Picon

Re: clamav-devel Digest, Vol 69, Issue 5

Sorry, I may not express clearly. I want to know the what the functions in
filter.c file do. I think it build a filter before scaning and get a
position in the scaned file. What is the purpose to do this?
Best Regards.
2010/6/26 <clamav-devel-request <at> lists.clamav.net>

> Send clamav-devel mailing list submissions to
>        clamav-devel <at> lists.clamav.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel
> or, via email, send a message with subject or body 'help' to
>        clamav-devel-request <at> lists.clamav.net
>
> You can reach the person managing the list at
>        clamav-devel-owner <at> lists.clamav.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of clamav-devel digest..."
>
>
> Today's Topics:
>
>   1. Re: what does the filter do? (T?r?k Edwin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 26 Jun 2010 09:47:36 +0300
(Continue reading)

唐杰 | 27 Jun 2010 03:00
Picon

Re: what does the filter do?

Sorry, I may not express clearly. I want to know the what the functions in
filter.c file do. I think it build a filter before scaning and get a
position in the scaned file. What is the purpose to do this?
Best Regards.

2010/6/26 <clamav-devel-request <at> lists.clamav.net>

> Send clamav-devel mailing list submissions to
>        clamav-devel <at> lists.clamav.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel
> or, via email, send a message with subject or body 'help' to
>        clamav-devel-request <at> lists.clamav.net
>
> You can reach the person managing the list at
>        clamav-devel-owner <at> lists.clamav.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of clamav-devel digest..."
>
>
> Today's Topics:
>
>   1. Re: what does the filter do? (T?r?k Edwin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
(Continue reading)

Török Edwin | 27 Jun 2010 09:36
Picon

Re: clamav-devel Digest, Vol 69, Issue 5

On Sun, 27 Jun 2010 08:57:28 +0800
唐杰 <outstandingcandy <at> gmail.com> wrote:

> Sorry, I may not express clearly. I want to know the what the
> functions in filter.c file do. I think it build a filter before
> scaning and get a position in the scaned file. What is the purpose to
> do this? 

The filter runs faster than the AC or BM matcher, it is used to
eliminate parts of the buffer that certainly won't contain a match.
However the filter is only approximate, so it has false positives (but
no false negatives). Thats why AC/BM matcher needs to be run too.

For example: if the trie contains: abc|ade the filter will accept
a[bd][ce]. So it does accept anything the original trie would accept,
but it also accepts some that it wouldn't ('abe' for example).
If the original buffer contains 'aee' though then the filter doesn't
match (and neither would the original trie), so it can skip this match.

Best regards,
--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Gmane