Under international criminal law, although the use of spyware is not a crime in itself, it may be part of the conduct that forms the basis of war crimes, crimes against humanity, or genocide.
Originally marketed as a tool for combating terrorism and serious crime, spyware has increasingly appeared in military operations around the world.