Your browser is not supported. Please update it.

17 August 2018

Autonomous cars getting security act together, say infamous Jeep hackers

Infamous Jeep hackers Charlie Miller and Chris Vasalek have said that the state of self-driving vehicle security is surprisingly good, while presenting at the Black Hat security conference. Now employed by GM’s Cruise subsidiary, the pair are hoping to improve the collective capabilities of the industry, with Vasalek noting that an incident for a competitor will damage them too.

The presentation, available here, is worth diving into. The key takeaways are that the industry has a unique opportunity to harden its systems while very few people have access to the code, ensuring that their systems will be better able to stand up to attack once released into the wild.

This includes hardening the physical access to the vehicle’s subsystems, such as blocking access to data ports and ECUs. Modern cars will have I/O options for diagnostics, which can sometimes let attackers gain direct access to the car’s software, and those are obvious areas of improvement for the automakers to tackle – with proper segmentation and firewalling.

While the plethora of new computational devices used in the testing cars has brought about the faster adoption of automotive-grade Ethernet, the presentation notes that this IP traffic is not yet encrypted in transport, and therefore needs to be protected at either end of the transport cables, as well as all the times it interacts with the legacy and horrendously insecure CAN bus used in cars. However, the pair do warn that most automotive suppliers are not as up to date as modern PCs, and that TCP stacks are non-standard – lacking functional TLS implementations.

External communication, via Bluetooth, WiFi, and cellular, are also noted as major attack risks, although the pair took the time to address the concern of spoofing GPS signals to try and crash cars – noting that the cars don’t rely on GPS for navigation, using the much more accurate on-board sensing systems. They also believe that self-driving cars will be programmed to pull over and stop should they lose connection with a central management system, as a security measure.

Another point presented is that the high cost of the early models will help to keep the devices out of the hands of attackers. The cars used in fleets will also prove problematic for hackers, as they will be in constant motion, and not sitting vulnerably in car parks – where they could be accessed and tampered with.

The pair argue that the mechanics of the software driving these vehicles is “mostly unimportant from a security perspective,” and that you can treat it as a black box that acts on sensor data, regardless of whether it’s a machine-learning system or a mass of procedural code. They argue that attacks against the sensors are the much bigger concern – although that because these cars will be using high definition maps, putting stickers on stop signs to confuse the cameras is going to have very little impact, because the car should already know where that sign is located.

Miller and Vasalek do point to a recent study from Tencent’s Keen Security Lab, in which the attackers made a BMW i3 connect to their rogue cellular base station, and then used this connection to send SMS messages to the car. These texts were enough to compromise the telematics unit, enough to theoretically compromise the CAN network and reprogram ECUs.

However, the two note that the level of work required for attacks like these are significant, and that reprogramming gateways is the most pain-staking portion of such a hack. They add that once such entry has been gained, there is hope that the on-board systems would be able to spot injected malicious messages on the CAN bus, which could let the car stop the attack.

They also warn that because most current self-driving vehicles are based on conventional cars, there is a danger that they could inherit any problems in those base models – which compounds the risk from all the new components and systems added.

Miller and Vasalek envision self-driving vehicles belonging to service providers, such as taxi firms. To this end, this means that the cars should be much easier to maintain and update, as they will be returning to base frequently. Should hardware changes or firmware flashing be required, this cadence is much more accommodating that those you would encounter in private ownership – where most of the battle is getting the customer to bring their cars back to the dealership.

“These modifications may include software or hardware changes.  Any changes that need to be made, including security patches or cryptographic key rotations can be updated at this time.  You can contrast this with production vehicles that, once they are purchased, may never be seen again by the manufacturer. Many times, the manufacturer is hoping to never see the car again, since their objective is to make a perfect product.”

Towards the end of their paper, the pair touch again on the issue of attacking sensors. They warn that “in situations where sensors or data disagree, it should be possible to choose a source of truth based on the quality of the data being received. Some sensors are more reliable and higher quality than others. Other times, you may have a sensor where an object just appeared or disappeared, while another sensor seems more stable. Regardless, it should be possible to determine which sensors is to be believed and acted upon.”