NCO (Cyber Olympiad) /Networking, Internet & Cyber Security

Viruses, Worms, Trojans, Malware

Cyber Threats and Attacks · free study notes

Viruses, Worms, Trojans, Malware

(Beginner‑friendly study notes – no jargon, everyday analogies, short sentences, tiny example)


1. What is Malware?

  • Malware = bad software.
  • Like a bad person who tries to break into a house.
  • It can steal information, break things, or make a computer slow.

2. Four Main Types

Type How it Gets In What It Does Everyday Analogy
Virus Attached to a file. Only spreads when you open that file. Copies itself to other files. A contagious cold that spreads when people touch the same spoon.
Worm Runs on its own. Looks for other computers to jump to. Eats up bandwidth, can crash systems. A flood that moves from one house to the next without anyone opening a door.
Trojan Pretends to be useful. You think it’s a game or tool. Gives a hacker back‑door access. A fake delivery truck that actually brings a thief inside.
Other Malware (Spyware, Adware, Ransomware, etc.) Many ways – downloads, phishing, USB sticks. Surveils, shows ads, locks you out, etc. A hidden camera, a pop‑up shop sign, a lock on your front door.

3. How They Spread

  1. Email Attachments – “Open the picture!”
  2. Downloads – “Click here for a free game.”
  3. USB Drives – “Insert and run.”
  4. Network Shares – “Copy files from the shared folder.”

Rule of thumb: Never open anything you didn’t expect.


4. Simple Example: A Tiny Virus

1. You receive an email: “Check out this funny GIF!”
2. You click the attachment → a small program runs.
3. The program looks for other open files on your PC.
4. It copies itself into them (e.g., a document you already have).
5. If you share that document, the virus travels to the next computer.
  • Result: The same GIF file now contains a virus on every computer that receives it.

5. How to Protect Yourself

Action Why it helps
Keep software updated Patches fix holes that malware exploits.
Use antivirus Detects known malware before it runs.
Don’t click unknown links Stops phishing and fake downloads.
Scan USB drives Stops infected removable media.
Back up important files Lets you restore data if ransomware locks it.

6. Quick Quiz

Question Answer
What is the main difference between a virus and a worm? A virus needs a file to spread; a worm spreads by itself.
Which malware pretends to be useful? Trojan.
How can you stop malware from infecting your computer? Use antivirus, update software, avoid suspicious links.

7. Summary

  • Malware = bad software that harms or steals.
  • Virus = spreads with files.
  • Worm = spreads by itself.
  • Trojan = masquerades as something good.
  • Protect yourself: update, use antivirus, be careful with links and drives.

Now you can spot the difference and keep your computer safe!

Your note

Page 1

Doubt hai is topic me?

Free AI teacher se poocho — 24/7, step by step.