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

Mailing List Archive: ClamAV: users

ArchiveBlockEncrypted.

 

 

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


asa at isac

Nov 23, 2009, 9:28 PM

Post #1 of 7 (875 views)
Permalink
ArchiveBlockEncrypted.

Dear List,

I was just testing an encrypted file using clamscan. Though it was
password protected, it could scan and tell that it is not infected
with Virus. Then in that case, is it OK to allow encrypted files?

Regards,

Anant Athavale.

Regards,

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


bryan at skiblack

Nov 24, 2009, 6:28 AM

Post #2 of 7 (831 views)
Permalink
Re: ArchiveBlockEncrypted. [In reply to]

Greetings,

In general terms, I'd say if something can read an encrypted archive
without the password, then the encryption isn't very good. More
likely, ClamAV reads the file without decrypting and doesn't find a
pattern match, so it says it's ok - not the fault of the software, I
wouldn't expect otherwise. A better test would be to take an AV test
file, encrypt it, and run it through. I'll bet ClamAV doesn't find it.

--Bryan

-- Bryan Blackwell --
Unix Systems Engineer
bryan [at] skiblack

On Nov 24, 2009, at 12:28 AM, ANANT S ATHAVALE wrote:

> I was just testing an encrypted file using clamscan. Though it was
> password protected, it could scan and tell that it is not infected
> with Virus. Then in that case, is it OK to allow encrypted files?

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


asa at isac

Nov 24, 2009, 7:11 PM

Post #3 of 7 (822 views)
Permalink
Re: ArchiveBlockEncrypted. [In reply to]

Dear Bryan,

Thanks your inputs. We will take this into account and will tell
management about this.

Regards,
ANANT.

----- Message from bryan [at] skiblack ---------
Date: Tue, 24 Nov 2009 09:28:29 -0500
From: Bryan Blackwell <bryan [at] skiblack>
Reply-To: ClamAV users ML <clamav-users [at] lists>
Subject: Re: [Clamav-users] ArchiveBlockEncrypted.
To: ClamAV users ML <clamav-users [at] lists>


> Greetings,
>
> In general terms, I'd say if something can read an encrypted archive
> without the password, then the encryption isn't very good. More
> likely, ClamAV reads the file without decrypting and doesn't find a
> pattern match, so it says it's ok - not the fault of the software, I
> wouldn't expect otherwise. A better test would be to take an AV
> test file, encrypt it, and run it through. I'll bet ClamAV doesn't
> find it.
>
> --Bryan
>
> -- Bryan Blackwell --
> Unix Systems Engineer
> bryan [at] skiblack
>
> On Nov 24, 2009, at 12:28 AM, ANANT S ATHAVALE wrote:
>
>> I was just testing an encrypted file using clamscan. Though it was
>> password protected, it could scan and tell that it is not infected
>> with Virus. Then in that case, is it OK to allow encrypted files?
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml
>


----- End message from bryan [at] skiblack -----



Regards,

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


asa at isac

Nov 24, 2009, 7:29 PM

Post #4 of 7 (822 views)
Permalink
Re: ArchiveBlockEncrypted. [In reply to]

Dear List,

I forgot to add that, we still receive mails having PDF files as
attachments and they are password protected (like Bank statements
etc). Are such files really encrypted or they are just password
protected? If they are encrypted, how do we block such attachments
also?

Regards,
ANANT.

----- Message from asa [at] isac ---------
Date: Wed, 25 Nov 2009 08:41:45 +0530
From: ANANT S ATHAVALE <asa [at] isac>
Reply-To: ClamAV users ML <clamav-users [at] lists>
Subject: Re: [Clamav-users] ArchiveBlockEncrypted.
To: clamav-users [at] lists


