Detecting and Preventing Misbehaving Intruders in the Internet of Vehicles