Vehicle-mounted communication device and information replacement method
By designing a receiving and processing unit in the on-board communication system, detecting and replacing abnormal message information, the problem of missing messages caused by network impersonation attacks is solved, and the stable operation and functional maintenance of the system are achieved.
Patent Information
- Application Number
- CN202080074940.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-11-13
- Filing Date
- 2020-10-27
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-10-27
AI Technical Summary
When existing vehicle-mounted communication systems face network impersonation attacks, they are prone to missing messages or overwrite attacks, resulting in damage to the system functions and making it difficult to effectively defend.
A vehicle-mounted communication device is designed, equipped with a receiving unit and a processing unit. By detecting an abnormality of the received message information, it estimates and replaces it with normal information, ensuring that the system can maintain functional stability when facing an impersonation attack. The device determines the periodicity of the message and the normal range of information through the abnormality detection form and the information estimation form, estimates and replaces the abnormality information, and attaches flag information to notify the relay destination.
It effectively reduces the bad impact of network attacks on the system, prevents the negative impact of missing messages caused by impersonation attacks on subsequent processing, and ensures the stable operation of the system.
Smart Images

Figure CN114616814B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an in-vehicle communication device that transmits and receives messages with other devices mounted on a vehicle, and an information replacement method that replaces information included in the message. Background Art
[0002] In the past, a vehicle was equipped with multiple ECUs (Electronic Control Units). These multiple on-board devices are connected to each other via communication lines to send and receive messages, thereby exchanging information and realizing various functions of the vehicle through collaboration. Communication standards such as CAN (Controller Area Network) or Ethernet (registered trademark) are widely used in vehicle communications.
[0003] Patent Document 1 proposes a network device that performs authentication based on message authentication information included in a message and invalidates the message when authentication fails, thereby enabling defense actions when a masquerade attack occurs on the network.
[0004] Prior art literature
[0005] Patent Literature
[0006] Patent Document 1: Japanese Patent Application Publication No. 2018-182767 Summary of the invention
[0007] Problems to be solved by the invention
[0008] As spoofing attacks on the network, there are attacks that insert abnormal messages in the intervals between normal message transmission and reception and attacks that overwrite normal messages with abnormal messages. When the attack of overwriting normal messages with abnormal messages is invalidated as in the network device described in Patent Document 1, for example, messages to be sent will be lost periodically.
[0009] The present disclosure has been made in view of the above reasons, and an object of the present disclosure is to propose an in-vehicle communication device and an information replacement method that can be expected to reduce the adverse effects of attacks on a network.
[0010] Solutions to Solve Problems
[0011] The vehicle-mounted communication device of the present scheme is installed on a vehicle, and the vehicle-mounted communication device includes a receiving unit and a processing unit. The receiving unit receives a message from another device, and the processing unit detects an abnormality in the information contained in the message received by the receiving unit, infers normal information relative to the detected abnormal information, and replaces the information contained in the message received by the receiving unit with the inferred information.
[0012] The present application can be implemented not only as a device such as an in-vehicle communication device having such a characteristic processing unit, but also as an information replacement method using the characteristic processing as a step, or as a computer program for causing a computer to execute the step. It can be implemented as a semiconductor integrated circuit that implements part or all of these devices, or as other devices or systems including these devices.
[0013] Effects of the Invention
[0014] Based on the above, it is expected that the adverse effects of attacks on the network can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 Schematic diagram showing the configuration of the vehicle-mounted communication system according to the present embodiment.
[0016] Figure 2 This is a block diagram showing the structure of the GW according to this embodiment.
[0017] Figure 3 This is a schematic diagram showing a configuration example of an abnormality detection table included in the GW according to the present embodiment.
[0018] Figure 4 This is a schematic diagram showing a configuration example of an information estimation table included in the GW according to the present embodiment.
[0019] Figure 5 This is a schematic diagram showing an example of information estimation and replacement performed by the GW according to the present embodiment.
[0020] Figure 6 This is a flowchart showing an example of the procedure of the processing performed by the GW according to this embodiment.
[0021] Figure 7 This is a flowchart showing an example of the procedure of the processing performed by the GW according to this embodiment. DETAILED DESCRIPTION
[0022] [Description of Embodiments of the Present Disclosure]
[0023] First, embodiments of the present disclosure will be described by way of example. At least a part of the embodiments described below may be arbitrarily combined.
[0024] (1) The vehicle-mounted communication device of the present scheme is mounted on a vehicle, and includes a receiving unit and a processing unit. The receiving unit receives a message from another device, and the processing unit detects an abnormality in information contained in the message received by the receiving unit, infers normal information relative to the detected abnormal information, and replaces the information contained in the message received by the receiving unit with the inferred information.
[0025] In this scheme, when an abnormality is detected in the information contained in the message received by the vehicle-mounted communication device from other devices, normal information relative to the abnormal information is inferred, and the abnormal information contained in the received message is replaced with the inferred information. Thus, even in the case of an impersonation attack that overwrites a legitimate message, the normal information to be attached to the original message can be inferred for subsequent processing, so it is expected that the loss of the message caused by the impersonation attack will be suppressed from having a bad impact on the subsequent processing.
[0026] (2) Preferably, the processing unit determines whether the message received by the receiving unit is a periodic message sent periodically or a non-periodic message sent non-periodically, determines whether the periodic message is sent at a predetermined period, and detects anomalies in information contained in the periodic message determined to be sent at a predetermined period.
[0027] In this scheme, the vehicle-mounted communication device determines whether the received message is a periodic message or a non-periodic message, and further determines whether the periodic message is sent at the correct predetermined period. The vehicle-mounted communication device performs anomaly detection on the periodic message sent at the correct period. As a result, the vehicle-mounted communication device can deal with spoofing attacks that overwrite periodic messages sent at the correct period.
[0028] (3) Preferably, the processing unit estimates normal information of the periodic message in which abnormality is detected based on a time series change in information included in a plurality of periodic messages received before the periodic message in which abnormality is detected.
[0029] In this scheme, normal information relative to the detected abnormal information is estimated based on the time sequence changes of information contained in multiple periodic messages received before the detected abnormal periodic message. Thus, the latest information contained in the periodic message can be estimated based on previous changes.
[0030] (4) Preferably, the processing unit discards a periodic message determined to be not transmitted at a predetermined period.
[0031] In this aspect, the vehicle-mounted communication device discards a periodic message that is not sent at a correct period, thereby being able to cope with a spoofing attack that sends an abnormal message during the intervals between normal periodic message transmissions.
[0032] (5) Preferably, the processing unit detects an abnormality in information included in the aperiodic message.
[0033] In this solution, the vehicle-mounted communication device detects abnormalities in the information contained in the non-periodic message, thereby enabling the vehicle-mounted communication device to cope with spoofing attacks of the non-periodic message.
[0034] (6) Preferably, the processing unit estimates normal information of the aperiodic message in which an abnormality is detected based on information included in a periodic message received before the aperiodic message in which an abnormality is detected.
[0035] In this scheme, based on the information contained in the periodic message received earlier than the non-periodic message in which the abnormality is detected, normal information relative to the information of the non-periodic message in which the abnormality is detected is estimated. Thus, the normal information of the non-periodic message can be estimated based on the state of the vehicle that can be determined from the information of the periodic message.
[0036] (7) Preferably, the vehicle-mounted communication device includes a sending unit, the processing unit assigns flag information indicating the implementation of the replacement to the message in which the information is replaced, and the sending unit sends a message that the processing unit did not detect the abnormality of the information and a message that the processing unit replaced the information to other devices.
[0037] In this scheme, the vehicle-mounted communication device relays messages between multiple devices. At this time, when the vehicle-mounted communication device detects an abnormality in the message to be relayed, it relays the message for the above-mentioned inference and replacement. When the vehicle-mounted communication device replaces the information, it adds flag information indicating the implementation of the replacement to the message, thereby notifying the device at the relay destination of the implementation of the replacement. As a result, the device at the relay destination can determine whether to implement information replacement based on the flag information added to the message, and can, for example, discard the replaced information when the necessity of the replaced information is low.
[0038] (8) In the information replacement method of the present scheme, an anomaly in information contained in a message received by an on-board communication device mounted on a vehicle from another device is detected, normal information relative to the detected abnormal information is inferred, and the information contained in the received message is replaced with the inferred information.
[0039] In this scheme, similarly to scheme (1), it is expected that the loss of messages due to impersonation attacks will be prevented from adversely affecting subsequent processing.
[0040] [Details of the embodiments of the present disclosure]
[0041] Hereinafter, specific examples of the vehicle communication system according to the embodiment of the present disclosure will be described with reference to the drawings. The present disclosure is not limited to these examples, but is indicated by the claims, and is intended to include all modifications within the meaning and scope equivalent to the claims.
[0042] <System Structure>
[0043] Figure 1: is a schematic diagram showing the structure of the vehicle-mounted communication system of the present embodiment. The vehicle-mounted communication system of the present embodiment is a system in which a GW (gateway) 2 mounted on a vehicle 1 and a plurality of ECUs 4 communicate via communication lines 1a and 1b. In the illustrated example, two bus-type communication lines 1a and 1b are provided in the vehicle 1. GW2 and the two ECUs 4 are connected to the first communication line 1a, and GW2 and the two ECUs 4 are connected to the second communication line 1b. With respect to GW2, both the two communication lines 1a and 1b are connected to the GW2, and the GW2 performs the process of relaying the communication between the two communication lines 1a and 1b. Thus, the four ECUs 4 can communicate via the communication lines 1a, 1b and GW2.
[0044] For example, when an ECU 4 included in the vehicle communication system is invaded by a malicious program input or the like (in Figure 1 In the example, the occupied ECU 4 is ECU 4Z, which may send an abnormal message to the communication line 1a constituting the network of the vehicle 1. The vehicle communication system of this embodiment detects that such an abnormal message is sent, and replaces the information contained in the abnormal message with normal information.
[0045] The replacement of the information of the abnormal message can be performed by GW2 or by each ECU 4. In the present embodiment, it is assumed that GW2 performs the replacement of information for explanation. The GW2 of the present embodiment relays the message between the communication lines 1a and 1b by sending the message received by one communication line 1a and 1b from the other communication line 1a and 1b. When GW2 determines that the information contained in the received message is abnormal, it infers normal information relative to the abnormal information, and relays the message replacing the abnormal information with the inferred information. In addition, flag information indicating whether to replace the information is added to the message relayed by GW2 of the present embodiment.
[0046] Figure 2 : This is a block diagram showing the structure of GW2 of the present embodiment. GW2 of the present embodiment is configured to include a processing unit (processor) 21, a storage unit (storage device) 22, and two communication units (transceivers) 23. The processing unit 21 is configured using a computing processing device such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit). The processing unit 21 is executed by reading a program stored in the storage unit 22, thereby being able to perform various processes. In the present embodiment, the processing unit 21 is executed by reading a program 22a stored in the storage unit 22, thereby performing various processes such as processing of messages between relay communication lines 1a and 1b and processing of replacing information contained in abnormal messages.
[0047] The storage unit 22 is constituted by a nonvolatile 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 the processing of the processing unit 21. In the present embodiment, the storage unit 22 stores a program 22a executed by the processing unit 21, an abnormality detection table 22b for detecting abnormalities in information included in a message, and an information estimation table 22c for estimating normal information relative to abnormal information. The details of the abnormality detection table 22b and the information estimation table 22c will be described later.
[0048] In addition, the program 22a may be written to the storage unit 22 at the manufacturing stage of the GW2, or the GW2 may obtain the program transmitted by a remote server device or the like through communication, or the GW2 may read the program recorded on a recording medium 99 such as a memory card or an optical disk and store it in the storage unit 22, or the writing device may read the program recorded on the recording medium 99 and write it to the storage unit 22 of the GW2. The program 22a may be provided in a transmission scheme via a network or in a scheme recorded on the recording medium 99.
[0049] The two communication units 23 are connected to the communication line 1a or 1b, and communicate with the ECU 4 via the communication line 1a, 1b. In the present embodiment, the communication unit 23, for example, sends and receives messages that comply with the communication standard of CAN (Controller Area Network). The communication unit 23 can be configured using an IC of a CAN controller, for example. However, the communication standard used by the communication unit 23 is not limited to CAN, and the communication unit 23 can also use communication standards other than CAN, such as Ethernet (registered trademark) and other communication standards for communication. The communication unit 23 outputs the message provided by the processing unit 21 as an electrical signal to the communication lines 1a, 1b, thereby sending the message. In addition, the communication unit 23 samples and acquires the potential of the communication lines 1a, 1b, thereby converting the electrical signals on the communication lines 1a, 1b into digital data, and providing the converted data as a received message to the processing unit 21.
[0050] In addition, in this embodiment, GW2 realizes the relay processing unit 21a, the cycle determination unit 21b, the abnormality detection unit 21c, the information estimation unit 21d, the information replacement unit 21e, the discarding unit 21f and the flag giving unit 21g etc. as software function units in the processing unit 21 by reading the program 22a stored in the storage unit 22 by the processing unit 21 and executing it. The relay processing unit 21a performs the process of relaying the message between the communication lines 1a and 1b by sending the message received by one of the two communication units 23 from the other communication unit 23.
[0051] The cycle determination unit 21b performs determination processing related to the cycle of the message received by the communication unit 23. The cycle determination unit 21b determines whether the received message is a periodic message that is sent periodically or a non-periodic message (so-called event message) that is sent non-periodically. In addition, the cycle determination unit 21b determines whether the periodic message is sent in a legal cycle determined for each periodic message. The cycle determination unit 21b makes the determination based on the information stored in the abnormality detection table 22b of the storage unit 22.
[0052] The abnormality detection unit 21c performs a process of detecting abnormalities in information included in a message received by the communication unit 23. The abnormality detection unit 21c uses a periodic message determined by the cycle determination unit 21b to be sent at a correct cycle and a non-periodic message determined by the cycle determination unit 21b as an object of abnormality detection. The abnormality detection unit 21c determines whether the information included in the received message satisfies the conditions determined in the abnormality detection table 22b by referring to the abnormality detection table 22b stored in the storage unit 22, thereby determining whether the received message is normal or abnormal.
[0053] The information estimation unit 21d performs processing to estimate normal information relative to abnormal information included in a message in which an abnormality is detected by the abnormality detection unit 21c. The information estimation unit 21d estimates information based on a method determined in the information estimation table 22c stored in the storage unit 22.
[0054] The information replacing unit 21e performs processing to replace abnormal information included in the message in which the abnormality is detected by the abnormality detecting unit 21c with normal information estimated by the information estimating unit 21d.
[0055] The discarding unit 21f discards the periodic message determined by the period determination unit 21b as not being sent at a legitimate period as a message of a masquerade attack. The discarding unit 21f, for example, discards the message by prohibiting the relay processing unit 21a from relaying the message of the masquerade attack received by one communication unit 23 so as not to be sent from another communication unit 23. In addition, the discarding unit 21f may also cause the ECU 4 that has received the message to discard the message by sending a message including a command to discard the message from the communication unit 23 that has received the message of the masquerade attack.
[0056] The flag giving unit 21g performs processing to give flag information indicating whether the information replacement unit 21e has replaced the information to the message relayed by the relay processing unit 21a. In the present embodiment, the messages sent and received by the GW2 and the ECU4 comply with the communication standard of CAN. For example, in a data frame, which is one of the messages of CAN, an arbitration field, a control field, a data field, a CRC (Cyclic Redundancy Check) field, and an ACK field are included. The ID of the message is stored in the arbitration field, and for example, the detection value of a sensor or the control value of a device is stored in the data field. The information handled by the above-mentioned information estimation unit 21d and the information replacement unit 21e is the information stored in the data field. In the present embodiment, a part of the data field (1 bit to several bits) is used for storing flag information. For example, the flag giving unit 21g stores the value of "1" in the area when the information is replaced, and stores the value of "0" in the area when the information is not replaced. In addition, in the case of adopting a communication standard other than the communication standard of CAN, it is also sufficient to use an appropriate area in the message for storing flag information.
[0057] <Information replacement processing>
[0058] Next, the information replacement process performed by GW2 according to the present embodiment will be described. Figure 3 : is a schematic diagram showing a structural example of the abnormality detection table 22b of the GW2 of the present embodiment. The abnormality detection table 22b of the present embodiment corresponds to the ID attached to the message, and stores information indicating whether the message is a periodic message or a non-periodic message, the transmission period in the case of a periodic message, the normal range of the information contained in the message, and the normal increase or decrease of the information contained in the message. In addition, in the present embodiment, the GW2 stores at least the past several times of reception information (information contained in the message and reception time, etc.) for periodic messages.
[0059] In the example shown in the figure, the message with ID 10 is a periodic message, and its transmission period is 100 milliseconds. In addition, the normal range of the value of the information contained in the periodic message is 10 to 70, and the normal increase or decrease is ±10. When the ID of the received message is 10, the period determination unit 21b of GW2 refers to the abnormality detection table 22b, thereby determining that the message is a periodic message, and obtains 100 milliseconds as its transmission period. The period determination unit 21b calculates the elapsed time from the timing of the previous reception of the periodic message with ID 10 to the timing of this reception, that is, the transmission period. The period determination unit 21b determines whether the calculated transmission period is consistent with the transmission period set in the abnormality detection table 22b. However, at this time, the period determination unit 21b allows a predetermined error (for example, ±10%) relative to the set transmission period, and determines whether the transmission period calculated based on the actual reception timing is within the range of 100 milliseconds ±10% (i.e., 90 milliseconds to 110 milliseconds).
[0060] The abnormality detection unit 21c performs abnormality detection based on the normal range and normal increase or decrease amount set in the abnormality detection table 22b for periodic messages determined by the period determination unit 21b to be sent with an appropriate sending period and messages determined to be non-periodic messages. The abnormality detection unit 21c obtains the information contained in the message of the abnormality detection object (if it is the communication standard of CAN, it is the information stored in the data field). The abnormality detection unit 21c determines whether the value of the information obtained from the message is within the normal range set in the abnormality detection table 22b. In the example shown in the figure, the normal range of the periodic message with ID 10 is set to 10 to 70. If the value of the information obtained from the message is within the range of 10 to 70, the abnormality detection unit 21c determines that the message is a normal message.
[0061] In addition, when a normal increase or decrease is set in the abnormality detection table 22b for the periodic message, the abnormality detection unit 21c calculates the increase or decrease of the information of the current message relative to the information of the message received last time. The abnormality detection unit 21c determines whether the calculated increase or decrease of the information converges to the range of the normal increase or decrease set in the abnormality detection table 22b. In the example shown in the figure, the normal increase or decrease of the periodic message with ID 10 is set to ±10. For example, when the previous value is 50, if the current value is within the range of 40 to 60, the abnormality detection unit 21c determines that the message is a normal message.
[0062] In addition, in the abnormality detection table 22b, it is not necessary to set both the normal range and the normal increase / decrease amount, 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 determines that the message that meets the conditions of both is a normal message, and determines that the message that does not meet at least one of them is an abnormal message. However, the abnormality detection method performed by the abnormality detection unit 21c is not limited to the method based on the normal range and the normal increase / decrease amount, and methods other than these may be used.
[0063] Figure 4 1 is a schematic diagram showing a configuration example of the information estimation table 22c of the GW2 of the present embodiment. The information estimation table 22c of the present embodiment stores the estimation method of information in correspondence with the ID attached to the message. In addition, in this example, the messages with IDs 10, 20, and 30 are periodic messages, and the messages with IDs 40 and 50 are non-periodic messages.
[0064] In the example shown in the figure, it is set that the average value of the information of the past three times is used as the estimated value for the message with ID 10. When estimating the information of the message with ID 10 in which an abnormality is detected, the information estimation unit 21d obtains the information of the past three times, calculates the average value of the information, and uses the calculated average value as the estimated value. The information replacement unit 21e replaces the information of the message in which an abnormality is detected (i.e., the value of the data field) with the estimated value.
[0065] In addition, in the example shown in the figure, it is set to calculate the estimated value by increasing or decreasing the average value of the increase or decrease of the past 5 times for the message with ID 20. When estimating the information of the message with ID 20 in which an abnormality is detected, the information estimation unit 21d obtains the information of the past 5 times and calculates the increase or decrease of each information. The information estimation unit 21d can calculate 4 increase or decrease amounts based on the information of the past 5 times and calculate the average value of the calculated 4 increase or decrease amounts. The information estimation unit 21d uses the average value of the calculated increase or decrease amount to increase or decrease the value of the previous information as the estimated value. The information replacement unit 21e replaces the information of the message in which the abnormality is detected with the estimated value.
[0066] In the example shown in the figure, it is set that a specific value is used as an estimated value for the message with ID 30. In this case, the information estimation unit 21d uses the estimated value of the information of the message with ID 30 in which an abnormality is detected as a predetermined specific value. The information replacement unit 21e replaces the information of the message in which an abnormality is detected with the estimated value (specific value).
[0067] In addition, in the example shown in the figure, it is set to calculate the information of the non-periodic message with ID 40 based on the brightness outside the vehicle. In this embodiment, the information of the non-periodic message is estimated based on the information of the associated periodic message received before the non-periodic message. In this example, a sensor for detecting the brightness outside the vehicle is mounted in the vehicle 1, and the information of the brightness detected by the sensor is sent 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 obtains the brightness information from the periodic message received before the non-periodic message, and estimates the information of the non-periodic message based on the acquired brightness using a predetermined calculation formula. The information replacement unit 21e replaces the information of the non-periodic message in which the abnormality is detected with the estimated value. For example, the information of the non-periodic message related to the event of turning on / off the lamp of the vehicle 1, the event of adjusting the light intensity, etc. can be estimated based on the brightness outside the vehicle.
[0068] In addition, in the example shown in the figure, it is set to calculate the non-periodic message with ID 50 based on the speed of vehicle 1. In this example, the information of the speed of vehicle 1 is sent and received as a periodic message. When estimating the information of the non-periodic message with ID 50 in which an abnormality is detected, the information estimation unit 21d obtains the information of the vehicle speed from the periodic message received before the non-periodic message, and if the acquired vehicle speed is above 5 km / h, the estimated value is set to 0, and if it is less than 5 km / h, the estimated value is set to 1. The information replacement unit 21e replaces the information of the non-periodic message in which the abnormality is detected with the estimated value. For example, the information of the non-periodic message related to the event of opening and closing the door of vehicle 1, the event of locking / unlocking the door, etc. can be estimated based on the vehicle speed.
[0069] In addition, the information of the abnormality detection table 22b and the information estimation table 22c of the GW2 of the present embodiment is predetermined, for example, in the design stage or manufacturing stage of the vehicle communication system, GW2 or ECU4, and is stored in the storage unit 22 of the GW2. In addition, the information of the abnormality detection table 22b and the information estimation table 22c can also be updated at an appropriate time after the vehicle 1 is manufactured.
[0070] Figure 5 FIG. 2 is a schematic diagram showing an example of information estimation and replacement performed by GW2 in this embodiment. Figure 5 The upper layer of the , contains a timing diagram showing the sending timing of periodic messages M1 to M5. Figure 5 The middle layer records a graph showing the missing state of information caused by the impersonation attack, and the lower layer records a graph showing the state of replacement by assuming the missing information.
[0071] In the example shown in the figure, the periodic messages are sent in the order of M1, M2, M3, M4, and M5, and the third periodic message M3 is rewritten due to an impersonation attack. In the devices such as GW2 and ECU4 that receive the periodic message M3, it is detected that the periodic message M3 is an abnormal message, and the information contained in the periodic message M3 cannot be used for control and other processing, resulting in a loss in the periodically obtained information.
[0072] The GW2 of this embodiment estimates normal information without rewriting caused by impersonation attack for the abnormal periodic message M3, and replaces the information of the abnormal periodic message M3 with the estimated information. In the example shown in the figure, the GW2 calculates the increase or decrease in information from the periodic message M1 received earlier than the abnormal periodic message M3, and applies the calculated increase or decrease to the information of the periodic message M2, thereby estimating the information of the periodic message M3. The GW2 replaces the information of the abnormal periodic message M3 with the estimated value, and relays the replaced periodic message M3.
[0073] Figure 6 and Figure 7 1 is a flowchart showing an example of the order of processing performed by GW2 of this embodiment. The relay processing unit 21a of the processing unit 21 of GW2 of this embodiment determines whether a message from ECU4 is received by a certain communication unit 23 (step S1). If no message is received (S1: No), the relay processing unit 21a waits until a message is received.
[0074] When a message is received (S1: Yes), the cycle determination unit 21b of the processing unit 21 obtains the ID included in the received message (step S2). The cycle determination unit 21b refers to the abnormality detection table 22b stored in the storage unit 22 based on the ID obtained in step S2 (step S3). The cycle determination unit 21b determines whether the received message is a periodic message based on the information indicating whether it is a periodic message or a non-periodic message stored in the abnormality detection table 22b (step S4). When the received message is not a periodic message (S4: No), that is, when it is a non-periodic message, the cycle determination unit 21b causes the processing to enter step S7.
[0075] When the received message is a periodic message (S4: Yes), the period determination unit 21b calculates the transmission period based on the difference between the timing of the message with the same ID received last time and the timing of this reception, and compares it with the period stored in the abnormality detection table 22b, thereby determining whether the received periodic message is transmitted at an appropriate period (step S5). When it is not transmitted at an appropriate period (S5: No), the discarding unit 21f of the processing unit 21 discards the received message (step S6), and the processing ends. When it is transmitted at an appropriate period (S5: Yes), the period determination unit 21b causes the processing to enter step S7.
[0076] When the received message is a non-periodic message or a periodic message sent at an appropriate period, the abnormality detection unit 21c of the processing unit 21 compares the information included in the message with the normal range and normal increase / decrease amount set in the abnormality detection table 22b, thereby determining whether the received message is a normal message (step S7). When the received message is a normal message (S7: Yes), the abnormality detection unit 21c advances the processing to step S11.
[0077] When the received message is not a normal message (S7: No), that is, when it 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 the normal value relative to 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).
[0078] The flag adding unit 21g of the processing unit 21 sets flag information related to replacement contained in the relayed message based on whether the information is estimated and replaced for the relayed message (step S11). The relay processing unit 21a transmits the message with the flag information set from the communication unit 23 (step S12), thereby relaying the message and completing the processing.
[0079] <Conclusion>
[0080] In the present embodiment of the above structure, when the GW2 detects an abnormality in the information contained in the message received from the ECU4, it estimates normal information relative to the abnormal information and replaces the abnormal information contained in the received message with the estimated information. Therefore, even if the GW2 is attacked by an impersonation attack that overwrites a legitimate message, it can estimate the normal information that should be contained in the original message for subsequent processing, so it can be expected that the loss of the message caused by the impersonation attack will not have a bad impact on the subsequent processing.
[0081] In addition, GW2 of the present embodiment determines whether the received message is a periodic message or a non-periodic message, and further determines whether the periodic message is sent at a correct period. GW2 performs anomaly detection on the periodic message sent at a correct period. Thus, GW2 can deal with spoofing attacks that overwrite periodic messages sent at a correct period.
[0082] In addition, the GW2 of this embodiment estimates normal information relative to the information of the periodic message in which the abnormality is detected based on the time sequence change of the information contained in the multiple periodic messages received before the periodic message in which the abnormality is detected, such as the increase or decrease. As a result, the GW2 can estimate the latest information about the information contained in the periodic message based on the change of the previous information.
[0083] In addition, the GW2 of this embodiment discards the periodic message that is not sent at the correct period. Thus, the GW2 can deal with the spoofing attack that sends abnormal messages during the intervals between the sending of normal periodic messages.
[0084] In addition, the GW2 of this embodiment detects abnormality in the information included in the aperiodic message, thereby enabling the GW2 to cope with spoofing attacks of the aperiodic message.
[0085] In addition, the GW2 of this embodiment estimates normal information relative to the information of the non-periodic message in which the abnormality is detected based on the information contained in the periodic message received earlier than the non-periodic message in which the abnormality is detected. Thus, the GW2 can estimate the normal information of the non-periodic message based on the state of the vehicle 1 that can be determined from the information of the periodic message.
[0086] In addition, the GW2 of the present embodiment relays messages between multiple ECUs 4. At this time, when GW2 detects an abnormality in the message to be relayed, it performs the above-mentioned estimation and replacement and relays the message. When GW2 replaces the information, it adds flag information indicating the implementation of the replacement to the message, thereby notifying the ECU 4 at the relay destination that the replacement has been implemented. As a result, the ECU 4 at the relay destination can determine whether to implement information replacement based on the flag information included in the message, and can, for example, discard the replaced information when the necessity is low.
[0087] In addition, in the present embodiment, the GW2 that relays the message performs a configuration to estimate and replace the information contained in the abnormal message, but the present invention is not limited thereto. For example, each ECU4 included in the vehicle communication system may perform a configuration to estimate and replace the information contained in the abnormal message. In this case, each ECU4 can estimate and replace the information received by the abnormal message, and use the estimated information or the replaced message to perform subsequent processing.
[0088] In addition, in this embodiment, Figure 1 The network structure of the vehicle communication system shown is an example and is not limited to this. Figure 3 The values of the cycle, normal range, and normal increase / decrease amount in the abnormality detection table 22b shown are examples and are not limited thereto. Figure 4 The estimation method of the information estimation table 22c shown is just an example, and the method is not limited to this.
[0089] Each device in the vehicle communication system is equipped with a computer including a microprocessor, ROM, RAM, etc. The microprocessor and other computing units can read out data including the following from the storage units such as ROM and RAM, respectively: Figure 6 and Figure 7 The computer programs of the plurality of devices are executed by a part or all of the steps of the sequence diagram or flowchart shown in the figure. The computer programs of the plurality of devices can be installed from an external server device, etc. In addition, the computer programs of the plurality of devices are circulated in a state where they are stored in a recording medium such as a CD-ROM, a DVD-ROM, or a semiconductor memory.
[0090] The embodiments disclosed this time should be considered in all points as illustrative and non-restrictive. The scope of the present disclosure is indicated by the claims rather than the above meaning, and is intended to include all modifications within the meaning and scope equivalent to the claims.
[0091] Description of Reference Numerals
[0092] 1 Vehicle
[0093] 1a, 1b Communication line
[0094] 2 GW (on-board communication device)
[0095] 4 ECU
[0096] 21 Processing Department
[0097] 21a Relay processing unit (receiving unit, sending unit)
[0098] 21b Cycle determination unit
[0099] 21c Abnormality Detection Department
[0100] 21d Information Inference Department
[0101] 21e Information Replacement Department
[0102] 21f Abandoned Department
[0103] 21g Logo Granting Department
[0104] 22 Storage
[0105] 22a Procedure
[0106] 22b Anomaly Detection Table
[0107] 22c Information Deeming Form
[0108] 23 Ministry of Communications
[0109] 99 Recording medium.
Claims
1. A vehicle-mounted communication device, mounted on a vehicle, The vehicle-mounted communication device includes a receiving unit and a processing unit. The receiving unit receives messages from other devices. The processing unit determines whether the message received by the receiving unit is a periodic message sent periodically or a non-periodic message sent non-periodically, Regarding the determined periodic message, the processing unit determines whether the periodic message is sent at a predetermined period. The processing unit detects an abnormality in information included in a periodic message determined to be sent at a predetermined period, estimates normal information relative to the detected abnormal information, and replaces the abnormal information included in the periodic message with the estimated information. The processing unit detects anomalies in information contained in the non-periodic message, The processing unit estimates normal information of the aperiodic message in which an abnormality is detected based on information included in a periodic message received before the aperiodic message in which an abnormality is detected, and replaces the abnormal information included in the aperiodic message with the estimated information.
2. The vehicle-mounted communication device according to claim 1, wherein: The processing unit estimates normal information of the periodic message in which the abnormality is detected based on a change in the time series of information included in a plurality of periodic messages received before the periodic message in which the abnormality is detected.
3. The vehicle-mounted communication device according to claim 1, wherein: The processing unit discards a periodic message determined to be not transmitted in a predetermined period.
4. The vehicle-mounted communication device according to claim 2, wherein: The processing unit discards a periodic message determined to be not transmitted in a predetermined period.
5. The vehicle-mounted communication device according to any one of claims 1 to 4, wherein: The vehicle-mounted communication device includes a transmitting unit. The processing unit adds flag information indicating the implementation of replacement to the message in which the information is replaced, The transmitting unit transmits a message indicating that the processing unit has not detected an abnormality in information and a message indicating that the processing unit has replaced information to other devices.
6. An information replacement method, Determine whether a message received by the vehicle-mounted communication device from another device is a periodic message sent periodically or a non-periodic message sent non-periodically, Regarding the determined periodic message, determining whether the periodic message is sent at a predetermined period, Detecting anomalies in information contained in a periodic message determined to be sent at a predetermined period; Inferring normal information relative to information detected to be abnormal; The abnormal information contained in the periodic message is replaced with the inferred information, Detect anomalies in the information contained in non-periodic messages, Based on information included in a periodic message received before the non-periodic message in which an abnormality is detected, it is estimated that the non-periodic message in which an abnormality is detected is normal information, The abnormal information included in the aperiodic message is replaced with the estimated information.
