Blog

Automotive Cybersecurity Protecting Embedded Systems and In-Vehicle Networks

December 4, 2026

Automotive Cybersecurity Protecting Embedded Systems and In-Vehicle Networks

As vehicles develop, they contain an increasing complexity of embedded systems, software, sensors, and networks in order to allow improved vehicle performance. These include engine management, transmission, braking, power steering, navigation, and diagnostics. However, as vehicles become more complex and connected with technologies such as advanced driver assistance systems (ADAS), wireless communication, and software-based functions, additional security risks have been introduced.

Due to the increased connection between vehicle electronics, security is now an essential aspect of automotive engineering. If a security vulnerability exists within vehicle electronics, it could allow unauthorized access to parts of the system or disrupt communication between systems. For example, if a diagnostics tool or software update is poorly secured, sensitive systems within the vehicle may become vulnerable to attack. Therefore, security must be considered at all stages of development, including hardware design, software design, network configuration, and maintenance.

Automotive cybersecurity protects embedded systems, vehicle electronics, communication networks, and data within vehicles from unauthorized access, interference, and cyberattacks. Multiple security methods can be applied to ensure data confidentiality, integrity, and availability within automotive systems. It is therefore important to understand these security methods in automotive engineering, ECU design, embedded software development, and within manufacturers using modern vehicle architecture.

What Is Automotive Cybersecurity?

Automotive cybersecurity is the application of security methods to protect electronic and software-based systems within vehicles. This includes ECUs, embedded software, communication, diagnostics, and connected platforms within the vehicle. It aims to prevent unauthorized access to sensitive systems, unauthorized changes to important information, and disruption to normal operation.

Vehicles may contain many interconnected ECUs, with each ECU controlling specific vehicle functions. This may include engine control, braking, transmission, lighting, and climate control. Communication occurs between ECUs using technologies such as CAN, CAN FD, CAN XL, LIN, and Automotive Ethernet. If these systems are not sufficiently secured, attackers may exploit vulnerabilities within the communications.

Multiple security methods should be applied to provide comprehensive protection. Protection of external connections is insufficient, as vulnerabilities may exist within internal firmware, diagnostics, software updates, and internal communications.

Key Security Areas

The following security areas should be applied to provide secure systems within modern vehicles. Embedded systems security ensures security within the hardware, firmware, and software within vehicle ECUs. In-vehicle communication security ensures secure communication between vehicle ECUs to prevent unauthorized messages and unauthorized changes to data.

Data within vehicles may contain information relating to diagnostics, location, connected applications, vehicle conditions, and vehicle operation. Security methods should be applied to prevent unauthorized access or change of data. Software security ensures secure software, firmware, and software updates within embedded applications to prevent malicious changes.

Access control ensures only authorized users, devices, and software can perform sensitive operations within the system. These security areas must be considered together, as vulnerabilities in one area may affect security across different parts of the vehicle.

Why Is Automotive Cybersecurity Important?

As vehicle systems become more complex with increased dependency on electronic controls, cybersecurity is becoming increasingly important. In traditional vehicles, many functions were controlled mechanically. However, within modern vehicles, many critical functions are controlled by embedded software. This means greater flexibility for manufacturers to add new features to vehicles via software updates. However, it can leave software and communication vulnerabilities that may be more relevant in modern vehicles than in previous designs.

As vehicle systems are interconnected, a vulnerability in one ECU may affect other controllers. If an ECU's communications are compromised, the effects may be felt across multiple components within the vehicle. It is therefore important to understand how different electronic systems interact within a vehicle and to identify any security risks across the whole network.

Protection of Critical Vehicle Functions

Critical vehicle functions such as engine control, braking, steering, transmission, and driver assistance rely on the accurate information provided by vehicle ECUs. If unauthorized messages or altered information reach a safety-critical ECU, the ECU may be given incorrect information and unexpected operations may occur.

