Malicious code is created by hackers and miscreants to destroy or steal data, to appropriate system resources, or attack other systems out of revenge or as a threat to extort money.