Nepedia
Back to Discover
Fluent 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 type of malware, which is software meant to cause harm. It works by finding a host program to live inside. Once inside, the virus writes its own code into that program. When a person runs the host program, the virus code runs first. This allows the virus to infect other parts of the computer. This process is very much like a biological virus in living things.

Brain-virus
Brain-virus

Most viruses have three specific parts to help them work. The first is the infection mechanism, which is the way the virus spreads. The second part is the trigger, sometimes called a logic bomb. This is a rule that tells the virus when to start its work. It might wait for a certain date or a specific time. The third part is the payload, which is the actual code that does something. Some payloads are harmless, like a virus hoax that just sends a message. Other payloads can be destructive by stealing data or breaking files.

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

The idea of self-replicating programs started with math and theory. In 1949, John von Neumann gave lectures about complicated automata. He described how a computer program could be designed to reproduce itself. Later, in 1972, Veith Risak wrote about a working virus for a SIEMENS computer. In 1984, Fred Cohen became the first to explicitly call these programs "viruses." He even showed that no computer program can perfectly detect every single virus.

ClamWin Wine screenshot
ClamWin Wine screenshot

Many famous viruses have appeared throughout history. In 1971, Bob Thomas wrote the Creeper program for the ARPANET. It would display the message, "I'M THE CREEPER. CATCH ME IF YOU CAN!" In 1982, a student named Richard Skrenta wrote Elk Cloner. This was the first virus seen "in the wild," meaning outside of a lab. It spread through floppy disks on Apple computers. In 1986, the (c)Brain virus became the first for IBM PC computers. It was created in Lahore, Pakistan, by Amjad Farooq Alvi and Basit Farooq Alvi.

Viruses can behave in different ways to stay on a computer. Some are resident viruses that stay in the computer's memory while it is on. Others are non-resident and only scan the disk for targets before they exit. Some viruses, called macro viruses, hide inside documents like Word files. When you open the file, the virus code runs automatically. This is why it is important to be careful with email attachments. Today, an entire industry of antivirus software works to protect users from these threats.

418 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.