A hack, also known as hacking, is the process by which a malicious third-party cybercriminal gains unauthorized access to a computer system or network. Hacking can be done to steal sensitive data, for monetary gain, or for other malicious purposes. Hacking can also be used for legitimate purposes by various enterprises, and private, or government entities to prevent cyber criminals from committing online crimes.