toolrota

Types of malware: virus, worm, Trojan, spyware and how to protect yourself

"Virus" doesn't cover every kind of malicious software. The main types, how they infect, their signs and steps to clean up and protect yourself.

Serkan Akyürek··3 min read
Types of malware: virus, worm, Trojan, spyware and how to protect yourself – Security & Web

Malware is the general name for software designed to damage your device, steal data or take control. A "virus" is only one type.

Main types

TypeWhat it does
VirusInfects other files and spreads; a file must be opened for it to run
WormSpreads by itself across networks without user action
TrojanLooks like useful software but secretly does harm
SpywareSecretly monitors your activity, keystrokes and passwords
AdwareShows excessive ads and redirects the browser
RansomwareEncrypts files and demands money (see our ransomware guide)
RootkitHides its presence while gaining deep access
BotnetMakes your device part of a remotely controlled network
Crypto minerUses your device's power to mine crypto without permission
Mobile malwareInfects through phone apps

How does it infect?

  • Phishing emails and attachments (see our phishing guide).
  • Software downloaded from untrusted sites, pirated programs.
  • Malicious ads and fake update prompts.
  • Documents containing macros (see our Excel macro guide).
  • USB sticks.
  • Unpatched software with vulnerabilities.
  • Malicious browser extensions (see our Chrome extensions guide).
  • Fake apps and QR code links (see our QR code guide).

Signs

  • The device slows down or heats up unexpectedly.
  • Apps you don't recognise and browser extensions.
  • The search engine or home page changing; many pop-up ads.
  • Battery drains quickly, data use rises.
  • Files won't open or a ransom note.
  • Unfamiliar transactions or sign-in alerts on your accounts.
  • Antivirus switching itself off.

If you suspect it

  1. Disconnect from the network (turn off Wi-Fi and unplug the cable).
  2. Run a full scan with security software (see our Windows Defender guide); use the offline scan option.
  3. Remove unknown apps and extensions.
  4. Change passwords from another clean device; especially email and bank (see our guide on what to do when an account is hacked).
  5. If needed, reset to factory settings and restore only clean data from backup.
  6. Inform your bank; financial data may have been stolen.

Protection

  1. Keep the system and apps updated.
  2. Keep security software on and current; keep the firewall enabled (see our firewall guide).
  3. Download only from official stores; avoid pirated software.
  4. Don't open unknown attachments and links.
  5. Use strong passwords and two-factor authentication.
  6. Don't do daily work with an admin account.
  7. Take regular backups (see our 3-2-1 backup guide).
  8. Use disk encryption and a screen lock.
  9. Train staff (at work).

On phones

Install only from official app stores, check app permissions (see our app permissions guide), keep the system updated and leave the "install from unknown sources" option off.

Summary

Malware is varied but the principles of protection are similar: updates, caution, backups and layered defence.

Share
Published:
Author
Serkan Akyürek

Serkan Akyürek is the founder and author of toolrota; he writes step-by-step guides on Excel, AI, the cloud, personal finance and digital security.

Related guides

Security & Web
Security & Web3 min read

What is the dark web? The deep web difference, its risks and finding out whether your data is there

There are many myths about the dark web. What it really is, how it differs from the deep web, its risks and how to check whether your personal data is circulating there.

Security & Web3 min read

App permissions on your phone: how to control location, camera, microphone and contacts access

A simple flashlight app asking for your location isn't normal. Which permissions to grant, how to review them and how to spot suspicious apps.

Security & Web3 min read

Downloading software safely: spotting fake download sites and checking a file before you run it

Most "free download" buttons are traps. A guide to finding the official source, checking a downloaded file and what to watch during installation.

Security & Web3 min read

How to spot a phishing email: 10 warning signs and what to do if you click

"Your account has been suspended", "We couldn't deliver your parcel", "Invoice attached". Most attacks start with one click. Learn to spot fake messages in seconds.

Security & Web3 min read

Hacked account? What to do, step by step, to recover email and social media

Your password no longer works and friends are getting strange messages from you. Don't panic. Taking the right steps in the right order is the fastest way to recover your account and limit the damage.

Finance & Fintech3 min read

What is cash flow? How to build a cash flow table for a small business

A profitable business can still go under for lack of cash. How to understand cash flow, forecast it with a simple table and prevent shortfalls.