How to create a virus scanner?

Miscellaneous Forums/General Discussion/How to create a virus scanner?

I was wondering if anyone knew of where to find information on how to develop a virus scanner. Say I wanted to write a clone of Norton AntiVirus, where would I begin?

1) Figure out hot to write a device driver if you want to be able to do on-access and memory scanning
2) Find accurate signature information on all 100.000+ viruses and variants in existence.
3) figure out how to rip them out of the infected file(s) in question, restoring the original forms

No offence, but this is one of those tasks that boils down to "If you need to ask how to do it, you should probably leave if to the professionals"

Needless to say, it's pretty complicated, and well over most people's head. Even better, with Windows Vista your application will need special permissions to be even *capable* of running at the required privileges, since Microsoft's is trying to prevent malicious software from running at such a low level.