SlideShare a Scribd company logo
Automotive communication systems :
     from dependability to security

                      Nicolas NAVET
    Real-Time and Interoperability (TRIO) Group at INRIA Nancy




1st Seminar on Vehicular Communications and Applications (VCA 2011)
NetLab / SnT, Luxembourg - 30/05/2011
Dependability vs Security [from Laprie et al, ref.3]
                                                                  “absence of unauthorized access to,
                                                                     or handling of, system state”
                       “ability to
                        deliver a
                      service that               Dependability                         Security
                     can justifiably
                      be trusted ”




       Availability               Reliability   Safety   Confidentiality   Integrity     Maintenability
  Readiness for Continuity of Absence of    Absence of                     Absence of         Ability to
      usage       service    catastrophic unauthorized                      improper          undergo
                            consequences disclosure of                       system         repairs and
 for authorized                            information                     alterations       evolutions
     users only
                                                                        “unauthorized”
                                                                       system alteration

© 2011 INRIA / RealTime-at-Work - 2
Outline
         1.         Trends in automotive embedded systems: increasing
                    safety requirements and complexity

         2.         The (numerous) impediments/threats to dependability:
                    with a focus on timing constraints verification

         3.         Security against malicious attacks : physical access to the
                    vehicle or wireless access

                           Focus on the verification issues at the development phase
                     of the communication systems - highlight issues, not about solutions



© 2011 INRIA / RealTime-at-Work - 3
Electronics is the driving force of innovation
     Many new functions are safety
  critical: brake assist, cruise control,
   lane keeping, dynamic lights, etc

                                                                                   Picture from [10]

                                  –    90% of new functions use software
                                  –    Electronics: 40% of total costs
                                  –    Huge complexity: 70 ECUs, 2500 signals,
                                      >6 comm. protocols, multi-layered run-time
                                      environment (AUTOSAR), multi-source
                                      software, multi-core CPUs, number of
                                      variants, etc



                              Strong costs and time-to-market constraints !

© 2011 INRIA / RealTime-at-Work - 4
BMW 7 Series networking architecture [10]

                                                          ZGW = central
                                                         gateway
                                                          4 CAN buses
                                                          1 FlexRay Bus
                                                          1 MOST bus
                                                           Several LIN Buses
                                                         (not shown here)
                                                          1 Ethernet bus
                                                          Wireless



                                      Picture from [4]

© 2011 INRIA / RealTime-at-Work - 5
Impediments to safety: complexity!
    Technologies: numerous, complex and not
       explicit. conceived for critical systems
    – e.g.: more than 150 specification documents
       (textual) for Autosar, no two implementations
       can behave identically!
    Size of the system!
    – Number of functional domains, buses, gateways,           Autosar Basic Software
       ECUs, size of code, tasks, wiring, number of
       variants, etc
    Design process
    – Most developments are not done in-house :
       less control on externalized developments
    – Carry-over / Vehicle Family Management : need to
       share/re-use architecture and sub-systems between
       several brands/models with different requirements [2]
    – Optimized solutions for each component / function
       does not lead to a global optimal! [2]                          Wiring harness
                                                               Picture from [4]


© 2011 INRIA / RealTime-at-Work - 6
impediments to safety: cultural/regulatory
              Eg: Automotive embedded systems have not been designed
              with the same standards as airplanes - different tradeoff costs
              / safety :
                     little (no?) fault-tolerance using hardware redundancy
                     Technical parameters are regarded as less important than cost for
                     supplier / components selection [2]
                     ISO2626-2 upcoming standard: no safety quantification, in-house
                     certification accepted
                     Lack well-accepted design process, decision on experience, “gut-
                     feeling”, poor tool support [2]
                     Verification / validation does not ensure 100% coverage


                                      Formal verification is gaining acceptance:
                                         code analysis, timing analysis, etc

© 2011 INRIA / RealTime-at-Work - 7
Threats to safety :
                                  the case of timing constraints




© 2011 INRIA / RealTime-at-Work - 8
Several hundreds of timing constraints:
                  responsiveness, data refresh rate


                                          Constraint :
                                      brake light on < 50ms




   Stimulus                                                       Response




                                               Figure from [12]

