There are several ways to categorize malware, but one common method is to categorize by the malware's purpose. Here are several common types: