A trojan horse (often just called trojan) is a kind of software that is used for malicious purposes. A trojan horse is a special type of malware that pretends to do a certain thing, but in reality, it does something else, such as allow a stranger to read and change the computer's information. In some cases the user notices, in other cases they do not. Spyware programs are examples of programs that work as trojans.