Quarantine Specimen analysis info
Catch Me If You Can: Creeper and the First Computer Virus
In 1971 a little program wandered across ARPANET, said hello, and left. Half a century later we still argue about whether it was the first computer virus. Here's the story, and why the answer is "it depends".
- Family
- Creeper
- Class
- worm
- Platform
- DEC PDP-10 · TENEX
A note before we start: there’s no sample to pull apart this time. Creeper’s source code was never published, so this post sticks to what’s documented about what it did, not guesses about how it was written.
The Question That Started This
Section titled “The Question That Started This”Every time I open a fresh VM to look at something nasty, I end up wondering where all of this began. Somebody had to be first. Somebody wrote the first program that copied itself somewhere it wasn’t invited.
So I went looking for “the first computer virus”, expecting a name and a date. What I found instead was an argument that’s been running for about fifty years. Ask five people and you’ll get Creeper, Elk Cloner, Brain, or a lecture on definitions. Annoyingly, they’re all a little bit right.
This post is me working through that argument, starting with the program that usually gets the title.
A Machine That Copies Itself, on Paper
Section titled “A Machine That Copies Itself, on Paper”Before any of the code, there was an idea. In 1949 the mathematician John von Neumann gave a series of lectures about whether a machine could build a copy of itself. Not just the parts, but the instructions for building the parts, so the copy could go on to make copies of its own. His notes were later edited by Arthur Burks and published in 1966 as Theory of Self-Reproducing Automata.
Von Neumann wasn’t thinking about attacks at all. He was curious about life, and about whether something like reproduction could be described as computation. But the central trick is exactly what every virus since has relied on: a program can carry its own blueprint around as data, and data can be copied.
It took about twenty years for someone to try it on real machines.
Creeper: Hello, and Goodbye
Section titled “Creeper: Hello, and Goodbye”The year is 1971. The internet doesn’t exist yet, but its ancestor does: ARPANET, a research network connecting a few dozen computers at universities and labs across the US. Many of those machines are DEC PDP-10s running an operating system called TENEX, which was written at a Cambridge, Massachusetts company called BBN (Bolt Beranek and Newman).
At BBN, an engineer named Bob Thomas got curious about something that still sounds modern: could a running program pick itself up, move to another computer, and carry on running there?
So he wrote one. People at the time called it Creeper. If you happened to be sitting at a TENEX terminal when it arrived, you’d see a single line:
I'M THE CREEPER : CATCH ME IF YOU CANAnd then it was gone, off to the next machine. That’s it. It didn’t delete your files or slow anything down. The worst it did was startle you.
What I find charming is that, at first, Creeper didn’t even multiply. When it moved, it left the old machine behind, so there was only ever one of it wandering the network. It was less an infection and more a traveller.
The Copy That Stayed Behind
Section titled “The Copy That Stayed Behind”Here’s where it gets interesting. Ray Tomlinson, also at BBN (and, fun fact, the person who sent the first network email and gave us the @ sign in addresses), took Creeper and changed one small thing. Instead of moving, his version copied itself and left the original running.
That sounds like a minor tweak, but it’s the whole ballgame. A program that moves is a curiosity. A program that copies itself grows. Every worm outbreak you’ve ever read about runs on that one change.
Reaper, the First Cleanup Crew
Section titled “Reaper, the First Cleanup Crew”Then Tomlinson did something just as important. He wrote a second program, Reaper, which travelled the network hunting for Creeper and deleting it wherever it found it.
That’s usually called the first antivirus, and honestly, I love how quickly it showed up. Self-copying code had barely existed before someone wrote self-copying code to remove it.
It also raised a question I don’t think we’ve ever fully answered. Reaper was itself a program that moved between machines and deleted things. The only difference between it and the thing it hunted was intent. Every security tool with permission to remove things on your machine still lives with that problem.
So Is Creeper the First Virus?
Section titled “So Is Creeper the First Virus?”Here’s the honest answer: probably not, if you’re strict about the word.
In 1983, a graduate student at USC named Fred Cohen demonstrated a self-replicating program on a Unix system during a security seminar. His advisor, Len Adleman (the A in RSA), suggested calling it a “virus”. The next year Cohen published Computer Viruses: Theory and Experiments, and gave us the definition people still use: a virus is a program that infects other programs by modifying them to include a copy of itself.
By that definition Creeper doesn’t qualify. It never touched another program. It was its own thing, travelling on its own, which today we’d call a worm. So the program that usually gets called “the first computer virus” was really the first worm.
Cohen also proved something that should humble anyone in this field: no program can perfectly decide whether any other program is a virus. That’s not an engineering limitation, it’s mathematical. Every antivirus product since has been working around that wall with signatures and heuristics instead of certainty.
Elk Cloner: The First One That Got Out
Section titled “Elk Cloner: The First One That Got Out”If Creeper was a lab experiment, Elk Cloner was the first one that escaped into everyday life.
In 1982, a 15-year-old in Pennsylvania named Rich Skrenta wrote it for the Apple II, mostly as a prank on his friends. It lived in the boot sector of floppy disks. Boot from an infected disk, and it loaded itself into memory. Put a clean disk in afterwards, and it quietly copied itself onto that one too.
It didn’t destroy anything. On every 50th boot it showed a little poem instead, which starts:
Elk Cloner: The program with a personality
What makes it historically important isn’t the code. It’s that it spread among regular people, through regular use, without anyone in a lab watching. That’s the moment viruses stopped being a research topic and became something that just happened to you.
Brain: A Virus With a Phone Number
Section titled “Brain: A Virus With a Phone Number”My favourite of the bunch is Brain, which turned up in January 1986. It was written by two brothers, Basit and Amjad Farooq Alvi, who ran a computer shop called Brain Computer Services in Lahore, Pakistan. It was the first virus for the IBM PC, and it infected the boot sector of 5.25-inch floppy disks.
Two things about it still make me smile.
First, they signed it. Inside the infected boot sector was a message that opened with “Welcome to the Dungeon” and included the brothers’ names, their shop’s address, and their phone numbers. The brothers later said they wrote it to discourage people from pirating the medical software they sold. Imagine a modern malware author leaving their home address in the binary.
Second, it hid. If a program tried to read an infected boot sector, Brain caught the request and handed back a clean copy of the original instead. That’s one of the earliest examples of stealth, the same basic trick rootkits use today.
With no internet to spread on, Brain still made it around the world within months, one swapped floppy at a time.
The Strings They Left Behind
Section titled “The Strings They Left Behind”Normally this is where I’d list hashes and C2 domains. There are no hashes for programs that lived on 1970s minicomputers and 1980s floppy disks, but each of these left behind text you could recognise. Consider these the indicators of a much simpler era.
| Type | Indicator | Note | Copy |
|---|---|---|---|
| other | I'M THE CREEPER : CATCH ME IF YOU CAN | Creeper's greeting on TENEX terminals, 1971 | |
| other | Elk Cloner: The program with a personality | Elk Cloner's poem, every 50th Apple II boot, 1982 | |
| other | Welcome to the Dungeon | Brain's boot-sector message, 1986 | |
| other | (c) Brain | Volume label on Brain-infected floppies |
So Who Was First?
Section titled “So Who Was First?”After all of that, here’s how I’d answer the question if you asked me over coffee:
- The first program that spread itself across a network was Creeper, in 1971.
- The first virus to spread in the wild, among real people, was Elk Cloner, in 1982.
- The first thing actually called a virus, with a real definition, came from Fred Cohen in 1983.
- The first PC virus was Brain, in 1986.
What strikes me most, looking back, is how much of today’s playbook was already sitting there before 1987. Moving between machines, spreading through shared media, hiding from the tools looking for you, and a defender writing code to chase it all down. The technology changed completely. The ideas barely moved.
And it all started with a program that just wanted to say hello.