Implementing automotive cybersecurity methods can reduce these risks. By authenticating messages, ensuring message integrity, restricting access, and monitoring networks, sensitive operations can be limited to authorized communications. During security planning, consideration must also be given to how systems should behave in the event of loss of communications, or if suspect information is found.

When considering critical vehicle functions in automotive engineering, it is important to consider the relationship between cybersecurity and functional safety. To ensure correct functionality, security within the system should not introduce unnecessary delays and should not interfere with real-time requirements in vehicle control systems.

Securing Communications and Data

Different components within a vehicle regularly send information to each other via a communication network. These communications allow for engine monitoring, diagnostics, body electronics, and advanced driver assistance systems. If not secured appropriately, unauthorized devices may be able to monitor, inject, or alter communications.

Data within vehicles should be secured. Connected vehicles may be connected to mobile applications, cloud systems, service providers, and external infrastructure. Security methods can be applied to ensure sensitive information is only accessible by authorized parties.

Improved reliability can also be achieved. Regular security reviews, software verification, and management of vulnerabilities can allow manufacturers to highlight any issues within a system before they become major problems. This can improve long-term system operation within vehicle electronic systems.

Common Attacks

Depending on the hardware design, communication protocols, software design, and external connectivity within a vehicle, different security threats may be faced. Communication networks may be under attack, or vulnerabilities may exist within embedded software or diagnostics. Understanding these vulnerabilities can allow engineers to identify vulnerable areas within systems and choose suitable security measures.

Unlike systems on computers, automotive systems have very strict requirements in terms of timing and reliability. Therefore, if cybersecurity issues occur, they may impact both information security and availability of vehicle functions.

Unauthorized Access

Unauthorized access occurs when a user, device, or software accesses a vehicle system without appropriate authorization. Attackers may target potential vulnerabilities in diagnostic systems, wireless communication, mobile applications, and external communication services.

If access control within a system is poorly implemented, unauthorized devices may be able to access restricted functions. Depending on the function, this could allow unauthorized access to diagnostic information, configuration information, or sensitive operations within the vehicle.

To reduce this risk, strong authentication methods, restricted access to diagnostics, secure communications, and appropriate authorization should be applied. Additional verification should be required to perform sensitive operations.

Spoofing and Data Manipulation

Spoofing attacks involve sending messages within the communications network that appear to originate from an authorized ECU or controller. If the receiving controller cannot authenticate the message, it may be accepting information from an unauthorized source.

Data manipulation attacks involve altering data sent between components within vehicles. If data is altered, the ECU receiving the data may be using incorrect information.

These types of attacks are particularly relevant to systems that do not have built-in message authentication. To reduce risk, cryptographic authentication, message integrity checks, restricted access, and appropriate monitoring can be applied.

Replay Attacks and Denial of Service Attacks

Replay attacks occur when messages that were sent in previous communications are repeated in future communications. Even though messages may have been correct when originally sent, they may cause unexpected behavior within systems if repeated in different situations. Implementing message freshness, sequence information, and authentication methods can help to prevent systems from processing replayed messages.

Denial of service (DoS) attacks aim to prevent a system or network from functioning. This may occur if the network is flooded with excessive traffic, or if communication between two ECUs is disrupted. If critical messages cannot reach their destination in the expected timeframe, vehicle functions may be impacted.

Applying appropriate message monitoring, control, and recovery measures can mitigate these risks. Consideration should also be given to how a system will behave if network availability drops.

Vulnerabilities in Firmware and Software

Many electronic components within vehicles are controlled by firmware and embedded software. If vulnerabilities exist in software, or if firmware is out of date, programming methods are insecure, or the updating process is unsecured, it may be possible to make unauthorized changes.

If firmware is compromised by an attacker, the functions performed by an ECU may be altered. Therefore, maintaining software integrity is very important in automotive cybersecurity.

Manufacturers should implement secure development practices, code verification, controlled installation of software, and authenticated updates. After production, vulnerability assessment should still be carried out, as new vulnerabilities may be discovered and additional security updates may be required.

