31
Vehicle penetration testing An overview

Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Vehicle penetration testing

An overview

Page 2: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Why pen-test a car?

Prepared by JSOF3

Page 3: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Prepared by JSOF4

Page 4: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Has a car ever been hacked?

Prepared by JSOF5

Page 5: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Has a car ever been hacked?

Prepared by JSOF6

Page 6: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Has a car ever been hacked?

Prepared by JSOF7

Page 7: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Has a car ever been hacked?

Prepared by JSOF8

Page 8: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Goals Gain close-range wireless or wired access to any part of the car – for example: instrument cluster, windshields

Gain remote access from any location

Affect safety-critical systems like powertrain (low/high speed)

Prepared by JSOF9

1

2

3

Page 9: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

What’s in a car “Datacenter on wheels”

100+ controllers, 100+ Mloc

Different architectures

Different OS• Qnx, linux, mac..• Real-time operating systems

Different protocols • Ethernet, CAN, etc..

Prepared by JSOF10

Page 10: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Prepared by JSOF11

What’s in a car

Page 11: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Prepared by JSOF12

What’s in a car

Page 12: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Prepared by JSOF13

What’s in a car

Page 13: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Prepared by JSOF14

What’s in a car

Page 14: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Prepared by JSOF15

What’s in a car

Page 15: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Let’s pen-test Infiltrate – “Remote Code Execution”

Lateral movement –”Elevation of Privilege”

(first learn & tool-up)

Prepared by JSOF16

1

2

Page 16: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

1 Infiltrate

Prepared by JSOF30

Page 17: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Attack surface analysis

Prepared by JSOF31

Content parsingBluetoothDisk-on-keyWIFI APUSB

aftermarket[phy]

TPMSWireless keyOtherADAS (vision*)Chargingv2x

CellularGPSWIFI - clientRF Radio

Infiltrate

InfotainmentTelematics OBDII OTHER

Page 18: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Attack surface analysis

Infiltrate

Prepared by JSOF32

Content parsingBluetoothDisk-on-keyWIFI APUSB

aftermarket[phy]

TPMSWireless keyOtherADAS (vision*)Chargingv2x

CellularGPSWIFI - clientRF Radio

InfotainmentTelematics OBDII OTHER

Page 19: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Get in Analyze attack surface for vulnerabilities• Infotainment has been popular and vulnerable

configuration or implementation vulnerabilities• Including memory corruptions issues

Existing vulnerabilities (1-day)• Components don’t have regular updates

• General use OS and components

• 3rd party application

Prepared by JSOF33

Infiltrate

Page 20: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Prepared by JSOF34

Get inInfiltrate

Page 21: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

2 Lateral movement

Prepared by JSOF35

Page 22: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Lateral movement

Exploiting the infotainment system is helpful• GPS & info gathering

• Eavesdropping

• Disturbance

But – not dangerous in a modern car

We want to get to the powertrain

Prepared by JSOF36

Lateral movement

Page 23: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

GatewayIn order to affect the powertrain we need to overcome the gateway

Prepared by JSOF37

Lateral movement

Page 24: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

FirewallThe gateway is effectively a firewall

We need to over-take, or bypass it

Prepared by JSOF38

Lateral movement

Page 25: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

optionsFind a vulnerability in one of the components

Specific messages will pass between domains

Many protocols are too simple

Need to find more complex protocols • That will bypass the gateway

• Or are handled in the gateway

Prepared by JSOF39

Lateral movement

Page 26: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

VulnerabilityCandidates

Gateway proprietary mechanisms & flaws

Transport layers protocols like ISO-TP

Diagnostic protocols like UDS or KWP2000

Proprietary application-level protocols

Software update (OTA/local)

Prepared by JSOF40

Lateral movement

Page 27: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Prepared by JSOF41

Gateway

Lateral movement

Page 28: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Prepared by JSOF44

Page 29: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

What can be done

Defense-in-depth

Secure by design

Treat connected components as compromised by default

Better tools for security auditing

Be open to pen-testing & hacking

Prepared by JSOF45

Physical outcome

Page 30: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Prepared by JSOF47

Page 31: Vehicle penetration testing - Silicon Alps · 9/19/2019  · Be open to pen-testing & hacking 45 Prepared by JSOF Physical outcome. 47 Prepared by JSOF. Thank You 48 Prepared by JSOF

Thank You

Prepared by JSOF48

[email protected]