Malware & ransomware

First Computer Virus: Creeper, Elk Cloner and Brain Explained

There is no single first computer virus — Creeper, Elk Cloner and Brain each hold a different first. Here is what each one did, who wrote it, and what it taught the security industry.

Cysoro Security TeamPublished · 9 min read
MALWARE HISTORY First Computer Virus Creeper, Elk Cloner and Brain — 1971 to 1986 ELK CLONER 1982 · APPLE II 1971Creeper 1986Brain
Quick answer

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.

YearProgramFirst of its kindHow it spread
1949von Neumann's theoryFirst theory of self-reproducing programsPaper only — nothing built
1971CreeperFirst self-replicating programARPANET, between DEC PDP-10 computers
1974WabbitEarly fork-bomb style replicatorCopied itself until the machine slowed to a halt
1982Elk ClonerFirst PC virus in the wildApple II floppy disks
1983Fred Cohen's paperTerm "computer virus" coinedAcademic publication
1986BrainFirst IBM PC virusFloppy disk boot sectors
1988Morris WormFirst worm to hit the wider internetInternet, exploiting Unix flaws
1989AIDS TrojanFirst ransomwareFloppy disks sent by mail
From theory to epidemic: 1949–19861949von Neumannself-reproducingprograms1971Creeper onARPANET1982Elk ClonerApple II, in the wild1986Brain, firstIBM PC virusFifteen years passed between the first experiment and the first PC epidemic.
The road from von Neumann's theory to the first PC virus epidemic. Illustration by Cysoro.

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.

VirusWorm
Needs a host file?Yes — it attaches to a program or boot sectorNo — it is a standalone program
How it spreadsWhen the infected host runs or bootsOn its own, across a network
Needs user action?Usually — someone runs the infected fileOften no — it exploits a flaw or copies itself
First exampleElk Cloner (1982)Creeper (1971)
Modern exampleFile-infecting malware, macro virusesNetwork 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.
Four lessons the first viruses taught usSharing is the infection routeFloppy disks then; links, attachmentsand USB drives now.Stealth beats noiseBrain hid in sectors marked as badand faked a clean boot sector.Small tricks scale fastOne schoolboy prank became thefirst virus outbreak in history.Detection is never perfectCohen proved in 1987 that noalgorithm catches every virus.
Four lessons from Creeper, Elk Cloner and Brain that still shape defense today. Illustration by Cysoro.

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.

Do not run old virus samplesCuriosity about historic viruses is fine, but never download or run virus samples, even old ones like Brain or Elk Cloner, on a machine you care about. Study them in emulators or read about them in the Malware Museum instead.

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

  1. Wikipedia — History of computer viruses
  2. Wikipedia — Timeline of computer viruses and worms
  3. The Register — The 30-year-old prank that became the first computer virus
  4. Purdue University — Viruses of the 80s
  5. AVG — A Brief History of Viruses and Malware
Written & fact-checked byCysoro Security Team

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.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

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 →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free