This is not the first time Mexico's government has been accused of spying on and harassing citizens whose activities it finds inconvenient.
The Australian government is using spyware. Is that legal?
Rich rewards are on offer to people who can help private companies develop software to exploit vulnerabilities in technology such as smartphones. It might be legal but is it ethical?