What do AV Products do and how are they tested?
After writing the previous entry on vendor-sponsored tests and seeing comments about it, I thought it might be good to explain what AV products do, how they typically gets tested, and how they should be tested. And, I will discuss a bit in a more thorough fashion what is wrong with the testing that was performed by Dennis Technology Lab. I had attempted in the previous posting to illustrate the uselessness of the DTL testing with humor—it did not work with some people (especially at least one Symantec person). So, here is a more straightforward approach.
I thought it would be good to start with a basic tutorial on what antivirus software does…….
The bad guys are trying to get a bad payload (malware) into the user’s computer. This malware/payload could be benign (such as current Conficker) or it could be designed to steal passwords, bank information, open a backdoor for a hacker, etc. The malware can also be a virus, spyware, Trojan horse, etc. It makes no difference in the detection and that is why all good AV/security products include anti-spyware capabilities. Regardless, the purpose of AV is to stop the bad guy from getting the malware into the computer. In the past these attempts were made almost entirely through emails—sometimes SPAM email and sometimes email received from a trusted source with an infected computer.
Currently we see that over 80% of infection routes are via internet browsing. Sometimes the infections come from know bad sites (often hacking sites, sex sites, etc.). But these days, mostly they come for a bad guy infecting a legitimate website. These infections are usually a java script that once downloaded and executed on the user’s computer installs a piece of malware.
Now, there are also other means to infect a user computer (such as over the network, a hack attack, etc.). But as the email and website vectors are the two most common, I will concentrate on them. First, here is a simple diagram showing what an AV product does to provide protection during these activities.