© 2011 INRIA / RealTime-at-Work - 9
Why timing constraints may not be respected
                            occasionally?
                                                                                           Middleware
  Lack of precise specification : hard to identify                                              Frame-packing task
                                                                                      5ms
     the right timing requirements for each function
  Lack of traceability : from the architects to the suppliers
  Flaws in the verification:
  – Knowledge of the system and its environment is incomplete:                                      Waiting queue:
          •      What is done by the suppliers?
                                                                                                    - FIFO
          •      Implementation choices really matter and standards do
                 not say everything                                                         2       - Highest Priority
          •      Environmental issues: EMI, α-particles, heat, etc                                    First
          •      Traffic is not always well characterized and/or well modeled               1       - OEM specific
                 e.g. aperiodic traffic ?! see [5]
  –     Testing /simulation alone is not enough                                       CAN Controller
  –     Analysis is not enough too:
          •      Analytic models, especially complex ones, can be wrong                9        6       8
                 (remember “ CAN analysis refuted, revisited, etc” [6] ?!)
          •      They are often much simplified abstraction of reality                                buffer Tx
                 and might become optimistic: neglect FIFOs, hardware limitations
                                                                                    CAN Bus

© 2011 INRIA / RealTime-at-Work - 10
Illustration: Worst-Case Response Times on a CAN bus
                Frame waiting queues are HPF, except ECU1 where queue is FIFO
               the OEM does not know or verification software cannot handle it …


  Analysis Setup:
  -     Typical body network with 15 ECUs
        generated by NETCARbench (freely available)
  -     WCRT computed with NETCAR-Analyzer
        (freely available)




                                         Many high-priority frames are delayed here because
                                            a single ECU (out of 15) has a FIFO queue …


© 2011 INRIA / RealTime-at-Work - 11
Threats to dependability:
                         Faults → errors → service failures [3]
     When faults are introduced in the development phase ?
     –     Requirements capture + Specification + SW development: 99% (infineon [10])
     –     HW development : ε


     Why ? The factors :
     – Technologies: not conceived with dependability as a priority
     – Complexity / size of the system
     – Developments are mainly externalized
     – Strong cost / time-to-market pressure
     – Limited regulatory constraints
     – Limited used of formal methods for verification
     – Human factors
     – etc



© 2011 INRIA / RealTime-at-Work - 12
Security : some identified risks and
                                     scenarios




© 2011 INRIA / RealTime-at-Work - 13
Security : two scenarios
         Case 1 : attackers have physical access to the vehicle
                  −         Easy to get access to internal networks through the On-Board
                            Diagnostic (OBDII) port
                  −         AFAIK, automotive systems are not protected at all
                  −         Open question: should we go beyond basic protection measures?
                            Can we afford it?

        Case 2 : remote access through wireless networks
                −          Strong protection needed against remote attacks because of
                           Internet access, manufacturer telematics services, Car-to-Car &
                           Car-to-infrastructure communication, , etc
                −          Open question: is it the case today ?


© 2011 INRIA / RealTime-at-Work - 14
Physical access to the vehicle:
                                  experiments in [11]
                                       Connection to the OBD-II port

                                        Attacks performed :
       Picture from [11]
                                        – Manipulate speedometer
                                        – Injection of malicious code by re-flashing ECUs
                                           (while driving!)
                                        – Disable communications on the CAN buses
                                        – Disable all lights
                                        – Stop the engine
                                        – Disable / lock (specific) brakes
                                        – Were able to manipulate all ECUs!



© 2011 INRIA / RealTime-at-Work - 15
Attacks through the wireless interfaces
                        Issue: there are a number of ECUs that have access to both the
                           internal networks and wireless networks, e.g. radio player,
                            bluetooth transmitters, wireless tire pressure sensors, etc


                                                                      Code injection in other ECUs,
                          Code injection                              Denial-of-service by flooding,
                          external attack                                   Falsification, etc



                                    Telematics &                     Networks for
                                 Multimedia networks               real-time control
                                  (wired / wireless )               (CAN, FlexRay, Lin)




                                       An “infected” vehicle may contaminate others.


© 2011 INRIA / RealTime-at-Work - 16
Virtualization as a means to enforce security
          Example: Radio-player or Body Control Module with both an infotainment
          (eg., Linux, Android) and an Autosar Virtual Machine (VM)


         Communication between VMs through
         the hypervisor “secure” mechanisms



     Benefits
     –     Security despite open systems                               Hypervisor

     –     Preserve segregation in “vehicle domains”
     –     Best of both worlds in terms of know-how,
                                                          Telematics &                Networks for
           time-to-market
                                                       Multimedia networks          real-time control
     –     etc                                          (wired / wireless )         (CAN, FlexRay, Lin)


           A likely use-case of virtualization – open questions: which technical solutions?
                   role/business model among actors? change wrt aftermarket? etc

