Electronic control device, abnormal cause determination method, and abnormal cause determination program
The electronic control device determines abnormality cause by analyzing authentication results from multiple devices, effectively distinguishing between attacks and failures without complex calculations, reducing processing and communication load.
Patent Information
- Application Number
- JP2023026759
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-09-03
AI Technical Summary
Existing methods struggle to differentiate between cyber attacks and failures in in-vehicle systems without increasing processing load, especially in electronic control devices with low capacity.
An electronic control device that includes a transmitting unit, receiving unit, and determining unit to determine whether an abnormality is caused by an attack or a failure based on authentication results from multiple devices, without complex calculations.
Enables accurate determination of abnormality cause without increasing processing load, reducing communication load, and preventing delays.
Smart Images

Figure 2024119683000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an electronic control device that is primarily installed in an automobile and that determines whether an abnormality that occurs in the electronic control device is caused by an attack or a malfunction, and to a method and program executed by the electronic control device. [Background technology]
[0002] In recent years, technologies for driving assistance and autonomous driving control, including V2X (vehicle-to-everything) such as vehicle-to-vehicle and vehicle-to-infrastructure communications, have been attracting attention. As a result, vehicles are equipped with communication functions, and so-called connected vehicles are becoming more common. As a result, the possibility of vehicles being subject to cyber attacks such as unauthorized access is increasing. Therefore, it is necessary to detect abnormalities in on-board systems that arise as a result of cyber attacks on vehicles, and to take measures to deal with them.
[0003] However, abnormalities occurring in on-board systems can occur not only due to cyberattacks, but also due to malfunctions in the electronic control devices that make up the on-board systems. Therefore, in order to effectively respond to cyberattacks, it is necessary to determine whether an abnormality occurring in an on-board system is due to an attack or a malfunction.
[0004] For example, Patent Document 1 discloses that in order to appropriately deal with both security anomalies resulting from external security attacks and safety anomalies resulting from disconnections, noise, malfunctions, etc. occurring within the in-vehicle system, management information regarding security anomalies and management information regarding safety anomalies are stored in a memory unit, and a calculation unit uses the management information to determine whether the anomaly is a security anomaly or a safety anomaly, and takes appropriate action according to each anomaly. [Prior art documents] [Patent documents]
[0005] Patent Publication 2019-73102 Summary of the Invention [Problem to be solved by the invention]
[0006] Here, the inventors have found the following problem as a result of detailed investigation. According to Patent Document 1, the abnormality contents corresponding to the safety abnormality are stored in advance as safety abnormality verification information, and whether the abnormality occurring in the in-vehicle system is included in the safety abnormality verification information is determined to determine whether the abnormality is a security abnormality or a safety abnormality. However, the abnormality contents caused by a failure may be similar to the abnormality contents caused by an attack. In such a case, the method of Patent Document 1 cannot determine whether the abnormality is a security abnormality or a safety abnormality. Furthermore, in the method of Patent Document 1, in order to determine whether the abnormality is a security abnormality or a safety abnormality, it is necessary to add a function to the calculation unit or provide a new storage unit. Therefore, in addition to the increase in processing load, it is difficult to newly introduce the method of Patent Document 1 to the electronic control unit of the existing in-vehicle system, especially to the electronic control unit with low processing capacity.
[0007] Therefore, an object of the present invention is to provide a device, etc. that can determine whether an abnormality that occurs in an in-vehicle system is an abnormality caused by a cyber-attack or a malfunction caused by a failure, without performing complex calculation processing. [Means for solving the problem]
[0008] An electronic control device according to one embodiment of the present disclosure is an electronic control device (100) connected to a plurality of devices, and includes a transmitting unit (101) that transmits a message to each of the plurality of devices, a receiving unit (102) that receives authentication result information indicating the result of authentication performed in the plurality of devices using the message, and a judgment unit (103) that judges whether each of the plurality of devices is abnormal based on the authentication result information, and, when at least one of the plurality of devices is abnormal, judges whether the cause of the abnormality is an attack or a malfunction depending on whether all of the plurality of devices are abnormal.
[0009] An electronic control device (200, 210) according to another aspect of the present disclosure includes a receiving unit (201) that receives a plurality of different messages from other devices connected to the electronic control device, an authentication unit (202) that performs authentication using each of the plurality of messages, a detection unit (203) that detects an abnormality when authentication in the authentication unit fails, and a judgment unit (204) that, when the detection unit detects an abnormality in at least one of the plurality of messages, judges whether the cause of the abnormality is an attack or a malfunction of the electronic control device depending on whether an abnormality has been detected in all of the plurality of messages.
[0010] In addition, the claims and the numbers in parentheses attached to the constituent elements of the invention described in this section indicate the correspondence between the present invention and the embodiments described below, and are not intended to limit the present invention. Effect of the Invention
[0011] According to the above configuration, when an abnormality occurs in the electronic control device, it is possible to determine whether the cause of the abnormality is a malfunction or an attack. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram for explaining an electronic control system according to a first embodiment. [Diagram 2] FIG. 1 is a diagram for explaining a configuration example of an electronic control device according to a first embodiment; [Diagram 3]FIG. 1 is a diagram for explaining the determination process of the first embodiment. [Figure 4] FIG. 1 is a diagram for explaining the processing operation of the electronic control device according to the first embodiment. [Diagram 5] FIG. 1 is a diagram for explaining the processing operation of the electronic control system according to the first embodiment. [Figure 6] FIG. 11 is a diagram for explaining the processing operation of an electronic control device according to a modified example of the first embodiment. [Figure 7] FIG. 10 is a diagram for explaining a configuration example of an electronic control device according to a second embodiment. [Figure 8] FIG. 10 is a diagram for explaining the determination process of the second embodiment. [Figure 9] FIG. 11 is a diagram for explaining the processing operation of the electronic control device according to the second embodiment. [Figure 10] FIG. 10 is a diagram for explaining a configuration example of an electronic control device according to a modified example of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0014] The present invention means the invention described in the claims or in the Summary of the Invention section, and is not limited to the following embodiments. Furthermore, at least the words in quotation marks mean the words described in the claims or in the Summary of the Invention section, and are not limited to the following embodiments.
[0015] The configurations and methods described in the dependent claims are optional configurations and methods in the invention described in the independent claims. The configurations and methods of the embodiments corresponding to the configurations and methods described in the dependent claims, and the configurations and methods described only in the embodiments without being described in the claims, are optional configurations and methods in the present invention. The configurations and methods described in the embodiments when the description of the claims is broader than the description of the embodiments are also optional configurations and methods in the present invention in the sense that they are examples of the configurations and methods of the present invention. In either case, by being described in the independent claims, they become essential configurations and methods of the present invention.
[0016] The effects described in the embodiments are effects obtained when the configurations of the embodiments are provided as examples of the present invention, and are not necessarily effects that the present invention possesses.
[0017] When there are multiple embodiments, the configurations disclosed in each embodiment are not limited to each embodiment, but can be combined across the embodiments. For example, a configuration disclosed in one embodiment may be combined with another embodiment. Also, configurations disclosed in each of the multiple embodiments may be collected and combined.
[0018] The problem described in the section on problems that the invention is intended to solve is not a publicly known problem, but was discovered independently by the inventor, and this, together with the configuration and method of the present invention, is a fact that affirms the inventive step of the invention.
[0019] 1. Embodiment 1 (1) Electronic control system S 1 is a diagram illustrating an electronic control system S having an electronic control unit (ECU: Electric Control Unit) 100 according to the present embodiment, which will be described later. The electronic control system S is made up of a plurality of ECUs including the ECU 100.
[0020] In this embodiment, the ECU 100 is an ECU that is "mounted" on a vehicle, which is a "moving body," and the electronic control system S is an in-vehicle system. However, this embodiment can be applied to any electronic control system, and is not limited to an in-vehicle system. The above also applies to the ECUs of the other embodiments.
[0021] Here, the term "mobile body" refers to an object that can move and can move at any speed. It also includes cases where the moving body is stationary. For example, it includes, but is not limited to, automobiles, motorcycles, bicycles, pedestrians, ships, aircraft, and objects mounted on these vehicles. "Mounted" includes not only the case where the device is directly fixed to the moving body, but also the case where the device is not fixed to the moving body but moves with the moving body, such as the case where the device is carried by a person riding on the moving body, or the case where the device is mounted on cargo placed on the moving body.
[0022] The ECU 100 is connected to a plurality of ECUs 20 (corresponding to "a plurality of devices") and the ECU 30 via an in-vehicle communication network such as a Controller Area Network (CAN) or a Local Interconnect Network (LIN). Alternatively, the ECUs may be connected using any communication method, whether wired or wireless, such as Ethernet (registered trademark), Wi-Fi (registered trademark), or Bluetooth (registered trademark).
[0023] The electronic control system S shown in FIG. 1 has a domain A and a domain B, and each domain is composed of an ECU 100 and an ECU 20. The domains are obtained by classifying a plurality of ECUs constituting the electronic control system S according to their functions and roles, and an ECU called a domain controller manages the ECUs for each domain. In the example shown in FIG. 1, the ECU 100 is a master ECU that functions as a domain controller, and manages the ECU 20 that is a slave ECU. However, the ECU 100 and the ECU 20 may be provided in parallel. Furthermore, the ECU 100 may be an ECU that functions as a gateway or a sub-gateway.
[0024] 1 illustrates an electronic control system S in which an ECU 100 is connected to three ECUs 20 (ECU 20a to ECU 20c), but it goes without saying that any number of ECUs 20 may be connected to the ECU 100. In this embodiment, an ECU belonging to domain A will be described, but an ECU belonging to domain B also has the same configuration and function.
[0025] 1 is assumed to be a communication ECU 30 having a wireless communication function with the outside of the vehicle. However, the ECU 100 itself may be an ECU having a communication function with the outside of the vehicle.
[0026] (2) Configuration of ECU20 As a premise of this embodiment, a description will be given of a configuration of an ECU 20 connected to an ECU 100. As shown in FIG.
[0027] When the authentication unit 21 receives a message transmitted from the ECU 100 described later, the authentication unit 21 performs authentication processing using the received message. Any method can be used for the message authentication processing, and examples of the method include so-called MAC (Message Authentication Code) authentication using a message authentication code, and authentication using a digital signature. The authentication unit 21 is also called a security sensor. Note that the message in this embodiment may refer to data included in a frame transmitted via the in-vehicle communication network, or may refer to a frame as a collection of data.
[0028] The transmission unit 22 obtains the result of the authentication process performed by the authentication unit 21 using the message, and transmits authentication result information indicating the result of the authentication process. As will be described later, in this embodiment, an example will be described in which the transmission unit 22 transmits authentication result information when authentication fails, and does not transmit authentication result information when authentication succeeds. However, the transmission unit 22 may be configured to transmit authentication result information only when authentication succeeds, and not transmit authentication result information when authentication fails. Alternatively, the transmission unit 22 may transmit authentication result information in both cases of authentication failure and authentication success, regardless of the authentication result.
[0029] The authentication result information may have any content as long as it indicates that authentication has failed. For example, the authentication result information may be information notifying that an abnormality has been detected due to a failure in the authentication process. In this case, the transmission unit 22 has a function as an abnormality detection unit that detects an abnormality based on the authentication result, in addition to a transmission function of transmitting the authentication result information to the ECU 100. Such a transmission unit 22 is referred to as an Intrusion Detection Systems Manager (IDSM) in the AUTOSAR (AUTomotive Open System ARchitecture) specification.
[0030] (3) Configuration of ECU 100 Next, the configuration of the ECU 100 of this embodiment will be described with reference to Fig. 2. The ECU 100 includes a transmission unit 101, a reception unit 102, and a determination unit 103. The determination unit 103 realizes an apparatus determination unit 104 and an abnormality cause determination unit 105.
[0031] The ECU 100 can be configured with a general-purpose CPU (Central Processing Unit), a volatile memory such as a RAM, a non-volatile memory such as a ROM, a flash memory, or a hard disk, various interfaces, and an internal bus connecting these. The ECU 100 can be configured to perform the functions of each functional block shown in FIG. 2 by executing software on this hardware. Of course, the ECU 100 may be realized by dedicated hardware such as an LSI. The above also applies to the ECUs of the other embodiments.
[0032] In this embodiment, the ECU 100 is assumed to be in the form of an electronic control device as a semi-finished product, but is not limited to this. For example, the form of a component may be a semiconductor circuit or a semiconductor module, the form of a semi-finished product may be an electronic control device, an electronic control unit, or a system board, and the form of a finished product may be a server, a workstation, a personal computer (PC), a tablet, a mobile router, a smartphone, a mobile phone, or a navigation system. The ECU 100 may be configured as a single ECU or as multiple ECUs. The above also applies to the ECUs of the other embodiments.
[0033] The transmitting unit 101 transmits a message to each of the multiple ECUs 20 connected to the ECU 100. Here, the message transmitted by the transmitting unit 101 may be a dedicated message used to determine the cause of an abnormality, which will be described later, or a message transmitted by the ECU 100 to the ECU 20 to realize functions such as running and steering the vehicle may be used as a message of the present invention. Moreover, the transmitting unit 101 may transmit a message periodically, or may transmit a message when a specific event occurs.
[0034] The transmission unit 101 may further "transmit" the determination result of the determination unit 103, which will be described later, to the ECU 30, which has a function of communicating with the outside of the vehicle. In this case, when the ECU 30 receives the determination result from the ECU 100, it transmits the result to a server located outside the vehicle, a security operation center (SOC), or the like. Alternatively, if the ECU 100 itself has an external communication function, the determination result may be transmitted directly from the ECU 100 to the outside of the vehicle. In this case, the configuration having the in-vehicle communication function and the outside-vehicle communication function is collectively referred to as the transmission unit 101.
[0035] Here, "transmit" includes not only direct transmission of information to another designated device, but also indirect transmission via another device.
[0036] When the transmission unit 101 transmits the determination result to the outside of the vehicle via the ECU 30, the ECU 30 may aggregate and transmit not only the determination result of the domain A but also the determination results of other domains (for example, the domain B in FIG. 1). In this way, the ECU 30 aggregates and transmits the determination results of the multiple ECUs 100 to the outside, thereby reducing the communication load with the outside of the vehicle.
[0037] The receiving unit 102 receives, from the ECU 20, “authentication result information” indicating a result of the authentication performed using the message transmitted by the transmitting unit 101. In this embodiment, the receiving unit 102 receives only authentication result information indicating that the authentication has failed.
[0038] Here, receiving "authentication result information" includes any of the cases where only a successful authentication result is received, only a failed authentication result is received, and both a successful authentication result and a failed authentication result are received. Moreover, "authentication result information" may be information that directly indicates the authentication result as well as information that indirectly indicates the authentication result.
[0039] The determination unit 103 realizes an apparatus determination unit 104 and an abnormality cause determination unit 105. Here, the determination unit 103 is called an Intrusion Detection Systems Reporter (IDSR) in the AUTOSAR specification. Alternatively, the determination unit 103 and the function of transmitting the determination result in the transmission unit 101 may be collectively called an IDSR.
[0040] The device determination unit 104 of the determination unit 103 determines whether or not each of the ECUs 20 is abnormal based on the authentication result information. Specifically, the device determination unit 104 determines that an ECU 20 for which the receiving unit 102 has received authentication result information is abnormal. In contrast, the device determination unit 104 determines that an ECU 20 for which the receiving unit 102 has not received authentication result information is normal.
[0041] In this embodiment, since the authentication result information is received only from the ECU 20 for which authentication has failed, when the receiving unit 102 has not received the authentication result information, the device determining unit 104 cannot determine whether the authentication result information has not been received because the authentication in the ECU 20 has been successful, or the authentication result information has not been received because the authentication in the ECU 20 has not been completed. Therefore, the device determining unit 104 in this embodiment makes a determination after a predetermined time has elapsed since the transmitting unit 101 transmitted a message. Alternatively, when the authentication result information has not been received even after a predetermined time has elapsed since the transmitting unit 101 transmitted a message, the device determining unit 104 may transmit information requesting the ECU 20 to transmit the authentication result information. These configurations can also be applied to a configuration in which the authentication result information is received only from the ECU 20 for which authentication has been successful, and a configuration in which the authentication result information is received from all the ECUs 20 regardless of the authentication result.
[0042] When at least one of the ECUs 20 is abnormal as a result of the determination by the device determination unit 104, the abnormality cause determination unit 105 determines whether the cause of the abnormality in the ECUs 20 is an attack or a malfunction, depending on whether all of the ECUs 20 are abnormal. Specifically, when all of the ECUs 20 are abnormal, the abnormality cause determination unit 105 determines that the cause of the abnormality in the ECUs 20 is an attack. Furthermore, when not all of the ECUs 20 but some of the ECUs 20 are abnormal, the abnormality cause determination unit 105 determines that the cause of the abnormality in the ECUs 20 is a malfunction. Examples of malfunctions include those that cause damage to the device, such as disconnection or wear, as well as those that do not cause damage to the device, such as software errors, and temporary malfunctions such as noise.
[0043] Furthermore, if the device determination unit 104 determines, based on the authentication result information, that there are no abnormalities in the ECU 20, it can be determined that the ECU 20 is operating normally and is not malfunctioning or being attacked.
[0044] Here, all the ECUs 20 do not necessarily mean all the ECUs 20 connected to the ECU 100. For example, the ECUs 20 connected to the ECU 100 may be classified into several groups in advance, and whether the cause of the abnormality in the ECU 20 is an attack or a failure may be determined depending on whether all the ECUs 20 belonging to the same group are abnormal. The groups are set based on criteria such as the function of the ECU 20 and the bus to which the ECU 20 is connected. In addition, when the ECU 100 functions as a domain controller for multiple domains, the groups may be set based on the domain to which the ECU 20 belongs.
[0045] Fig. 3 is a diagram for explaining the judgment by the judgment unit 103 (i.e., the device judgment unit 104 and the abnormality cause judgment unit 105). In Fig. 3, "0" indicates a case where the device judgment unit 104 judges that the ECU 20 is normal based on the authentication result information, and "1" indicates a case where the ECU 20 is judged to be abnormal.
[0046] 3, when all of ECU 20a to ECU 20c are judged to be "0", i.e., normal, these ECUs 20 are judged to be normal. On the other hand, when at least one of ECU 20a, ECU 20b, and ECU 20c is judged to be "1", i.e., abnormal, it is judged that the cause of the abnormality occurring in the ECU 20 is a failure. On the other hand, when all of ECU 20a to ECU 20c are judged to be "1", i.e., all ECUs 20 are abnormal, it is judged that the cause of the abnormality occurring in these ECUs 20 is an attack.
[0047] When the hardware of the ECU 20, such as the CAN controller, the HSM (Hardware Security Module), and the Secure Data Flash, fails, the ECU 20 cannot normally execute the authentication process using the received message, and the authentication process fails. However, the possibility that such a hardware failure of the ECU 20 occurs simultaneously in multiple ECUs 20 is extremely low. Therefore, when it is determined that a part of the ECU 20 is abnormal, it is determined that the cause of the abnormality of the ECU 20 is the malfunction. In contrast, when the electronic control system S is subjected to a retransmission attack, there is a possibility that an unauthorized message is transmitted to the ECU 20 at the same time. Therefore, all the ECUs 20 that receive the unauthorized message by the retransmission attack fail the authentication process. Therefore, when all the ECUs 20 fail the authentication process and it is determined that all the ECUs 20 are abnormal, it is determined that the cause of the abnormality of the ECU 20 is an attack.
[0048] As described above, the transmission unit 101 directly or indirectly transmits the determination result of the determination unit 103 to the outside of the vehicle. The determination result transmitted to the outside of the vehicle is, for example, the determination result by the abnormality cause determination unit 105, that is, the determination result indicating whether the cause of the abnormality is a malfunction or an attack. Alternatively, instead of or in addition to the determination result of the abnormality cause determination unit 105, the transmission unit 101 may transmit information on which ECU 20 has an abnormality, the number of abnormal ECUs 20, the number of normal ECUs 20, etc. Alternatively, even if all the ECUs 20 are normal, the transmission unit 101 may transmit the determination result to the outside of the vehicle.
[0049] (4) Operation of ECU 100 Next, the operation of the ECU 100 will be described with reference to Figures 4 and 5. Figure 4 is a diagram for explaining the operation of the ECU 100, and Figure 5 is a diagram for explaining the operation of the entire electronic control system S. Corresponding processes in Figures 4 and 5 are given the same reference numerals. Note that the following operations not only show a method for determining the cause of an abnormality in the ECU 100, but also show the processing procedure of an abnormality cause determination program executed by the ECU 100. The order of these processes is not limited to the order shown in Figure 4. In other words, the order may be changed as long as there is no constraint, such as a relationship in which a certain step utilizes the result of the previous step. The above applies not only to this embodiment, but also to other embodiments and modified examples.
[0050] The transmitting unit 101 of the ECU 100 transmits a message to each of the ECUs 20 (S101).
[0051] When the authentication unit 21 of the ECU 20a receives the message from the ECU 100, the authentication unit 21 performs an authentication process using the message (S11). If the authentication process in S11 results in failure, the transmitter 22 transmits authentication result information to the ECU 100. The same process is performed in the ECU 20b and the ECU 20c. In the example of FIG. 5, the authentication process fails in the ECUs 20a and 20b, but succeeds in the authentication process in the ECU 20c.
[0052] The receiving unit 102 receives, from the ECU 20, authentication result information indicating the result of the authentication performed using the message transmitted in S101 (S102). When a predetermined period of time has elapsed since the message was transmitted in S101 (S103: Y), the device determination unit 104 of the determination unit 103 determines whether or not each of the ECUs 20 is abnormal based on the authentication result information (S104). Here, when at least one of the ECUs 20 is abnormal (S105: Y), the abnormality cause determination unit 105 of the determination unit 103 determines whether the cause of the abnormality is an attack or a malfunction depending on whether all of the ECUs 20 are abnormal (S106). Then, the transmission unit 101 transmits the determination result of the determination unit 103 to a server or the like located outside the vehicle (S107).
[0053] (6) Summary As described above, according to this embodiment, it is possible to determine whether the cause of the abnormality is an attack or a malfunction depending on whether the entire ECU 20 is abnormal or only a part of the ECU 20 is abnormal, without performing complex calculations and therefore without increasing the processing load on the ECU.
[0054] Furthermore, according to this embodiment, ECU 100 determines the cause of the abnormality in ECU 20 based on the authentication result information and transmits only the determination result to the outside of the vehicle. This makes it possible to significantly reduce the communication load when transmitting information to the outside of the vehicle and prevent communication delays, compared to the case where all authentication result information of each ECU 20 is transmitted to the outside of the vehicle.
[0055] 2. Modification of the First Embodiment In the above-described embodiment, a configuration has been described in which only the ECU 20 that has failed the authentication process transmits the authentication result information to the ECU 100. However, there are cases in which the ECU 20 is unable to execute the authentication process itself due to a malfunction, and as a result is unable to transmit the authentication result information to the ECU 100. In such a case, the ECU 100 may erroneously determine that the ECU 20 from which the authentication result information has not been received is normal. Therefore, in this modified example, a configuration will be described in which, when the ECU 100 determines the cause of the abnormality, the ECU 20 uses malfunction information in the ECU 20 to improve the accuracy of determining the cause of the abnormality.
[0056] The configurations of the ECU 20 and the ECU 100 of this modified example are the same as those of the first embodiment, and therefore will be described with reference to the configurations of FIG. 1 and FIG.
[0057] (1) ECU20 The ECU 20 of this modification generates fault information when a fault that has occurred in the ECU 20 is detected. Any method can be used to detect a fault in the ECU 20. The transmission unit 22 of the ECU 20 transmits the generated fault information to the ECU 100 when it receives inquiry information, which will be described later, from the ECU 100. Here, the ECU 20 may detect whether or not a fault has occurred in the ECU 20 after receiving the inquiry information, but the ECU 20 may generate and store fault information when it detects a fault, regardless of whether or not it has received the inquiry information, and transmit the stored fault information to the ECU 100 when it receives the inquiry information.
[0058] Furthermore, when inquiry information is received from the ECU 100 but no fault is detected in the ECU 20, the transmitting unit 22 of the ECU 20 transmits to the ECU 100 fault information indicating that no fault is detected.
[0059] (2) Configuration of ECU 100 The transmitting unit 101 of this modification transmits inquiry information to inquire about the presence or absence of a malfunction to the ECU 20. Here, in this modification, the transmitting unit 101 transmits a message to each of the ECUs 20, the receiving unit 102 receives the authentication result information, and the device determining unit 104 transmits the inquiry information after determining whether the ECU 20 is abnormal or not based on the authentication result information. More specifically, when the device determining unit 104 determines whether each of the ECUs 20 is abnormal or not based on the authentication result information and determines that one of the multiple ECUs 20 (ECUs 20a to 20c) is normal and the other ECUs 20 are abnormal, the transmitting unit 101 transmits the inquiry information to the ECU 20. As an example, a case will be described in which the device determining unit 104 determines that only the ECU 20a is normal and that the ECUs 20b and ECUs 20c are abnormal. In this case, the transmitting unit 101 transmits the inquiry information to the ECU 20a.
[0060] However, the timing at which the transmission unit 101 transmits the inquiry information to the ECU 20 may be set by the vehicle user, dealer, manufacturer, or the like, and is not limited to the above example.
[0061] The receiving unit 102 receives failure information from the ECU 20 in which a failure has been detected (corresponding to a "failed device"). As in the above example, when a failure has been detected in the ECU 20a, the receiving unit 102 receives failure information from the ECU 20a. However, when no failure has been detected in the ECU 20a, the receiving unit 102 receives failure information indicating that no failure has been detected.
[0062] The device determination unit 104 of the determination unit 103 performs determination again by referring to the received malfunction information. For example, when the receiving unit 102 receives malfunction information from the ECU 20a, the device determination unit 104 considers that the ECU 20a is abnormal. Then, the abnormality cause determination unit 105 determines whether the cause of the abnormality is an attack or a malfunction depending on whether all the ECUs 20 including the ECU 20a (i.e., the ECUs 20a to 20c) are abnormal. Alternatively, when the receiving unit 102 receives malfunction information from the ECU 20a, the abnormality cause determination unit 105 may determine whether the cause of the abnormality is an attack or a malfunction depending on whether all the ECUs 20 except the ECU 20a (i.e., the ECUs 20b and 20c) are abnormal. Then, similarly to the first embodiment, when all the ECUs 20 are abnormal, the device determination unit 104 determines that the cause of the abnormality is an attack, and when a part of the ECUs 20 is abnormal, the device determination unit 104 determines that the cause of the abnormality is a malfunction.
[0063] With this configuration, even if a malfunction occurs in ECU 20 and authentication result information is not transmitted, it is possible to prevent ECU 20 from being erroneously determined to be normal, and thus prevent the cause of the abnormality occurring in ECU 20 from being erroneously determined.
[0064] (3) Operation of ECU 100 6 is a diagram for explaining the operation of the ECU 100 in this modified example. The same processes as those in the first embodiment are denoted by the same reference numerals, and the explanation thereof will be omitted.
[0065] In this modification, when it is determined in S105 that at least one of the ECUs 20 is abnormal, it is further determined whether or not only one of the ECUs 20 is normal (S111). Here, when the device determination unit 104 determines that only one ECU 20 is normal and the other ECUs 20 are abnormal (S111: Y), the transmission unit 101 transmits inquiry information to the ECU 20 determined to be normal (S112). The receiving unit 102 receives the failure information from the ECU 20 (S113). Then, the abnormality cause determination unit 105 determines the cause of the abnormality in the ECU 20 (S116).
[0066] In this modification, the configuration in which the ECU 20 transmits the failure information in response to the inquiry information from the ECU 100 has been described, but the ECU 20 may be configured to transmit the failure information to the ECU 100 immediately upon detecting a failure in the ECU 20, regardless of whether the inquiry information has been received or not. However, in such a case, the communication load of the in-vehicle network and the processing load of the ECU 100 may increase due to transmission and reception of failure information that is not required for determining the cause of the abnormality. Therefore, in order to suppress such load, it is desirable for the ECU 20 to transmit the failure information to the ECU 100 only when the ECU 20 receives the inquiry information from the ECU 100.
[0067] (4) Summary As described above, according to this modification, by determining the cause of an abnormality in the ECU 20 after referring to the failure information of the ECU 20, it is possible to improve the accuracy of determining the cause of the abnormality.
[0068] 3. Embodiment 2 In the first embodiment, a configuration has been described in which the cause of an abnormality that has occurred in each of the multiple ECUs 20 is determined based on authentication results of messages in the multiple ECUs 20. In the present embodiment, a configuration will be described in which the cause of an abnormality that has occurred in one ECU is determined based on authentication results of multiple messages acquired by the ECU.
[0069] (1) Configuration of ECU200 7 is a diagram illustrating the ECU 200 of the present embodiment. The ECU 200 includes a receiving unit 201, an authentication unit 202, an abnormality detection unit 203, an abnormality cause determination unit 204, and a transmitting unit 205.
[0070] The receiving unit 201 receives a plurality of different messages from other ECUs connected to the ECU 200. The plurality of messages are different from each other, for example, in the identification number assigned to the message, the type of data that is the message, the application that transmitted the message, the ECU that transmitted the message, etc. Also, the messages may be messages transmitted from a plurality of different ECUs, or may be messages transmitted from the same ECU. In the embodiment described below, a case will be described as an example in which the receiving unit 201 receives messages having ID100, ID200, and ID300, respectively.
[0071] The authentication unit 202 performs authentication processing using each message received by the receiving unit 201. As in the first embodiment, any method can be used for the message authentication processing. The authentication unit 202 is also called a security sensor.
[0072] The anomaly detection unit 203 (corresponding to a "detection unit") detects an anomaly based on the authentication result in the authentication unit 202. Specifically, the anomaly detection unit 203 detects an anomaly when authentication in the authentication unit 202 fails. As described above, the authentication unit 202 performs authentication on each of a plurality of messages, and therefore detects an anomaly for each message when authentication of a plurality of messages fails. Also, when authentication in the authentication unit 202 is successful, the anomaly detection unit 203 does not detect an anomaly. Here, the anomaly detection unit 203 detects an anomaly based on AUTOSAR In the specification, it is referred to as IDSM.
[0073] When the abnormality detection unit 203 detects an abnormality in at least one message among the multiple messages, the abnormality cause determination unit 204 (corresponding to a "determination unit") determines whether the cause of the detected abnormality is an attack or a failure of the ECU 200 depending on whether or not the abnormality is detected in all the messages. Specifically, when the abnormality detection unit 204 detects an abnormality in all the messages, it determines that the cause of the abnormality is a failure of the ECU 200. Furthermore, when the abnormality detection unit 204 detects an abnormality in some messages but not in all messages, it determines that the cause of the abnormality is an attack. Here, the abnormality cause determination unit 204 is referred to as an IDSR in the AUTOSAR specification. Alternatively, the abnormality cause determination unit 204 and a function of transmitting the determination result in the transmission unit 205 described later may be collectively referred to as an IDSR.
[0074] Furthermore, as described above, if all authentications in authentication unit 202 are successful, anomaly detection unit 203 does not detect an anomaly. Therefore, it can be determined that ECU 200 is operating normally and there is no malfunction or attack.
[0075] Here, all messages do not necessarily mean all messages received by the receiving unit 201. For example, it may be determined whether the cause of the abnormality is an attack or a malfunction depending on whether all messages received by the receiving unit 201 and transmitted using the same channel are abnormal.
[0076] Fig. 8 is a diagram for explaining the anomaly detection result by anomaly detection unit 203 and the determination by anomaly cause determination unit 204 based on the anomaly detection result. "0" in Fig. 8 indicates that anomaly detection unit 203 has not detected an anomaly in the message, and "1" indicates that an anomaly has been detected in the message.
[0077] 8, when all of message IDs 100 to 300 are "0", i.e., normal, it is determined that these messages are normal, and by extension, ECU 200 is normal. On the other hand, when at least one of message IDs 100, 200, and 300 is "1", i.e., an abnormality is detected, it is determined that the cause of the detected abnormality is an attack. Also, when all of message IDs 100 to 300 are "1", i.e., an abnormality is detected in all messages, it is determined that the cause of the detected abnormality is a failure.
[0078] The transmission unit 205 directly or indirectly transmits the determination result by the abnormality cause determination unit 204 to the outside of the vehicle. The determination result transmitted to the outside of the vehicle is, for example, the determination result by the abnormality cause determination unit 204, that is, the determination result indicating whether the cause of the abnormality is a malfunction or an attack. Alternatively, instead of or in addition to the determination result by the abnormality cause determination unit 204, the transmission unit 205 may transmit information such as which message ID an abnormality was detected for, the number of message IDs for which an abnormality was detected, the authentication result by the authentication unit 202, etc. Alternatively, even if the abnormality detection unit 203 has not detected an abnormality, the transmission unit 205 may transmit to the outside of the vehicle a determination result indicating that no abnormality has been detected.
[0079] When the transmitting unit 205 transmits the determination result to the outside of the vehicle via a communication ECU (for example, ECU 30 shown in FIG. 1 ), the communication ECU may aggregate and transmit not only the determination result of ECU 200 but also the determination results of other ECUs. In this way, the external communication ECU aggregates and transmits the determination results of multiple ECUs 200 to the outside, thereby reducing the communication load with the outside of the vehicle.
[0080] When the hardware of the ECU 200, such as the CAN controller, the HSM, or the Secure Data Flash, fails, the authentication unit 202 of the ECU 200 cannot normally execute the authentication process using the received message. Therefore, all authentication processes executed by the authentication unit 202 fail. Therefore, when the authentication process for all the multiple messages received by the receiving unit 201 fails and the anomaly detection unit 203 detects an anomaly for all the multiple messages, it is determined that the cause of the anomaly is a failure of the ECU 200. In contrast, when the ECU 200 is subjected to a retransmission attack, it is highly likely that an unauthorized message is transmitted by disguising a specific message, for example, a message with a specific identification number or a message transmitted from a specific ECU. However, it is low that a retransmission attack is simultaneously performed on all the messages received by the ECU 200. Therefore, when the authentication process for some of the multiple messages received by the receiving unit 201 fails and the anomaly detection unit 203 detects an anomaly for some of the messages, it is determined that the cause of the anomaly is an attack.
[0081] (2) Operation of ECU200 Next, the operation of the ECU 200 will be described with reference to FIG. The receiving unit 201 of the ECU 200 receives a plurality of different messages from the other ECUs connected to the ECU 20 (S201). The authentication unit 202 performs authentication using each of the multiple messages received by the receiving unit 201 (S202). The abnormality detection unit 203 detects an abnormality when the authentication in the authentication unit 202 fails (S203). Here, if an abnormality is detected in at least one of the multiple messages in S203 (S204: Y), the abnormality cause determination unit 204 determines whether the cause of the abnormality is an attack or a malfunction of the ECU 200 depending on whether an abnormality is detected in all of the multiple messages (S205). Then, the transmission unit 205 transmits the determination result from the abnormality cause determination unit 204 to a server or the like located outside the vehicle (S206).
[0082] (3) Summary As described above, according to this embodiment, it is possible to determine whether the cause of the abnormality is an attack or a malfunction depending on whether an abnormality is detected in all of the multiple messages or in some of the multiple messages, without performing complex calculations and therefore without increasing the processing load on the ECU.
[0083] Furthermore, according to this embodiment, ECU 200 determines the cause of the abnormality and transmits only the determination result outside the vehicle, which makes it possible to significantly reduce the communication load when transmitting outside the vehicle and prevent delays, compared to a case in which the message authentication results performed by each ECU 200 are transmitted outside the vehicle separately.
[0084] 4. Modification of the second embodiment In the above-described second embodiment, the ECU 200 performs message authentication processing, detects an abnormality when authentication fails, and performs processing to determine whether the cause of the abnormality is an attack or a malfunction. In this modification, a configuration will be described in which an ECU that performs authentication processing and abnormality detection processing and an ECU that determines the cause of the abnormality are separately executed.
[0085] Fig. 10 is a diagram for explaining an ECU of this modified example. Components having the same functions as those in Fig. 7 are given the same reference numerals. In this modified example, an ECU for realizing the present invention is composed of a plurality of ECUs. That is, ECU 210 (corresponding to an "electronic control device") is composed of a plurality of ECUs (ECU 211, ECU 212).
[0086] The ECU 211 includes a receiving unit 201, an authentication unit 202, an abnormality detection unit 203, and a transmission unit 213. The ECU 212 includes a receiving unit 214, an abnormality cause determination unit 204, and a transmission unit 205.
[0087] As in the second embodiment, the receiving unit 201 of the ECU 211 receives each of the multiple messages, and the authentication unit 202 performs authentication processing using each of the messages received by the receiving unit 201. Then, the abnormality detection unit 203 detects an abnormality when authentication by the authentication unit 202 fails. Here, in the second embodiment described above, the cause of the abnormality is determined based on the abnormality detection result by the abnormality detection unit 203, but in this modification, the transmission unit 213 transmits to the ECU 212 abnormality detection information indicating whether or not the abnormality detection unit 203 has detected an abnormality in the multiple messages.
[0088] The receiving unit 214 of the ECU 212 receives the abnormality detection information transmitted from the ECU 211. Then, the abnormality cause determination unit 204 determines the cause of the abnormality based on the abnormality detection information received by the receiving unit 214. The method by which the abnormality cause determination unit 204 determines the cause of the abnormality is the same as in the second embodiment, and therefore detailed description will be omitted. Then, the transmitting unit 205 transmits the determination result by the abnormality cause determination unit 204 to the outside of the vehicle.
[0089] 10 illustrates a configuration in which only one ECU 211 is connected to the ECU 212, but a plurality of ECUs 211 may be connected to the ECU 212. In this case, the ECU 212 receives abnormality detections from the plurality of ECUs 211 and determines the cause of the abnormality for each of the ECUs 212.
[0090] In this modification, each ECU 211 needs to transmit abnormality detection information to ECU 212, so the amount of communication on the in-vehicle network increases compared to a case where both abnormality detection and abnormality cause determination are performed in one ECU (ECU 200 in the second embodiment). However, by separating the ECU that performs authentication processing and abnormality detection processing from the ECU that determines the cause of abnormality, it becomes possible to apply the abnormality cause determination in the present disclosure even when, for example, the processing capacity of an ECU (e.g., ECU 211) arranged at the lower layer of the electronic control system is not high and it is difficult to realize the abnormality cause determination process.
[0091] 5. Modifications common to the first and second embodiments In both of the above-mentioned first and second embodiments, the configuration has been described in which the process of determining the cause of an abnormality is performed within the in-vehicle system and the determination result is transmitted to the outside of the vehicle. However, the process of determining the cause of an abnormality in the first and second embodiments may be performed by a server, SOC, or the like disposed outside the vehicle. In this case, the in-vehicle system needs to transmit the authentication result of the message to the server or SOC, so the processing load of the communication network cannot be reduced. However, by performing the determination process in the server or SOC, it is possible to reduce the processing load of the entire in-vehicle system.
[0092] 6. Summary The features of the electronic control device and the like in each embodiment of the present invention have been described above.
[0093] The terms used in each embodiment are merely examples and may be replaced with terms having the same meaning or functions.
[0094] The block diagrams used to explain the embodiments classify and organize the configuration of the device by function. The blocks showing the respective functions are realized by any combination of hardware or software. In addition, since the block diagrams show the functions, they can also be understood as disclosures of a method invention and a program invention that realizes the method.
[0095] The order of the functional blocks that can be understood as the processes, flows, and methods described in each embodiment may be changed as long as there are no constraints such as a relationship in which one step utilizes the results of another step that precedes it.
[0096] The terms first, second, through Nth (N is an integer) used in each embodiment and in the claims are used to distinguish two or more configurations or methods of the same type, and do not limit the order or superiority or inferiority.
[0097] The electronic control device of each embodiment is based on the premise that it is an electronic control device that constitutes an on-board system installed in a vehicle, but the electronic control device of the present disclosure is applicable to any electronic control device unless specifically limited in the claims.
[0098] Examples of the form of the device of the present invention are as follows. Examples of the component form include a semiconductor element, an electronic circuit, a module, and a microcomputer. Examples of semi-finished products include electronic control units (ECUs (Electric Control Units)) and system boards. Finished product forms include mobile phones, smartphones, tablets, personal computers (PCs), workstations, and servers. Other examples include devices with communication functions, such as video cameras, still cameras, and car navigation systems.
[0099] Furthermore, necessary functions such as an antenna and a communication interface may be added to each device.
[0100] In addition, the present invention can be realized not only by dedicated hardware having the configuration and functions described in each embodiment, but also as a combination of a program for realizing the present invention recorded on a recording medium such as a memory or a hard disk, and general-purpose hardware having a dedicated or general-purpose CPU and memory capable of executing the program.
[0101] A program stored in a non-transient physical recording medium (for example, an external storage device (hard disk, USB memory, CD / BD, etc.) or an internal storage device (RAM, ROM, etc.)) of dedicated or general-purpose hardware can be provided to the dedicated or general-purpose hardware via a recording medium, or via a communication line from a server without using a recording medium. This makes it possible to always provide the latest functions through program upgrades. [Industrial Applicability]
[0102] This disclosure has described an on-board electronic control device that is mainly mounted on an automobile, a program executable by the on-board electronic control device, and a method for generating a program executed by the on-board electronic control device, but it can be applied to any moving object such as a motorcycle, a ship, a train, an airplane, etc. Furthermore, it can be applied not only to moving objects but also to any product that includes a microcomputer. [Explanation of symbols]
[0103] 100, 200, 210 electronic control device, 101 transmission unit, 102, 201 reception unit, 103, 204 judgment unit, 202 authentication unit, 203 detection unit
Claims
1. An electronic control device (100) connected to a plurality of devices, A transmission unit (101) for transmitting messages to each of the plurality of devices; a receiving unit (102) for receiving authentication result information indicating a result of authentication performed by the plurality of devices using the message; a determination unit (103) that determines whether each of the plurality of devices is abnormal based on the authentication result information, and, when at least one of the plurality of devices is abnormal, determines whether the cause of the abnormality is an attack or a malfunction depending on whether all of the plurality of devices are abnormal; An electronic control device comprising:
2. The determination unit determines that the cause of the abnormality is an attack when all of the plurality of devices are abnormal. The electronic control device according to claim 1.
3. The determination unit determines that the cause of the abnormality is a malfunction when some of the plurality of devices is abnormal. The electronic control device according to claim 1.
4. The receiving unit further receives, from a faulty device that is a device in which a fault has been detected among the plurality of devices, fault information indicating that the fault has been detected; the determination unit determines that the failed device is abnormal when the receiving unit receives the failure information, and determines whether the cause of the abnormality is an attack or a failure depending on whether all of the plurality of devices including the failed device are abnormal. The electronic control device according to claim 1.
5. The receiving unit further receives, from a faulty device that is a device in which a fault has been detected among the plurality of devices, fault information indicating that the fault has been detected; the determination unit determines whether the cause of the abnormality is an attack or a malfunction depending on whether all of the plurality of devices excluding the malfunctioning device are abnormal. The electronic control device according to claim 1.
6. When the determination unit determines that one of the plurality of devices is normal and the other devices are abnormal, the transmission unit further transmits inquiry information to inquire about the presence or absence of a malfunction to the one device; The receiving unit receives the failure information from the failed device, which is the one device.
6. The electronic control device according to claim 4 or 5.
7. the receiving unit receives the authentication result information only from a device that has failed the authentication performed using the message among the plurality of devices; the determination unit determines that a device from which the authentication result information has not been received by the receiving unit is normal, among the plurality of devices. The electronic control device according to claim 1.
8. the determination unit makes the determination after a predetermined time has elapsed since the transmission unit transmitted the message.
8. The electronic control device according to claim 7.
9. The electronic control device is mounted on a moving object, The transmission unit further transmits a determination result by the determination unit to an outside of the moving object. The electronic control device according to claim 1.
10. A method for determining a cause of an abnormality executed by an electronic control device, comprising: A message is transmitted to each of a plurality of devices connected to the electronic control device (S101); receiving authentication result information indicating a result of authentication performed by the plurality of devices using the message (S102); Based on the authentication result information, it is determined whether or not each of the plurality of devices is abnormal (S104); If at least one of the plurality of devices is abnormal, it is determined whether the cause of the abnormality is an attack or a malfunction depending on whether all of the plurality of devices are abnormal (S106). Method for determining cause of abnormality.
11. An abnormality cause determination program executable by an electronic control device, A message is transmitted to each of a plurality of devices connected to the electronic control device (S101); receiving authentication result information indicating a result of authentication performed by the plurality of devices using the message (S102); Based on the authentication result information, it is determined whether or not each of the plurality of devices is abnormal (S104); If at least one of the plurality of devices is abnormal, it is determined whether the cause of the abnormality is an attack or a malfunction depending on whether all of the plurality of devices are abnormal (S106). Anomaly cause determination program.
12. A receiving unit (201) for receiving a plurality of different messages from other devices connected to the electronic control device; an authentication unit (202) that performs authentication using each of the plurality of messages; A detection unit (203) that detects an abnormality when authentication in the authentication unit fails; a determination unit (204) that, when the detection unit detects an abnormality in at least one of the plurality of messages, determines whether the cause of the abnormality is an attack or a malfunction of the electronic control device depending on whether the detection unit detects an abnormality in all of the plurality of messages; An electronic control device (200, 210).
13. When an abnormality is detected in all of the plurality of messages, the determination unit determines that the cause of the abnormality is a failure of the electronic control device. The electronic control device according to claim 12.
14. When an abnormality is detected in some of the plurality of messages, the determination unit determines that the cause of the abnormality is an attack. The electronic control device according to claim 12.
Citation Information
Patent Citations
Vehicle communication device, communication abnormality determination method, and program
JP2021083005A
Intrusion-path analyzing device and intrusion-path analyzing method
WO2021145144A1
