There are several types of malicious code attacks that a hacker can use to gain entry into or compromise a computer system. In this type of malicious code attack, self-replicating programs are installed, copied, and spread them to other machines:
◦ Trojan horses
◦ Virus
◦ Worms
◦ Logic bombs