© 2011 INRIA / RealTime-at-Work - 17
References




© 2011 INRIA / RealTime-at-Work - 18
References                           [1] N. Navet, F. Simonot-Lion, editors, The Automotive Embedded Systems
                                           Handbook, Industrial Information Technology series, CRC Press / Taylor and
                                           Francis, ISBN 978-0849380266, December 2008.
                                       [2] RealTime-at-Work (RTaW), RTaW-Sim: a Fine-Grained Simulator of Controller
                                           Area Network with Fault-Injection Capabilities, freely available on RTaW web
                                           site: http://www.realtimeatwork.com, 2010.
                                       [3] A. Avizienis, J.C. Laprie, B. Randell, “Dependability and its threat: a
                                           taxonomy", IFIP Congress Topical Sessions 2004.
                                       [4] D. Khan, R. Bril, N. Navet, “Integrating Hardware Limitations in CAN
                                           Schedulability Analysis“, WiP at the 8th IEEE International Workshop on
                                           Factory Communication Systems (WFCS 2010), Nancy, France, May 2010.
                                       [5] D. Khan, N. Navet, B. Bavoux, J. Migge, “Aperiodic Traffic in Response Time
                                           Analyses with Adjustable Safety Level“, IEEE ETFA2009, Mallorca, Spain,
                                           September 22-26, 2009.
                                       [6] R. Davis, A. Burn, R. Bril, and J. Lukkien, “Controller Area Network (CAN)
                                           schedulability analysis: Refuted, revisited and revised”, Real-Time Systems,
                                           vol. 35, pp. 239–272, 2007.
                                       [7] M. D. Natale, “Evaluating message transmission times in Controller Area
                                           Networks without buffer preemption”, in 8th Brazilian Workshop on Real-Time
                                           Systems, 2006.
                                       [8] C. Braun, L. Havet, N. Navet, "NETCARBENCH: a benchmark for techniques
                                           and tools used in the design of automotive communication systems", Proc IFAC
                                           FeT 2007, Toulouse, France, November 7-9, 2007.
                                       [9] R. Kaiser, D. Zöbel, “Quantitative Analysis and Systematic Parametrization of a
                                           Two-Level Real-Time Scheduler”, paper and slides at IEEE ETFA’2009.
                                       [10] P. Leteinturier, “Next Generation Powertrain Microcontrollers”, International
                                           Automotive Electronics Congress, November 2007.
                                       [11] K. Koscher et al, “Experimental Security Analysis of a Modern Automobile”,
                                           IEEE Symposium on Security and Privacy, 2010.
                                       [12] AUTOSAR, “Specification of Timing Extensions”, Release 4.0 Rev 2, 2010.


© 2011 INRIA / RealTime-at-Work - 19
Questions / feedback ?




                                        Please get in touch at :
                                         nicolas.navet@inria.fr



© 2011 INRIA / RealTime-at-Work - 20

More Related Content

PDF
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
PDF
Frame latency evaluation: when simulation and analysis alone are not enough
PDF
Insights on the configuration and performances of SOME/IP Service Discovery
PDF
Practical Use Cases for Ethernet Redundancy
PDF
Simulation-Based Fault Injection as a Verification Oracle for the Engineering...
PDF
Timing verification of real-time automotive Ethernet networks: what can we ex...
PDF
QoS-Predictable SOA on TSN: Insights from a Case-Study
PDF
PEGASE – a robust and efficient tool for worst-case network traversal time ev...
Insights on the Performance and Configuration of AVB and TSN in Automotive Ap...
Frame latency evaluation: when simulation and analysis alone are not enough
Insights on the configuration and performances of SOME/IP Service Discovery
Practical Use Cases for Ethernet Redundancy
Simulation-Based Fault Injection as a Verification Oracle for the Engineering...
Timing verification of real-time automotive Ethernet networks: what can we ex...
QoS-Predictable SOA on TSN: Insights from a Case-Study
PEGASE – a robust and efficient tool for worst-case network traversal time ev...

What's hot (20)

