Malware is malicious software designed to damage a computer, steal data, or give an attacker control over a system without the owner’s permission. The central question it raises is simple: how does ordinary software turn into a threat, and how do you tell the difference before it is too late? The answer lies in what the software does once it runs, not in what it looks like.
The word malware is an umbrella term, short for malicious software, and it covers everything from viruses and worms to ransomware and spyware. Almost every device that connects to the internet can be affected, from laptops and phones to servers and smart devices. Understanding how malware works is the first step in defending against it.
Key takeaways
- Malware is any software designed to harm a system, steal data or give an attacker unauthorised control.
- It usually arrives through phishing emails, malicious downloads, unpatched vulnerabilities or infected removable drives.
- Malware often hides: slow performance, unexpected pop-ups and changed settings are common warning signs.
- Endpoint protection, patching and least-privilege access together form the core defence.
- Removing malware properly means more than deleting a file: credentials may need resetting and systems may need rebuilding.
What malware actually means
Malware is software written with malicious intent. That intent is what separates it from a buggy program: a bug causes harm by accident, while malware causes harm by design. The harm can take many forms, from encrypting files and stealing passwords to turning a computer into part of a botnet that attacks other systems.
Malware is not a single thing, and that is why the term can be confusing. A virus, a worm and a trojan are all malware, but they spread and behave differently.
Security teams use the umbrella term when the exact type does not matter, and the specific name when it does. Our guide to the security testing tools teams actually need to know explains how defenders check whether their controls catch these threats.
Best for: anyone who uses a connected device, because malware targets home users, small businesses and large organisations alike.
How malware spreads
Malware needs a way in, and attackers use several well-worn routes. Phishing emails remain the most common, tricking people into opening a malicious attachment or clicking a link that downloads malware.
Malicious advertising, known as malvertising, can deliver malware through compromised adverts on legitimate websites. Infected USB drives and other removable media still spread malware, especially in environments where drives are shared.
Software vulnerabilities are another major route. When a program or operating system has a flaw, malware can exploit it without any action from the user, a technique known as a drive-by download.
That is why patching matters so much: every unpatched vulnerability is an open door. Attackers also hide malware in pirated software and fake downloads, which is why software should only come from trusted sources.
Once malware is running, it often tries to spread further. It may copy itself to other machines on the same network, steal credentials to log in elsewhere, or use the infected machine to send phishing emails to the victim’s contacts. This self-propagation is what turns a single infection into an organisation-wide incident.
What malware does once it runs
The first thing most malware does is try to stay hidden. It may disable security software, hide its files, or run only when the computer starts up. Some malware, known as fileless malware, runs entirely in memory and leaves almost no trace on disk, which makes it harder to detect and remove.
After establishing itself, malware carries out its purpose. Spyware records keystrokes, screenshots and browsing activity, sending the results to the attacker. Ransomware encrypts files and demands payment.
Cryptominers use the victim’s processor to mine cryptocurrency, slowing the machine and raising electricity costs. Botnet malware connects the machine to a network of compromised devices that the attacker can command remotely.
Some malware also prepares the ground for a bigger attack. It may steal administrator credentials, map the network, or install a backdoor that lets the attacker return later. This is why a single infection should be treated seriously even if nothing obvious has happened yet: the visible damage may be only the beginning.

