Brain: The World’s First Computer Virus
In the history of cybersecurity, few names are as significant as Brain, widely recognized as the world’s first computer virus for IBM PC–compatible systems. Created in 1986, Brain marked the beginning of a new era in computing—one where software could spread autonomously and malicious code became a global concern.
The Origins of Brain
Brain was developed by two brothers, Basit Farooq Alvi and Amjad Farooq Alvi, who ran a computer shop in Lahore, Pakistan. At the time, software piracy was rampant. The brothers claimed their motivation was not to cause harm, but to protect their medical software from illegal copying.
To do this, they embedded a program into pirated copies that would silently install itself on floppy disks. Once activated, it replaced the boot sector of the disk—the part that tells a computer how to start—allowing the virus to spread to other disks when used.
How Brain Worked
Brain was a boot sector virus, meaning it infected computers when they were started using an infected floppy disk. Its key characteristics included:
- Stealth techniques: Brain concealed changes to the boot sector, making it difficult to detect.
- Replication: It copied itself to other floppy disks inserted into an infected machine.
- No destructive payload: Unlike later viruses, Brain did not delete files or damage data.
When activated, the virus displayed a message containing the creators’ names, address, and phone number, along with the warning:
“Welcome to the Dungeon (c) 1986 Brain & Amjads (pvt) Ltd.”
This made Brain one of the first examples of malware that openly identified its authors.
Global Impact and Spread
Although created in Pakistan, Brain quickly spread internationally due to the widespread exchange of floppy disks. Within months, it appeared on computers in Europe and the United States, surprising users and researchers alike.
The Alvi brothers reportedly received phone calls from around the world from confused or concerned users, highlighting how quickly software could cross borders—even in the pre-internet era.
Why Brain Matters
Brain is historically important for several reasons:
- It demonstrated that self-replicating code was possible on personal computers.
- It introduced early stealth techniques that would later become standard in malware.
- It prompted the creation of the first antivirus tools and laid the groundwork for the cybersecurity industry.
While earlier self-replicating programs existed on mainframes (such as Creeper in the 1970s), Brain was the first widely recognized PC virus to spread “in the wild.”
Legacy
Today, Brain is often described as benign by modern standards, especially when compared to ransomware, spyware, and worms that cause massive financial and infrastructural damage. However, its creation fundamentally changed how people viewed computer security.
What began as an anti-piracy experiment became a turning point in computing history—proving that software could behave in unexpected, autonomous ways.
Conclusion
Brain may not have been written with malicious intent, but its impact was profound. As the first PC virus, it ushered in decades of innovation, conflict, and research in cybersecurity. Understanding Brain helps us understand where digital threats began—and why protecting computer systems remains critical today.

Duncan is a technology professional with over 20 years experience of working in various IT roles. He has a interest in cyber security, and has a wide range of other skills in radio, electronics and telecommunications.
