A computer virus is malicious software that attaches itself to a file or program and spreads when that file runs — infecting one machine, then copying itself to files, drives and contacts on the next. It is the oldest category of malware and still the word most people reach for when something goes wrong, though what actually hits a business in 2026 is more often its modern descendants: ransomware, info-stealers and remote access trojans. The practical meaning is unchanged either way — malicious code running on a machine that should not have it. This guide covers how viruses and modern malware get in, the signs of an infection, and what stops them.
TL;DR
- A virus is malware that spreads by infecting files and programs; most modern attacks are its newer cousins — ransomware, stealers, trojans.
- The entry routes are attachments, cracked software, malicious downloads and removable drives — email is still the front door.
- Signs of infection: sudden slowness, disabled security tools, unknown programs, files renamed or missing, colleagues receiving odd mail from you.
- Defences stack: updated OS and software, endpoint protection, blocked macros and downloads, offline backups, trained reporting.
- Ransomware — the most damaging virus-family outcome — hit small businesses at an average cost of $56,600 per incident in FY2024-25 (ASD).
What a virus actually is
A virus is code that cannot run on its own. It hides inside something else — a document with macros, an installer, a boot sector — and executes when the host runs. On execution it does its damage (corrupt files, steal passwords, install more malware) and copies itself into other files or onto connected drives, waiting for the next user to carry it along. That self-copying through a host is what technically separates a virus from a worm, which spreads across networks without needing a host file, and from a trojan, which is disguised as legitimate software and does not self-replicate at all.
The distinction matters less day to day than people expect: protection looks the same for all three. What has changed since the era of floppy disks is the payload. A 2026 infection rarely just deletes files — it steals browser passwords and session cookies, or deploys ransomware that encrypts everything and names a price.
How an infection actually happens
| Route | What it looks like | Typical payload |
|---|---|---|
| Email attachment | An invoice, resume or shipping notice with an Office doc or archive attached | Macro-enabled dropper that installs more malware |
| Cracked software | A free version of an expensive tool from a torrent or file-sharing site | Info-stealer bundled in the installer |
| Malicious download | A fake update prompt, browser extension or mobile app | Credential theft or remote access |
| Removable drives | A USB stick plugged in from a trade show or car park | Autorun malware — rarer now, but not gone |
| Website exploit | An unpatched browser or plugin hit by a drive-by download | Malware installed with no click at all |
The common factor is a moment of ordinary behaviour: opening the attachment everyone received, grabbing the free tool, plugging in the stick. That is why the prevention list is mostly about defaults rather than vigilance.
The signs of an infected machine
- Sudden, unexplained slowness or the fan running hot at idle.
- Antivirus or Windows/Mac security settings turned off and unable to turn back on.
- Programs appearing that nobody installed, or browser extensions nobody added.
- Files renamed, missing, or carrying unfamiliar extensions.
- Contacts receiving messages you did not send.
- Browser redirects, new toolbars, or a changed homepage that will not stay changed.
Any of these deserves immediate isolation: disconnect the machine from the network before investigating, so whatever is running cannot reach outward — ransomware, for example, spreads through connected drives and shares.
How to stop viruses and their modern cousins
- Keep operating systems and software updated — patched machines close the door the majority of malware walks through. Patching is also Essential Eight strategy 2 and 3 for exactly this reason.
- Run endpoint protection and leave it enabled — modern endpoint tools catch behaviour, not just known signatures.
- Disable macros in Office documents arriving from outside the organisation; block installs of unapproved software entirely.
- Back up offline and test restores — the control that turns a ransomware event from a negotiation into an inconvenience.
- Train the click. Most infections begin with one convincing message; the reflex to pause, check the sender and report is what security awareness training builds and phishing simulations rehearse. Human risk reporting shows whether the reflex is holding across the team, and a gap assessment confirms the technical layers are really enforced.
FAQ
What is a computer virus in simple terms? Malicious code that hides inside a file or program, runs when you open it, damages or steals something, and copies itself to spread further.
Are viruses still a threat in 2026? Yes — though the word now covers mostly modern payloads: ransomware, password-stealing malware and remote access trojans. The delivery methods are the same; the damage is bigger.
How do computers get viruses? Malicious email attachments, cracked or pirated software, fake updates and downloads, infected USB drives, and unpatched browsers hit by drive-by downloads.
Can a Mac or phone get a virus? Yes. Malware exists for macOS and Android, and phishing affects every platform. The desktop-Windows-only stereotype is out of date; every device that runs apps and opens files is a target.
How do I know if my computer has a virus? Sudden slowness, security tools disabled, unknown programs or browser extensions, missing or renamed files, or contacts receiving mail you did not send.
What should I do if I think my computer is infected? Disconnect it from the network first, then run a full antivirus scan, change passwords from a different device, and tell your IT support — an infection reported early stays one machine.
One last thing
Check three things on your own machine this week: security software is on and current, Office macros are blocked for internet files, and your backup actually ran. Then ask whether your team knows what to do with a suspicious attachment — the answer to that last one is the difference between one cleaned laptop and a week of encrypted servers.