Cybersecurity of Connected Autonomous Vehicles : A ranking based approach