CBSE 2026 results are out, Mukul scored a perfect 100/100 in Computer ScienceSee all toppers →

KwickAcademy Computer Science · 7 min · free

Malware: Viruses, Worms, Trojans, Spyware, Adware and Ransomware

7 min4 KwickClipsFull text belowFree
Next lesson →Kajal Ma'am (MCA), teaching since 2004Remembered in this browser

Malware is software made to damage, steal, spy or take control. A virus needs a host file, a worm spreads by itself and a trojan looks harmless.

Follows the syllabus of: CBSE Class 9 Computer Applications (165), CBSE Class 11 Computer Science (083), CBSE Class 11 Computer Science Essentials (083), CBSE Class 11 Information Technology (802)

On screen in this lesson

What is malware?

Malware = malicious software
Made to damage, steal, spy or take control
Enters through downloads, links, attachments or pen drives

Six types at a glance

TypeKey idea
VirusAttaches to files
WormSpreads by itself
TrojanLooks harmless
SpywareWatches you
AdwareShows ads
RansomwareLocks files

Virus versus worm

PointVirusWorm
Host fileNeededNot needed
SpreadsWhen openedBy itself
Main harmDamages filesUses bandwidth

Spyware and adware

Spyware secretly collects your information
Keylogger: records every key you press
Adware floods you with ads and pop-ups
Adware may change your home page

Signs of infection

Very slow; battery or data drain fast
Pop-ups even with no browser open
Unknown apps or a changed home page
Files missing or will not open
Friends get messages you never sent

Pause and predict

ClueWhich malware?
Files locked, note?
Ads after free app?
Password stolen?
Network slows alone?

Quick answers

What is the main difference between a virus and a worm?

A virus needs a host file; a worm spreads by itself.

Should you pay a ransom?

No. Report it at cybercrime.gov.in instead.

KwickClips from this lesson

Short clips, one idea each. Good for revision the night before.

The full lesson, in text

Hello students, welcome to Kwickprep. You download a free game, and next morning all your photos are locked. What happened? Your device caught malware. Today we will see how six types of malware spread and what they do. We will also learn the signs of infection, how to remove malware and how to prevent it.

First, the word. Malware is short for malicious software, which means software made to cause harm. It can damage files, steal data or spy on you. It can also take control of your device or demand money. Malware usually needs a way in, such as a download, a link or a pen drive.

Here are the six types we will study. A virus attaches itself to a file. A worm copies itself across a network on its own. A trojan hides inside software that looks useful. Spyware secretly watches what you do. Adware floods you with advertisements. Ransomware locks your files and demands money.

Watch how a virus spreads. First, a virus attaches itself to a normal file, such as a program or document. The infected file is shared, for example on a pen drive. Nothing happens until someone opens or runs the file. When they do, the virus runs and copies itself into other files. It may also corrupt or delete data.

A worm is different, because it does not need a person to open anything. First, a worm reaches one computer on a network. It looks for other computers with a security weakness. It sends copies of itself to each of them automatically. Each new copy repeats the same steps. Soon the network slows down because of all the copies.

Exams often ask the difference between a virus and a worm. A virus needs a host file, while a worm is a complete program on its own. A virus spreads when a user opens the file, while a worm spreads by itself. A virus mainly damages files, while a worm mainly eats up network speed and storage.

A trojan is named after the wooden horse in an old Greek story, which hid soldiers inside. First, you see a free app, a cracked game or a fake update. It looks useful, so you install it yourself. The app may even work normally. Hidden inside, it opens a back door, which is a secret way for the attacker to control your device. A trojan does not copy itself like a virus.

Spyware and adware often come bundled with free software. Spyware secretly collects information, such as the websites you visit. A keylogger is a kind of spyware that records every key you press, including passwords. Adware shows unwanted advertisements and pop ups again and again. Adware can also change your browser's home page and slow down your device.

Ransomware is one of the most damaging types. First, a fake email with an attachment arrives, perhaps pretending to be a bill. The user opens the attachment. The ransomware encrypts the files, which means it scrambles them so they cannot be opened. A message then demands payment, often in cryptocurrency. Paying gives no guarantee that the files will come back.

How do you know a device may be infected? The device becomes very slow, or the battery and data drain fast. Strange pop ups and ads appear, even when no browser is open. Unknown apps appear, or your home page changes by itself. Files go missing or cannot be opened. Your friends receive messages from you that you never sent.

Pause and predict. Which malware is most likely? Your files suddenly have strange names and a payment note appears, so it is ransomware. Ads keep popping up after installing a free wallpaper app, so it is adware. A friend's bank password was stolen after she typed it, so a keylogger, which is spyware. The whole school network slows down without anyone opening files, so it is a worm.

If you think a device is infected, act calmly and in order. First, disconnect from the internet, so the malware cannot spread or send data. Run a full scan with trusted antivirus software, which finds and removes malware. Uninstall unknown apps and remove strange browser extensions. Change your passwords from a different, clean device. If nothing works, restore files from a backup or reset the device.

Ransomware needs extra care. Do not pay the ransom, because criminals may never unlock your files. Unplug any backup drives, so they are not encrypted too. Report the attack on India's national cyber crime portal, cybercrime dot gov dot in. Organisations should also report it to cert in, the national team that handles cyber security incidents.

Prevention is always better than cure. Keep your operating system and apps updated, because updates fix security weaknesses. Keep antivirus and the firewall switched on, where a firewall is a guard that blocks unwanted network traffic. Download apps only from official app stores. Do not open unknown attachments or links, and scan pen drives before use. Keep regular backups, so ransomware cannot hold your files hostage.

Let us revise what we learned today. Malware is software made to cause harm. A virus needs a host file, a worm spreads by itself, and a trojan pretends to be useful. Spyware watches you, adware floods you with ads, and ransomware locks files for money. Slowness, pop ups and missing files are signs of infection. Disconnect and scan to remove it, and prevent it with updates, antivirus and backups.

Courses that teach this

CourseUnit
CBSE Class 9 Computer Applications (165)Cyber-safety
CBSE Class 11 Computer Science (083)Society, Law and Ethics
CBSE Class 11 Computer Science Essentials (083)Society, Law and Ethics
CBSE Class 11 Information Technology (802)Part B, Unit 2: Networking and Internet
Cambridge IGCSE Grade 9 Computer Science (0478)5. The Internet and Its Uses

Voice-over in this lesson is AI-generated. The script is written and checked by Kajal Ma'am. Boards can revise a syllabus mid-year, so confirm anything you plan around against the official board circular. Keep your passwords, OTPs and ID numbers to yourself — we never ask for them. To reach Kajal Ma'am, use the WhatsApp button; sharing your number there is how we call you back.

Free to watch, no sign-up. Live classes with Kajal Ma'am are the paid course; these lessons stay free either way.

Want a plan that actually fits your board dates?

Ask Kajal Ma'am directly, 20+ years teaching computer science. Free demo class first, no payment.

Talk to Kajal Ma'am on WhatsApp

Or see the Class 12 Computer Science course →

Studying outside India?

We coach CBSE, IGCSE & international students across the globe, one-to-one, in your local time zone.

Visit International →