Malware and ransomware are types of malicious software that can be installed on your computer by a hacker to steal passwords, spy on online activity, hold files for ransom money, or corrupt devices or personal data. There are multiple ways you can prevent malware installation on your computer, smartphone, and tablet: