A computer virus is a type of malicious software program ("malware") that, when executed, replicates itself by modifying other computer programs and inserting its own code. When this replication succeeds, the affected area is then said to be "infected". Viruses often cause damage to systems or data.