Defending Vehicles Against Cyberthreats: Challenges and a Detection-Based Solution