17
Pietro Biondi Orbassano, 21/02/2019 Ilaria Matteucci TOUCAN: a proTocol tO secUre Controller Area Network Gianpiero Costantino Giampaolo Bella

TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

  • Upload
    others

  • View
    15

  • Download
    1

Embed Size (px)

Citation preview

Page 1: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

Pietro Biondi

Orbassano, 21/02/2019

Ilaria Matteucci

TOUCAN: a proTocol tO secUre Controller Area Network

Gianpiero CostantinoGiampaolo Bella

Page 2: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

Introduction

�2

Vehicles are Cyber-Physical System (CPS): ➡ Parking sensors ➡ Infotainment system ➡ Wireless connectivity ➡ Lane assistant

Safety-critical system are being exposed to security issues:

➡ Connectivity is the key enabler

Page 3: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

In-vehicle network

�3

Vehicles functionalities are managed by Electronic Control Units (ECU)

ECU communicate via CAN bus protocols

Page 4: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

The CAN bus as is

�4

➡ Max data-message length is 64bit

➡ !Authentication and !Integrity and !Confidentiality

11010110101010010101001010100101010

Cybersecurity analysis:

Page 5: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

Attack on Jeep Cherokee

�5

Remote Exploitation of an Unaltered Passenger Vehicle. C.Miller and C. Valasek, BlackHat 2015

Page 6: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

CANDY: haCking infotAiNment AnDroid sYstems

�6

GenuineAPP

MaliciousAPP

apktool

Smalicode

Smalicode

apktool

CodeInjection

Trojan-horseAPP

apktool

- Adding Permissions- Adding Services

Manifestmanipulation

Trojan-horseAPP

signing

SocialEngineering

Victim

Automotive SPIN 2018

Details on https://sowhat.iit.cnr.it

Page 7: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

CandyRE - haCking infotAiNment AnDroid sYstems Remote Exploitation

�7

Exploiting the Android ADB Debug Port Remote Access vulnerability of an Android based infotainment system to remotely send crafted CAN messages

1) adb debug bridge

VictimAttacker

2) Python Environment

3) CandyRe exploit

4) Can Bus injection

Tachymeter

Details will be provided soon on https://sowhat.iit.cnr.it

Page 8: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

TOUCAN: a proTocol tO secUre Controlled Area Network

Research paper will be presented at AutoSEC@ACM CODASPY 2019

Page 9: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

AUTOSAR Standard Profile

�9

Page 10: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

1010100101010100110110101001010101001101 110110110010110110110010

Payload (40bit) Chaskey tag (24bit)

Design of TOUCAN

�10

Turning CAN frames into TOUCAN frames

SPECK64Chaskey - a very efficient permutation-based MAC algorithm based on ARX robust under tag truncation.

SPECK64 - lightweight block ciphers with a 128bit key

Page 11: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

Risk analysis of TOUCAN

�11

Risk of guessing the tag 2(-|tag|)

Probability of tag collision (Birthday attack) 2(|tag|/2)

|tag| = 24 bit Probability of attack 0,6x10-7

|tag| = 24 bit Boundary limit before collision 4096 frame

Security of SPECK 64/128

27 Rounds No attacks found

Page 12: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

A prototype implementation of TOUCAN

�12

Performances

STM32F407 Discovery

Green led: the payload is Toucan compliant

Red led: the payload is not Toucan compliant

Algortithm Board Speed (mhz) Time(micros)

Chaskey 168 0,429

Speck64 168 5,357

Page 13: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

Comparison with SoTA

�13

Page 14: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

Open Challenge 1: Managing AUTOSAR profile 1

�14

Page 15: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

Open Challenge 2: Managing different network topologies

�15

One Secure Gateway

More Secure Gateways

Different Protocols

Page 16: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

Open Challenge 3: Managing different communication protocols

�16

CAN 2.0 Frame

CAN FD Frame

Page 17: TOUCAN: a proTocol tO secUre Controller Area Network · A prototype implementation of TOUCAN 12 Performances STM32F407 Discovery Green led: the payload is Toucan compliant Red led:

Thank you!

https://sowhat.iit.cnr.itFind us on