Skip to content

Computer Virus

In plain terms

In everyday use, "virus" refers to any piece of malware. Strictly speaking, it's a precise category: a program that copies itself into other files to spread.

Definition

A computer virus is malicious software that reproduces by inserting a copy of itself into other files or programs, and that spreads when those files are opened or shared. In everyday language the word covers malware as a whole; this entry gives both meanings and points to the exact category in each case.

Not to be confused with

Computer VirusComputer Worm
A program that copies itself into other files and spreads when they are opened or shared.A program that spreads on its own through a network, with no host file and no user action.

What tells them apart: A virus waits for someone to open a file; a worm waits for no one, which is what makes it fast.

Computer VirusTrojan Horse
It reproduces: it copies itself into other files to spread.It doesn't reproduce: you install it yourself, because it presents itself as a useful program.

What tells them apart: A virus spreads from file to file; a trojan horse doesn't need to spread, since it gets itself run by the targeted person.

All the attacks people mix up, side by side: the “X or Y?” comparator

How it works

Strictly speaking, a virus needs a host: it attaches itself to an existing file, and its execution depends on that host being opened. This is what sets it apart from a worm, which moves on its own, and from a trojan horse, which doesn't copy itself. Historically it spread through floppy disks and shared executable files; today the most common form travels through office documents containing macros, which is why office software asks for confirmation before enabling active content. That said, if you're searching for "virus" after noticing a problem, the question that actually concerns you is rarely about terminology: what you observe points to a specific category. Files that no longer open with a payment demand: that's ransomware. A hot, slow machine for no reason: that's cryptojacking. Passwords leaking without you clicking anything: that's spyware or a keylogger. An alarming window selling a cleanup tool: that's scareware — and often, there's no infection at all.

Why it works

A document asks you to enable its content to display, and you click so you can read it. Afterward, the word virus covers so many things that you no longer know what to do: panic replaces diagnosis.

What this attack relies on

Understanding these levers is worth more than memorizing a hundred pages: it is what lets you recognize a scam no one has described yet.

Warning signs

  • Office document asking you to enable macros or active content to display
  • Files or shortcuts appearing in folders you didn't touch
  • Programs launching on their own, or repeated error messages at startup
  • General slowdown with no identifiable cause and no change in use
  • Contacts receiving files from you that you never sent

Example

Fictional example — no real organization or address

Attachment opened, received from a supplier about an invoice.

SECURITY WARNING: Macros have been disabled. This document was created in a newer version. To display its content, click Enable Content.

What gives it away

  • An invoice doesn't need macros to display.
  • The "newer version" excuse is there to make you click.
  • The document wasn't expected.
More fictional examples: Attachment

How to verify

Start from what you observe rather than the word: the symptom points to the category, and each category calls for a different course of action. An up-to-date antivirus scan is a reasonable starting point, provided you know what it's worth: a detection is information, an absence of detection is not a certificate of good health.

The questions to ask, in order

  1. Does a document you received ask you to enable macros or content?

    If yes: Enable nothing, unless you were expecting it and confirmed with the sender through another channel.

  2. Are you seeing a specific symptom: locked files, a slow hot machine, an alert selling a cleaner?

    If yes: Start from the symptom: it points to the page to follow, each with its own steps.

  3. Are your contacts receiving files from you that you didn't send?

    If yes: Disconnect the device from the network and warn them not to open those files.

What to do

Don't enable macros in a document you received, unless you were specifically expecting one from its sender and confirmed it through a channel other than the message itself. Keep the system and software updated, and keep regular backups disconnected from the machine.

If it already happened

Disconnect the device from the network and first identify what you're dealing with, starting from the symptom: the response to ransomware has nothing to do with the one suited to spyware. Stop sharing files from this machine until the situation is established. Report the incident to cybermalveillance.gouv.fr, which will direct you depending on the case.

So it doesn't happen again

  • Never enable macros in a document you weren't expecting.
  • Keep the system and software up to date.
  • Back up regularly to a device you then unplug.

Test yourself on a neighboring attack

There is no simulation for this attack itself. This one is close to it: Photo-editing software that is usually paid for is offered free, with a file to get around activation.

Simulation: Trojan Horse

Frequently asked questions

Can my phone get a virus?
Strictly speaking, spreading by infecting files doesn't match how modern phones work, where each app is isolated from the others. What does exist, though, are malicious apps and excessive permissions — that's where to look, rather than under the word "virus".
Is free antivirus software enough?
The more useful question isn't the price but what you expect from it. Antivirus software stops what's already known; it doesn't replace updates, disconnected backups, or only installing from original sources. Those three measures prevent more situations than a choice of product.
How can I tell which type of malware it is?
By what you observe. Locked files with a ransom demand: ransomware. A hot, slow device: cryptojacking. An aggressive alert selling you a solution: scareware. Compromised accounts with no click on your part: spyware or a keylogger. Each of these entries gives the matching course of action.

Official sources

Also known as: virus, computer infection, PC virus, catching a virus.

This article is part of the Malware family. Last updated: 2026-09-03.

Published under the responsibility of Mountaga Diallo · methodology.