In-vehicle communication device and information replacement method
The in-vehicle communication device addresses spoofing attacks by detecting and replacing abnormal messages with estimated normal information, ensuring message integrity and vehicle function.
Patent Information
- Application Number
- JP2023143054
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-09-04
- Publication Date
- 2024-11-06
- Estimated Expiration
- 2039-11-13
AI Technical Summary
Spoofing attacks on vehicle networks can cause abnormal messages to overwrite normal messages, leading to missing periodic messages and disrupting vehicle functions.
An in-vehicle communication device with a receiving section, processing section, and transmitting section that detects abnormal messages, estimates normal information, and replaces it, adding flag information to relayed messages.
Reduces the negative effects of spoofing attacks by preventing message loss and maintaining normal vehicle function.
Smart Images

Figure 0007578167000001 
Figure 0007578167000002 
Figure 0007578167000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an in-vehicle communication device that transmits and receives messages to and from other devices mounted in a vehicle, and an information replacement method that replaces information included in the messages. [Background technology]
[0002] Conventionally, vehicles are equipped with multiple devices such as ECUs (Electronic Control Units). These multiple on-board devices are connected to each other via communication lines, exchange information by sending and receiving messages, and cooperate to realize various functions of the vehicle. Communication standards such as CAN (Controller Area Network) or Ethernet (registered trademark) are widely used for communication within the vehicle.
[0003] Patent document 1 proposes a network device that performs authentication based on message authentication information contained in a message, and invalidates the message if authentication fails, thereby enabling defensive action in the event of an impersonation attack on the network. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2018-182767 A Summary of the Invention [Problem to be solved by the invention]
[0005] Spoofing attacks against a network include an attack that inserts an abnormal message between normal message transmissions, and an attack that overwrites a normal message with an abnormal message. If an invalidation is performed like the network device described in Patent Document 1 against an attack that overwrites a normal message with an abnormal message, for example, messages that should be sent periodically will be missing.
[0006] The present disclosure has been made in consideration of the above circumstances, and has as its purpose to propose an in-vehicle communication device and an information replacement method that are expected to reduce the adverse effects of attacks on a network. [Means for solving the problem]
[0007] The in-vehicle communication device according to the present aspect is an in-vehicle communication device mounted on a vehicle, and includes a receiving unit, a processing unit, and a transmitting unit, the receiving unit receiving a message from another device, and the processing unit: The receiving unit determines whether the received message is a periodic message that is periodically transmitted or a non-periodic message that is not periodically transmitted, and for the periodic message that has been determined to be transmitted, determines whether the message has been transmitted at a predetermined period, and specifies the period that the message has been transmitted at the predetermined period. The device detects an abnormality in the information contained in the message, estimates normal information for the information in which the abnormality was detected, replaces the information contained in the message received by the receiving unit with the estimated information, and adds flag information indicating that replacement has been performed to the message in which the information has been replaced.The transmitting unit transmits to another device the message in which the processing unit detected no abnormality in the information and the message in which the processing unit has replaced the information.
[0008] The present application can be realized not only as an in-vehicle communication device or other device having such a characteristic processing unit, but also as an information replacement method having such characteristic processing steps, or as a computer program for causing a computer to execute such steps. It can also be realized as a semiconductor integrated circuit that realizes part or all of these devices, or as other devices or systems including these devices. Effect of the Invention
[0009] Based on the above, it is expected that the adverse effects of attacks on a network can be reduced. [Brief description of the drawings]
[0010] [Figure 1] 1 is a schematic diagram showing a configuration of an in-vehicle communication system according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a block diagram showing a configuration of a GW according to the present embodiment. [Diagram 3] 1 is a schematic diagram showing an example of a configuration of an abnormality detection table included in a GW according to the present embodiment; FIG. [Figure 4] FIG. 11 is a schematic diagram showing a configuration example of an information estimation table included in the GW according to the present embodiment. [Diagram 5] FIG. 11 is a schematic diagram showing an example of information estimation and replacement performed by a GW according to the present embodiment. [Figure 6] 11 is a flowchart illustrating an example of a procedure of a process performed by a GW according to the present embodiment. [Figure 7] 11 is a flowchart illustrating an example of a procedure of a process performed by a GW according to the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] [Description of the embodiment of the present disclosure] First, embodiments of the present disclosure will be described. At least a part of the embodiments described below may be arbitrarily combined.
[0012] (1) The in-vehicle communication device of this embodiment is an in-vehicle communication device mounted on a vehicle, and is equipped with a receiving unit and a processing unit. The receiving unit receives a message from another device, and the processing unit detects an anomaly in information included in the message received by the receiving unit, estimates normal information for the information in which an anomaly was detected, and replaces the information included in the message received by the receiving unit with the estimated information.
[0013] In this aspect, when an in-vehicle communication device detects an abnormality in information contained in a message received from another device, normal information is estimated for the abnormal information, and the abnormal information contained in the received message is replaced with the estimated information. As a result, even if a spoofing attack is performed to overwrite a legitimate message, the normal information that should have been added to the original message can be estimated and used for subsequent processing, so that it is expected that the loss of a message due to a spoofing attack will not adversely affect subsequent processing.
[0014] (2) It is preferable that the processing unit determines whether the message received by the receiving unit is a periodic message that is transmitted periodically or a non-periodic message that is not transmitted periodically, and for the periodic message determined to have been transmitted at a specified period, detects an abnormality in the information contained in the periodic message determined to have been transmitted at the specified period.
[0015] In this aspect, the in-vehicle communication device determines whether a received message is a periodic message or a non-periodic message, and further determines whether the periodic message was transmitted at the correct predetermined period. The in-vehicle communication device performs anomaly detection on periodic messages transmitted at the correct period. This enables the in-vehicle communication device to deal with spoofing attacks that overwrite periodic messages transmitted at the correct period.
[0016] (3) It is preferable that the processing unit estimates normal information of the periodic message in which an abnormality has been detected based on a chronological change in information contained in multiple periodic messages received prior to the periodic message in which an abnormality has been detected.
[0017] In this aspect, normal information is estimated for the information in which an abnormality has been detected, based on time-series changes in information included in multiple periodic messages received prior to the periodic message in which an abnormality has been detected, thereby making it possible to estimate the latest information based on previous changes in the information included in the periodic messages.
[0018] (4) It is preferable that the processing unit discards a periodic message that is determined not to have been transmitted at a predetermined interval.
[0019] In this aspect, if a periodic message is not transmitted at the correct cycle, the in-vehicle communication device discards the periodic message, thereby making it possible to deal with spoofing attacks in which abnormal messages are transmitted between normal periodic message transmissions.
[0020] (5) It is preferable that the processing unit detects anomalies in information contained in aperiodic messages.
[0021] In this aspect, the in-vehicle communication device detects anomalies in the information included in the aperiodic message, thereby enabling the in-vehicle communication device to deal with spoofing attacks of the aperiodic message.
[0022] (6) It is preferable that the processing unit estimates normal information of the aperiodic message in which an abnormality has been detected, based on information included in a periodic message received prior to the aperiodic message in which an abnormality has been detected.
[0023] In this aspect, normal information for the information of the nonperiodic message in which an abnormality was detected is estimated based on information contained in a periodic message received before the nonperiodic message in which an abnormality was detected. This makes it possible to estimate the normal information of the nonperiodic message depending on the vehicle state, etc. that can be determined from the information of the periodic message.
[0024] (7) It is preferable that the communication device further comprises a transmitting unit, the processing unit adding flag information indicating that a replacement has been performed to the message in which information has been replaced, and the transmitting unit transmitting to another device a message in which the processing unit has detected no abnormality in the information and a message in which the processing unit has replaced information.
[0025] In this embodiment, the in-vehicle communication device relays messages between multiple devices. If the in-vehicle communication device detects an abnormality in the message to be relayed, the in-vehicle communication device relays the message that has undergone the above-mentioned estimation and replacement. If the in-vehicle communication device replaces information, the in-vehicle communication device notifies the relay destination device of the replacement by attaching flag information indicating the replacement to the message. This allows the relay destination device to determine whether or not information replacement has been performed based on the flag information attached to the message, and can perform processing such as discarding the replaced information if the replaced information is not highly necessary.
[0026] (8) The information replacement method of the present aspect detects an anomaly in information included in a message received by an in-vehicle communication device installed in a vehicle from another device, estimates normal information for the information in which the anomaly was detected, and replaces the information included in the received message with the estimated information.
[0027] In this embodiment, as in embodiment (1), it is expected that the loss of a message due to a spoofing attack can be prevented from adversely affecting subsequent processing.
[0028] [Details of the embodiment of the present disclosure] Specific examples of in-vehicle communication systems according to embodiments of the present disclosure will be described below with reference to the drawings. The present disclosure is not limited to these examples, but is defined by the claims, and is intended to include all modifications within the meaning and scope of the claims.
[0029] <System configuration> FIG. 1 is a schematic diagram showing the configuration of an in-vehicle communication system according to this embodiment. The in-vehicle communication system according to this embodiment is a system in which a GW (gateway) 2 and a plurality of ECUs 4 mounted on a vehicle 1 communicate with each other via communication lines 1a and 1b. In the illustrated example, two bus-type communication lines 1a and 1b are provided in the vehicle 1. The GW 2 and two ECUs 4 are connected to the first communication line 1a, and the GW 2 and two ECUs 4 are connected to the second communication line 1b. The GW 2 is connected to both of the two communication lines 1a and 1b, and performs a process of relaying communication between the two communication lines 1a and 1b. This allows the four ECUs 4 to communicate with each other via the communication lines 1a and 1b and the GW 2.
[0030] For example, if one of the ECUs 4 included in the in-vehicle communication system is taken over by injection of a malicious program or the like (the taken over ECU 4 is shown as ECU 4Z in FIG. 1), the ECU 4Z may transmit an abnormal message to the communication line 1a constituting the network of the vehicle 1. The in-vehicle communication system according to this embodiment detects that such an abnormal message has been transmitted and replaces the information included in the abnormal message with normal information.
[0031] The replacement of information in an abnormal message may be performed by the GW2 or each ECU 4. In this embodiment, the GW2 is described as replacing information. The GW2 according to this embodiment relays messages between the communication lines 1a and 1b by transmitting a message received on one of the communication lines 1a and 1b from the other communication line 1a and 1b. When the GW2 determines that information included in a received message is abnormal, it estimates normal information for the abnormal information and relays a message in which the abnormal information has been replaced with the estimated information. In addition, flag information indicating whether or not information replacement has been performed is attached to the message relayed by the GW2 according to this embodiment.
[0032] FIG. 2 is a block diagram showing the configuration of the GW2 according to the present embodiment. The GW2 according to the present embodiment is configured to include a processing unit (processor) 21, a memory unit (storage) 22, and two communication units (transceivers) 23. The processing unit 21 is configured using an arithmetic processing device such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit). The processing unit 21 can perform various processes by reading and executing a program stored in the memory unit 22. In the present embodiment, the processing unit 21 performs various processes such as a process of relaying a message between the communication lines 1a and 1b and a process of replacing information included in an abnormal message by reading and executing a program 22a stored in the memory unit 22.
[0033] The storage unit 22 is configured using a non-volatile memory element such as a flash memory or an EEPROM (Electrically Erasable Programmable Read Only Memory). The storage unit 22 stores various programs executed by the processing unit 21 and various data required for processing by the processing unit 21. In this embodiment, the storage unit 22 stores a program 22a executed by the processing unit 21, an abnormality detection table 22b for detecting an abnormality in information included in a message, and an information estimation table 22c for estimating normal information for the abnormal information. Details of the abnormality detection table 22b and the information estimation table 22c will be described later.
[0034] The program 22a may be written in the storage unit 22 during the manufacturing stage of the GW2, or may be distributed by a remote server device or the like and acquired by the GW2 through communication, or may be read by the GW2 from a recording medium 99 such as a memory card or optical disk and stored in the storage unit 22, or may be read from the recording medium 99 by a writing device and written to the storage unit 22 of the GW2. The program 22a may be provided in a form of distribution via a network, or may be provided in a form of being recorded on the recording medium 99.
[0035] The two communication units 23 are connected to the communication line 1a or 1b and communicate with the ECU 4 via the communication lines 1a and 1b. In this embodiment, the communication unit 23 transmits and receives messages according to a communication standard, for example, CAN (Controller Area Network). The communication unit 23 may be configured using, for example, a CAN controller IC. However, the communication standard used by the communication unit 23 is not limited to CAN, and the communication unit 23 may communicate using a communication standard other than CAN, for example, a communication standard such as Ethernet (registered trademark). The communication unit 23 transmits a message by outputting a message provided by the processing unit 21 to the communication lines 1a and 1b as an electric signal. The communication unit 23 also samples and acquires the electric potential of the communication lines 1a and 1b, converts the electric signal on the communication lines 1a and 1b into digital data, and provides the converted data to the processing unit 21 as a received message.
[0036] In the present embodiment, the GW2 has a relay processing unit 21a, a period determination unit 21b, an abnormality detection unit 21c, an information estimation unit 21d, an information replacement unit 21e, a discarding unit 21f, a flag assignment unit 21g, and the like realized as software functional units in the processing unit 21 by having the processing unit 21 read and execute a program 22a stored in the storage unit 22. The relay processing unit 21a performs a process of relaying a message between the communication lines 1a and 1b by transmitting a message received by one of the two communication units 23 from the other communication unit 23.
[0037] The periodicity determination unit 21b performs a determination process regarding the period of a message received by the communication unit 23. The periodicity determination unit 21b determines whether the received message is a periodic message that is transmitted periodically, or a non-periodic message that is not transmitted periodically (a so-called event message). The periodicity determination unit 21b also determines whether the periodic message is transmitted at a correct period defined for each periodic message. The periodicity determination unit 21b makes the determination based on the information in the abnormality detection table 22b stored in the storage unit 22.
[0038] The abnormality detection unit 21c performs a process of detecting an abnormality in information included in a message received by the communication unit 23. The abnormality detection unit 21c detects abnormalities in periodic messages that the periodicity determination unit 21b has determined to have been transmitted at a correct period and non-periodic messages that the periodicity determination unit 21b has determined to have been transmitted at a correct period. The abnormality detection unit 21c refers to an abnormality detection table 22b stored in the storage unit 22, and determines whether the information included in the received message satisfies the conditions defined in the abnormality detection table 22b, thereby determining whether the received message is normal or abnormal.
[0039] The information estimation unit 21d performs a process of estimating normal information for abnormal information contained in a message in which the abnormality detection unit 21c has detected an abnormality. The information estimation unit 21d estimates information based on a method defined in an information estimation table 22c stored in the storage unit 22.
[0040] The information replacing unit 21e replaces abnormal information contained in a message in which the abnormality detecting unit 21c has detected an abnormality with normal information estimated by the information estimating unit 21d.
[0041] The discard unit 21f performs a process of discarding, as a spoofing attack message, a periodic message that is determined by the periodicity determination unit 21b not to have been transmitted at a valid period. The discard unit 21f discards the spoofing attack message, for example, by prohibiting the relay processing unit 21a from relaying the spoofing attack message received at one communication unit 23 so that the message is not transmitted from the other communication unit 23. The discard unit 21f may also cause the ECU 4 that received the spoofing attack message to discard the message by transmitting a message including a command to discard the message from the communication unit 23 that received the message.
[0042] The flag adding unit 21g performs a process of adding flag information indicating whether or not the information replacement by the information replacing unit 21e has been performed to the message relayed by the relay processing unit 21a. In this embodiment, the messages transmitted and received by the GW2 and the ECU4 comply with the CAN communication standard. For example, a data frame, which is one of the CAN messages, includes an arbitration field, a control field, a data field, a CRC (Cyclic Redundancy Check) field, and an ACK field. The ID of the message is stored in the arbitration field, and, for example, a detection value of a sensor or a control value of an equipment is stored in the data field. The information handled by the information estimating unit 21d and the information replacing unit 21e is information stored in this data field. In this embodiment, a part of the data field (1 bit to several bits) is used for storing flag information, and the flag adding unit 21g stores, for example, a value of "1" in this area when information replacement has been performed, and a value of "0" in this area when replacement has not been performed. Note that, in the case where a communication standard other than the CAN communication standard is adopted, an appropriate area in the message may be used for storing flag information in the same manner.
[0043] <Information replacement process> Next, the information replacement process performed by the GW2 according to this embodiment will be described. Fig. 3 is a schematic diagram showing an example of the configuration of the abnormality detection table 22b possessed by the GW2 according to this embodiment. The abnormality detection table 22b according to this embodiment stores, in association with an ID attached to a message, information indicating whether the message is a periodic message or an aperiodic message, a transmission period when the message is a periodic message, a normal range of information contained in the message, and a normal increase / decrease amount of information contained in the message. Note that in this embodiment, the GW2 stores reception information (information contained in the message, reception time, etc.) for at least the past several periodic messages.
[0044] In the illustrated example, the message with ID 10 is a periodic message, and its transmission period is 100 ms. The normal range of the value of the information included in this periodic message is 10 to 70, and the normal increase / decrease amount is ±10. When the ID of the received message is 10, the periodic judgment unit 21b of GW2 judges this message to be a periodic message by referring to the abnormality detection table 22b, and obtains 100 ms as its transmission period. The periodic judgment unit 21b calculates the elapsed time from the timing when the periodic message with ID 10 was received last time to the timing when it is received this time, that is, the transmission period. The periodic judgment unit 21b judges whether the calculated transmission period matches the transmission period set in the abnormality detection table 22b. However, at this time, the periodic judgment unit 21b allows a predetermined error (for example, ±10%) for the set transmission period, and judges whether the transmission period calculated from the actual reception timing is within the range of 100 ms ±10% (i.e., 90 ms to 110 ms).
[0045] The abnormality detection unit 21c performs abnormality detection on periodic messages that are determined by the periodicity determination unit 21b to have been transmitted at a proper transmission period and on messages that are determined to be non-periodic messages based on the normal range and normal increase / decrease amount set in the abnormality detection table 22b. The abnormality detection unit 21c acquires information included in the message that is the target of abnormality detection (information stored in the data field in the case of the CAN communication standard). The abnormality detection unit 21c judges whether the value of the information acquired from the message is within the normal range set in the abnormality detection table 22b. In the illustrated example, the normal range for a periodic message with an ID of 10 is set to 10 to 70, and if the value of the information acquired from the message is within the range of 10 to 70, the abnormality detection unit 21c judges the message to be normal.
[0046] Furthermore, when a normal increase / decrease amount is set in the abnormality detection table 22b for a periodic message, the abnormality detection unit 21c calculates the increase / decrease amount of the information of the current message relative to the information of the previously received message. The abnormality detection unit 21c judges whether or not the calculated increase / decrease amount of the information falls within the range of normal increase / decrease amounts set in the abnormality detection table 22b. In the illustrated example, the normal increase / decrease amount of a periodic message with an ID of 10 is set to ±10, and the abnormality detection unit 21c judges the message to be normal if, for example, the previous value was 50 and the current value is within the range of 40 to 60.
[0047] In addition, it is not necessary that both the normal range and the normal increase / decrease amount are set in the abnormality detection table 22b, and only one of them may be set. When both the normal range and the normal increase / decrease amount are set, the abnormality detection unit 21c judges a message that satisfies both conditions as a normal message, and judges a message that does not satisfy at least one of them as an abnormal message. However, the method of abnormality detection by the abnormality detection unit 21c is not limited to the one based on the normal range and normal increase / decrease amount described above, and other methods may be adopted.
[0048] 4 is a schematic diagram showing a configuration example of the information estimation table 22c of the GW2 according to the present embodiment. The information estimation table 22c according to the present embodiment stores an information estimation method in association with an ID attached to a message. In this example, messages with IDs of 10, 20, and 30 are periodic messages, and messages with IDs of 40 and 50 are non-periodic messages.
[0049] In the illustrated example, for a message with ID 10, it is set that the average value of the past three pieces of information is used as the estimated value. When estimating information of a message with ID 10 in which an abnormality has been detected, information estimation unit 21d acquires the most recent three pieces of information, calculates the average value of these pieces of information, and sets the calculated average value as the estimated value. Information replacement unit 21e replaces the information of the message in which the abnormality was detected (i.e., the value of the data field) with this estimated value.
[0050] In the illustrated example, the estimated value is set to be calculated for a message with ID 20 by increasing or decreasing the amount of increase or decrease based on the average value of the amount of increase or decrease for the past five times. When estimating information for a message with ID 20 in which an abnormality has been detected, the information estimation unit 21d acquires the most recent five pieces of information and calculates the amount of increase or decrease in the information for each time. The information estimation unit 21d can calculate four amounts of increase or decrease from the information for the past five times, and calculates the average value of the four calculated amounts of increase or decrease. The information estimation unit 21d uses the average value of the calculated amounts of increase or decrease to increase or decrease the value of the previous information, and sets the estimated value as the value. The information replacement unit 21e replaces the information of the message in which an abnormality has been detected with this estimated value.
[0051] In the illustrated example, the specific value is set as the estimated value for the message with ID 30. In this case, the information estimation unit 21d sets the estimated value of the information of the message with ID 30 in which the abnormality was detected to a predetermined specific value. The information replacement unit 21e replaces the information of the message in which the abnormality was detected with this estimated value (specific value).
[0052] In the illustrated example, the non-periodic message with ID 40 is set to be calculated from the brightness outside the vehicle. In this embodiment, the information of the non-periodic message is estimated based on the information of a related periodic message received before the non-periodic message. In this example, the vehicle 1 is equipped with a sensor that detects the brightness outside the vehicle, and the brightness information detected by the sensor is transmitted and received as a periodic message. When estimating the information of the non-periodic message with ID 40 in which an abnormality is detected, the information estimation unit 21d acquires brightness information from a periodic message received before the non-periodic message, and estimates the information of the non-periodic message from the acquired brightness using a predetermined arithmetic expression. The information replacement unit 21e replaces the information of the non-periodic message in which an abnormality is detected with this estimated value. For example, the information of the non-periodic message related to an event of turning on / off the vehicle 1's lights, an event of adjusting the amount of light, etc. can be estimated from the brightness outside the vehicle.
[0053] In the illustrated example, the non-periodic message with ID 50 is set to be calculated from the vehicle speed of the vehicle 1. In this example, it is assumed that information on the vehicle speed of the vehicle 1 is transmitted and received as a periodic message. When estimating information on the non-periodic message with ID 50 in which an abnormality has been detected, the information estimation unit 21d acquires information on the vehicle speed from a periodic message received before the non-periodic message, and sets the estimated value to 0 if the acquired vehicle speed is 5 km / h or more, and sets the estimated value to 1 if the acquired vehicle speed is less than 5 km / h. The information replacement unit 21e replaces information on the non-periodic message in which an abnormality has been detected with this estimated value. For example, information on the non-periodic message related to an event of opening and closing the door of the vehicle 1, an event of locking and unlocking the door, etc. can be estimated from the vehicle speed.
[0054] The information in the abnormality detection table 22b and the information estimation table 22c included in the GW2 according to the present embodiment is determined in advance, for example, in a design stage or a manufacturing stage of the in-vehicle communication system, the GW2, the ECU 4, etc., and is stored in the storage unit 22 of the GW2. The information in the abnormality detection table 22b and the information estimation table 22c may be updated at an appropriate timing after the manufacture of the vehicle 1.
[0055] Fig. 5 is a schematic diagram showing an example of information estimation and replacement performed by GW2 according to this embodiment. The upper part of Fig. 5 shows a timing chart showing the transmission timing of periodic messages M1 to M5. The middle part of Fig. 5 shows a graph showing a state where information is lost due to a spoofing attack, and the lower part shows a graph showing a state where the lost information is estimated and replaced.
[0056] In the illustrated example, periodic messages are transmitted in the order of M1, M2, M3, M4, and M5, and the third periodic message M3 is rewritten by a spoofing attack. Devices such as the GW 2 and the ECU 4 that receive the periodic message M3 detect that the periodic message M3 is abnormal, and the information contained in the periodic message M3 cannot be used for control or other processing, resulting in a loss of information that is periodically acquired.
[0057] The GW2 according to this embodiment estimates normal information that would have been obtained if the periodic message M3 in which an abnormality was detected had not been rewritten by a spoofing attack, and replaces the information in the periodic message M3 in which an abnormality was detected with the estimated information. In the illustrated example, the GW2 calculates the amount of increase or decrease in information from the periodic message M1 to M2 received before the periodic message M3 in which an abnormality was detected, and applies the calculated amount of increase or decrease to the information in the periodic message M2 to estimate the information in the periodic message M3. The GW2 replaces the information in the periodic message M3 in which an abnormality was detected with the estimated value, and relays the replaced periodic message M3.
[0058] 6 and 7 are flowcharts showing an example of a procedure of processing performed by the GW 2 according to the present embodiment. The relay processing unit 21a of the processing unit 21 of the GW 2 according to the present embodiment determines whether or not a message has been received from the ECU 4 at any of the communication units 23 (step S1). If no message has been received (S1: NO), the relay processing unit 21a waits until a message is received.
[0059] When a message is received (S1: YES), the periodicity determination unit 21b of the processing unit 21 acquires an ID included in the received message (step S2). Based on the ID acquired in step S2, the periodicity determination unit 21b refers to the abnormality detection table 22b stored in the storage unit 22 (step S3). Based on the information stored in the abnormality detection table 22b indicating whether the received message is a periodic message or an aperiodic message, the periodicity determination unit 21b determines whether the received message is a periodic message or not (step S4). When the received message is not a periodic message (S4: NO), that is, when the received message is an aperiodic message, the periodicity determination unit 21b advances the process to step S7.
[0060] If the received message is a periodic message (S4: YES), the periodicity determination unit 21b calculates the transmission period from the difference between the timing of the previous reception of a message with the same ID and the timing of the current reception, and compares it with the period stored in the abnormality detection table 22b to determine whether the received periodic message was transmitted at a proper period (step S5). If the message was not transmitted at a proper period (S5: NO), the discard unit 21f of the processing unit 21 discards the received message (step S6) and ends the process. If the message was transmitted at a proper period (S5: YES), the periodicity determination unit 21b advances the process to step S7.
[0061] If the received message is a non-periodic message or a periodic message transmitted in an appropriate period, the abnormality detection unit 21c of the processing unit 21 compares the information contained in the message with the normal range and the cleaning increase / decrease amount set in the abnormality detection table 22b to determine whether the received message is normal (step S7). If the received message is normal (S7: YES), the abnormality detection unit 21c proceeds to step S11.
[0062] If the received message is not a normal message (S7: NO), that is, if the message is an abnormal message, the information estimation unit 21d of the processing unit 21 refers to the information estimation table 22c stored in the storage unit 22 (step S8). The information estimation unit 21d estimates a normal value for the abnormal value of the information included in the message determined to be abnormal, using the estimation method stored in the information estimation table 22c (step S9). The information replacement unit 21e of the processing unit 21 replaces the abnormal value included in the abnormal message with the normal value estimated in step S9 (step S10).
[0063] The flag setting unit 21g of the processing unit 21 sets flag information related to replacement included in the message to be relayed based on whether or not information estimation and replacement have been performed on the message to be relayed (step S11). The relay processing unit 21a relays the message by transmitting the message with the flag information set from the communication unit 23 (step S12), and ends the process.
[0064] <Summary> When the GW2 according to the present embodiment configured as described above detects an abnormality in information included in a message received from the ECU 4, the GW2 estimates normal information for the abnormal information and replaces the abnormal information included in the received message with the estimated information. As a result, even if a spoofing attack is performed that overwrites a legitimate message, the GW2 can estimate normal information that should be included in the original message and use it for subsequent processing, so that it is expected that the loss of a message due to a spoofing attack will not adversely affect subsequent processing.
[0065] Furthermore, the GW2 according to this embodiment determines whether a received message is a periodic message or a non-periodic message, and further determines whether the periodic message was sent in a correct cycle. The GW2 performs anomaly detection on periodic messages sent in a correct cycle. This enables the GW2 to deal with spoofing attacks that overwrite periodic messages sent in a correct cycle.
[0066] Furthermore, the GW2 according to the present embodiment estimates normal information for the information of the periodic message in which an abnormality was detected based on a time-series change, for example, an increase or decrease, in information included in a plurality of periodic messages received before the periodic message in which an abnormality was detected. This allows the GW2 to estimate the latest information for the information included in the periodic message based on a change in previous information.
[0067] Furthermore, the GW2 according to the present embodiment discards periodic messages that are not transmitted in the correct cycle, which enables the GW2 to deal with spoofing attacks that transmit abnormal messages between transmissions of normal periodic messages.
[0068] Furthermore, the GW2 according to the present embodiment detects anomalies in information contained in aperiodic messages, thereby enabling the GW2 to deal with spoofing attacks of aperiodic messages.
[0069] Furthermore, the GW2 according to this embodiment estimates normal information for the information of the aperiodic message in which an abnormality has been detected, based on information included in the periodic message received before the aperiodic message in which an abnormality has been detected. This allows the GW2 to estimate the normal information of the aperiodic message according to the state of the vehicle 1 that can be determined from the information of the periodic message.
[0070] Furthermore, the GW2 according to this embodiment relays messages between a plurality of ECUs 4. At this time, if the GW2 detects an abnormality in the message to be relayed, it relays the message by performing the above-mentioned estimation and replacement. When the GW2 replaces information, it notifies the relay destination ECU 4 of the replacement by attaching flag information indicating the implementation of replacement to the message. This allows the relay destination ECU 4 to determine whether or not information replacement has been implemented based on the flag information included in the message, and can perform processing such as discarding the replaced information if the necessity of the information is low.
[0071] In this embodiment, the GW2 that relays the message is configured to estimate and replace information included in the abnormal message, but the present invention is not limited to this. For example, each ECU4 included in the in-vehicle communication system may be configured to estimate and replace information included in the abnormal message. In this case, each ECU4 can estimate and replace information in response to the reception of an abnormal message, and use the estimated information or the replaced message to perform subsequent processing.
[0072] In addition, the network configuration of the in-vehicle communication system shown in Fig. 1 in this embodiment is an example, and is not limited to this. Furthermore, the values of the period, normal range, normal increase / decrease amount, etc. of the abnormality detection table 22b shown in Fig. 3 are an example, and are not limited to this. Furthermore, the estimation method of the information estimation table 22c shown in Fig. 4 is an example, and is not limited to this.
[0073] Each device in the in-vehicle communication system is equipped with a computer including a microprocessor, a ROM, a RAM, etc. An arithmetic processing unit such as a microprocessor may read out and execute a computer program including some or all of the steps of the sequence diagrams or flowcharts as shown in Figures 6 and 7 from a storage unit such as a ROM or RAM. Each of the computer programs for the multiple devices can be installed from an external server device, etc. Furthermore, each of the computer programs for the multiple devices is distributed in a state in which it is stored on a recording medium such as a CD-ROM, a DVD-ROM, or a semiconductor memory.
[0074] The embodiments disclosed herein are illustrative in all respects and should not be considered as limiting. The scope of the present disclosure is defined by the claims, not by the above meaning, and is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]
[0075] 1 vehicle 1a,1b communication line 2 GW (vehicle communication device) 4 ECU 21 Processing section 21a Relay processing unit (receiving unit, transmitting unit) 21b Period determination section 21c Anomaly detection section 21d Information Estimation Department 21e Information replacement part 21f Destruction Section 21g Flagging section 22 Memory section 22a Program 22b Anomaly detection table 22c Information Estimation Table 23 Communications Department 99 Recording media
Claims
1. An in-vehicle communication device mounted in a vehicle, A receiver, a processor, and a transmitter, The receiving unit receives a message from another device, The processing unit includes: determining whether the message received by the receiving unit is a periodic message that is periodically transmitted or an aperiodic message that is not periodically transmitted; For the determined periodic message, it is determined whether the periodic message is transmitted at a predetermined period; Detecting an abnormality in information contained in a periodic message determined to have been transmitted at a predetermined period; Inferring normal information from the information in which an anomaly is detected; replacing information included in the message received by the receiving unit with estimated information; A flag indicating the execution of the replacement is added to the message in which the information has been replaced. The transmission unit transmits, to another device, a message in which the processing unit detects no abnormality in the information and a message in which the processing unit replaces the information. In-vehicle communication device.
2. the processing unit estimates normal information of the periodic message in which an abnormality has been detected based on a time-series change in information included in a plurality of periodic messages received before the periodic message in which an abnormality has been detected. The vehicle-mounted communication device according to claim 1 .
3. The processing unit discards a periodic message determined to have not been transmitted at a predetermined period. The vehicle-mounted communication device according to claim 1 or 2.
4. The processing unit detects an abnormality in information included in the non-periodic message. The vehicle-mounted communication device according to any one of claims 1 to 3.
5. the processing unit estimates normal information of the aperiodic message in which an abnormality has been detected based on information included in a periodic message received prior to the aperiodic message in which an abnormality has been detected. The vehicle-mounted communication device according to claim 4.
6. determining whether a message received by an in-vehicle communication device mounted on the vehicle from another device is a periodic message that is periodically transmitted or an aperiodic message that is not periodically transmitted; For the determined periodic message, it is determined whether the periodic message is transmitted at a predetermined period; Detecting an abnormality in information contained in a periodic message determined to have been transmitted at a predetermined period; Estimating normal information for information in which an anomaly has been detected; Replace the information contained in the received message with the estimated information, A flag indicating the execution of the replacement is added to the message in which the information has been replaced. Sending a message that does not detect anomalies in the information and a message that has replaced the information to another device; Information replacement method.
Citation Information
Patent Citations
Electronic equipment control device
JP1994199154A
Gateway, communication control unit and proxy transmission method of cyclic data
JP2007081484A
Ecu, network device, and network device for vehicle
JP2018182767A
Anomaly detection electronic control unit, onboard network system, and anomaly detection method
US20190141070A1
Relay connection unit mounted in vehicle
WO2008126698A1
