A computer virus is a program which can replicate and attach itself to a program or files infecting the system without its knowledge. It is a type of malicious software that can infect and disrupt computer systems A computer virus can be spread from one host to another by sharing infected files or by downloading infected files from untrusted sources.