Click to See Complete Forum and Search --> : Virus Research Information: What Are The Different Kinds?


Spyder32
September 3rd, 2004, 06:15 PM
Greeting's AntiOnliner's. This will probably be my last attempt at a tutorial since I'm not much of a good tutorial writer. For those interested in part two of my other tutorial, PM me and if I get enough of a "demand" so to speak for it then I'll finish it and post it. Anyways, this tutorial will introduce people to viruses and what they are, how they damage data, systems, networks, etc, and what are different kinds of viruses. Let's get started with what a virus is and how they damage data.

What Is A Virus?

A virus can be described in many forms and can be said many ways. The way I look at it, a virus can be any bit of code or any program meant to cause harm of malicious nature, or destroy/damage data on any given system. This whether being a PC (personal computer) or even a network server. Viruses are written as programs or applications with lines of coding in them designed to perform a certain task. These "tasks" usually involve data corruption/deletion, data retrieval, replication and spreading of the virus itself. Some (most of today's viruses) viruses like to copy itself to the user's e-mail client (usually Microsoft's Outlook Express) and send itself to the address book of the user, thus the reason why viruses spread so quickly. During the "coding" or programming stages, the virus creator codes into the application what he want's it to do. In most cases, the virus creator has no specific target and just wants to cause alot of harm and damage to computer system's. However, he can simply rely on user stupidity when it comes to downloading and running the viruses as well. User ignorance has proven to be an effective and rather scary method for virus creator's/blackhat hackers in general. Using method's like the "Outlook Express Trick" and Instant Messaging applications only further's the speed and amount of systems affected. Sometimes downloaded programs from website's or friends can also contain viruses, as well as the ever popular p2p applications. These applications which allow users to share their files with others on certain networks (ex. KaZaa, E-Donkey, WinMX) have proven to be running rampant with viruses.

So in a short sense, a virus can be anything (any program, any application, any line of code) meant to do harm of malicious purpose or intent on a computer machine. Now let's get into how a few lines of code can damage so much data and can cause companies to lose million's in dollars.

How Does A Virus Damage Data and Files?

Rival Company A posted their monthly chart's and are doing great. Stocks are rising, revenues are up, and things look great all around for everyone. Rival Company B couldn't be any worse. Stocks are dropping like hailstorms, people are getting cutback/laid off, and they are in debt. Something needs to be done to their rival (Rival Company A) and their product. If something isn't done soon, Rival Company B can be out of business.

At their next meeting, they (a group of "higher-up's") decide they are going to try to infect their rival companies network systems with a virus. They want the virus to delete all software, all documents, and every last inch of data on their systems. Sure, they can hire a hacker or something to hack it themselves, but why not rely on the stupidness of one of their one users? Pretend it's from a friend or something and send it as an e-mail download. Or even better.. Pretend to be an employee and see if you can get physical access. Ahh, so many way's to infect their system.

Sound's somewhat evil, right? Well unfourtunately this has been done in the past and happens even today. Companies who are desperate try to either hack or send a virus to a rival company. Anything to screw up their systems data, documents, software, hardware, WHATEVER. Whatever it takes to help them get an advantage or achieve a goal. So back to the point: How does a virus damage files/data?

Well, whoever creates a virus first need's to know a programming language. One of the popular languages for creating viruses in is VisualBasic. It's fairly simple to learn and use, easy to issue a command in, and creates simple applications. I personally would like to learn a little more than I know so I can create some basic applications. But anyways, virus creators usually use this programming language because it's quick and easy. If not this one, then they use the C/C++ programming language. This language however is (IMO) harder to learn and require's a little more skill.

So when it come's to coding time, they start off with the basic's. Usually they add in lines of code to ensure the virus runs when opened and sometimes write some code so that the virus can not be shut off. Sadly, in today's world, 90% of the viruses coded place a file in the system's registry so that even if deleted, it remains whats called "resident" in the systems registry. This make's life a hell of a lot harder for your everyday home user who probably couldn't work his/her way around the registry (nor am I suggesting you should). In any sense, virus creator's have different techniques to ensure the virus (unless carefully and properly removed) stay's in the system.

A virus/malicious application that I messed around with alot awhile back is Hackology Network's "Hard Drive Killer Pro" application. The name genuinely speaks for itself, however here's a brief overview of the program from the Hackology site (http://hackology.com): The Hard Drive Killer Pro series of programs offer one the ability to fully and permanently destroy all data on any given Dos or Win3.x/9x/NT/2000 based system. In other words, 90% of the computers world wide.

The program, once executed, will start eating up the hard drive, and/or infect and reboot the hard drive within a few seconds. After rebooting, all hard drives attached to the system would be formatted (in an unrecoverable manner) within only 1 to 2 seconds, irregardless of the size of the hard drive. The program has reported to have caused physical damage to some hard drives (on many occasions). However, the program was not in any way designed to cause physical damage, only data.

I've played with this application numerous times (as well as other viruses like it) and it's coding structure and event process is simplistic. It run's a "Format C:" as well as on any other drives the system has on it and then reboot's the system. When booted back up, the system has everything erased and the hard drive is destroyed. This is how easy it is to cause damage to data through a virus just by injecting a few simple lines of coding into a program/application.

What Are Different Types Of Viruses?

Ever since the creation of the very first virus, there have always been many different types and forms of viruses that each infect different parts of a system or are triggered by different circumstances. Here are some of the different types of viruses and a brief description of them, as well as an example:

-- Boot Viruses: Speaks mostly for itself, these types of viruses infects the boot sectors and boot records of the system and run's on bootup. One specific boot virus, the "Zappa" virus, infects the floppy and master boot records of the computer. It is a mere 520 bytes and remains resident in the memory of the system.

-- Stealth Viruses: Also kind of speaks for itself, except these viruses infect programs instead of boot sectors/records and these types of viruses enter the system through "stealth" type methods. By that, I mean they use methods such as being embedded into other programs and applications to gain entry to a system without being detected (although this sometimes doesn't work, most A/V applications can pick this up). For example, a person running a website can offer programs and/or downloads on his website and if someone chooses to download them they are running a risk. The user should download always from the vendors direct site because this site's owner could have embedded a virus or malicious code into the download. An example of a stealth virus is the "Zero Bug" virus. This virus infects .com files, is 1,536 bytes big, work's off a triggered event, and also remains resident in the systems memory.

-- Polymorphic Viruses: Somewhat a cross between the above, except these viruses are polymorphic and their damage varies on many factors. A fine example is the "Morphic.218" virus. It is a small 218 bytes big and infects .com files whereas another polymorphic virus, "ACG" infects .com AND .exe files, is 0 bytes, and remains resident in the memory. It also encrypt's itself. This is how polymorphic viruses differentiates itself from other viruses.

-- Macro Viruses: These types of viruses still exist today, but barely. They were more popular (atleast in my belief and opinion) more so in the mid 90's, during the Windows 95 era. Anyways, these type of viruses infect documents on the system, such as Microsoft's Word and Excel programs. An example would be the "Bloodhound.ExcelMacro" virus. In it's name you can determine it infects the Microsoft Excel program. This virus is pretty simplistic and it's 1,024 bytes in size. Another macro virus, "W97M.Barras" infects Microsoft's Word 97 application and is 1,234 bytes in size.

-- Window's Viruses: These are your everyday, annoying worms and viruses. Nothing particularly special about these although some have made a big name for themselves in the Computer Security scene. A particular virus, "W32.Teddybear.Worm" is a virus/worm I dealt with on one of my friends system when it infected him. This worm/virus infects .exe files and is 11,776 bytes in size.

-- Malicious Viruses: Ahh, the juicy part. In this category, you'll find your ever famous, your ever popular, and your ever malicious trojan applications. These application's (also called Trojan Horse applications) are very malicious and are used in some notorious programs. The ever popular "Backdoor.Subseven" aka SubSeven (created by Mobman) is probably the most famous and notorious of these kinds and has infected almost everyone at one point or another (not including myself :D). Anyways, Backdoor.SubSeven (the original) is 1,234 bytes in size and is worth ten times more the trouble. People have gone out of their way to make Sub Seven Detection programs just to detect whether they have the server on their system.

Those are the main types of viruses out there in the wild. Of course there are probably more, but as of the time I'm writing this little paper I could only get those off the top of my head.

How Can I Protect Myself From This Crap?

Ahh, glad I asked :D. It's fairly simple, download a popular and efficient AntiVirus (A/V for short) program/software and be sure to keep it's virus definition's up to date. If you do this and run periodical scans (I run one once a day at 12:00 on the dot) and scan after you download something, you should be fine. Below I have compiled a small list of A/V software programs and scans. Enjoy!

-- AVG AntiVirus Protection (http://www.grisoft.com/us/us_index.php)

-- TrendMicro's HouseCall Online Scan (http://housecall.trendmicro.com/)

-- PandaSoftware's ActiveScan Online Scan (http://www.pandasoftware.com/activescan/)

-- TrendMicro's PC-Cillin (http://www.trendmicro.com/en/products/desktop/pc-cillin/evaluate/overview.htm)

Anyways, those are my personal favorites along with McAfee and Norton AntiVirus. In whichever you choose, you should always have a AntiVirus software program installed on your system and always running, and you should always consult a second opinion: an online virus scanner.

I really hope someone benefited from this tutorial, and if not don't worry because this is my last one on AntiOnline. :)

©opy®ight
September 3rd, 2004, 06:21 PM
Not a bad introduction to viruses ! Enough info, good spelling, better than your first couple ones;)

and if not don't worry because this is my last one on AntiOnline.

<sarcasm>Thank god, you were starting to spam the board with all your tutorials :p !</sarcasm>

ugh

Spyder32
September 3rd, 2004, 06:24 PM
Enough info, good spelling, better than your first couple ones

Heh, thanks.. I thought so too.

Thank god, you were starting to spam the board with all your tutorials !

Err, all 5 of them? :confused:

Soda_Popinsky
September 3rd, 2004, 06:40 PM
Hmmm.... No mention of worms or firewalls. Sasser, Blaster, Nachii? All were preventable by a firewall.

SwordFish_13
September 3rd, 2004, 06:48 PM
hi

No mention of worms or firewalls.

- Window's Viruses: These are your everyday, annoying worms and viruses

-- Malicious Viruses: Ahh, the juicy part. In this category, you'll find your ever famous, your ever popular, and your ever malicious trojan applications.

Yes spyder you have sort of mixed the worms and trojans with viruse's...........They sure are different things....what i think you should have stick to type viruses ...IMHO you should not have cateogrised Worms and Trojans into Viruses......their bhevaior is quite different from viruses



Some (most of today's viruses) viruses like to copy itself to the user's e-mail client (usually Microsoft's Outlook Express) and send itself to the address book of the user, thus the reason why viruses spread so quickly.

Generally when a virus Executes it tries to find a host to infect i.e. other programs...............when this infected programs is executed it furthur spreads the virus whether on the same computer or the network............these E-Mail Viruses which have that Worm like capabilites IMHO are not true Viruses...........because they require Human intervention to spread...........which i think beats the concept.

Just my thoughts..

Rest i think is good info on Viruses :)

--Good Luck--

Spyder32
September 3rd, 2004, 07:33 PM
Hmmm.... No mention of worms or firewalls.

Probably because the tutorial wasn't on that? :rolleyes: Look at the topic, please..

these E-Mail Viruses which have that Worm like capabilites IMHO are not true Viruses...........because they require Human intervention to spread..

Somewhat true.. the email viruses do have worm like capabilities. However, they don't always need human intervention to spread. Probably which is why they have the worm like capabilities (which you said, so your basically correct :)).

Yes spyder you have sort of mixed the worms and trojans with viruse's

Yeah, somewhat. Not moreso a comparison type of thing then it is explaining how they are similiar, etc.

i think is good info on Viruses

Thanks :)

EDIT: Sasser, Blaster, Nachii? All were preventable by a firewall.

Yes, Soda. However my tutorial didn't focus on that particular subject/topic. I think we can agree Sasser, etc was a worm?

Cybr1d
September 3rd, 2004, 07:50 PM
However, they don't always need human intervention to spread


AFAIK thats one of the things that differentiate Viruses and Worms. A virus needs someone to execute an infected program or download the attachment...while a worm can spread itself without your intervention.

See if you can edit it around a bit to include worms and trojans because they fall into the same category. Other than that, its pretty good :D.

Spyder32
September 3rd, 2004, 07:55 PM
thats one of the things that differentiate Viruses and Worms.

I believe I noted that, Cybr1d. I was concuring with what SwordFish had said when they had "worm-like capabilities" which I agreed with. Worms don't need human intervention and that's what I was concuring with Swordfish about. :)

See if you can edit it around a bit to include worms and trojans because they fall into the same category.

Well, in that sense.. this isn't my last tutorial. I'll do another one on worms and trojans (I don't feel like editing this one, plus I'll add alot of information more to that topic).

Other than that, its pretty good .

Again, thank you and everyone for the so far somewhat positive feedback :)

Cybr1d
September 3rd, 2004, 07:57 PM
Why write two tutorials when you can play around with this one and make it l337 :D...you know, resources cost money $$$ :D

Spyder32
September 3rd, 2004, 08:11 PM
Bleh, not my money! :D By the way, (and this is off-topic) that link/video in your signature is verrry interesting. Just watched it and that was some pretty interesting stuff.

NeuTron
September 3rd, 2004, 08:27 PM
The way I look at it, a virus can be any bit of code or any program meant to cause harm of malicious nature, or destroy/damage data on any given system


As far as i know, it isn't the intent that makes a virus a virus. A virus is usually described as any coding that can replicate itself. This is very similar to biological viruses. Whether it is intended to do harm or not does not dictate its classification.

From TrendMicro (http://www.trendmicro.com/en/security/general/virus/overview.htm):
What is a Virus?
A computer virus is a program – a piece of executable code – that has the unique ability to replicate. ..

Other than that minor point...it was a nice tut.

-NeuTron

Cybr1d
September 3rd, 2004, 08:27 PM
I knew it was going to attract people from both parties :D...or at least the ones that know how outspoken I am againts Kerry



Now edit the tut so I can delete my off topic posts and have it take a nice spot in the archives.

Soda_Popinsky
September 3rd, 2004, 08:50 PM
Probably because the tutorial wasn't on that? Look at the topic, please..
How Can I Protect Myself From This Crap?

How can a firewall protect you from a virus? Most worms exploit a vulnerability, and I would expect rootkits to be made exploiting the same vulnerability. Just as easily as blaster left a shell on port 4444, I would expect there are tools that drop Sub7 on a single machine instead.

The worm is just another vector to drop a backdoor.
So sit behind a firewall and have your OS updated as well.

Tiger Shark
September 3rd, 2004, 10:05 PM
I'd like to clarify some points/statements that have been raised in this thread.

Per Ed Skoudis in his book Fighting Malicious Code, (a darned fine read and I thoroughly recommend it), he offers the following definitions, (these are not verbatim).

Viruses Viruses are executable code that _requires_ human interaction to propogate.

Worms Worms are executable code that _do not_ require human interaction to propogate.

Thus, since those two definitions are absolutely accurate, I would suggest that TrendMicro needs to redo their site.

Now someone is going to jump up and yell about viruses that, when activated, demonstrate worm-like activity in addition to "normal" viral activity..... Yep, no problem and it has been a trend in the last 18 months to two years to attempt this kind of activity. Ed, discusses this in depth and accurately points out that this is what is called a "Blended Threat". He further goes on to point out how and why blended threats will become the norm.

He also discusses polymorphism, (that act of a virus or worm changing it's appearance on each iteration while continuing to be able to carry out the same actions thus making signature creation much more difficult), and encryption which also makes signature generation more difficult hence the IDS systems signatures looking for file encryption generated by some of the typical encryption engines.

Spyder: On a professional level you could have mentioned the higher end firewall's ability to remove executable content from SMTP streams bearing in mind that SMTP is the typical vector of a _virus_. You could also have pointed out that a firewall is a very useful tool in the prevention of virus propgation, especially in a corprate environment, by only allowing outbound SMTP connection to emanate from specific IP addresses, (the mail servers). This is also useful, (in addition to an outbound POP, (port 110), connection), in the prevention of users connecting to personal web servers.

Viruses and anti-virus technology is a huge subject and is difficult to cover without spending an inordinate amount of time and effort researching it for a tutorial. You have, however, come up with a pretty good primer as to what they are and some ways to deal with them....

Soda_Popinsky
September 3rd, 2004, 10:41 PM
I think a better definition of a virus would be:
Virus: spreads locally or through physical means
Worm: spreads remotely network to network

I think the first definition of a virus was something that could spread locally, but has since become broad. Personally, I consider a virus to include anything with only a sole malicious purpose. But the "Virus" has since turned into many different things, which can be summed up as "Malware".

Malware: Any code that sucks. (yes a catch all)
Adware: Software that takes excessive information or resources for marketing purposes.
Spyware: Keyloggers, remote monitoring tools.
Virus: Locally spreading malicious code (w/o network capability)
Worm: Virus that replicates over a network instead of locally (w/ network capability)

And then the payloads can vary from being a trojan, backdoor, smtp engine, whatever. But of course, polymorphism (edit: or "blended threats") throws all definitions out the window.

Tiger- That book rocks. Seriously. I hate to see the worm that implements the code from hydan in it, it would be an heuristic nightmare. I'm not sure I agree with his prediction that there will be a day when all systems get owned and we need to patch by cd's in the mail. ;)

Tiger Shark
September 3rd, 2004, 11:03 PM
Malware: Any code that sucks.

I think malware is the "catch all" for anything that isn't "pleasant" code and covers all you put in the list.

Adware: Software that takes excessive information or resources for marketing purposes.

Individual/Corporate greed.... nothing more....

Spyware: Keyloggers, remote monitoring tools.

Nasty.... Nasty.... Nasty... nuff said?

Virus: Locally spreading malicious code

Errrrr.... they email themselves across the world.... Hardly "local" don't you think?

Worm: Network aware malware

Yep.... and the internet is a network...

Spyder32
September 3rd, 2004, 11:13 PM
Malware: Any code that sucks.
Adware: Software that takes excessive information or resources for marketing purposes.
Spyware: Keyloggers, remote monitoring tools.
Virus: Locally spreading malicious code
Worm: Network aware malware

I like that little bit, Soda.. kinda caught my attention. Look's about correct, although viruses aren't really locally spread code, they can be spread across the internet, etc.

Now, perhaps I should have added information regarding how a firewall is useful in this aspect and perhaps added information about worms and trojan's. So here's what I'm going to do. I'm going to make a part two of this tutorial and include those things. The name will be changed to something such as "Virus Research Information Part Two: Advanced Security and Greater Threats". I'll be working on that one, however in the mean time I'd like to clarify something as well. The primary focus of this tutorial was NOT security (although I added it in). It was (just as the topic says) what are the different kinds, which I went into. My first tutorial here, the Tiny Virus Protection Tip Guide (http://antionline.com/showthread.php?s=&threadid=235650) is more geared towards protections and what not (Holy shit, it's in the title there too!).

Anyways, thanks for the constructive critisizm everyone and I hope some people learned from it and/or enjoyed it. I'll be working extensively on part two. :)

EDIT: Ahh, Tiger ya beat me to 'em ;)

Soda_Popinsky
September 3rd, 2004, 11:19 PM
Errrrr.... they email themselves across the world.... Hardly "local" don't you think?

Wouldn't MyDoom be classified as a worm? Although it requires user interaction to launch....bah who cares.
A perfect example of how polymorphism ruins a solid definition.

I would think that a virus in its first used definition would be code that appends itself to other binaries? If it can reach other networks, it's more wormish? :confused:

[off topic]I was like... 7 years old when I was playing oregon trail or some game on the 486 when a picture of a goat skull with AOL logos for eyes popped up and scared the beejeebers out of me. I've been trying to find the name of that virus ever since so I can play with it.[/off topic]

edit for spy:

No prob...

It's just that classifications and definitions are absolutely not standardized, if you google "define: virus" you will see all kinds of contradictory definitions. I just felt that your tut was intended to include security somewhere, because this is after all a security forum.

Spyder32
September 3rd, 2004, 11:23 PM
[off topic]I was like... 7 years old when I was playing oregon trail or some game on the 486 when a picture of a goat skull with AOL logos for eyes popped up and scared the beejeebers out of me.[/off topic]

Haha, I remember that game. I played it on my OLD AS HELL Mac machine. Anyways, yeah that was very off-topic :p

I just felt that your tut was intended to include security somewhere, because this is after all a security forum.

Indeed, and your correct I just posted on a more informative type basis. The tutorial in itself wasn't meant to teach security from viruses, my other tutorial that I made (my very first one) was. Even that one was a tiny one (thus the name) and wasn't fully written out to be my best :(