There Are Three Answers to the First Computer Virus

Three Answers to the First Computer Virus

Creeper (early 1970s), Elk Cloner (1982), and Brain (1986) each have a defensible claim to being the first computer virus, depending on how you define first.

"The first computer virus" doesn't have one correct answer — it has several, depending on which definition you use; three are compared below. Creeper (early 1970s) was one of the first programs documented as moving itself between machines, an experimental demonstration on ARPANET rather than something that spread uncontrolled. Elk Cloner (1982), written by a teenager and spreading between Apple II computers via floppy disk, is widely cited as the first virus to spread in the wild among ordinary users. Brain (1986) is widely cited as the first virus to target MS-DOS PCs specifically, the platform that would soon dominate personal computing. All three claims are defensible, because they're answering slightly different questions — and none of this is the same story as hacking, which is unauthorized access, a distinct concept from self-replicating code.

Self-replicating code, not unauthorized access

A computer virus is code that copies itself, typically by attaching to other programs or files so that the copies travel wherever those files travel next. That's a specific technical behavior: self-replication, riding along with something else that moves between systems.

Hacking is a different concept entirely — unauthorized access to a system, regardless of whether any self-replicating code is involved at all. Someone can hack a system without writing a single line of virus code, and a virus can spread without anyone deliberately breaking into anything. Keeping this distinction explicit matters here specifically because these two histories are easy to conflate into one continuous story when they're actually separate technical concepts with separate, if occasionally overlapping, histories.

Creeper: an experiment on ARPANET, early 1970s

Creeper, written by Bob Thomas, was an experimental program that moved between TENEX computers on the ARPANET, starting to print a file on each machine it reached and then moving on, rather than causing any damage. A companion program, Reaper, was written specifically to chase down and delete Creeper, making the pair an early, deliberate experiment in both self-moving code and a targeted response to it.

Creeper is one of the earliest documented cases of a program designed to move itself between machines. What it wasn't was a virus spreading uncontrolled among unsuspecting users — it was a contained research demonstration, run by people who understood exactly what it was doing and built its own removal tool alongside it.

Elk Cloner: the first virus known to spread in the wild among personal computers, 1982

Elk Cloner was written by Richard Skrenta, then a high-school student, and spread between Apple II computers via floppy disks — an uninfected disk accessed on an infected machine (for example, by listing its catalog) would get a copy, and any machine that later booted from that disk would become infected in turn.

The difference from Creeper is the one that matters most for this particular "first" claim: Elk Cloner spread uncontrolled among ordinary users going about their normal computer use, rather than as a contained demonstration run by people who understood what it was. That's why it's often cited specifically as the first virus to spread in the wild. Its payload was mild by later standards — most of its effects looked like transient glitches, such as inverted or flashing screen text, and it is best known for a short poem it displayed on the 50th boot from an infected disk — but the self-replicating spread across removable media, without anyone's knowledge or consent, was the behavior that mattered.

Brain: the first widely known MS-DOS virus, 1986

Brain was written by brothers Basit and Amjad Farooq Alvi in Pakistan and is widely credited as the first virus to target IBM PC-compatible computers running MS-DOS. It spread through floppy disk boot sectors, infecting the boot sector of floppy disks used in an infected machine, and it included a message identifying the authors by name.

Brain's claim to "first" rests on platform rather than pure chronology — it followed both Creeper and Elk Cloner, but MS-DOS PCs were about to become the dominant computing platform of the following decade. Because of that, Brain is often cited as the start of the IBM PC virus era specifically, a narrower but historically significant claim distinct from being the first self-replicating program in any absolute sense.

A short timeline of self-replicating code

YearMilestoneWhat it was
Early 1970sCreeperOne of the first documented self-moving programs, an experimental demonstration on ARPANET
1982Elk ClonerWidely cited as the first virus to spread in the wild, via Apple II floppy disks
1986BrainWidely cited as the first MS-DOS virus, spreading via infected floppy boot sectors
1988Morris wormA large-scale internet worm incident, followed in mid-November by the creation of the first US computer emergency response team

The table keeps three genuinely distinct claims visible rather than forcing a single winner: one of the first experimental self-moving programs, the first known uncontrolled wild spread among personal computers, and the first widely cited infection of what would become the dominant PC platform. Each is a defensible answer to a slightly different question.

This article covers self-replicating code specifically. Unauthorized intrusion is a related but genuinely separate history that deserves its own account rather than being folded into this one.

Project Inquiry