Re: Is this how clamAV is intended to work?

Tyler Manson <[email protected]>
Newsgroups gmane.comp.security.virus.clamav.devel
Message-ID <[email protected]>
Hi,

Okay, that sounds like the right approach. I thought it surely was
something simple like that. I'm glad to hear that everything's ok :)


On 03/05/15, Andy Singer wrote:
> Hi,
> It depends on how the signature was written. In the case of eicar, it is
> Eicar-Test-Signature:0:0:58354f2150254041505b345c505a58353428505e2937434329377d2445494341522d5354414e444152442d414e544956495255532d544553542d46494c452124482b482a
> 
> so it will only be detected only if the eicar pattern is at position 0 of
> the file. If you change the signature to
> 
> Eicar-Test-Signature:0:*:58354f2150254041505b345c505a58353428505e2937434329377d2445494341522d5354414e444152442d414e544956495255532d544553542d46494c452124482b482a
> 
> the file will be detected regardless of where the pattern appears. In the
> case of WIN.Trojan.DarkKomet, the signature is,
> 
> WIN.Trojan.DarkKomet:1:*:657473746174202d61202d6e202d6f00000000ffffffff0d00000044444f5348545450464c4f4f44000000ffffffff0c00000044444f5353594e464c4f4f4400000000ffffffff0c00000044444f53554450464c4f4f4400000000ffffffff0a0000005b436861
> 
> This can be present anywhere in a file, but only if it's a PE file. If you
> prepend random data to the file, it will no longer have an MZ header, and
> ClamAV will not recognize it as a PE file, so the signature will be
> ignored. In the signature, change the target (1= PE) to (0= any) and you
> can prepend random data.
> 
> ClamAV was designed for scanning files, not shellcode. If a file doesn't
> have an MZ header, Windows won't execute it, so there's no need for ClamAV
> to continue checking for PE signatures.

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

http://www.clamav.net/contact.html#ml
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJU+KX1AAoJEKkTO0uieKF6XfMP/im6DdTLT/MSmkDrbHoPpvPG
P9t322aMrhYXchpAKu7Rc530fJ7LuZRvGVWjiVSsCVgR77HTopnhBk6fbJr4XJM6
whRvhfwuUeCdKUUQc/Tb5ROggPoSaOhpvvddBHCpd+houk+mxkznaWng7wJlhqU+
YdAEfat1X7kRUb2x30XJH8c/vX7YYy7gEB3mNXv4TmDZYTR0NovgjuaZHK4XTMsd
EnKIW5lbBWRhapk/4Q2GBsIj9EK1V3RtapCV+gyIH3N3xjWNAUkA/ViZv6eM1T+s
+0FnPieuDvv5GcgxZsU41OZiipNyYzPlx61PNqTdRpgWNnvtkZtXve8/GOfc1KVf
uCWly5OPBLIsHJyKoQniUhnoJCvNcLCh4BlU24nVh+9KhLloJWogq8XHguKePETe
RAOoi6ID9hLOH9LCyrc6K7b5tgQkM1yoARAxfHnzFSCmoJNcW1Fhetb2DTeYjHCF
DsI6WbidCEHIGHkiW3dtZBkk286sH+ENZmiDoCWw2fol0V4/w0SITlwbzTaaU76q
FilA7M8rF/elXGZgMWJ2T/cf4Tr6KFa8WbLW5TEz5CWEcXApDk9fQ6B64OzbHHh5
O09+nuqIurd5Rd0cNfMnsEa/zu2i6lPBdQifq4c4z1TIUz/yLRmVWxF0t1nPl8Ns
fTM2/iCh9CMxS7H7kRsl
=Lbg1
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.