---
title: Computer virus — history, transitions and spread
description: A computer virus is a program that replicates by inserting its code into a host, such as an executable file, a document macro, or a disk boot record.
---

Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/) · [OCR](https://md.ocr.elamur.ai/free/en/)

This page as HTML: <https://technologia.elamur.ai/free/en/computer-virus/>

# Computer virus

A computer virus is a program that replicates by inserting its code into a host, such as an executable file, a document macro, or a disk boot record. When the infected host runs, the virus can infect other hosts. Infected files and disks can carry it between computers. Some early viruses displayed messages, while others corrupted data or disrupted operations. The damage came from what a virus did after infection, although replication itself could also consume resources. The spread of viruses helped make antivirus scanning and software integrity checks standard practices.

## Origin

- **When:** Early documented examples, 1981–1983
- **Where:** United States
- **Who:** Rich Skrenta (Elk Cloner), Fred Cohen (formal experiments)

## Transitions

| From | To | Years | Why |
|---|---|---|---|
| Floppy-disk boot-sector viruses | Document macro viruses | 1995 – 2000 (5 years) | Widely used office software ran macros embedded in documents; Email attachments and shared files reached more users than exchanged floppy disks; Floppy disks became less important for routine file exchange |
| Computer viruses | Network worms and Trojan-based malware | 1999 – 2010 (11 years) | Widespread internet access let worms spread without an infected host file; Trojan-based delivery let attackers install malware without replicating it inside existing programs; Security updates and safer macro defaults reduced opportunities for some common virus families |

## Spread

- **1982:** United States
- **1986:** Pakistan, United States
- **1999:** Worldwide

## Near future

File-infecting viruses persist. Many ransomware and espionage campaigns now rely on phishing, stolen credentials, or compromised software updates to gain access. Code signing, macro restrictions, and endpoint monitoring help detect or block host modification and unauthorized execution.

## Sources

- [Encyclopaedia Britannica — Computer virus](https://www.britannica.com/technology/computer-virus)
- [Fred Cohen — Computer Viruses: Theory and Experiments](https://doi.org/10.1016/0167-4048(87)90122-2)
- [FBI — The Melissa Virus](https://www.fbi.gov/news/stories/melissa-virus-20th-anniversary-032519)
- [Wikidata](https://www.wikidata.org/wiki/Q485)

For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: https://technologia.elamur.ai/sitemap.xml · https://technologia.elamur.ai/llms.txt · https://md.technologia.elamur.ai/free/en/computer-virus/
