Malware basics: viruses, ransomware and how to stay safe
In short: Malware is any software made to harm you or your device: to steal, spy, lock your files or take control. It usually arrives through a trick, such as a fake download or attachment, or through an unpatched flaw. Updates, care with downloads and backups stop most of it.
The simple idea
Malware is short for "malicious software": any program designed to do something to you that you would never agree to. That might be stealing passwords, spying on you, locking your files for a ransom, or quietly using your computer to attack others.
The main types
| Type | What it does | How it spreads |
|---|---|---|
| Virus | Attaches itself to files or programs | When the infected file is opened |
| Worm | Copies itself across networks on its own | Through unpatched flaws, without anyone clicking |
| Trojan | Pretends to be something useful | Fake apps, cracked software, "free" tools |
| Ransomware | Locks your files and demands payment | Phishing, weak remote access, other malware |
| Spyware and infostealers | Secretly collects passwords, cookies and activity | Bundled downloads, malicious extensions |
How it gets onto devices
- Phishing: an email or message with a harmful attachment or link. See phishing basics.
- Fake downloads: "free" versions of paid software, fake updates, unofficial apps and browser extensions.
- Unpatched flaws: attackers use known security holes in out-of-date software, sometimes with no click needed.
- Infected USB drives and shared files.
Signs something is wrong
Malware tries to stay hidden, but common signs include: a sudden slowdown, pop-ups or new toolbars, a changed home page or search engine, friends receiving messages you did not send, security software turned off, or files you cannot open with strange new names.
Real-world example: the "free" video editor
A student wants a paid video editor and downloads a "cracked" copy from a forum. It installs and works perfectly, so nothing seems wrong. In the background, it is an infostealer: it copies the passwords and login cookies saved in the browser and sends them to criminals. A week later, the student's gaming and social media accounts are taken over, even though they "never gave anyone their password". Free cracked software is one of the most common sources of this kind of malware.
Habits that keep you safe
- Update your operating system, browser and apps, ideally automatically.
- Install software only from official stores and makers' websites.
- Be suspicious of unexpected attachments and links, even from people you know.
- Keep built-in protection, such as Microsoft Defender, switched on.
- Use multi-factor authentication, so stolen passwords alone are not enough.
- Keep backups, so ransomware cannot hold your files hostage.
If you think you are infected: disconnect from the internet, run a full scan, then change important passwords from a different, clean device. At work, tell IT straight away: speed matters more than embarrassment.
Key takeaways
- Malware is software built to steal, spy, lock files or take control.
- Main types: viruses, worms, trojans, ransomware and spyware.
- Most infections start with a trick or an unpatched flaw.
- Updates, official downloads, MFA and backups stop most malware.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.