14
1 © 2015 The MathWorks, Inc. Automatisches Erkennen von Sicherheitslücken mit Polyspace Christian Guß

Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

1© 2015 The MathWorks, Inc.

Automatisches Erkennen von Sicherheitslücken mit PolyspaceChristian Guß

Page 2: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

2

Cybersecurity – Emerging Topic in the Auto Industry

Vehicle-to-Infrastructure

Vehicle-to-Vehicle

eCall

Wifi Hotspot

Wireless Key Remote StartInternet Connection

Bluetooth Connection

Tire Pressure Monitor

On-Board&V2XCommunication

FCA recalls 1.4 Million cars after Jeep hack

§ Growing communication of on-board systems,

sensors and external sites

§ Car becomes another node of IoT

§ Security of automotive embedded systems

increasingly important (possible cyber attacks)

http://www.blogcdn.com/www.autoblog.com/media/2013/02/2014-jeep-cherokee-1.jpg

Page 3: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

3

Embedded Software Security New Challenge

Source: https://www.wired.com/2016/08/jeep-hackers-return-high-speed-steering-acceleration-hacks/

Page 4: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

42016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings

Page 5: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

5

Security is on consumers’ mind

…of automakers admit their organization have been breached in

the past 2 years

…of customers would never buy from automaker if they had been hacked

according to 2016 KPMG Consumer Loss Barometer study

Page 6: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

6

Source: „Industrial Control Systems (ICS) Cyber Emergency Response Team“ (ICS-CERT)

Cybersecurity – Emerging Topic in the Internet of Things

Page 7: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

7

Embedded Software External Interactions

RTOS, Fault Logging,Service Tool

InterfaceControl Algorithm,

Fault Detection,Supervisory Logic

Utility (I/O Driver,

Lookup Table, etc.)

Network

File System

HSM

3rd party software

User Input

Sensors

Page 8: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

8

Embedded Software Security Concerns

RTOS, Fault Logging,Service Tool

InterfaceControl Algorithm,

Fault Detection,Supervisory Logic

Utility (I/O Driver,

Lookup Table, etc.)

Network

File System

HSM

3rd party software

User Input

Sensors

• Incorrect order of network connection operations• Tainted data

• TOCTOU• Vulnerable path manipulation• Use of non-secure temporary file

• Deterministic random output from constant seed• Vulnerable pseudo-random number generator• Sensitive heap memory not cleared before release

• Tainted Data

• Execution of a binary/Load of library from a relative path can be controlled by an external actor

• Tainted Data

• Tainted Data

Page 9: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

9

Polyspace helps you to....

Produce and monitor quality metrics

Enforce coding rules

Identify and prove absence of critical defects

Page 10: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

10

What is “Tainted Data”?

Page 11: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

11

Cybersecurity – Industry Activities & Standards

SAE – Vehicle Cybersecurity Systems Engineering Committee§ SAE J3061 - Cybersecurity Guidebook for Cyber-Physical Vehicle Systems§ SAE J3101 - Requirements for Hardware-Protected Security for Ground

Vehicle Applications (WIP)§ SAE “Cybersecurity Assurance Testing Task Force” (TEVEES18A1)

Coding standards & practices that we observe at automotive customers- CERT C- ISO/IEC TS 17961 – C Secure Coding Rules- CWE – Common Weakness Enumeration- MISRA-C:2012 Amendment 1

Page 12: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

12

Polyspace helps you to....

ü Enforce new coding rules (all of them required or mandatory)

ü 1 new directive [4.14]

ü 13 new rules onü Expressions [12.5]ü Standard libraries [21.13, 21.14, 21.15, 21.16, 21.17, 21.18, 21.19, 21.20]ü Resources [22.7, 22.8, 22.9, 22.10]

ü Changes to existing rules [21.8]

Page 13: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

13

Example of new MISRA directive 4.14

Page 14: Automatisches Erkennen von Sicherheitslücken mit Polyspace · 2016 KPMG Consumer Loss Barometer Study Key Cyber Automotive Findings. 5 Security is on consumers’ mind ... • Tainted

14

Summary

Cybersecurity …

ü enable new future markets

ü entire vehicle lifecycle process

ü by design

Vehicle-to-Infrastructure

Vehicle-to-Vehicle

eCall

Wifi Hotspot

Wireless Key Remote StartInternet Connection

Bluetooth Connection

Tire Pressure Monitor

SecuritybyDesign