Actually code that steals private information would be considered Spyware, which is a subcategory of Malware.
Malware is any code that maliciously effects a computer system, including causing crashes, data corruption, spyware, adware, trojan horses, you name it, if it is foul and on your...