Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 231

Computer Virus

Reviewed byCybersecurity entrepreneur & security researcher

What is Computer Virus?

Computer VirusMalicious code that inserts copies of itself into other programs or files and executes when the host is run.


A computer virus is malware that propagates by attaching its code to legitimate executables, documents, or boot sectors. Unlike a worm, it requires a user action — opening a document, running a program, or booting from infected media — to spread further. Once active, a virus may corrupt data, install additional payloads, exfiltrate information, or simply consume resources. Historically dominant in the 1990s and 2000s, viruses are now less common than worms and trojans but still appear in macro documents and infected installers. Defences include up-to-date anti-malware engines, disabling unsigned macros, application allow-listing and timely patching.

Examples

  1. 01

    ILOVEYOU (2000), a VBScript virus spread through email attachments.

  2. 02

    CIH/Chernobyl, which corrupted firmware and disk data on infected PCs.

Frequently asked questions

What is Computer Virus?

Malicious code that inserts copies of itself into other programs or files and executes when the host is run. It belongs to the Malware category of cybersecurity.

What does Computer Virus mean?

Malicious code that inserts copies of itself into other programs or files and executes when the host is run.

How do you defend against Computer Virus?

Defences for Computer Virus typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for Computer Virus?

Common alternative names include: Computer virus, File-infecting virus.

Related terms

See also