A trojan horse is a piece of code that is created to disrupt the regular functioning of a computer. Infections can spread out quickly and trigger significant damage to both individual computer systems and networks. Some viruses are safe, while others can delete files, corrupt data, and even damage hardware.