A hacker gains unauthorized access to computer systems to steal or corrupt data, often for the challenge. Hacking is illegal. To prevent hacking, use complex passwords, update security software, install a firewall and antivirus, and be wary of public WiFi and email attachments. Viruses are programs that infect computers without permission and can delete or corrupt data. They spread through email attachments and downloads. Installing antivirus software and keeping it updated prevents viruses. Worms replicate faster than viruses and use system resources to take over computers. Firewalls, antivirus, and disabling JavaScript help prevent worms. Trojans disguise as legitimate software but install malware for remote access to steal data and monitor users.