Spyware is any malware that aims to gather information about a person or organization and send it to another entity in a way that harms the user by violating their privacy, endangering their device's security, or other means. From Wikipedia
A California jury ruled against the Pegasus spyware maker, exposing financial vulnerabilities and forcing disclosures on government clients and hacking methods.