An Antivirus is a program designed to protect the system against viruses and malware. The software will defend the system and if it finds malicious behavior, it immediately removes the virus from the system. A virus is a malicious code that can replicate itself and spread itself to other programs in a system for the sole purpose of corrupting the system. Viruses are also referred to as malware. But not all malware are viruses.