What Is A Malware? What’s The Difference Between A Virus And A Trojan Horse?

Table of Contents (click to expand)

A malware is a type of software that is written specifically to infect or harm the system on which it runs. A virus is a type of malware program that attaches itself to an executable program or a file and subsequently travels through other programs and files, infecting files in its wake. A Trojan horse is a malicious program that misrepresents itself and appears to be regular, harmless software.

Right in the middle of watching a movie on your laptop, a dialogue box pops up with an ominous ‘ding’. There are three or four lines of complete computer gibberish that you don’t understand at all. At the bottom, you see an ‘Ok’ button that is carefully centered in the box. It’s as if your computer is mocking you by displaying a bunch of words and symbols that you don’t understand, and yet you are left with no choice but to be “okay” with whatever it is that the computer is sticking in your face.

There’s something worrisome about the whole thing that’s making you feel skittish. Suddenly, as your heart starts to pound, you realize that…

virus attack meme

If you’ve ever experienced this dreadful way of being informed that your computer has been infected with a virus, you know about the mental stress that it’s capable of creating. However, before you start looking for a solution to the problem, it’s important that you know what a malware actually is, and whether it is any different from viruses and Trojan horses.

The Wild World Of Malware

Let me tell you from the start that differentiating between a virus and trojan horse is rather complicated. Viruses and Trojan horses are subtypes of Malware. So first, let’s understand malware.

Recommended Video for you:

If you wish to buy/license this video, please write to us at admin@scienceabc.com.

What Is A Malware?

virus malware

Malware is a type of software (a piece of code) that is written specifically to infect or harm the system on which it runs (i.e. the host system). It’s basically an umbrella term used to refer to a wide range of intrusive or disruptive types of software that can adversely affect the performance of your system.

Malware can serve many purposes; it may be intended to spy on or steal information from your system, to cause harm, or to extort payment. What makes malware even more dangerous is that it’s often embedded in, or disguised as, regular non-malicious files.

Malware can include viruses, adware, nagware, spyware, worms, trojan horses, and many other types of malicious software. This means that viruses and Trojan horses are types of malware; they all fall under the category of malware (“malicious software”). This is why it doesn’t make much sense to differentiate malware from a virus; it’s like differentiating a revolver from a weapon. Now let’s look at the difference between a virus and a trojan horse.

Also Read: Are Smartphones Immune To Digital Viruses?

Virus V/s Trojan Horse

A common mistake that a lot of people make is they refer to a Trojan horse or any other malware as a Virus. Although these terms are used interchangeably, they aren’t the same things. Let’s take a look at both of them. First off, Virus!

What Is A Virus?

infected meme

A computer virus, commonly referred to as a ‘virus’, is a type of malware program that attaches itself to an executable program or a file and subsequently travels through other programs and files, infecting files in its wake. Once executed, a virus can harm your computer in many ways; it can replicate files and folders, increase CPU load drastically, steal hard disk space, corrupt data, spam contacts, and do other such unpleasant things.

It should be noted that a virus doesn’t self-replicate; it requires human action to actually have any adverse effects on your computer.

What Is A Trojan Horse?


A Trojan Horse is a particularly nasty type of malicious computer program. Its reputation is such that if someone tells you that their computer has been infected by a Trojan Horse, you know that they’re essentially doomed (provided they don’t have access to fantastic anti-malware program).

A Trojan horse is a malicious program that misrepresents itself and appears to be regular, harmless software. Unfortunately, this has hugely negative effects on the host computer. It happens a bit like this… you see a rather interesting clean-up software that claims to maximize your system’s performance. You realize that your computer does need some cleaning up, so you go ahead and install it.

Bang! Without even knowing it, you just installed a Trojan horse on your computer!

trojan horse meme

The effects of Trojan horses vary; some are purely annoying in nature (they may change your desktop picture or throw your icons in disarray), whereas others may cause serious damage to your computer (spying, stealing or selling information to a third party). Since a Trojan horse also requires human action to infect your computer, your best bet is to not install any software unless it is from a legitimate source.

Malware can be a real pain in the smooth functioning of your ‘computer life’. Therefore, make sure that you have a formidable antivirus program that can protect your system against malware of any kind. Some may seem less dangerous than others, but they’re all annoying and potentially disastrous!

Also Read: Do You Really Need Antivirus Software?

How well do you understand the article above!

Can you answer a few questions based on the article you just read?

References (click to expand)
  1. Computer worm - Wikipedia. Wikipedia
  2. About viruses, worms, and Trojan horses - IU KB. Indiana University
  3. Vangie Beal, (2004) Computer Virus Vs Worm Vs Trojan Horse | Webopedia - Webopedia - webopedia.com
Share This Article

Suggested Reading

Was this article helpful?
Help us make this article better
Scientific discovery can be unexpected and full of chance surprises. Take your own here and learn something new and perhaps surprising!

Follow ScienceABC on Social Media:

About the Author

Ashish is a Science graduate (Bachelor of Science) from Punjabi University (India). He spearheads the content and editorial wing of ScienceABC and manages its official Youtube channel. He’s a Harry Potter fan and tries, in vain, to use spells and charms (Accio! [insert object name]) in real life to get things done. He totally gets why JRR Tolkien would create, from scratch, a language spoken by elves, and tries to bring the same passion in everything he does. A big admirer of Richard Feynman and Nikola Tesla, he obsesses over how thoroughly science dictates every aspect of life… in this universe, at least.