PDF
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
PDF
In‐Vehicle Networking: a Survey and Look Forward
PDF
Early-stage topological and technological choices for TSN-based communication...
PDF
CAN in Automotive Applications: a Look Forward
PDF
Towards Computer-Aided, Iterative TSN-and Ethernet-based E/E Architecture Design
PDF
OVERCOMING KEY CHALLENGES OF TODAY'S COMPLEX SOC: PERFORMANCE OPTIMIZATION AN...
PPTX
SDN Summit - Optical SDN: Virtualizing the Transport Network
DOC
Lakhan_Gupta_CV
PDF
What is-twamp
PDF
Optical Transport SDN by Peter Landon [APRICOT 2015]
PDF
Ethernet OAM (fujitsu)
PDF
60936529 55241452-kpi-3 g-3[1]
PPT
IPTV QoE Monitoring
PPTX
Phase Delivery in Brownfield World at ITSF 2014
PDF
Ethernet vs-mpls-tp-in-the-access-presentation
PPT
Euro india2006 wirelessradioembeddedchallenges
PPTX
PLNOG16: Bringing SDN outside the cloud and datacenter, Johnny Hedlund
PPTX
Automotive network and gateway simulation
PPT
Umts Kpi
PDF
PowerArtist: RTL Design for Power Platform
Do We Really Need TSN in Next-Generation Helicopters? Insights From a Case-Study
In‐Vehicle Networking: a Survey and Look Forward
Early-stage topological and technological choices for TSN-based communication...
CAN in Automotive Applications: a Look Forward
Towards Computer-Aided, Iterative TSN-and Ethernet-based E/E Architecture Design
OVERCOMING KEY CHALLENGES OF TODAY'S COMPLEX SOC: PERFORMANCE OPTIMIZATION AN...
SDN Summit - Optical SDN: Virtualizing the Transport Network
Lakhan_Gupta_CV
What is-twamp
Optical Transport SDN by Peter Landon [APRICOT 2015]
Ethernet OAM (fujitsu)
60936529 55241452-kpi-3 g-3[1]
IPTV QoE Monitoring
Phase Delivery in Brownfield World at ITSF 2014
Ethernet vs-mpls-tp-in-the-access-presentation
Euro india2006 wirelessradioembeddedchallenges
PLNOG16: Bringing SDN outside the cloud and datacenter, Johnny Hedlund
Automotive network and gateway simulation
Umts Kpi
PowerArtist: RTL Design for Power Platform
Ad

Viewers also liked (20)

PPT
Embedding Linux For An Automotive Environment
PDF
erocci - a scalable model-driven API framework, OW2con'16, Paris.
PPTX
Java vs .Net
PDF
01072013 e governance
ODP
Yet Another Three QVT Languages
PPT
Model Transformation A Personal Perspective
ODP
Modeling the OCL Standard Library
ODP
The Importance of Opposites
PPT
UMLX and QVT and ATL
PPTX
PDF
Design Thinking Assignment
PDF
النشاط العلمي - الكهرباء
PPTX
mis
ODP
Embedded OCL Integration and Debugging
PPTX
Ressource numérique Circuit électrique au primaire
PDF
SysML adoption in France
ODP
OCL Specification Status
PDF
OCCIware, an extensible, standard-based XaaS consumer platform to manage ever...
PDF
Timing verification of automotive communication architecture using quantile ...
Embedding Linux For An Automotive Environment
erocci - a scalable model-driven API framework, OW2con'16, Paris.
Java vs .Net
01072013 e governance
Yet Another Three QVT Languages
Model Transformation A Personal Perspective
Modeling the OCL Standard Library
The Importance of Opposites
UMLX and QVT and ATL
Design Thinking Assignment
النشاط العلمي - الكهرباء
mis
Embedded OCL Integration and Debugging
Ressource numérique Circuit électrique au primaire
SysML adoption in France
OCL Specification Status
OCCIware, an extensible, standard-based XaaS consumer platform to manage ever...
Timing verification of automotive communication architecture using quantile ...
Ad

Similar to Automotive communication systems: from dependability to security (20)

