Common Types of Network Attacks and Prevention Techniques Computer Virus. ... Man in the Middle (MITM) Attack. ... Malware. ... Trojan Horse. ... Computer worm. ... Denial-of-Service (DoS) attacks. ... Phishing. ... Rootkit.