> Dear Bryan,
>
> Thanks your inputs. We will take this into account and will tell
> management about this.
>
> Regards,
> ANANT.
>
> ----- Message from bryan [at] skiblack ---------
> Date: Tue, 24 Nov 2009 09:28:29 -0500
> From: Bryan Blackwell <bryan [at] skiblack>
> Reply-To: ClamAV users ML <clamav-users [at] lists>
> Subject: Re: [Clamav-users] ArchiveBlockEncrypted.
> To: ClamAV users ML <clamav-users [at] lists>
>
>
>> Greetings,
>>
>> In general terms, I'd say if something can read an encrypted
>> archive without the password, then the encryption isn't very good.
>> More likely, ClamAV reads the file without decrypting and doesn't
>> find a pattern match, so it says it's ok - not the fault of the
>> software, I wouldn't expect otherwise. A better test would be to
>> take an AV test file, encrypt it, and run it through. I'll bet
>> ClamAV doesn't find it.
>>
>> --Bryan
>>
>> -- Bryan Blackwell --
>> Unix Systems Engineer
>> bryan [at] skiblack
>>
>> On Nov 24, 2009, at 12:28 AM, ANANT S ATHAVALE wrote:
>>
>>> I was just testing an encrypted file using clamscan. Though it
>>> was password protected, it could scan and tell that it is not
>>> infected with Virus. Then in that case, is it OK to allow
>>> encrypted files?
>>
>> _______________________________________________
>> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
>> http://www.clamav.net/support/ml
>>
>
>
> ----- End message from bryan [at] skiblack -----
>
>
>
> Regards,
>
> Anant Athavale.
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml
>


----- End message from asa [at] isac -----



Regards,

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


uhlar at fantomas

Nov 25, 2009, 6:55 AM

Post #5 of 7 (816 views)
Permalink
Re: ArchiveBlockEncrypted. [In reply to]

On 25.11.09 08:59, ANANT S ATHAVALE wrote:
> I forgot to add that, we still receive mails having PDF files as
> attachments and they are password protected (like Bank statements etc).
> Are such files really encrypted or they are just password protected? If
> they are encrypted, how do we block such attachments also?

i guess that "password protection" of PDF files is only issue or program you
use. If you can view those files, they are not encrypted.

--
Matus UHLAR - fantomas, uhlar [at] fantomas ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #99999: Out of error messages.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


asa at isac

Nov 25, 2009, 7:25 PM

Post #6 of 7 (807 views)
Permalink
Re: ArchiveBlockEncrypted. [In reply to]

Hi,

The mail received with PDF file says, the file is encrypted and key to
open it is first two characters of your name and first two digits of
your date of birth.

Should we block such mails also as they may also contain virus?

Regards,
ANANT.


----- Message from uhlar [at] fantomas ---------
Date: Wed, 25 Nov 2009 15:55:34 +0100
From: Matus UHLAR - fantomas <uhlar [at] fantomas>
Reply-To: ClamAV users ML <clamav-users [at] lists>
Subject: Re: [Clamav-users] ArchiveBlockEncrypted.
To: clamav-users [at] lists


> On 25.11.09 08:59, ANANT S ATHAVALE wrote:
>> I forgot to add that, we still receive mails having PDF files as
>> attachments and they are password protected (like Bank statements etc).
>> Are such files really encrypted or they are just password protected? If
>> they are encrypted, how do we block such attachments also?
>
> i guess that "password protection" of PDF files is only issue or program you
> use. If you can view those files, they are not encrypted.
>
> --
> Matus UHLAR - fantomas, uhlar [at] fantomas ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> WinError #99999: Out of error messages.
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://www.clamav.net/support/ml
>


----- End message from uhlar [at] fantomas -----



Regards,

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


ged at jubileegroup

Nov 26, 2009, 4:32 AM

Post #7 of 7 (796 views)
Permalink
Re: ArchiveBlockEncrypted. [In reply to]

Hi there,

On Nov 24, 2009, ANANT S ATHAVALE wrote:

> I was just testing an encrypted file using clamscan. Though it was
> password protected, it could scan and tell that it is not infected
> with Virus.

When Clamav performs a scan and no virus is found, you know only that
a pice of software told you that no virus was found. You do NOT know
that there is no virus in there. You only know that if there is, a
piece of software told you that ClamAV didn't find one.

