Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS)...

22
Anastasia Cornelio, Elisa Bragaglia, Cosimo Senni, Walter Nesci Development of Intrusion Detection System for vehicle CAN bus cyber security Technology Innovation - SSEC 14° Workshop Automotive SPIN Italia November 10 th , 2016

Transcript of Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS)...

Page 1: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Anastasia Cornelio, Elisa Bragaglia, Cosimo Senni, Walter Nesci

Development of Intrusion Detection System for vehicle CAN bus cyber security

Technology Innovation - SSEC

14° Workshop Automotive SPIN Italia

November 10th, 2016

Page 2: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Index

■ Introduction

■ The Threat of Dongles

■ Cyber Attacks

Cause an accident

Damage company’s image

Cause a financial loss

■ Intrusion Detection System

■ Security improvement

■ Vehicle Recovery System

14° Workshop Automotive SPIN IDS for vehicle CAN bus cyber security 2

Page 3: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Introduction: Connected vehicles

3 IDS for vehicle CAN bus cyber security

2016 saw the explosion of technologies

and research for connected vehicles.

14° Workshop Automotive SPIN

Page 4: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Introduction: Connected vehicles

4 IDS for vehicle CAN bus cyber security

Shaping the Future of Urban Mobility with the Connected

Vehicle

2016 saw the explosion of technologies

and research for connected vehicles.

14° Workshop Automotive SPIN

Page 5: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Introduction: The big risk

5 IDS for vehicle CAN bus cyber security 14° Workshop Automotive SPIN

Page 6: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

The threat of Dongles

IDS for vehicle CAN bus cyber security 6

OBD PORT

MAIN VEHICLE NETWORKS

On-Board Diagnostics (OBD)

ports, used for diagnostic

purposes, are present on

every vehicle.

Main CAN networks are

exposed on OBD port,

mapped following the SAE

J1962 standard

port.

Also not connected vehicles are subject to the same risk

They are cheap devices

associated also to apps via Wi-

Fi or Bluetooth.

They are used by consumers but also

from insurance companies to monitor

vehicle’s state (e.g. speed, ECUs faults)

14° Workshop Automotive SPIN

Page 7: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

The threat of Dongles

IDS for vehicle CAN bus cyber security 7

OBD PORT

MAIN VEHICLE NETWORKS

Dongles can be easily

controlled by a remote

attacker.

Dongles can be used to

sniff all vehicle

communication and to inject

dangerous messages in

vehicle network.

Also not connected vehicles are subject to the same risks No special controls

are applied on

messages injected

from OBD port

14° Workshop Automotive SPIN

Page 8: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Cyber Attacks I

IDS for vehicle CAN bus cyber security 8

The attacker can overwrite

one or more critical

messages such as:

• engine speed

• brake pedal position

• wheel speed

• acceleration pedal

position

and cause an accident

Cause an accident

ECU

ECU Connected

ECU

Authentic

message

Heavy

message Received

✖ ✔

14° Workshop Automotive SPIN

Page 9: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Cyber Attacks II

IDS for vehicle CAN bus cyber security 9

The attacker can overwrite

one or more messages,

such as:

• Fuel level

• Engine oil temperature

• Displayed wheel or

engine speed

disturbing and annoying

the driver and making him

going to the service without

solving the problem

Damage company’s image

Instrument

Cluster

ECU

Connected

ECU

Authentic

message

Heavy

message Received

✖ ✔

14° Workshop Automotive SPIN

Page 10: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Cyber Attacks III

IDS for vehicle CAN bus cyber security 10

The attacker can inject

messages in order to:

o Tamper anti-theft

strategies, such as:

• Immobilizer

• Door lock off

causing the substitution of

components or the theft of the

vehicle

o Activate optional features

changing vehicle

calibrations, without paying

for them

Cause a financial loss

Immo

ECU

ECU

Connected

ECU

14° Workshop Automotive SPIN

Page 11: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

2. Intrusion Detection System (IDS)

An IDS is a set of SW and/or HW components aimed to:

● monitor the traffic of a network

● raise an alert in case of malicious activities or policy violations

● record the identified intrusions

Security solutions

1. OBD port firewall

A firewall is a device to be mounted behind the OBD port aimed to:

● monitor the incoming CAN frames

● filter out the invalid packets

IDS for vehicle CAN bus cyber security 11 14° Workshop Automotive SPIN

Lock to the gates

Firewall

Video surveillance system

IDS

Different roles in security

n. 102016000109368

Page 12: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

• Check of each CAN frame

• Logging of identified intrusions

IDS: how does it work?

12 IDS for vehicle CAN bus cyber security

Anomaly-based detection techniques

training a preliminary learning phase is required in order to define the

reference normal CAN traffic behavior

execution while monitoring the CAN traffic, the current state is compared with

