A computer virus is a malicious program that can copy itself and infect computers without permission. It spreads by inserting its code into other files and programs that are then transferred to other computers. Viruses can damage systems by deleting files or reformatting hard drives. Anti-virus software detects viruses by scanning files and memory against a database of known virus signatures and behaviors to identify and remove infections. If a virus infects a system, complete operating system reinstallation may be required after attempts to remove it with anti-virus software fail.