Technology & Digital Life · Explainer
What is malware? Viruses, ransomware, spyware and how to stay safe
Malware is any software designed to harm you, your device or your data. Here is how the main types work, how they get in and what actually keeps you safe.

Short answerMalware, short for malicious software, is any program designed to damage devices, steal information or take control without permission. It includes viruses, worms, trojans, ransomware, spyware and adware. Most infections start with a phishing message, a fake download or an unpatched device, so keeping software updated, being careful with links and keeping backups are the most effective defences.
Key takeaways
- Malware is any software designed to cause harm or act without your consent.
- Most infections arrive through phishing, fake downloads or outdated software.
- Ransomware locks your files and demands payment.
- Updates, backups and built-in security tools stop most threats.
- If infected, disconnect, scan and change important passwords from a clean device.
Malware in plain English
"Malware" covers any software made to do something bad: delete or encrypt files, spy on what you type, show unwanted ads, or use your device to attack others. Some malware is loud and obvious; much of it tries to stay hidden for as long as possible.
The main types of malware
Viruses
Programs that attach to other files and spread when those files are run or shared. The word is often used loosely for all malware.
Worms
Spread by themselves across networks, exploiting security holes without anyone opening a file.
Trojans
Disguised as something useful, such as a free game, a cracked app or a fake update, but hide harmful code.
Ransomware
Encrypts your files or locks your device and demands payment, often in cryptocurrency, for a key.
Spyware and keyloggers
Quietly record what you do, including passwords and messages.
Adware
Floods you with ads or redirects your browser. Often bundled with free software.
Botnets
Malware that turns many infected devices into a network the attacker controls, used for spam or attacks on websites.
How malware gets onto devices
- Phishing: emails, texts and messages with harmful links or attachments. See how to spot a phishing email.
- Fake downloads: pirated software, fake browser updates and dodgy app stores.
- Unpatched software: attackers exploit known security holes in out-of-date systems.
- Malicious ads and websites: rarely, compromised sites try to trick or exploit visitors.
- USB drives: found or shared drives can carry malware.
- Weak passwords: attackers who get into accounts or remote access tools can install malware directly.
Ransomware: the most damaging threat
Ransomware can lock every file on a computer and spread across a network. Attackers often also steal data and threaten to publish it. Security agencies such as the UK's NCSC and the US CISA advise against paying, because payment doesn't guarantee you get your files back and funds further crime. The best defence is an up-to-date offline or cloud backup, following the 3-2-1 backup rule.
Warning signs of an infection
- Your device suddenly becomes slow or hot, or the battery drains quickly.
- Pop-ups appear even when no browser is open.
- Your browser homepage or search engine changes without your permission.
- Friends receive strange messages from your accounts.
- Security software is turned off and won't turn back on.
- Files are renamed, locked or a ransom note appears.
Many of these have innocent explanations too; our guide to speeding up a slow computer covers the common ones.
How to protect yourself
- Install updates promptly for your operating system, browser and apps.
- Use built-in protection, such as Windows Security on Windows and the protections built into macOS, iOS and Android.
- Download apps only from official stores or the developer's website.
- Think before you click links and attachments, especially unexpected ones.
- Use strong, unique passwords and turn on two-factor authentication.
- Back up regularly, with at least one copy offline or in the cloud.
Do you need antivirus software?
Modern operating systems include capable protection. Windows includes Microsoft Defender, and Apple and Google build malware protection into macOS, iOS and Android. For most home users, keeping that protection switched on and up to date, plus sensible habits, is enough. Third-party security suites can add extra features, but beware of "free scans" advertised in pop-ups, which are often scams themselves.
Phones and tablets
Phones can get malware too, usually through apps from outside official stores, malicious links in texts, or apps that ask for far more permissions than they need. Keep your phone updated, check app permissions, and remove apps you don't recognise. Scam texts pretending to be delivery companies are a common route.
Smart home devices and routers
Routers, cameras and other connected devices can be infected and drafted into botnets, often because they still use default passwords or never get updates. Change default passwords and keep firmware updated, as explained in how to secure your home Wi-Fi router.
What to do if you think you have malware
- Disconnect the device from the internet to stop data leaving and malware spreading.
- Run a full scan with your built-in security tool, or a trusted scanner.
- Change important passwords, starting with email and banking, from a different, clean device.
- Check bank and card statements and tell your bank if anything looks wrong.
- If problems continue, back up your personal files and reset the device to factory settings.
- Get help from a reputable repair service if you are unsure.
If ransomware strikes
Protecting children and older relatives
Many infections start with an innocent click, so a little help goes a long way. Set up automatic updates on family devices, enable parental controls where appropriate, and agree a simple rule: if a message or pop-up asks for money, passwords or a download, check with someone first. Show older relatives what fake "virus alert" pop-ups look like, as these are a common way scammers trick people into calling fake support lines.
Fake tech support scams
A pop-up claims your computer is infected and tells you to call a number, or someone phones claiming to be from a well-known tech company. They then ask to take remote control of your device or for payment. Legitimate companies don't contact people this way. Close the browser, don't call the number, and never give remote access to someone who contacted you unexpectedly.
Workplace and business devices
If you use a work laptop or phone, follow your employer's security policy and report anything suspicious to your IT team straight away. Speed matters, because malware can spread across a business network quickly. Many businesses also run security training, which is worth taking seriously.
Common myths about malware
- "Macs and iPhones can't get malware." They are generally well protected, but not immune.
- "I'd notice if I had malware." Spyware is designed to stay unnoticed.
- "Only risky websites spread malware." Phishing emails and fake updates are far more common routes.
- "Antivirus alone keeps me safe." Updates, backups and careful habits matter just as much.
Malware and online privacy
Spyware and some adware collect data about you. Keeping devices clean is part of protecting your privacy, alongside using strong passwords, reviewing app permissions and being careful about what you share. A VPN can protect your connection on public Wi-Fi, but it won't remove malware.
Final thoughts
Malware comes in many forms, but most infections start the same way: a click, a download or an out-of-date device. Keep everything updated, use built-in protection, think before you click and keep backups, and you will avoid most threats. Explore more practical security guides in Technology & Digital Life on All Informations.
Sources and further reading
These official and reference pages support the key facts in this guide and are good places to read more. All Informations checked every link on 25 November 2026.
Frequently asked questions
What is the difference between a virus and malware?
Malware is the umbrella term for all harmful software. A virus is one type that spreads by attaching to other files.
Can my phone get malware?
Yes, usually through apps from unofficial sources or malicious links. Keep it updated and use official app stores.
Should I pay a ransomware demand?
Security agencies advise against paying. Report it, look for free decryptors and restore from backups.
Is built-in antivirus enough?
For most home users, built-in protection that is switched on and updated, plus careful habits, is enough.
How do I remove malware?
Disconnect, run a full scan, change passwords from a clean device and reset the device if problems continue.





