aaron-kelley.net

My little corner of the Internet

AVG e-mail scanner and S/MIME signed mail

I ran into a somewhat obscure issue today with how AVG deals with signed mail (or actually, all mail, though I only noticed this because the mail was signed). Specifically, how it deals with scanning signed e-mail that you send, and how it can cause them to fail validation on the receiver end. Thanks to Carl for bringing this to my attention.

First of all, I’ve never liked to install the Microsoft Office plug-in or Outlook e-mail scanner plug-in that comes with AVG. In my experience, this has led to it wanting me to quit Outlook whenever it wants to install an update (or reboot the machine after the update is complete), which is a bother, and I don’t think it’s a very big risk to leave those components out. So, on my system with only the “basic” e-mail scanner installed, it is only able to scan mail sent through SMTP.

I recently switched to Thunderbird and I have one of my accounts set up to send through SMTP, which means AVG is able to intercept the connection and scan the mail. Even though I do not have AVG set to “certify mail,” it still makes some modifications to the message. Perhaps the most obvious is a message that it adds to the headers of the message…

Received: from 127.0.0.1 (AVG SMTP 8.0.169 [270.6.15/1649]); Wed, 03 Sep 2008 15:30:57 -0500

Of course, it makes sense for it to put this there, because it is actually intercepting the TCP connection used to send the mail and then relaying the mail to the server you specified in your e-mail client. Adding these relay messages to an e-mail will not make it fail validation as they are not covered by the digital signature.

However, oddly, AVG makes some other modifications to the message, as we see in this diff between the mail sitting in my Thunderbird “sent” folder and the mail that showed up in the recipient’s inbox:

Pointing out a modification to an e-mail made by AVG's message scanner

I know that AVG caused this because I duplicated the behavior several times, and it stopped right after I disabled AVG’s mail scanner.

There are a number of other small changes like this. These modifications are to the body of the e-mail message, which is covered by the digital signature. The result is, the recipient cannot verify the authenticity of the message, as it appears to have been modified since it was sent (duly so).

Why were these modifications made to the message? Are they just strange errors, or is AVG actually trying to make the style information in the message more consistent for some reason? Whatever the case, your anti-virus software should not be modifying mail that you send, especially without informing you that it is doing so, whatever the modifications may be.

So, here we have a plus for digital signatures and a minus for AVG. I don’t seem to be able to communicate this to AVG support because I am using the free version. If any of you have a paid AVG anti-virus product, maybe you could pass the word along? :-P

Anyway, I now am running AVG without any mail scanning at all. (I hope that common sense in dealing with attachments can keep me safe. :-P )

Tags: , , ,

Comments are closed.