Understanding Embedded System Security

Embedded systems are specialized computing devices used to perform specific functions within an overall product. In vehicles, embedded systems are used in ECUs to perform functions such as engine control, braking, steering, transmission, lighting, diagnostics, and more. Compared to general computing devices, embedded systems in vehicles are designed to meet specific processing, memory, power consumption, and real-time requirements.

Security within embedded systems aims to ensure that the hardware, firmware, software, and communication methods within the device are secure. This prevents unauthorized changes to the system. Only trusted software and authorized communication methods should be allowed to run within the device.

Care must be taken to implement the appropriate security methods within embedded systems, as processing-intensive security methods may not be supported within controllers as they may be within desktop or server systems.

Secure Boot

Secure boot ensures that only trusted software is executed within a device. As an ECU powers up, secure boot checks that firmware has come from an authorized source and that it has not been modified. Depending on the implementation, cryptographic signing and data integrity checks can be used to verify trusted sources.

By using secure boot, only unmodified firmware from authorized sources can be executed on the embedded controller. Secure boot is particularly important within devices in charge of sensitive vehicle processes. If the start-up software is compromised, it may affect the operation of the whole controller.

Protection of Firmware

After installation of firmware, protection should be applied to prevent unauthorized changes. Secure storage, access control, cryptographic verification, and controlled programming can be used to ensure secure embedded software throughout operation.

Secure Software Updates

Software updates can be applied to modern vehicles in order to resolve vulnerabilities, improve performance, and add new features. Updates can be applied using diagnostic equipment in workshops, removable media, or over the air (OTA).

However, security measures should be put in place to prevent unauthorized software from being installed or malicious changes from being made. Before installation, the authenticity and integrity of the software should be verified, and verification should be in place to ensure that the update is intended for the correct component. The update should also be capable of safely handling interruption during installation.

Clear records of software updates should be maintained. In addition, processes should be established to deal with failed updates. Secure software updates are an important part of maintaining cybersecurity in vehicles after deployment.

Access Control and Cryptography

Access control determines which users, devices, and software can interact with certain functions within the vehicle. For example, simple diagnostic data may require less authorization than changing ECU configuration or installing firmware.

Cryptography can be used to add security to a system. It can be used to authenticate messages, ensure data integrity, and provide confidentiality where required. Adding digital signatures to software packages can allow verification of authenticity. Message authentication codes can be added to detect unauthorized changes to messages.

Proper key management must be applied. Keys must be created, stored, distributed, and updated securely. If sensitive keys are exposed, security may no longer be reliable even though security measures have been correctly implemented.

In-Vehicle Communication Security

Communication between ECUs, sensors, actuators, and other electronic components must be secure. The communication type used depends on application requirements, amount of data transferred, speed of data transfer, cost, and network design.

Within vehicles, some communication networks may be simple, while other networks allow for large amounts of information to be processed within advanced electronic systems. Due to the differences in security characteristics, security measures must be chosen based on specific network requirements.

CAN, CAN FD, and CAN XL

CAN is one of the most common communication protocols used within automotive electronics. It allows multiple ECUs to communicate along a common bus. Messages can be prioritized based on message identifiers, meaning it can be used for many real-time applications within a vehicle.

However, traditional CAN does not include cryptography to add authentication or confidentiality to messages. Extra security measures may be required to authenticate the origin of messages and ensure data integrity.

CAN FD allows larger amounts of data to be transferred at higher speeds during the data phase. Therefore, it allows more information to be efficiently passed through automotive systems while maintaining many of the key features of CAN communications.

CAN XL provides further improvements to data capacity and communication. It is intended for applications requiring large data payload sizes and greater flexibility in data transmissions. Data link layer security can be added to CAN XL communications using CANsec.

Although CAN networks allow for large data transfers, this does not necessarily mean they are secure. Authentication, data integrity, secure key management, and appropriate network design must be considered when designing secure CAN systems.

