The 7 malicious codes are Viruses, Worms, Trojans, Ransomware, Spyware, Adware, and Rootkits.
Rootkits are designed gain privileged access, like root and admin access to a system, which hides it's presence and other malware.
Adware displays unwanted advertisements, often slowing down systems and potentially evening collecting data.
Spyware, secretly monitors user activity and collects sensitive information without your consent.
Ransomware encrypts a victim's files, and demands a ransom payment for decryption, although paying the ransom does not guarantee that the files will be decrypted.
Trojans or Trojan Horses are disguised as useful software, but also carry hidden malicious payloads, and require user execution to infect systems.
Worms are self replicating malware, which spreads across networks without user action, and rapidly infects devices.
And viruses attach to legitimate programs and spread when those programs are executed, which corrupts files and damages systems.
Other notable types of malicious codes are keyloggers, which record your keystrokes and logic bombs that activate under specific conditions.
The deadliest malware was Mydoom2004, which was a worm that spread via email and created a massive botnet that caused around $38 billion dollars in damages by clogging systems and launching DDoS attacks.
And WannaCryptor or WannaCry is also one of the most devastating and ruthless viruses in recent history.
The worst computer virus in history was the MyDoom computer virus in 2004.
The 2004 MyDoom computer virus cost damage that cost $38 billion and spread fast and overloaded servers and also created massive botnets for DDoS attacks.
The 2004 MyDoom computer virus spread rapidly through email attachments and turned infected computers into zombies.
Another worst computer virus in history was the 2017 WannaCry virus.
The 2017 WannaCry virus was a ransomware attack which affected over 200,000 computers in 150 countries, which disrupted healthcare like UK's NHS and even businesses.
The 2017 WannaCry virus encrypted files and demanded ransom payments, and exploited a Windows vulnerability.
And another worst computer virus in history was the 2010 Stuxnet virus.
The Stuxnet 2010 computer virus was a highly sophisticated computer virus worm that physically damaged Iranian nuclear centrifuges, which marked the first cyberweapon targeting industrial control systems.
The Stuxnet 2010 computer virus worm exploited multiple zero-day vulnerabilities to infiltrate Siemens control systems.
And finally another very bad worst computer virus in history was the ILOVEYOU virus that occurred in 2000.
The 2000 ILOVEYOU computer virus infected millions of computers within days and overwrote files and cost billions of dollars, which taught the world about social engineering via email.
The MyDoom computer virus was the absolute worst in history for it's sheer scale and economic cost.
The WannaCry computer virus was also worst in history for it's widespread ransomware impact.
The Stuxnet computer virus was worst in history for demonstrating cyber warfare's ability to cause physical damage.