The first computer virus is usually given as Creeper, an experimental self-replicating program written by Bob Thomas at BBN Technologies in 1971 that spread across ARPANET and displayed the message "I'M THE CREEPER. CATCH ME IF YOU CAN!" Elk Cloner (1982) was the first virus to spread in the wild on personal computers, and Brain (1986) was the first virus for IBM PC compatibles.
Key takeaways
- Creeper (1971) was the first self-replicating program, but it was an experiment, not an attack — and today it would be classed as a worm.
- Elk Cloner (1982) was the first personal computer virus to spread in the wild, carried on shared Apple II floppy disks.
- Brain (1986) was the first IBM PC virus, written by two brothers in Pakistan to stop piracy of their own software.
Ask ten people what the first computer virus was and you will get three different answers — and all three are right. The honest answer is that "first" depends on what you count: the first self-replicating program, the first virus to escape into the wild, or the first virus for the IBM PC.
What was the first computer virus?
The first computer virus is usually given as Creeper, an experimental self-replicating program written by Bob Thomas at BBN Technologies in 1971. It spread between computers on ARPANET, the forerunner of the internet, and displayed the message "I'M THE CREEPER. CATCH ME IF YOU CAN!"
That answer needs a footnote, though. Creeper never attached itself to another program, which is the modern definition of a virus. By today's classification it was a worm: a standalone program that copied itself across a network. The distinction did not exist in 1971, and Creeper is still commonly described as the first computer virus.
The story actually starts earlier, in theory. In 1949, mathematician John von Neumann gave lectures at the University of Illinois on the "Theory and Organization of Complicated Automata," describing how a program could be designed to reproduce itself. He is often called the theoretical father of computer virology. It took another 22 years before anyone built one.
Timeline of the first computer viruses
The first two decades of computer viruses fit on one page. Each milestone answered a different question about what self-replicating code could do.
| Year | Program | First of its kind | How it spread |
|---|---|---|---|
| 1949 | von Neumann's theory | First theory of self-reproducing programs | Paper only — nothing built |
| 1971 | Creeper | First self-replicating program | ARPANET, between DEC PDP-10 computers |
| 1974 | Wabbit | Early fork-bomb style replicator | Copied itself until the machine slowed to a halt |
| 1982 | Elk Cloner | First PC virus in the wild | Apple II floppy disks |
| 1983 | Fred Cohen's paper | Term "computer virus" coined | Academic publication |
| 1986 | Brain | First IBM PC virus | Floppy disk boot sectors |
| 1988 | Morris Worm | First worm to hit the wider internet | Internet, exploiting Unix flaws |
| 1989 | AIDS Trojan | First ransomware | Floppy disks sent by mail |
Creeper (1971): the first self-replicating program
Creeper was written by Bob Thomas at BBN Technologies in 1971 to test whether a running program could move between computers. It infected DEC PDP-10 computers running the TENEX operating system on ARPANET, and on each machine it displayed "I'M THE CREEPER. CATCH ME IF YOU CAN!"
Creeper caused no damage. It was a research experiment, not an attack, built to demonstrate mobile code — software that could hop from one machine to another on a network. Its author, Bob Thomas, was testing John von Neumann's theory in practice, as the history of computer viruses records.
Ray Tomlinson, a colleague at BBN, then wrote a version of Creeper that copied itself instead of moving, leaving a copy behind on each machine. That self-copying version is often counted as the first computer worm. Tomlinson also wrote Reaper, a program whose only job was to hunt down Creeper copies and delete them. Reaper is sometimes called the first antivirus, although the label is debated because Creeper was never malicious.
The lesson of Creeper still applies today: once code can move itself across a network, the network itself becomes the infection route. Modern worms and ransomware use exactly the same idea, with very different intent.
Elk Cloner (1982): the first virus in the wild
Elk Cloner was the first personal computer virus to appear "in the wild" — outside the single computer or lab where it was written. It was created in 1982 by Rich Skrenta, a 15-year-old high school student near Pittsburgh, originally as a prank on his friends.
Elk Cloner targeted the Apple II, then the dominant home computer. It was a boot sector virus: booting from an infected floppy disk loaded it into memory, and it then copied itself onto every clean disk inserted afterwards. Because disks were constantly swapped between friends, schools and computer clubs, it spread widely — the first computer virus outbreak in history.
Every 50th boot, instead of loading normally, the infected machine displayed a short poem: "Elk Cloner: The program with a personality. It will get on all your disks. It will infiltrate your chips. Yes, it's Cloner!" It caused no real harm, and a reboot returned the machine to normal. Skrenta later wrote a utility to remove it.
Elk Cloner proved something new: a virus did not need a network. Shared physical media was enough. That insight shaped decades of malware, from floppy disks to infected USB drives. The Register's interview with Skrenta tells the story in his own words.
The same route still matters today — modern malware still spreads through removable media and shared files, which is why the signs covered in our guide on how to tell if your phone is hacked are worth knowing.
Brain (1986): the first IBM PC virus
Brain, first detected in January 1986, is generally regarded as the first computer virus for the IBM Personal Computer and compatibles. It was a boot sector virus created in Lahore, Pakistan, by brothers Basit Farooq Alvi, then 19, and Amjad Farooq Alvi.
The brothers ran a small software company, Brain Computer Services, and wrote Brain to protect their medical software from being pirated. When an infected floppy disk booted a PC, Brain replaced the boot sector and hid the rest of its code in sectors it marked as bad, so the disk looked normal. While active, it showed anyone who looked the original, clean boot sector — an early form of stealth.
Brain also carried the brothers' names, address and phone number in its code, along with a message asking pirates to contact them. That signature is how researchers traced it back to Lahore. It slowed floppy disks and consumed memory, but it did not destroy data.
The irony is hard to miss: the first PC virus was written as an anti-piracy measure, and its authors later became antivirus developers. Brain also triggered the first PC virus epidemic, because the IBM PC was becoming the standard business computer and floppy disks were everywhere.
Virus vs worm: why the first virus is also a worm
People use "virus" and "worm" as if they were the same thing, but the technical difference is simple and it decides which program counts as the first virus.
| Virus | Worm | |
|---|---|---|
| Needs a host file? | Yes — it attaches to a program or boot sector | No — it is a standalone program |
| How it spreads | When the infected host runs or boots | On its own, across a network |
| Needs user action? | Usually — someone runs the infected file | Often no — it exploits a flaw or copies itself |
| First example | Elk Cloner (1982) | Creeper (1971) |
| Modern example | File-infecting malware, macro viruses | Network worms, self-spreading ransomware |
By that definition, Elk Cloner is the first true virus and Creeper is the first worm. In everyday language both are called viruses, and most security writers still call Creeper the first computer virus. When you see a claim about "the first virus," check which definition the writer is using.
How viruses changed after Brain
The first viruses were pranks, experiments and anti-piracy tools. What followed was a rapid escalation in motive and damage, and it happened within a few years.
In 1987, the Vienna virus became one of the first file infectors, spreading through .COM programs on DOS. In 1988, the Morris Worm — written by 23-year-old Cornell graduate student Robert Tappan Morris — escaped onto the early internet and slowed thousands of machines, becoming the first worm to make national news. In 1989, the AIDS Trojan arrived on floppy disks sent by mail and demanded payment to unlock files: the first ransomware.
Fred Cohen's 1984 paper had already set the theory in place. He defined a virus as "a program that can 'infect' other programs by modifying them to include a possibly evolved copy of itself," and in 1987 he showed there is no algorithm that can perfectly detect all possible viruses. That result still underpins why antivirus software uses signatures, behavior monitoring and heuristics together rather than relying on one perfect test.
By the early 1990s, viruses targeted Microsoft Windows directly — WinVir in April 1992 was the first to target Windows specifically — and the era of hobbyist viruses gave way to organized crime. The prank was over; the business of malware had begun.
What the first viruses teach us today
The first viruses look almost harmless next to modern ransomware, but they established every pattern that still matters. Four lessons from them apply directly to today's defenses.
- Sharing is the infection route. Elk Cloner spread on shared floppies; today it is shared links, email attachments and USB drives. Treat anything that arrives from outside as untrusted until checked.
- Stealth beats noise. Brain hid its code in sectors marked as bad and showed a clean boot sector to anyone who looked. Modern malware hides in the same spirit, which is why behavior monitoring matters as much as file scanning.
- Small tricks scale fast. A 15-year-old's prank became the first outbreak because disks were shared everywhere. A single careless click can still seed an incident across a whole company.
- Detection is never perfect. Cohen proved in 1987 that no algorithm catches every virus. Layers — updates, backups, least privilege and monitoring — are the answer, not one magic product.
How do you protect yourself from modern viruses?
The defenses have changed since 1986, but the basics have not. Keep your operating system and apps updated, because updates close the flaws worms exploit. Run reputable antivirus software and keep it updated. Do not open unexpected attachments or run files from untrusted sources, and keep backups you can restore from if something gets through.
For a small business, the checklist in our small business cybersecurity checklist covers updates, backups and device security in one place.
If you suspect a machine is already infected, our guide on how to tell if your phone is hacked walks through the warning signs and the first steps to take.
The bottom line
There is no single first computer virus. Creeper (1971) was the first self-replicating program, Elk Cloner (1982) was the first virus to spread in the wild on personal computers, and Brain (1986) was the first virus for the IBM PC. Each one marks a different beginning.
What unites them is that none was written to steal money or destroy data — they were an experiment, a prank and an anti-piracy tool. The crime came later, built on the same self-replication trick. Understanding that history helps you see modern malware clearly: the code changes, but the idea of software that copies itself onto the next machine has been with us since 1971. You can check your own site's basic defenses in seconds with the free security headers checker.
Frequently asked questions
What was the first computer virus ever created?
Creeper, written by Bob Thomas at BBN Technologies in 1971, is generally credited as the first self-replicating program. It spread between DEC PDP-10 computers on ARPANET and displayed the message "I'M THE CREEPER. CATCH ME IF YOU CAN!" It caused no damage, and today it would be classed as a worm rather than a virus.
What was the first computer virus in the wild?
Elk Cloner, written in 1982 by 15-year-old Rich Skrenta for the Apple II, was the first personal computer virus to spread outside the lab where it was written. It spread on shared floppy disks and, every 50th boot, displayed a short poem beginning "Elk Cloner: The program with a personality."
What was the first PC virus?
Brain, released in January 1986, was the first virus for IBM PC compatibles. It was a boot sector virus written by brothers Basit and Amjad Farooq Alvi in Lahore, Pakistan, reportedly to stop unauthorized copying of the medical software they had written.
Who created the first computer virus?
It depends on the definition. Bob Thomas wrote Creeper in 1971 as a research experiment. Rich Skrenta wrote Elk Cloner in 1982 as a prank on friends. Basit and Amjad Alvi wrote Brain in 1986 to protect their software from piracy. John von Neumann described the theory of self-reproducing programs back in 1949.
Was Creeper a virus or a worm?
By modern definitions Creeper was a worm, because it was a standalone program that copied itself across a network rather than attaching to a host file. The distinction did not exist in 1971. At the time it was simply called a self-replicating program, and it is still commonly described as the first computer virus.
What did the first viruses actually do?
Very little damage. Creeper only displayed a message. Elk Cloner displayed a poem every 50th boot. Brain slowed floppy disk access and consumed memory. None of them deleted files or stole data. Destructive payloads, theft and ransom demands came later, as virus writing turned from pranks and experiments into crime.
When was the term computer virus coined?
Fred Cohen first used the term in his 1984 paper "Computer Viruses — Theory and Experiments," written at the University of Southern California. The term itself was suggested by his mentor, Leonard Adleman. In 1987 Cohen also showed that no algorithm can perfectly detect every possible virus.
What was the first antivirus software?
There is no single agreed answer. Ray Tomlinson wrote Reaper in the early 1970s to find and delete Creeper, and it is often called the first antivirus. The first dedicated commercial-style antivirus aimed at a specific virus came in 1987, when Bernd Fix wrote a tool to detect and remove the Vienna virus.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the Wikipedia history and timeline of computer viruses, The Register's interview with Rich Skrenta, and Purdue University's account of 1980s viruses.
How we write and fact-check →