Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: Fract504 on July 31, 2008, 09:33:40 AM

Title: Technical in depth description of scan process
Post by: Fract504 on July 31, 2008, 09:33:40 AM
Hello,

can anyone provide me a link or do an in depth technical description how a virus scanner actually works when scanning a file for viruses?

Just the phrase: "It looks for known patterns in the file" is not enough  :)

I mean the known number of viruses today is huge and it just takes the scanner some miliseconds to scan a file for it.
How does this exactly work?
Title: Re: Technical in depth description of scan process
Post by: kubecj on July 31, 2008, 12:18:16 PM
It looks for known patterns in the file very very fast.

 ;) ;D ;D
Title: Re: Technical in depth description of scan process
Post by: Fract504 on July 31, 2008, 12:23:45 PM
 :-X no comment  :-[
Title: Re: Technical in depth description of scan process
Post by: Fract504 on August 06, 2008, 09:41:20 AM
As my question is still unanswered, I ping it to the top.
Title: Re: Technical in depth description of scan process
Post by: DavidR on August 06, 2008, 04:09:40 PM
I think you can ping away, but I would have thought a detailed answer would be classed as 'commercial in confidence,' so you wouldn't get one, especially not in a public forum.
Title: Re: Technical in depth description of scan process
Post by: igor on August 06, 2008, 04:11:07 PM
I also don't think you'll get a detailed answer - because it's basically the "know how" behind the antivirus scanners (in addition to a team working hard on the detections).
Title: Re: Technical in depth description of scan process
Post by: Fract504 on August 06, 2008, 04:56:32 PM
ok, ok

Let's try it another way ;)
How does CLAM AV do the fast scanning for viruses in the files?
This program is open source and can be analysed by everyone. I am just not too technical savvy to understand the code.
Any new tries?

Title: Re: Technical in depth description of scan process
Post by: Lisandro on August 06, 2008, 05:02:47 PM
Well, good question...
But won't we find a good answer if we ask Clam team/developers... I think Alwil team won't have 'time' to look at that code... if they have and discover 'anything', they won't tell, eh? ;)
Title: Re: Technical in depth description of scan process
Post by: Fract504 on August 06, 2008, 05:04:07 PM
I really think there is a basic concept how virus detection works on all virus scanners.
Cannot imagine that every vendor reinvents the wheel completely....

My question is also not directly targeted to alwil, but to everyone who thinks is an antivirus expert and really knows how it works behind the scenes.
Title: Re: Technical in depth description of scan process
Post by: Lisandro on August 06, 2008, 05:06:50 PM
I really think there is a basic concept how virus detection works on all virus scanners.
Cannot imagine that every vendor reinvents the wheel completely...
Ok, I agree, but this basic concept won't be just compare the source code with the signature patterns?

My question is also not directly targeted to alwil, but to everyone who thinks is an antivirus expert and really knows how it works behind the scenes.
Sorry... I'm not among 'them'...
Title: Re: Technical in depth description of scan process
Post by: igor on August 06, 2008, 05:32:01 PM
Well, the simplest thing you can do is use hashes (hash the whole file and match the result against a database of known infected hashes - binary division is quite fast).
More complex, you can use some multi-string search algorithm (e.g.: http://en.wikipedia.org/wiki/Aho-Corasick_algorithm) to look for known patterns.
Then, you add some algorithmic detections...
...
Title: Re: Technical in depth description of scan process
Post by: Fract504 on August 06, 2008, 07:13:36 PM
Thanks igor,

now we are heading in the right direction.
The Aho-Corasick hint was the missing link I was searching for.
Googling for the term with some other keywords really revealed what I was looking for.

It helped to understand more what is really going on.