the previously learned one

14° Workshop Automotive SPIN

IDS

monitoring

IDS

logging

Main tasks

Page 13: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

IDS: how is it implemented?

13 IDS for vehicle CAN bus cyber security 14° Workshop Automotive SPIN

A sequential check triggered by each new CAN frame

Incorrect or Unknown message

Invalid Diagnostic Session

Invalid Rate

Invalid message Counter

Out of Range values

ANOMALY!

Correct Message

New message

NO

NO

NO

NO

NO

YES

YES

YES

YES

YES

Page 14: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

IDS: how is it implemented?

14 IDS for vehicle CAN bus cyber security 14° Workshop Automotive SPIN

A sequential check triggered by periodic event

Denial of Service

Implausible

Vehicle State

ANOMALY!

Correct Message

Periodic event

NO

NO

YES

YES

First frame

Unexpected pattern

NO

YES ANOMALY!

Correct Message

Check of special patterns triggered by one or more CAN frames

Page 15: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Log can be analyzed by OEM

IDS: why is it useful?

15 IDS for vehicle CAN bus cyber security 14° Workshop Automotive SPIN

● Black box: helps to manage liability issues

● Attackers diary: helps to be update on the attacks

● Tampering history: helps to identify calibration tampering

Alarm to driver

● possibility to be advised in case of critical attacks

IDS

monitoring

IDS

logging

Cloud log files

collection

Telematic Box

Periodical log files upload

Tester

Log files download at car service

Page 16: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Cyber Attacks I

IDS for vehicle CAN bus cyber security 16

Attack

• Overwrite vehicle

dynamics messages

Effect

• Affect driver safety

Cause an accident

ECU

ECU Connected

ECU

Authentic

message

Heavy

message

✖ ✔

14° Workshop Automotive SPIN

IDS

Identified anomalies

• Invalid Rate

• Implausible Vehicle State

IDS usefulness

• Log file as Black box,

Attackers and Tampering

diary

Page 17: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Cyber Attacks II

IDS for vehicle CAN bus cyber security 17

Attack

• Overwrite dashboard

related messages

Effect

• Warning lamps

continuously turning on

Damage company’s image

ECU

ECU

Connected

ECU

Authentic

message

Heavy

message

✖ ✔

14° Workshop Automotive SPIN

IDS

Identified anomalies

• Invalid Rate

• Out of Range values

IDS usefulness

• Log file as Black box,

Attackers and Tampering

diary

• Automatic warning lamp

reset

Page 18: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Cyber Attacks III

IDS for vehicle CAN bus cyber security 18

Attack

• Tamper anti-theft strategies

Effect

• Vehicle's theft

Cause a financial loss

ECU

ECU

Connected

ECU

14° Workshop Automotive SPIN

IDS

Identified anomalies

• Invalid special pattern

IDS usefulness

• Log file as Black box,

Attackers and Tampering

diary

• Transmission of GPS

position

• Inhibition of vehicle ignition

on

Page 19: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Coupling IDS with a recovery module

IDS: let's go a step further!

19 IDS for vehicle CAN bus cyber security 14° Workshop Automotive SPIN

Modules deployment

Intrusion Detection System Vehicle Recovery System

Monitoring the CAN

frames transmitted on

the bus

Performing suitable

actions, when an

alert is raised by IDS

Video surveillance system Surveillance agent

Distributed IDS/VRS

Each security critical node hosts the coupled

modules

n. 102016000111869

Page 20: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Recovery characterization

VRS: how could it work?

20 IDS for vehicle CAN bus cyber security

Reach the safety state

Disable the compromised functionality

Ignore the content of threaten CAN ID

Inhibit diagnostic service

14° Workshop Automotive SPIN

Examples of recovery actions:

Compromised vehicle functionality

Threaten feature

Level of attack impact

Driver safety

Vehicle performance

Privacy

Financial

Page 21: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

Conclusions

21 14° Workshop Automotive SPIN IDS for vehicle CAN bus cyber security

Vehicles network vulnerability is increasing due to the enhancement of

connectivity

Cyber attacks are a risk also for low connected vehicles

Intrusion Detection System allows

● monitoring of CAN traffic

● recording of identified anomalies

Starting from IDS anomalies, Vehicle Recovery System is able to perform

suitable strategies to reduce the cyber risk

Page 22: Development of Intrusion Detection System for vehicle CAN ... · Intrusion Detection System (IDS) An IDS is a set of SW and/or HW components aimed to: monitor the traffic of a network

22 IDS for vehicle CAN bus cyber security

Anastasia Cornelio

[email protected]

Elisa Bragaglia

[email protected] Magneti Marelli – Technology Innovation SSEC Via del Timavo 33 - 40134 Bologna, Italy www.magnetimarelli.com

14° Workshop Automotive SPIN