Cybersecurity: How to devise a winning strategy