Here’s what you need to know about the inner workings of modern spyware and how to stay away from apps that know too much