Author Topic: Technical in depth description of scan process  (Read 4956 times)

0 Members and 1 Guest are viewing this topic.

Fract504

  • Guest
Technical in depth description of scan process
« 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?

kubecj

  • Guest
Re: Technical in depth description of scan process
« Reply #1 on: July 31, 2008, 12:18:16 PM »
It looks for known patterns in the file very very fast.

 ;) ;D ;D

Fract504

  • Guest
Re: Technical in depth description of scan process
« Reply #2 on: July 31, 2008, 12:23:45 PM »
 :-X no comment  :-[

Fract504

  • Guest
Re: Technical in depth description of scan process
« Reply #3 on: August 06, 2008, 09:41:20 AM »
As my question is still unanswered, I ping it to the top.

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89061
  • No support PMs thanks
Re: Technical in depth description of scan process
« Reply #4 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.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re: Technical in depth description of scan process
« Reply #5 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).

Fract504

  • Guest
Re: Technical in depth description of scan process
« Reply #6 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?


Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re: Technical in depth description of scan process
« Reply #7 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? ;)
The best things in life are free.

Fract504

  • Guest
Re: Technical in depth description of scan process
« Reply #8 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.

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re: Technical in depth description of scan process
« Reply #9 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'...
The best things in life are free.

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re: Technical in depth description of scan process
« Reply #10 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...
...

Fract504

  • Guest
Re: Technical in depth description of scan process
« Reply #11 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.