Computer virus
What is a computer virus?
A computer virus is a type of computer program that, when executed, replicates itself by modifying other computer programs and inserting its own code. If this replication succeeds, the affected areas are then said to be "infected" with a computer virus, a metaphor derived from biological viruses.
Computer viruses generally require a host program. The virus writes its own code into the host program. When the program runs, the written virus program is executed first, causing infection and damage. A computer worm does not need a host program, as it is an independent program or code chunk. Therefore, it is not restricted by the host program, but can run independently and actively carry out attacks.

![© By robert kelly - originally posted to Flickr as city bakeries bridgeton 1936, [CC BY-SA 2.0 (https://creativecommons.org/licenses/by-sa/2.0/)], https://commons.wikimedia.org/wiki/File:City_bakeries_bridgeton_1936.jpg
Source: https://upload.wikimedia.org/wikipedia/commons/a/a9/City_bakeries_bridgeton_1936.jpg Alt Placeholder](https://admin--example_ldp-project--223x.ci2.drunomics.com/sites/example/files/styles/300_225/public/2022-05/channel_bakery.jpg?itok=F2ykdXyW)



