Spyware is specifically defined as software that secretly monitors and collects information about users' activities without their knowledge. Unlike malware (malicious software in general) or trojans (which disguise themselves as legitimate software), spyware's primary characteristic is unauthorized surveillance of user behavior.