- Black-listing known bad sites is always the first step in protection. When a site is black-listed, the security product will prevent the user from opening the website. Sometimes the user can override that block; sometimes they can’t. There are a lot of websites in the world whose main purpose is to infect users. Security products find these sites by crawling the web searching for them or by leveraging large installed bases to find them. As they sites may change (or get infected) faster than a crawler can re-visit, it is more effective to use the large installed base. But, most AV/security companies do not have a large enough installed base. This is an advantage of Avast with nearly 100 million users.
- Even if a site is not on a black list, it can still be infected and harbor malware. This tends to be the most common source of infection these days. Typically these websites are legitimate—but a hacker has broken in and injected some code to infect visitors. It is very important to block these websites from loading. If they are allowed to load, the user can be infected. To block them from loading, one has to either recognize the site is infected (that is have it on a list) or detect the infection while the site is being downloaded but before it is actually in the user’s computer. Avast takes the latter approach and may be unique in that approach. Most try to detect these websites by crawlers similar to the black listing approach above.
- If a bad site is allowed to load, the next chance is to stop the infected code from loading the payload. This is usually quite difficult and may require the usage of an outbound firewall, sophisticated heuristics, and even behavior detections. We prefer to focus on not allowing these sites to load. Other security companies let the sites load and then try to stop the infection.
- Infections can also come in via email. The first line of defense against email infections is an anti-spam filter. Many attachments to spam are actually malware. Most security products do not include anti-spam; Avast will have the anti-spam in the Version 5 Internet Security Suite. Norton also just re-added Anti-Spam in their recent Norton 2010. Many ISPs and mail providers (yahoo, Google, etc.) do a reasonable job of blocking spam.
- So, if all the attempts to keep the malware out of the computer have failed, the signature detection now comes into play. In the past, this was the only component of an AV product and sometimes it is mistakenly believed that this is all AV products do. A signature is basically a mathematical representation of a file. Each file that exists in the world has a unique mathematical representation. So, if we know about a piece of malware we then know its signature. For each file that comes into the computer, we compute the signature, check it against our database and decide if it is known to be malware. Nowadays, this technique is not sufficient as malware changes often—when it changes, its signature changes. Now, this is a very simplistic description of the process and there is actually a lot of complexity behind the scenes—especially in making the signatures generic so that one signature can catch multiple variations of a piece of malware.
- Heuristics come into play to try and catch malware that we do not yet have a signature for. Heuristics is basically having the AV product do some reasoning about an executable to decide if it is suspicious. There are usually various sensitivity levels of heuristics. The downside is that the more sensitive you make heuristics, the more false positives you get. Norton has added an interesting angle to heuristics in 2010 by factoring in the program usage by the community—if it is used a lot it is probably good. It remains to be seen how well this helps detections but it does come at a price to privacy—Symantec now knows all the executables you load onto your computer.
- If the AV product has now failed to stop the malware from being downloaded and executed, the next layer of protection is to stop it during execution via behavior blocking. With behavior blocking, the AV product watches what a program does and if it exhibits the behavior of malware (such as making system modifications), it blocks and sometimes kills the malware. This is a very difficult process as some malware is quite smart and can hide itself—some can even disable the antivirus. If the behavior blocking can recognize bad behavior and shut down the malware quickly, you can avoid infection. But, if the malware is too fast or slick for the behavior detection, your computer will get infected and all the AV product can now do is to limit the damage.
- A new technique in AV products is to execute the browser and other applications within a “sandbox”. This is just like kids playing in a sandbox—everything stays in the sandbox. Basically a sandbox pretends to be a computer. If malware gets executed, it only infects the pretend computer and not the real computer. Thus even if malware makes it past the previous seven protection layers, the sandbox will prevent the malware from causing any damage. To fix the problem, just restart the sandbox. Sandboxes have been around for a number of years but have not been incorporated into AV products until this year. I believe only Avast and Kaspersky have this feature. Avast’s is in the new Version 5 Pro Antivirus and Internet Security Suite. Also, the Avast sandbox works in 32-bit and 64-bit mode while the Kaspersky sandbox only works in 32-bit mode.
- An outbound firewall can also limit the damage caused by a piece of executing malware. It does this by preventing the malware from communicating to its home/host over the internet. If successful, the firewall can limit or even prevent the damage (depending on the intent of the malware). Outbound firewalls are famously delicate and difficult to manage because you have to define rules for each application that you want to have access to the internet. The newer versions (including Norton 2010 and Avast Version 5 Suite) eliminate this complexity and make the firewall useable by anyone. However, the malware can also outsmart a firewall by piggy backing on other applications that are allowed to use the internet (such as your browser). Thus, it is dangerous to just rely on this last layer of protection—you need the other eight to really be safe.
- And of course, the last step is to clean up the damage. If malware gets caught at the very beginning, there is nothing to clean up. The further into the computer the malware penetrates, the more there is to clean up. The first step in this is to actually remove the malware. With Avast this can be done with the boot-time scan. In this scan, we reboot the computer and detect viruses before the operating system loads. This allows us to detect viruses that would otherwise hide themselves.
So, it is clear from this that it is best to stop the malware at the outer perimeter—that is the objective of most top antivirus products these days. There is also a lot of hype in the marketplace that AV products—especially free AV products—do not provide these modern capabilities. As I had explained in an earlier posting, they do. The free products (especially avast of course) are even more sophisticated than some paid products. Avast Free Antivirus, V5 incorporates all but anti-spam, firewall, and sandbox. I would bet this is more protection than provided by the paid Antivirus of Norton, McAfee, Kaspersky, or TrendMicro.
Now, there are also some other interesting angles I will talk about in another posting: how cloud computing impacts this, what is the role of the community, how virus data is shared, etc.
So, How do AV Products Get Tested and What is this Controversy Over the Dennis Technology Labs Testing?
While it is clear that it is best to stop malware before it even gets into a computer, that is not what magazines and test labs test. What all the test labs actually test is basically steps 5 and 6—the signature and heuristics detections. Plus, some test the clean up in step 10. They do these tests by literally running millions of known bad and good samples through the competing AV products. While this does not tell you how well an AV product blocks an infection early, it does tell you how well the AV product protects you after an infection has made its way into your system. It also gives you good insight into how effective is the vendor’s ability to collect and process virus samples. And this ability to collect and process samples is crucial. Too many people focus on how many signature updates a vendor puts out every day. The real question should be from how many sensors the vendor is actually collecting samples and how quickly are they processed and turned into signature updates.
To test at the outer perimeter—before an infection gets into your system—is extremely difficult. To properly test one has to:
- Set up the competing products on different IP addresses (because the host sites often will only serve malware to a single computer on an IP address)
- Use IP addresses not associated with testing labs (as some malware will not deliver itself to lab IP addresses)
- Have these computers simultaneously crawl million of websites
- Then you need to take the results and validate them—there will be false positives and lots of manual analysis. For example, some malware will only deliver itself once. Thus one computer may find it and the rest won’t. Some malware will not deliver itself to certain countries.
- Figure out how to constantly clean and restart computers that get infected during the crawling
While it would be very worthwhile to do this type of testing, no lab has yet figured how to do this for other than a very small set of suspect sites.
That is exactly what Dennis Technology Labs did—they chose 40 sites. In the last week we detected about 50,000 hijacked websites around the world. It is impossible for 40 sites to be a fair sample of 50,000 diverse sites—the sample size is ludicrous. It is blatantly obvious that one cannot draw any conclusions about overall product abilities and performance when the test is based on so few samples. Symantec paid for the test; hopefully DTL conducted it in a fair manner. But DTL did not make any attempt to explain how they made sure that there was no prior knowledge about Norton’s ability to detect the small sample size of infected websites. Even if there was not prior knowledge, the test is interesting and nothing more. It is no better than the hundreds of YouTube video tests where “experts” test antivirus products against infections and infected sites and pronounce who is best. In both cases, the sample size is just too small to make any conclusions whatsoever.
To illustrate this point, I engaged Vince’s Technology Lab once again. Starting with the list of 50,000 infected websites we know about, I tested Avast Free Antivirus, Version 5 against the latest Norton 360. Additionally, I have PCTools’ AntiSpyware with AntiVirus also running in parallel with Avast 5. (I periodically check out competitor programs by running them alongside Avast. Right now I happen to be doing that with PCTools and Norton Security Scan).
So to clarify, one computer has Avast and PCTools (also Norton Security Scan but that has no real time scanning so its presence is immaterial). The other had Norton 360. Here are the results (I have deliberately inserted blanks into the website links to make them non-clickable to protect the non-avast users that may be tempted to click on them):
- http://7 7.fskn.gov.ru/ This is a legitimate Russian website. In fact it is a government website. I chose this website because I know that Symantec/Norton is weak in Russia while Avast has 3.5 million users. So I suspected that Norton 360 would not detect the infection. I was right. Avast alerted to an infection and aborted the connection. Norton 360 did nothing. PCTools also did nothing.
- http://kings field.edu.sg/ This is a Singapore education firm. I chose it because I used to live in Singapore. Like with the Russian website, Avast alerted to an infection and aborted the connection. Norton 360 did nothing.
So, we have now destroyed the “fact” (or myth) that Dennis Technology Labs says Symantec earns a 100% score in detecting such infections. Statistically my sample size of 2 is probably just as valid as DTL’s sample size of 40. I have a 100% score for Avast and a 0% for Norton. And yes, I know this is ludicrous….the samples are cherry-picked and the sample size is way too small. But, that is exactly my point—this test is as invalid as the one from DTL.
As a caveat, it is possible that the N360 machine did not have current definitions as I had not used it in about a week. But, I do know that these two sites have been infected for well over a month and thus Norton should have been aware.
So, I decide to proceed and check another site; an American site this time. But, just as I start typing the address into the browser, my N360 starts alerting that its antispyware and AV capabilities have been shutdown…..presumably by the infections loaded by one or both of those two dirty websites I had browsed to a minute earlier. So rather than continue the test I must now shutdown the N360 machine and clean it with Avast…..
Now for the serious message if you get this far. No doubt about it, Norton is a good product. I would bet it is the best paid product from a traditional vendor on the market these days. Avast is also a good product. I personally think it is better than Norton (and it is free). I think its ability to detect infected websites is far superior and that is what is most important these days. I would stack Avast up against Norton in a real test any day. Avast Free Antivirus vs. Norton Antivirus. Avast Internet Security Suite (soon to be released) against Norton Internet Security Suite. It would be a great test if anyone can ever figure out how to do it right.
Not like the testing done in the Vince and Dennis Technology Laboratories.
@Pondus
I was reading this. I have never used norman so I am not personally sure how it works.
In the this web site’s Security center you will find free tools that use the SandBox technology. These tools can be used to:
* Upload for free program files that you suspect are malicious or infected by malicious components, and receive instant analysis by Norman SandBox. The result is also sent you by email.
* View in-depth information about the analysis performed by Norman SandBox of each malicious file that is uploaded.
* Explore the search facility in all analyses after Registry keys, file names, etc.
You can also view comprehensive statistics of files that are uploaded to our SandBox systems during the latest day, week and month. You will then be able to see trends in the creation of malicious software.
Why doesn’t this blog haves a link to http://twitter.com/avast_antivirus ?
What happened to avast 5
@Pondus
What happened to my last post November 16th, 2009 at 15:47 did it not go true censorship or?
@Pondus
Pondus, we don’t censor any comments–unless they have nothing to do with this blog. What were you asking or saying?
@Vincent Steckler
my reply from November 16th, 2009 at 15:47 have this under the date
(Your comment is awaiting moderation)
And i can only see it if i enter the page with the computer i sendt it from
if i go in here with a different computer it does not show?
@Pondus
Yes, I see it there now. For some reason though WordPress won’t let it be approved–and I have no idea why it even went there as we don’t have moderation turned on. So I have copied it and put it below this message. As far as an answer, as I said I am not familiar with what Norman does. I did read the bit on DNA and sounds like nothing new–that is other products do this already. And maybe it would be good to ask Norman that if they have all this technology how come they commonly score quite low in testing?
Kurt Natvig started programming in 1987 on his Commodore Amiga 500. Kurt started working for Norman ASA as a junior programmer in 1994. In 1995 he started writing on Norman’s Scanner Engine where he began developing Norman’s first emulator. In 1996 he was promoted to Senior Software Developer. In 1999 Kurt was elected as a CARO member, and is also a member of AVED. He first introduced the Norman SandBox during presentations at the Virus Bulletin Conference in 2001, 2002, and 2003. Then the SandBox was launched as part of Norman Virus Control in June of 2003, followed by the launch of the Norman SandBox Information Center in 2004.
http://www.sans.edu/resources/securitylab/306.php
http://www.youtube.com/watch?v=2YYpknsAvpM
So it looks like Norman have had this in there Antivirus sinse 2003
New now is the DNA Matching and Exploit Detection
http://www.norman.com/technology/en
@Nima
It is coming Nima….soon
avast Team
I am using Trial Version of Avast Proffesional edition. But there are virusese that are Auto run, Combo kill, etc. How can I Remove that using Avast proffesional ( 60 days) Trial version.
My E-Mail edress is Maithreeee@yahoo.com
Why doesn’t this blog haves a link to http://twitter.com/avast_antivirus in the RSS Feeds?
I’m going to keep asking that until I receive a response, that’s the third time.
Hi Maithree,
If you have any inquiry related with technical issues, just please go to : http://forum.avast.com/
There is a lot technical or malware fighter guys in there.
Regards,
Yanto Chiang
I would like to know if avast has an sdk/api. I am working on an integration project. If yes, Could you please guide me whom i should contact.
Thanks
Something else… why I will not buy pro…
The last couple of months I have been using Avast Home free.
I think it’s a great app.
But it sucks, that you give a 15 day warning at the end of the trail version.
Everytime my PC boots, I have to close that warning.
I am starting to hate your product because of it.
I understand that you wanna sell your products, but forcing people this way, it sucks.
Greetings,
Someone
@Yanto Chiang
agree or you can contact us at support.avast.com.
But please keep in mind that avast! antivirus is essentially designed to protect the “clean” host computer from incoming threats, against infection by a virus or other forms of malware. Its primary function is prevention rather than cure. Although it incorporates a special Virus Cleaner which can remove some of the more common viruses from infected computers, it‘s not intended to run on a computer which is already infected to remove this existing infection. In other words, it’s not an “ex-post” protection virus removal tool but rather a proactive defense mechanism.
Hi Pavel,
I understand what did you mean for antivirus real function to protect victim before infected, but sometimes they already use other brand AV which don’t have a strong performance to detect the threat with their engine.
So that’s way some victim trying to find other strong AV to solved their problem.
For me it wouuld be a strong point for avast antivirus, if we can solving their problem rather than protection only.
Regards,
Yanto Chiang
@Yanto Chiang
Hi Yanto. Have you tried the boot time scan feature? It is especially for this type of situation.
@Someone
Hi Someone. Glad you like the product and I am sorry for your irritation. What is happening is that you have actually not registered your product and it is about to expire. At the bottom of that nag screen you are irritated by, there is an option to register the free product. If you do that, the nag screen will go away. Why it comes up everytime that you reboot is that the product is about to stop working. The screen is asking if you want to register the free product or upgrade to the paid. You can do either and either will get rid of the nag screen. If you don’t do either, then the product will stop working and you will be unprotected. I would recommend registering the free product.
@kartik
Hi Kartik, you can send an email to sales@avast.com
@Maithree
Hello Maithree. Have you used the boot time scan feature? If that does not work, send a message to support@avast.com. Or go to http://www.avast.com and navigate to the support section. You can post on the forum and someone will surely help you quickly.
Hi Vincent,
Thanks for your kindly advice,
Anyway, i just would like to advice Maithree to go to forum support if he have any issues related with avast antivirus.
Regards,
Yanto Chiang
Hi Vincent
I already told @someone that he/she need to register the Home free, but again my post is stuck somewhere with the message
( Your comment is awaiting moderation )
@Vincent Steckler
Why doesn’t this blog haves a link to http://twitter.com/avast_antivirus ?
I think you should merge the twitters @avastantivirus and @avast_antivirus into a single account. And put the link in this blog.
Common, answer me please!