Warning signs of a malware infection
Malware often leaves clues, even when it tries to hide. A computer that suddenly runs slowly, overheats, or shows high processor use when idle may be running a cryptominer or other hidden process. Unexpected pop-ups, new toolbars, or a browser homepage that has changed without permission are classic signs of adware or a browser hijacker.
Other signs are subtler. Programs may crash or fail to open, files may be renamed or become inaccessible, and security software may be disabled or unable to update.
Unusual network activity, such as large amounts of data leaving the machine, can indicate that data is being stolen. Friends or colleagues receiving strange emails from your account is another warning sign.
No single symptom proves an infection, and some have innocent explanations, but several together should prompt investigation. When in doubt, treat the machine as compromised: disconnect it from the network and seek help rather than continuing to use it.
How malware is detected
Detection relies on several methods working together. Signature-based detection matches files against a database of known malware, and it is fast and reliable for threats that have been seen before. Behaviour-based detection watches what programs do, flagging actions such as encrypting many files or contacting a known malicious server, even when the malware itself is new.
Modern endpoint protection combines both approaches, along with machine learning models trained on malicious behaviour. Centralised monitoring adds another layer: security teams watch logs from across the organisation for patterns, such as many machines contacting the same suspicious address. For a structured approach to finding weaknesses before attackers do, see our guide to application threat modelling with a practical framework.
Removing malware safely
Removing malware is more than deleting a suspicious file. The first step is isolation: disconnect the machine from the network so the malware cannot spread or send data out. Then run a full scan with up-to-date security software, and follow its guidance on quarantining or removing what it finds.
In many cases, that is not enough. Malware can hide in system files, reinstall itself on reboot, or leave backdoors behind.
Security professionals often recommend rebuilding an infected machine from a clean image rather than trying to clean it in place, because cleaning cannot prove that every trace is gone. Credentials used on the infected machine should be reset, and accounts should be checked for unauthorised changes.
Best for: IT teams and security professionals handling infections in a business, where a missed trace can lead to a second, larger incident.
Malware defences compared
| Defence | What it protects against | Main limitation |
|---|---|---|
| Endpoint protection | Known and behavioural malware on devices | Can be evaded by new or fileless malware |
| Patching | Exploitation of known vulnerabilities | Only works if patches are applied promptly |
| Email filtering | Phishing and malicious attachments | Some messages always get through |
| Least-privilege access | Malware gaining administrator rights | Needs ongoing review to stay effective |
| Backups | Data loss from ransomware and destructive malware | Must be offline and tested to be reliable |
| Application allowlisting | Unknown software running at all | Can be restrictive and needs maintenance |
The table shows a consistent pattern: no single defence is sufficient, and the strongest protection comes from combining several. Each layer covers the gaps left by the others.
Protecting yourself and your organisation
For individuals, the basics are straightforward. Keep the operating system and applications updated, use reputable security software, and be cautious about email attachments, links and downloads.
Only install software from official sources, and avoid pirated software entirely. Use strong, unique passwords with multi-factor authentication, so that stolen credentials alone are not enough for an attacker.
For organisations, the same basics apply at scale, with extra controls. Application allowlisting, which permits only approved software to run, is one of the strongest defences against unknown malware.
Network segmentation limits how far malware can spread, and centralised logging helps the security team spot infections early. Staff training remains essential, because most infections still start with a human action.
Your malware protection checklist
- Keep operating systems and applications patched, with automatic updates where safe.
- Run reputable endpoint protection on every device and keep it updated.
- Use multi-factor authentication on email, remote access and administrator accounts.
- Give users only the access they need, and review administrator rights regularly.
- Filter email for malicious attachments and links, and set up SPF, DKIM and DMARC.
- Back up important data to offline storage and test restores regularly.
- Train staff to recognise phishing and to report suspicious messages.
- Segment the network so an infection cannot reach everything at once.
- Have a plan for isolating and rebuilding an infected machine.
- Monitor logs for unusual activity, such as large data transfers or odd login times.
Common mistakes to avoid
The most common mistake is assuming that security software alone is enough. Malware authors test their creations against popular security tools, and some malware is designed specifically to evade them. Defence in depth, with several overlapping controls, is the only reliable approach.
Frequently asked questions
What is the difference between malware and a virus?
Malware is the umbrella term for all malicious software, while a virus is one specific type: a program that attaches itself to other files and spreads when those files are shared. All viruses are malware, but not all malware is a virus.
Can a phone get malware?
Yes. Phones are computers, and they can be infected through malicious apps, phishing links and unpatched vulnerabilities. Keeping the operating system updated and installing apps only from official stores reduces the risk considerably.
Does a factory reset remove malware?
Usually, yes, for ordinary malware on a phone or computer. However, some sophisticated malware can survive a reset by hiding in firmware, and a reset does not undo any data theft that already happened. Credentials should still be changed after a reset.
How can I tell if an email attachment is malware?
You cannot tell by looking at it. Treat unexpected attachments with suspicion, especially from unknown senders or with surprising subject lines. Verify the sender through a separate channel before opening anything unexpected, and let security software scan attachments first.
Is free antivirus software good enough?
Reputable free security software can provide basic protection, and it is far better than nothing. Paid products usually add features such as behaviour-based detection, ransomware protection and centralised management, which matter more for businesses than for home users.
What should I do if I think my computer has malware?
Disconnect it from the network, do not enter passwords or access sensitive accounts on it, and run a full scan with up-to-date security software. If the infection is serious, or the machine holds important data, seek professional help and consider rebuilding it from a clean image.
Note: this article is general information about defensive security practices. It does not provide instructions for creating or distributing malware, and it should not be used as a substitute for professional security advice tailored to your organisation.