The reasons for not finding a virus range from there not being one
there to find; to there being one that was not detected; to there
being a fault in the software that tells you there isn't one when
there are in fact three or four; to there being several that were
ignored because of your configuration; to there being a couple of
dozen that were not detected because your freshclam daemon couldn't
establish an Internet connection this morning to update a database.
And probably a couple of other reasons I haven't thought of yet.

It's up to you how you use the information, but you must understand
the difference between "no virus here" and "no virus found here" and
you must in any case decide on how much confidence you place in the
statement when it is made. That is your decision, and not one which
can be made in a vacuum.

> Then in that case, is it OK to allow encrypted files?

That isn't up to me to decide. It's up to you. You need a policy.
You can use ClamAV (and a lot of other tools) to help you implement a
policy, but the policy is what you decide, not what anyone else says
it should be.

> I forgot to add that, we still receive mails having PDF files as
> attachments and they are password protected (like Bank statements etc).

I note you say that they are password protected.

> Are such files really encrypted or they are just password protected?

You said they were password protected. Without actually seeing them,
I don't know how anyone here can be expected to know whether they are
encrypted, password protected, or made of Swiss cheese. As an aside,
if my bank sent me PDF files containing financial information such as
bank statements by electronic mail then I would find a different bank.

Unfortunately people with no IT background sometimes misuse computers
in very creative ways, and that can result in the unwitting disclosure
of valuable information. I have seen PDF files which were allegedly
protected or encrypted and yet I have had no trouble reading them on
any Linux box running 'xpdf'. Sometimes I've had suppliers think they
were protecting sensitive business information with encryption, when
in fact they were sending it Base64 encoded by email over the public
Internet. People generally have no idea that information encoded that
way may as well be sent in plain text.

> If they are encrypted, how do we block such attachments also?

You still need to decide your policy. If your policy will be to block
"encrypted files" then you have to decide how to specify what you mean
by "encrypted files" and when you receive a file, whether or not _you_
say that it is encrypted. There are many ways to obscure the content
of a file, for example people hide things in image files which are not
the images which are seen when the files are viewed with typical image
viewers. There are many ways to encrypt information, from the simple
substitution ciphers which can be cracked in a few milliseconds on a
ZX81 to the state of the art techniques which using current technology
can't be cracked within the expected lifetime of our planet. One view
would be to say that no file which is not easily readable by your mail
system administrators may be passed through your mail system.

Be aware that if you get a suspicious mail message, you really can't
trust anything in it except the headers that your own server put in.
You especially can't trust things within the message that purport to
tell you things about other parts of the message. It is very common
for malicious mail to contain false statements. These falsehoods are
not limited to things like a box of money found in an abandoned shed,
they can be cleverly constructed to appear to be the work of a famous
software package. If done well, it is practically indistinguishable
from the 'real' thing.

If you wish to strip attachments and permit the covering message to
pass through the filters, MIMIEDefang for example can do that. It can
do it whatever the attachments are, and whether they are obfuscated,
encrypted or not. If you prefer, you could also reject such mail.
That would be my choice most often.

ClamAV cannot strip attachments, nor manipulate the mail in any way
except for the odd header, but it can for example tell the MTA to
quarantine mail so that you can look at it later if you have the time.
Don't make work for yourself like that if you don't have to...

On Nov 25 2009, ANANT S ATHAVALE wrote:

> The mail received with PDF file says, the file is encrypted and key to
> open it is first two characters of your name and first two digits of
> your date of birth.

Maybe there's another mail coming soon which asks for the second two
characters of your name, the second two digits of your date of birth,
the last nine digits of your social security number and your mother's
maiden name. You could be treading on very thin ice if you knowingly
permit your systems to be used in this way, but I don't know anything
about the legal framework in which you are working.

> Should we block such mails also as they may also contain virus?

I would. Not knowing your terms of reference makes it difficult to
say what you should do. In your situation, the issue of whether or
not the mail does in fact contain a virus seems to me to be secondary
to making the policy clear. Document it before you do anything else.

--

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

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.