According to the New Oxford American Dictionary, spyware is "software that enables a user to obtain covert information about another's computer activities by transmitting data covertly from their hard drive."
Spyware is often included in software in the form of App Telemetry.