Nepedia
Back to Discover
Advanced Reader
💻

Computer virus

technology Maturity 11-13 war conflict Next article →

This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

A computer virus is a specific type of malware, which is software designed to cause harm. It functions by modifying other computer programs to insert its own code. This process allows the virus to replicate itself whenever the host program is executed. If this replication is successful, the affected areas are described as being "infected." This term is a metaphor taken from the way biological viruses work in living organisms. Unlike a computer worm, which is an independent program that can run alone, a virus generally requires a host program to function.

Brain-virus
Brain-virus

To understand how a virus operates, one must look at its three primary components. The first is the infection mechanism, also called the infection vector. This is the method the virus uses to spread, such as a search routine that locates new files on a disk. The second component is the trigger, often referred to as a logic bomb. The trigger is a specific condition that determines when the virus will activate. This condition could be a certain date, a specific time, or even the presence of another program. The final part is the payload. The payload is the actual code that performs the intended activity, which can range from sending a message to stealing confidential information.

Scientists and researchers describe the life cycle of a virus through four distinct phases. The first is the dormant phase, where the virus is idle and takes no action after gaining access to a system. It waits for its trigger to occur. Next is the propagation phase, where the virus begins to multiply and replicate itself. During this stage, it may "morph" or change its code to evade detection by security software. The third is the triggering phase, where the virus moves from being dormant to being active based on its programmed condition. Finally, the execution phase occurs when the payload is released to perform its task, such as crashing a system or displaying a message.

The theoretical foundation for these programs began with the work of John von Neumann. In 1949, he gave lectures at the University of Illinois regarding the "Theory and Organization of Complicated Automata." His work described how a computer program could be designed to reproduce itself. Later, in 1972, Veith Risak published an article describing a functional virus written in assembler language for a SIEMENS 4004/35 system. In 1984, Fred Cohen became the first to explicitly use the term "virus" to describe these self-reproducing programs. Cohen also demonstrated that no algorithm can perfectly detect every possible virus.

History shows several significant milestones in the development of computer viruses. In 1971, Bob Thomas created the Creeper program, an experimental self-replicating program on the ARPANET. Creeper would display the message, "I'M THE CREEPER. CATCH ME IF YOU CAN!" In 1982, Richard Skrenta wrote Elk Cloner, which was the first virus to appear "in the wild" on personal computers. This virus spread via floppy disks to Apple DOS 3.3 systems. In 1986, the (c)Brain virus was created in Lahore, Pakistan, by Amjad Farooq Alvi and Basit Farooq Alvi. It was the first boot sector virus for IBM PC compatibles.

1988-03 Universal Peace virus on my Mac
1988-03 Universal Peace virus on my Mac

Viruses can reside in different parts of a computer system to achieve their goals. A resident virus installs itself into the operating system and remains in the RAM while the computer is running. It can intercept requests to access files and redirect them to its own replication module. In contrast, a non-resident virus scans the disk for targets and then exits the memory once it is finished. Some viruses, known as macro viruses, are embedded within documents like Microsoft Word files. These are executed automatically when a user opens the document, which is why suspicious email attachments are dangerous.

ClamWin Wine screenshot
ClamWin Wine screenshot

The impact of these programs is significant and widespread. As of 2013, computer viruses were responsible for causing billions of dollars in economic damage every year. They can target many different systems, including the boot sector of a hard drive or specific operating systems like Windows 95 and Windows NT. Because of these threats, a massive industry of antivirus software has emerged. This industry provides protection for various operating systems to help users defend against these complex digital threats.

705 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Brain-virus.jpg
Brain-virus.jpg
File:1988-03 Universal Peace virus on my Mac.jpg
1988-03 Universal Peace virus on my Mac.jpg
File:ClamWin Wine screenshot.png
ClamWin Wine screenshot.png
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.