LIN and Automotive Ethernet

LIN is commonly used within low-cost components and controllers. It can be used within selected body systems, interior systems, and other systems that do not require the high-performance communication available in higher-speed communication systems.

Depending on the function being controlled and how the network connects to other systems within the vehicle, security requirements for LIN networks may vary. If it connects to a more sensitive communication system within the vehicle, extra access control and monitoring may need to be applied.

Automotive Ethernet allows for high-bandwidth communications within vehicles. It is becoming increasingly important within advanced vehicle systems, including camera systems, sensor systems, driver assistance systems, and connected computing systems.

As Ethernet communication can connect many different electronic systems, as well as external systems, appropriate authentication, access control, segmentation, and monitoring must be applied. Appropriate security methods depend on the overall communication system, and not just the protocol.

Automotive Cybersecurity Solutions

A combination of hardware, embedded security, and cryptographic methods, alongside network-level monitoring, can provide cybersecurity within vehicle systems. It is important to apply multiple layers of security to allow prevention, detection, and response to unauthorized activity in different ways.

Consideration must be given to vehicle system requirements when applying security solutions. For example, authentication and encryption should not cause unacceptable delays to communications.

Authentication and Encryption

Message authentication can be used to ensure messages sent to an ECU originate from an authorized source. It can also be used to determine if messages have been altered in transit.

Depending on the communication protocol, available resources, and desired security level, message authentication codes or digital signatures can be used. The correct authentication method should be chosen.

Encryption can be used to ensure that information cannot be read by unauthorized parties. It is particularly useful in situations where sensitive information is being sent between systems within the vehicle and external connections. However, encryption solves a different problem than authentication. Confidentiality is provided by encryption, whereas authentication and integrity methods ensure trust in information and its source.

Segmentation and Intrusion Detection

Segmenting the network allows different parts of the communications within a vehicle to be grouped into security zones. For example, safety-critical systems, entertainment systems, and external connection systems may require different levels of access.

This limits unnecessary communications within the network and reduces the risk of a compromised component interacting directly with all other ECUs. Gateways can be used to enforce communication requirements and only allow specific messages to be sent between segments.

Intrusion detection systems provide additional security. They are able to detect irregular messages, unexpected communications, and potential interference with normal operations.

However, not all attacks can be prevented using intrusion detection. The effectiveness of intrusion detection depends on the rules being used, coverage of monitoring, responses to intrusive activity, and the ability to differentiate between suspicious and legitimate vehicle communications.

Key Management

As cryptographic methods rely on keys, these keys must be protected. If a key is exposed or mismanaged, security may no longer be effective, even with a strong algorithm.

Processes must be in place to generate, store, distribute, update, and revoke cryptographic keys within automotive manufacturers. Keys must be protected from unauthorized access and only made available to components requiring them.

As vehicles contain many ECUs and may connect to external services, key management can become more complex. Processes must be in place to replace compromised keys, secure manufacturing processes, and provide long-term support of vehicles in operation.

Standards for Automotive Cybersecurity

Standards for automotive cybersecurity help manufacturers and suppliers to implement appropriate processes. They help to identify risks, assess vulnerabilities, assign responsibility, and maintain security throughout the vehicle's life.

Since security must be considered at many points throughout the life of vehicles, including during production, operation, maintenance, software updates, and decommissioning, these standards are very important.

ISO/SAE 21434

The ISO/SAE 21434 standard (Road Vehicles – Cybersecurity Engineering) was published in 2021 and sets cybersecurity engineering requirements to manage risks in electrical and electronic systems within vehicles.

The standard considers vehicles throughout their lifetime, including concept, product development, production, operation, maintenance, and decommissioning. It encourages identification of cybersecurity risks at an early stage and appropriate security measures throughout development.

This standard does not specify one security method to be applied to all vehicles; however, it provides a structured method for managing security risks. Organizations can use this standard to identify threats, define security targets, set engineering requirements, and provide evidence for cybersecurity activities.