Paving the way to smarter phone security