PDF
Systèmes embarqués critiques
PDF
Managing application performance for cloud apps bmc
PDF
Oracle - Soluções do device ao Datacenter
PDF
CLASS 2018 - Palestra de Julio Oliveira (Gerente de Tecnologia, Power Grids G...
PDF
Cyber Resiliency 20120420
PDF
Andy huckridge
PDF
Adaptive fault tolerance_in_real_time_cloud_computing
PDF
Security testing in critical systems
PDF
WIRELESS COMPUTING AND IT ECOSYSTEMS
PDF
IRJET- An Efficient Hardware-Oriented Runtime Approach for Stack-Based Softwa...
PPTX
Acceleration_and_Security_draft_v2
PDF
Seize the Cloud - Proven Tactics From a Successful Service Provider
PDF
IRJET- Secure Scheme For Cloud-Based Multimedia Content Storage
PDF
IRJET- Cross Platform Penetration Testing Suite
PDF
Airheads vail 2011 air wave overview
PPTX
Instana Customer Presentation for apm monitoring
PPTX
Bryan Singer S4 Presentation
PDF
Case Study: Datalink—Manage IT monitoring the MSP way
PPTX
Fadi El Moussa Secure Cloud 2012 V2
PDF
IRJET- Analysis of Micro Inversion to Improve Fault Tolerance in High Spe...
Systèmes embarqués critiques
Managing application performance for cloud apps bmc
Oracle - Soluções do device ao Datacenter
CLASS 2018 - Palestra de Julio Oliveira (Gerente de Tecnologia, Power Grids G...
Cyber Resiliency 20120420
Andy huckridge
Adaptive fault tolerance_in_real_time_cloud_computing
Security testing in critical systems
WIRELESS COMPUTING AND IT ECOSYSTEMS
IRJET- An Efficient Hardware-Oriented Runtime Approach for Stack-Based Softwa...
Acceleration_and_Security_draft_v2
Seize the Cloud - Proven Tactics From a Successful Service Provider
IRJET- Secure Scheme For Cloud-Based Multimedia Content Storage
IRJET- Cross Platform Penetration Testing Suite
Airheads vail 2011 air wave overview
Instana Customer Presentation for apm monitoring
Bryan Singer S4 Presentation
Case Study: Datalink—Manage IT monitoring the MSP way
Fadi El Moussa Secure Cloud 2012 V2
IRJET- Analysis of Micro Inversion to Improve Fault Tolerance in High Spe...

More from RealTime-at-Work (RTaW) (17)

PDF
AUTOMOTIVE SYSTEM REQUIREMENTS ON TRAFFIC SHAPING
PDF
What are the relevant differences between Asynchronous (ATS) and Credit Based...
PDF
TSN Timing QoS Mechanisms: What Did We Learn over the Past 10 Years?
PDF
Time-Predictable Communication in Service-Oriented Architecture - What are th...
PDF
Strategies for End-to-End Timing Guarantees in a Centralized Software Defined...
PDF
Signal-Oriented ECUs in a Centralized Service-Oriented Architecture: Scalabil...
PDF
Early-stage Bottleneck Identification and Removal in TSN Networks
PDF
Insights into the performance and configuration of TCP in Automotive Ethernet...
PDF
Insights on the Configuration and Performances of SOME/IP Service Discovery
PDF
What fUML can bring to MBSE?
PDF
Multicore scheduling in automotive ECUs
PDF
Virtualization in Automotive Embedded Systems: an Outlook
PDF
Prototypage virtuel à partir de SysML
PDF
RTaW-Sim Brochure
PDF
Mécanismes de protection AUTOSAR OS
PDF
Overview of RTaW SysML-Companion
PPT
Pushing the limits of Controller Area Network (CAN)
AUTOMOTIVE SYSTEM REQUIREMENTS ON TRAFFIC SHAPING
What are the relevant differences between Asynchronous (ATS) and Credit Based...
TSN Timing QoS Mechanisms: What Did We Learn over the Past 10 Years?
Time-Predictable Communication in Service-Oriented Architecture - What are th...
Strategies for End-to-End Timing Guarantees in a Centralized Software Defined...
Signal-Oriented ECUs in a Centralized Service-Oriented Architecture: Scalabil...
Early-stage Bottleneck Identification and Removal in TSN Networks
Insights into the performance and configuration of TCP in Automotive Ethernet...
Insights on the Configuration and Performances of SOME/IP Service Discovery
What fUML can bring to MBSE?
Multicore scheduling in automotive ECUs
Virtualization in Automotive Embedded Systems: an Outlook
Prototypage virtuel à partir de SysML
RTaW-Sim Brochure
Mécanismes de protection AUTOSAR OS
Overview of RTaW SysML-Companion
Pushing the limits of Controller Area Network (CAN)

Recently uploaded (20)

PPTX
IMMUNITY TYPES PPT.pptx very good , sufficient
PDF
EC290C NL EC290CNL Volvo excavator specs.pdf
PPTX
TOEFL ITP Grammar_ Clausessssssssssssssssss.pptx
PDF
MANDIBLE (1).pdffawffffffffffffffffffffffffffffffffffffffffff
PPTX
capstoneoooooooooooooooooooooooooooooooooo
PDF
Volvo EC290C NL EC290CNL Hydraulic Excavator Specs Manual.pdf
PPT
Your score increases as you pick a category, fill out a long description and ...
PPTX
laws of thermodynamics with diagrams details
PDF
Volvo EC20C Excavator Service maintenance schedules.pdf
PPTX
Intro to ISO 9001 2015.pptx for awareness
PDF
Delivers.ai: 2020–2026 Autonomous Journey
PDF
How Much does a Volvo EC290C NL EC290CNL Weight.pdf
PPTX
laws of thermodynamics with complete explanation
PDF
RPL-ASDC PPT PROGRAM NSDC GOVT SKILLS INDIA
PPTX
UNIT-2(B) Organisavtional Appraisal.pptx
PDF
Caterpillar CAT 311B EXCAVATOR (8GR00001-UP) Operation and Maintenance Manual...
PPT
Mettal aloys and it's application and theri composition
PDF
Renesas R-Car_Cockpit_overview210214-Gen4.pdf
PPTX
Materi Kuliah Umum Prof. Hsien Tsai Wu.pptx
PDF
Journal Meraj.pdfuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
IMMUNITY TYPES PPT.pptx very good , sufficient
EC290C NL EC290CNL Volvo excavator specs.pdf
TOEFL ITP Grammar_ Clausessssssssssssssssss.pptx
MANDIBLE (1).pdffawffffffffffffffffffffffffffffffffffffffffff
capstoneoooooooooooooooooooooooooooooooooo
Volvo EC290C NL EC290CNL Hydraulic Excavator Specs Manual.pdf
Your score increases as you pick a category, fill out a long description and ...
laws of thermodynamics with diagrams details
Volvo EC20C Excavator Service maintenance schedules.pdf
Intro to ISO 9001 2015.pptx for awareness
Delivers.ai: 2020–2026 Autonomous Journey
How Much does a Volvo EC290C NL EC290CNL Weight.pdf
laws of thermodynamics with complete explanation
RPL-ASDC PPT PROGRAM NSDC GOVT SKILLS INDIA
UNIT-2(B) Organisavtional Appraisal.pptx
Caterpillar CAT 311B EXCAVATOR (8GR00001-UP) Operation and Maintenance Manual...
Mettal aloys and it's application and theri composition
Renesas R-Car_Cockpit_overview210214-Gen4.pdf
Materi Kuliah Umum Prof. Hsien Tsai Wu.pptx
Journal Meraj.pdfuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

Automotive communication systems: from dependability to security

  • 1. Automotive communication systems : from dependability to security Nicolas NAVET Real-Time and Interoperability (TRIO) Group at INRIA Nancy 1st Seminar on Vehicular Communications and Applications (VCA 2011) NetLab / SnT, Luxembourg - 30/05/2011
  • 2. Dependability vs Security [from Laprie et al, ref.3] “absence of unauthorized access to, or handling of, system state” “ability to deliver a service that Dependability Security can justifiably be trusted ” Availability Reliability Safety Confidentiality Integrity Maintenability Readiness for Continuity of Absence of Absence of Absence of Ability to usage service catastrophic unauthorized improper undergo consequences disclosure of system repairs and for authorized information alterations evolutions users only “unauthorized” system alteration © 2011 INRIA / RealTime-at-Work - 2
  • 3. Outline 1. Trends in automotive embedded systems: increasing safety requirements and complexity 2. The (numerous) impediments/threats to dependability: with a focus on timing constraints verification 3. Security against malicious attacks : physical access to the vehicle or wireless access Focus on the verification issues at the development phase of the communication systems - highlight issues, not about solutions © 2011 INRIA / RealTime-at-Work - 3
  • 4. Electronics is the driving force of innovation Many new functions are safety critical: brake assist, cruise control, lane keeping, dynamic lights, etc Picture from [10] – 90% of new functions use software – Electronics: 40% of total costs – Huge complexity: 70 ECUs, 2500 signals, >6 comm. protocols, multi-layered run-time environment (AUTOSAR), multi-source software, multi-core CPUs, number of variants, etc Strong costs and time-to-market constraints ! © 2011 INRIA / RealTime-at-Work - 4
  • 5. BMW 7 Series networking architecture [10] ZGW = central gateway 4 CAN buses 1 FlexRay Bus 1 MOST bus Several LIN Buses (not shown here) 1 Ethernet bus Wireless Picture from [4] © 2011 INRIA / RealTime-at-Work - 5
  • 6. Impediments to safety: complexity! Technologies: numerous, complex and not explicit. conceived for critical systems – e.g.: more than 150 specification documents (textual) for Autosar, no two implementations can behave identically! Size of the system! – Number of functional domains, buses, gateways, Autosar Basic Software ECUs, size of code, tasks, wiring, number of variants, etc Design process – Most developments are not done in-house : less control on externalized developments – Carry-over / Vehicle Family Management : need to share/re-use architecture and sub-systems between several brands/models with different requirements [2] – Optimized solutions for each component / function does not lead to a global optimal! [2] Wiring harness Picture from [4] © 2011 INRIA / RealTime-at-Work - 6
  • 7. impediments to safety: cultural/regulatory Eg: Automotive embedded systems have not been designed with the same standards as airplanes - different tradeoff costs / safety : little (no?) fault-tolerance using hardware redundancy Technical parameters are regarded as less important than cost for supplier / components selection [2] ISO2626-2 upcoming standard: no safety quantification, in-house certification accepted Lack well-accepted design process, decision on experience, “gut- feeling”, poor tool support [2] Verification / validation does not ensure 100% coverage Formal verification is gaining acceptance: code analysis, timing analysis, etc © 2011 INRIA / RealTime-at-Work - 7
  • 8. Threats to safety : the case of timing constraints © 2011 INRIA / RealTime-at-Work - 8
  • 9. Several hundreds of timing constraints: responsiveness, data refresh rate Constraint : brake light on < 50ms Stimulus Response Figure from [12] © 2011 INRIA / RealTime-at-Work - 9
  • 10. Why timing constraints may not be respected occasionally? Middleware Lack of precise specification : hard to identify Frame-packing task 5ms the right timing requirements for each function Lack of traceability : from the architects to the suppliers Flaws in the verification: – Knowledge of the system and its environment is incomplete: Waiting queue: • What is done by the suppliers? - FIFO • Implementation choices really matter and standards do not say everything 2 - Highest Priority • Environmental issues: EMI, α-particles, heat, etc First • Traffic is not always well characterized and/or well modeled 1 - OEM specific e.g. aperiodic traffic ?! see [5] – Testing /simulation alone is not enough CAN Controller – Analysis is not enough too: • Analytic models, especially complex ones, can be wrong 9 6 8 (remember “ CAN analysis refuted, revisited, etc” [6] ?!) • They are often much simplified abstraction of reality buffer Tx and might become optimistic: neglect FIFOs, hardware limitations CAN Bus © 2011 INRIA / RealTime-at-Work - 10
  • 11. Illustration: Worst-Case Response Times on a CAN bus Frame waiting queues are HPF, except ECU1 where queue is FIFO the OEM does not know or verification software cannot handle it … Analysis Setup: - Typical body network with 15 ECUs generated by NETCARbench (freely available) - WCRT computed with NETCAR-Analyzer (freely available) Many high-priority frames are delayed here because a single ECU (out of 15) has a FIFO queue … © 2011 INRIA / RealTime-at-Work - 11
  • 12. Threats to dependability: Faults → errors → service failures [3] When faults are introduced in the development phase ? – Requirements capture + Specification + SW development: 99% (infineon [10]) – HW development : ε Why ? The factors : – Technologies: not conceived with dependability as a priority – Complexity / size of the system – Developments are mainly externalized – Strong cost / time-to-market pressure – Limited regulatory constraints – Limited used of formal methods for verification – Human factors – etc © 2011 INRIA / RealTime-at-Work - 12
  • 13. Security : some identified risks and scenarios © 2011 INRIA / RealTime-at-Work - 13
  • 14. Security : two scenarios Case 1 : attackers have physical access to the vehicle − Easy to get access to internal networks through the On-Board Diagnostic (OBDII) port − AFAIK, automotive systems are not protected at all − Open question: should we go beyond basic protection measures? Can we afford it? Case 2 : remote access through wireless networks − Strong protection needed against remote attacks because of Internet access, manufacturer telematics services, Car-to-Car & Car-to-infrastructure communication, , etc − Open question: is it the case today ? © 2011 INRIA / RealTime-at-Work - 14
  • 15. Physical access to the vehicle: experiments in [11] Connection to the OBD-II port Attacks performed : Picture from [11] – Manipulate speedometer – Injection of malicious code by re-flashing ECUs (while driving!) – Disable communications on the CAN buses – Disable all lights – Stop the engine – Disable / lock (specific) brakes – Were able to manipulate all ECUs! © 2011 INRIA / RealTime-at-Work - 15
  • 16. Attacks through the wireless interfaces Issue: there are a number of ECUs that have access to both the internal networks and wireless networks, e.g. radio player, bluetooth transmitters, wireless tire pressure sensors, etc Code injection in other ECUs, Code injection Denial-of-service by flooding, external attack Falsification, etc Telematics & Networks for Multimedia networks real-time control (wired / wireless ) (CAN, FlexRay, Lin) An “infected” vehicle may contaminate others. © 2011 INRIA / RealTime-at-Work - 16
  • 17. Virtualization as a means to enforce security Example: Radio-player or Body Control Module with both an infotainment (eg., Linux, Android) and an Autosar Virtual Machine (VM) Communication between VMs through the hypervisor “secure” mechanisms Benefits – Security despite open systems Hypervisor – Preserve segregation in “vehicle domains” – Best of both worlds in terms of know-how, Telematics & Networks for time-to-market Multimedia networks real-time control – etc (wired / wireless ) (CAN, FlexRay, Lin) A likely use-case of virtualization – open questions: which technical solutions? role/business model among actors? change wrt aftermarket? etc © 2011 INRIA / RealTime-at-Work - 17
  • 18. References © 2011 INRIA / RealTime-at-Work - 18
  • 19. References [1] N. Navet, F. Simonot-Lion, editors, The Automotive Embedded Systems Handbook, Industrial Information Technology series, CRC Press / Taylor and Francis, ISBN 978-0849380266, December 2008. [2] RealTime-at-Work (RTaW), RTaW-Sim: a Fine-Grained Simulator of Controller Area Network with Fault-Injection Capabilities, freely available on RTaW web site: http://www.realtimeatwork.com, 2010. [3] A. Avizienis, J.C. Laprie, B. Randell, “Dependability and its threat: a taxonomy", IFIP Congress Topical Sessions 2004. [4] D. Khan, R. Bril, N. Navet, “Integrating Hardware Limitations in CAN Schedulability Analysis“, WiP at the 8th IEEE International Workshop on Factory Communication Systems (WFCS 2010), Nancy, France, May 2010. [5] D. Khan, N. Navet, B. Bavoux, J. Migge, “Aperiodic Traffic in Response Time Analyses with Adjustable Safety Level“, IEEE ETFA2009, Mallorca, Spain, September 22-26, 2009. [6] R. Davis, A. Burn, R. Bril, and J. Lukkien, “Controller Area Network (CAN) schedulability analysis: Refuted, revisited and revised”, Real-Time Systems, vol. 35, pp. 239–272, 2007. [7] M. D. Natale, “Evaluating message transmission times in Controller Area Networks without buffer preemption”, in 8th Brazilian Workshop on Real-Time Systems, 2006. [8] C. Braun, L. Havet, N. Navet, "NETCARBENCH: a benchmark for techniques and tools used in the design of automotive communication systems", Proc IFAC FeT 2007, Toulouse, France, November 7-9, 2007. [9] R. Kaiser, D. Zöbel, “Quantitative Analysis and Systematic Parametrization of a Two-Level Real-Time Scheduler”, paper and slides at IEEE ETFA’2009. [10] P. Leteinturier, “Next Generation Powertrain Microcontrollers”, International Automotive Electronics Congress, November 2007. [11] K. Koscher et al, “Experimental Security Analysis of a Modern Automobile”, IEEE Symposium on Security and Privacy, 2010. [12] AUTOSAR, “Specification of Timing Extensions”, Release 4.0 Rev 2, 2010. © 2011 INRIA / RealTime-at-Work - 19
  • 20. Questions / feedback ? Please get in touch at : nicolas.navet@inria.fr © 2011 INRIA / RealTime-at-Work - 20