(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



2005/03/02 Oligomorphic, Polymorphic, Metamorphic Viruses



The war between virus writers and virus detectors has been a long one. Initially, viruses just had a constant pattern that, once the virus scanners knew about it, could be easily recognized.

Then virus writers made things more difficult by encrypting the payload. That meant that the encrypted bytes would look different with the use of different encryption keys, making the virus scanning more difficult. There was still unencrypted code that decrypted the actual virus so that it could run, so the virus scanners learned to zone in on that part of the code to recognize the virus.

And of course that was the end of the war, the virus writers gave up and we all lived happily ever after.

Yeah, right. The next stage was so-called Oligomorphic viruses, which have multiple sets of possible decryption code. So now you might have a hundred different patterns to look for.

That was bad enough, but the virus writers kept going and developed Polymorphic viruses. It's the same idea, but instead of perhaps hundreds of possible patterns, these viruses can create millions of different decryptor programs.

And then we have the Metamorphic group, where the virus payload itself is mutated from generation to generation. This is done by using different registers, inserting junk code (NOP's or just jump over it), and rearranging code segments. On machines where compilers are common (Linux, for example), this type of virus may even use the infected machine's own compiler to generate its next incarnation!

How do virus scanners deal with this mess? Well, one way is to let the virus decrypt itself using emulation and look for patterns in the result. But if the patterns are constantly different as they are in the Metamorphic type, how do you know what to look for? This is why the folks that do this kind of thing get paid well.

Read The Art of Virus Research and Defense for more.




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar




Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!



 I sell and support
 Kerio Mail server




pavatar.jpg
More:
       - Security


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress