Vehicle-mounted system, security management method, and security management program
Patent Information
- Application Number
- PCT/JP2024/011032
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-10
- Filing Date
- 2024-03-21
- Publication Date
- 2024-10-17
AI Technical Summary
Current in-vehicle network security technologies are inadequate in providing superior security functions, as they lack effective mechanisms to switch access routes and maintain communication integrity when a security risk is detected, potentially leading to system vulnerabilities.
An in-vehicle system with multiple functional units having different security configurations, where a control unit can switch access from a compromised unit to a secure unit, ensuring continuous communication and service by rerouting data through secure paths, using distinct software and communication protocols.
This configuration enhances security by isolating vulnerable components, preventing attacks, and ensuring uninterrupted service by switching to secure access routes and software, thereby improving overall network security and resilience.
Smart Images

Figure JP2024011032_17102024_PF_FP_ABST
Abstract
Description
In-vehicle system, security management method, and security management program
[0001] This application claims priority from Japanese Patent Application No. 2023-63373, filed April 10, 2023, the disclosure of which is incorporated herein by reference in its entirety.
[0002] Patent Document 1 (JP 2020-501420 A) discloses the following technology: That is, a method for an in-vehicle network in which data is transferred over at least one communication path (60) for communication within the in-vehicle network, the method comprising a step of evaluating (86) the communication path (60) that may transfer data for an attack risk, wherein the attack risk is a risk that the communication path (60) is attacked because the communication path (60) exploits a security gap.
[0003] JP 2020-501420 A JP 2009-71436 A
[0004] The in-vehicle system of the present disclosure is an in-vehicle system mounted on a vehicle, and comprises a plurality of functional units including a first functional unit and a second functional unit having different security configurations, and a control unit that, when the state of the first functional unit and the state of the second functional unit are normal and a risk notification regarding a security risk of the first functional unit is received from an external device outside the vehicle, stops access to the first functional unit from the external device and performs alternative processing to have the second functional unit accept the access instead.
[0005] One aspect of the present disclosure can be realized not only as an in-vehicle system including such a characteristic processing unit, but also as a semiconductor integrated circuit that realizes part or all of the in-vehicle system.
[0006] FIG. 1 is a diagram illustrating a configuration of a communication system according to a first embodiment of the present disclosure. FIG. 2 is a diagram illustrating a configuration of an in-vehicle system according to the first embodiment of the present disclosure. FIG. 3 is a diagram illustrating a configuration of an in-vehicle relay device according to the first embodiment of the present disclosure. FIG. 4 is a diagram illustrating an example of a routing table stored by the in-vehicle relay device according to the first embodiment of the present disclosure. FIG. 5 is a functional block diagram illustrating a configuration of an in-vehicle system according to the first embodiment of the present disclosure. FIG. 6 is a diagram illustrating a configuration of first software used by a first core of the in-vehicle relay device according to the first embodiment of the present disclosure. FIG. 7 is a diagram illustrating a configuration of second software used by a second core of the in-vehicle relay device according to the first embodiment of the present disclosure. FIG. 8 is a diagram illustrating an example of a routing table after a table update process by the in-vehicle relay device according to the first embodiment of the present disclosure. FIG. 9 is a diagram illustrating an example of a management list created by a list creation process by the in-vehicle relay device according to the first embodiment of the present disclosure. FIG. 10 is a flowchart defining an operation procedure when a core in the in-vehicle relay device according to the first embodiment of the present disclosure performs notification processing. FIG. 11 is a flowchart defining the operation procedure when the relay unit in the vehicle-mounted relay device according to the first embodiment of the present disclosure performs table update processing and list creation processing. FIG. 12 is a diagram showing an example of a processing sequence of the vehicle-mounted relay device, the vehicle-mounted ECU, and the server in the communication system according to the first embodiment of the present disclosure. FIG. 13 is a diagram showing an example of a processing sequence of the vehicle-mounted relay device, the vehicle-mounted ECU, and the server in a modified example of the communication system according to the first embodiment of the present disclosure. FIG. 14 is a diagram showing an example of a routing table stored by the vehicle-mounted relay device according to the second embodiment of the present disclosure. FIG. 15 is a diagram showing the configuration of first software used by the first functional unit according to the second embodiment of the present disclosure. FIG. 16 is a diagram showing the configuration of second software used by the second functional unit according to the second embodiment of the present disclosure. FIG. 17 is a diagram showing an example of a routing table after table update processing by the vehicle-mounted relay device according to the second embodiment of the present disclosure.Figure 18 is a diagram showing an example of a management list created by a list creation process by an on-board relay device relating to the second embodiment of the present disclosure. Figure 19 is a diagram showing an example of a processing sequence of an on-board relay device, an on-board ECU, and a server in a communication system relating to the second embodiment of the present disclosure.
[0007] Conventionally, techniques have been developed to improve security in in-vehicle networks.
[0008] [Problem to be Solved by the Present Disclosure] There is a need for a technology that goes beyond the technology described in Patent Document 1 and is capable of realizing excellent security functions in an in-vehicle network.
[0009] The present disclosure has been made to solve the above-mentioned problems, and its purpose is to provide an in-vehicle system, a security management method, and a security management program that can realize excellent security functions in an in-vehicle network.
[0010] [Effects of the Present Disclosure] According to the present disclosure, it is possible to realize excellent security functions in an in-vehicle network.
[0011] [Description of Embodiments of the Present Disclosure] First, the contents of the embodiments of the present disclosure will be listed and described. (1) An in-vehicle system according to an embodiment of the present disclosure is an in-vehicle system mounted on a vehicle, and includes a plurality of functional units including a first functional unit and a second functional unit having different security configurations, and a control unit that, when a risk notification regarding a security risk of the first functional unit is received from an external device outside the vehicle while the first functional unit and the second functional unit are in a normal state, stops access to the first functional unit from the external device and causes the second functional unit to accept the access instead.
[0012] In this way, by providing multiple access routes from outside the vehicle that have little correlation with respect to security risks, if a security risk is discovered in one access route, it is possible to switch to another access route in which no security risk has been discovered, thereby ensuring the security of the in-vehicle network while transmitting and receiving information to and from devices outside the vehicle. Furthermore, by configuring the access route from outside the vehicle to be switched in advance when each functional unit is normal, it is possible to prevent a functional unit in which a security risk has been discovered from being attacked from outside the vehicle, thereby further improving security. Therefore, excellent security functions can be realized in the in-vehicle network.
[0013] (2) In the above (1), after receiving the risk notification from the external device, the control unit may further perform a communication continuation process to continue communication within the vehicle by the first functional unit.
[0014] With this configuration, even if a security risk regarding the first functional unit is notified, various services can be continuously provided by the first functional unit in the in-vehicle network.
[0015] (3) In the above (2), the control unit may, as the communication continuation process, continue communication between the first functional unit and other functional units among the plurality of functional units other than the first functional unit and the second functional unit.
[0016] With this configuration, even if a security risk is discovered regarding the first functional unit, services can be continuously provided in the in-vehicle network using communication between the first functional unit and functional units other than the first functional unit and the second functional unit.
[0017] (4) In the above (2) or (3), the control unit may continue the communication between the first function unit and the second function unit as the communication continuation process.
[0018] With this configuration, for example, even if information addressed to a first functional unit that has been notified of a security risk is received from a device outside the vehicle, the information can be transferred from a second functional unit that has not been notified of a security risk to the first functional unit, so that processing using information from the device outside the vehicle can continue to be executed in the first functional unit.
[0019] (5) In any of (1) to (4) above, the configuration may be such that the first software used by the first functional unit and the second software used by the second functional unit are different.
[0020] In this way, by configuring the software, which is the part where security risks are likely to be discovered, to be different between multiple functional units, even if a security risk is notified about the software in the first functional unit, it is possible to continue to execute specified services in the in-vehicle network using the software in the second functional unit, which has better security.
[0021] (6) In (5) above, the function provided by the first software may include a function for performing secure communication according to a first communication protocol, and the function provided by the second software may include a function for performing the secure communication according to a second communication protocol different from the first communication protocol.
[0022] In this way, by configuring the communication protocols for secure communication to be different between multiple functional units, which is likely to result in the discovery of security risks and have a significant impact on in-vehicle equipment, even if a security risk is notified about the communication protocol in the first functional unit, secure communication can be performed using the communication protocol in the second functional unit, which has better security.
[0023] (7) In (5) or (6) above, the first software may include a first application, and the second software may include a second application different from the first application.
[0024] In this way, by configuring applications that are likely to have a high probability of security risks being discovered and that are likely to have a large impact on services used by users in the vehicle to be different between multiple functional units, even if a security risk is notified about an application in a first functional unit, it is possible to provide a specified function using an application in a second functional unit that has better security.
[0025] (8) In any of (5) to (7) above, the first software may include a first OS (Operating System), and the second software may include a second OS different from the first OS.
[0026] In this way, by configuring the OS, which is the part of the software where security risks are likely to be discovered and which is likely to have the greatest impact, to be different between multiple functional units, even if a security risk is notified about the OS in the first functional unit, it is possible to provide specified functions using the OS in the second functional unit, which has better security.
[0027] (9) A security management method according to an embodiment of the present disclosure is a security management method for an in-vehicle system mounted on a vehicle, the in-vehicle system having multiple functional units including a first functional unit and a second functional unit having different security configurations, and includes, when the state of the first functional unit and the state of the second functional unit are normal, a step of receiving a risk notification regarding a security risk of the first functional unit from an external device outside the vehicle, and, when the risk notification is received, a step of stopping access from the external device to the first functional unit and performing an alternative process of having the second functional unit accept the access instead.
[0028] In this way, by providing multiple access routes from outside the vehicle that have little correlation with respect to security risks, if a security risk is discovered in one access route, it is possible to switch to another access route in which no security risk has been discovered, thereby ensuring the security of the in-vehicle network while transmitting and receiving information to and from devices outside the vehicle. Furthermore, by configuring the access route from outside the vehicle to be switched in advance when each functional unit is normal, it is possible to prevent a functional unit in which a security risk has been discovered from being attacked from outside the vehicle, thereby further improving security. Therefore, excellent security functions can be realized in the in-vehicle network.
[0029] (10) A security management program according to an embodiment of the present disclosure is a security management program used in an in-vehicle system mounted on a vehicle, the in-vehicle system having multiple functional units, including a first functional unit and a second functional unit, each having a different security configuration, and is a program for causing a computer to function as a control unit that, when the state of the first functional unit and the state of the second functional unit are normal and a risk notification regarding a security risk of the first functional unit is received from an external device outside the vehicle, stops access to the first functional unit from the external device and performs alternative processing to have the second functional unit accept the access instead.
[0030] In this way, by providing multiple access routes from outside the vehicle that have little correlation with respect to security risks, if a security risk is discovered in one access route, it is possible to switch to another access route in which no security risk has been discovered, thereby ensuring the security of the in-vehicle network while transmitting and receiving information to and from devices outside the vehicle. Furthermore, by configuring the access route from outside the vehicle to be switched in advance when each functional unit is normal, it is possible to prevent a functional unit in which a security risk has been discovered from being attacked from outside the vehicle, thereby further improving security. Therefore, excellent security functions can be realized in the in-vehicle network.
[0031] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. In the drawings, identical or corresponding parts are designated by the same reference numerals, and their description will not be repeated. Furthermore, at least some of the embodiments described below may be combined in any manner.
[0032] <First embodiment> [In-vehicle system] Fig. 1 is a diagram showing the configuration of a communication system according to a first embodiment of the present disclosure. Referring to Fig. 1, a communication system 501 includes a server 180 and one or more in-vehicle systems 301. The in-vehicle systems 301 are mounted on a vehicle 1. The server 180 is an example of an external device outside the vehicle 1.
[0033] 2 is a diagram illustrating a configuration of an in-vehicle system according to the first embodiment of the present disclosure. Referring to FIG. 2, the in-vehicle system 301 includes, for example, one in-vehicle relay device 101 and a plurality of in-vehicle ECUs (Electronic Control Units) 202.
[0034] 2, the in-vehicle system 301 includes in-vehicle ECUs 202A, 202B, and 202C that are the in-vehicle ECUs 202. The in-vehicle relay device 101 and the in-vehicle ECUs 202 configure an in-vehicle network 401.
[0035] The in-vehicle system 301 is not limited to a configuration including three in-vehicle ECUs 202, but may be a configuration including one, two, or four or more in-vehicle ECUs 202. The in-vehicle system 301 is not limited to a configuration including one in-vehicle relay device 101, but may be a configuration including multiple in-vehicle relay devices 101.
[0036] The in-vehicle relay device 101 is, for example, a gateway device, and is capable of relaying data between a plurality of in-vehicle ECUs 202 connected thereto.
[0037] The in-vehicle relay device 101 and each in-vehicle ECU 202 generate various information such as information to assist the automatic driving performed by the vehicle 1 and information used for entertainment, and transmit it to other in-vehicle ECUs 202 or in-vehicle relay devices 101.
[0038] The in-vehicle ECU 202 is a TCU (Telematics Communication Unit), an engine ECU, an automatic driving ECU, a door lock ECU, etc. In addition to the in-vehicle ECU 202 or instead of the in-vehicle ECU 202, the in-vehicle system 301 may include in-vehicle devices such as a sensor, a navigation device, a human-machine interface, and a camera.
[0039] The plurality of in-vehicle ECUs 202 are connected to the in-vehicle relay device 101 via, for example, an Ethernet (registered trademark) cable 10 .
[0040] More specifically, the in-vehicle relay device 101 includes a plurality of communication ports 51. The communication ports 51 are terminals to which, for example, Ethernet cables 10 can be connected. The in-vehicle relay device 101 and each in-vehicle ECU 202 are connected to other in-vehicle ECUs 202 via the communication ports 51 and the Ethernet cables 10.
[0041] Hereinafter, the in-vehicle ECU 202C is also referred to as the TCU 202C.
[0042] 1 and 2, the TCU 202C is capable of communicating with the server 180. The TCU 202C is capable of communicating with the server 180 via the wireless base station device 161, for example.
[0043] More specifically, the TCU 202C is capable of wirelessly communicating with the wireless base station device 161 in accordance with a communication standard such as LTE (Long Term Evolution) (registered trademark) or 5G.
[0044] Specifically, when the wireless base station device 161 receives an IP packet from the server 180 via the external network 170, the wireless base station device 161 transmits the received IP packet in a wireless signal to the TCU 202C.
[0045] For example, when TCU202C receives a radio signal including an IP packet from server 180 from radio base station device 161, it acquires the IP packet from the received radio signal, stores the acquired IP packet in a frame, and transmits it to vehicle relay device 101.
[0046] Furthermore, when the TCU 202C receives a frame from the in-vehicle relay device 101, it acquires an IP packet from the received frame, includes the acquired IP packet in a radio signal, and transmits the signal to the radio base station device 161.
[0047] When the wireless base station device 161 receives a wireless signal from the TCU 202 C, it acquires an IP packet from the received wireless signal and transmits the acquired IP packet to the server 180 via the external network 170 .
[0048] The server 180 is provided outside the vehicle 1. The server 180 manages, for example, security risks of various software used in the in-vehicle network 401. Here, the security risks of the software include software vulnerabilities and threats to the software.
[0049] The in-vehicle relay device 101 is not limited to a configuration in which it is connected to the in-vehicle ECU 202 via the Ethernet cable 10, but may also be configured to be connected to the in-vehicle ECU 202 via a bus conforming to standards such as CAN (Controller Area Network), CAN FD (CAN with Flexible Data Rate), FlexRay (registered trademark), MOST (Media Oriented System Transport) (registered trademark), and LIN (Local Interconnect Network).
[0050] [On-Vehicle Relay Device] Fig. 3 is a diagram illustrating the configuration of an on-vehicle relay device according to the first embodiment of the present disclosure. Referring to Fig. 3, the on-vehicle relay device 101 includes a communication port 51, a relay unit 52, and a processing unit 53. The processing unit 53 includes a plurality of cores 61 and a storage unit 62. One or both of the relay unit 52 and the processing unit 53 are realized, for example, by a processing circuit including one or more processors. Here, the core 61 corresponds to the processor. In the example illustrated in Fig. 3, the processing unit 53 includes cores 61A and 61B, which are the cores 61.
[0051] The communication port 51 is, for example, a terminal to which an Ethernet cable 10 can be connected. In the example shown in Fig. 3, the in-vehicle relay device 101 includes communication ports 51A, 51B, and 51C that are the communication ports 51. In-vehicle ECUs 202A, 202B, and 202C are connected to the communication ports 51A, 51B, and 51C, respectively, via the Ethernet cable 10.
[0052] The in-vehicle relay device 101 is not limited to a configuration having three communication ports 51 , but may be a configuration having one, two, or four or more communication ports 51 .
[0053] Corresponding port numbers are assigned to the communication port 51 and the core 61. Here, the port numbers assigned to the communication ports 51A, 51B, and 51C are #1, #2, and #3, respectively, and the port numbers assigned to the cores 61A and 61B are #4 and #5, respectively.
[0054] When the relay unit 52 receives a frame from a certain in-vehicle ECU 202 , the relay unit 52 transmits the received frame to the in-vehicle ECU 202 of the destination.
[0055] Furthermore, when the relay unit 52 receives a frame addressed to the core 61 of its own in-vehicle relay device 101 from the in-vehicle ECU 202 , it outputs the frame to the core 61 of the address.
[0056] Furthermore, the relay unit 52 transmits the frame received from the core 61 to the destination in-vehicle ECU 202 via the communication port 51 and the Ethernet cable 10 .
[0057] More specifically, the storage unit 62 stores a routing table Tb1 that indicates the correspondence between the source IP address, destination IP address, and port number contained in a frame.
[0058] When the relay unit 52 receives a frame from the in-vehicle ECU 202 or the core 61, the relay unit 52 reads out the routing table Tb1 in the storage unit 62. Then, the relay unit 52 refers to the routing table Tb1 to identify the port numbers corresponding to the source IP address and the destination IP address included in the frame.
[0059] FIG. 4 is a diagram illustrating an example of a routing table stored by the vehicle-mounted relay device according to the first embodiment of the present disclosure.
[0060] Referring to FIG. 4, "IP_Server" indicates the IP address of the server 180, "IP_Core A" indicates the IP address of the core 61A, "IP_Core B" indicates the IP address of the core 61B, "IP_ECU A" indicates the IP address of the in-vehicle ECU 202A, "IP_ECU B" indicates the IP address of the in-vehicle ECU 202B, and "IP_ECU C" indicates the IP address of the in-vehicle ECU 202C.
[0061] When the relay unit 52 receives a frame including "IP_ECU A" and "IP_ECU B" as the source IP address and the destination IP address, respectively, it specifies "#2" as the port number corresponding to the frame. When the relay unit 52 receives a frame including "IP_ECU B" and "IP_ECU A" as the source IP address and the destination IP address, respectively, it specifies "#1" as the port number corresponding to the frame. When the relay unit 52 receives a frame including "IP_ECU C" and "IP_ECU A" as the source IP address and the destination IP address, respectively, it specifies "#1" as the port number corresponding to the frame. When the relay unit 52 receives a frame including "IP_Server" and "IP_Core A" as the source IP address and the destination IP address, respectively, it specifies "#4" as the port number corresponding to the frame. When the relay unit 52 receives a frame including "IP_Server" and "IP_Core B" as the source IP address and destination IP address, respectively, it identifies "#5" as the port number corresponding to the frame.
[0062] When the relay unit 52 receives a frame from the core 61A that includes "IP_Core A" and "IP_Server" as the source IP address and destination IP address, respectively, it specifies "#3" as the port number corresponding to the frame. When the relay unit 52 receives a frame from the core 61B that includes "IP_Core B" and "IP_Server" as the source IP address and destination IP address, respectively, it specifies "#3" as the port number corresponding to the frame.
[0063] When the relay unit 52 identifies the port number, it transmits the frame from the onboard ECU 202 or the frame from the core 61 to the onboard ECU 202 connected to the communication port 51 corresponding to the identified port number, or outputs it to the core 61 corresponding to the port number.
[0064] [Problem Description] When a security risk is discovered in an in-vehicle system, it takes time to develop countermeasures to address the security risk, which increases the possibility that the in-vehicle system will be attacked.
[0065] As a temporary measure against security risks, it may be possible to stop providing the function in the in-vehicle system that corresponds to the part where the security risk was discovered. However, if the function is an important function in the in-vehicle system, it may not be possible to stop providing the function.
[0066] In contrast, the in-vehicle system according to the embodiment of the present disclosure solves the above problem with the following configuration and operation.
[0067] 5 is a functional block diagram showing the configuration of an in-vehicle system according to the first embodiment of the present disclosure. Referring to FIG. 5, an in-vehicle system 301 includes a first functional unit 11A, a second functional unit 11B, and a control unit 12. In the first embodiment of the present disclosure, the first functional unit 11A corresponds to the core 61A, and the second functional unit 11B corresponds to the core 61B. The terms "first" and "second" do not imply a priority order.
[0068] 3, core 61A and core 61B have different configurations with respect to security. In other words, core 61A and core 61B have little relationship with respect to security risk. More specifically, for example, as a configuration difference with respect to security, software SW11 used by core 61A and software SW12 used by core 61B are different. Software SW11 is an example of first software, and software SW12 is an example of second software.
[0069] 6 is a diagram illustrating a configuration of a first software used by a first core of the in-vehicle relay device according to the first embodiment of the present disclosure. FIG. 7 is a diagram illustrating a configuration of a second software used by a second core of the in-vehicle relay device according to the first embodiment of the present disclosure.
[0070] 6 and 7, core 61A and core 61B are equipped with, for example, different OSs.
[0071] More specifically, for example, the software SW11 includes the LINUX (registered trademark) OS 21. The LINUX OS 21 is an example of a first OS. Note that the software SW11 may include a general-purpose OS other than the LINUX OS 21.
[0072] For example, software SW12 includes an OS different from LINUX_OS 21. Specifically, software SW12 includes, for example, a Real Time Operating System (RTOS) 22. RTOS 31 is an example of a second OS. Note that software SW12 may include an OS other than RTOS 31 as long as it is different from the OS included in software SW1.
[0073] Furthermore, the core 61A and the core 61B are loaded with, for example, different applications.
[0074] More specifically, for example, the software SW11 includes an authentication application 22, and the software SW12 includes an authentication application 32 that is different from the authentication application 22. The authentication application 22 and the authentication application 32 are examples of a first application and a second application, respectively.
[0075] For example, the function provided by the authentication application 22 included in the software SW11 includes a TLS authentication function that performs secure communication in accordance with the TLS (Transport Layer Security) standard. TLS is an example of a first communication protocol.
[0076] Referring to Figures 1 and 3, specifically, when core 61A's own vehicle relay device 101 is started, for example, core 61A transmits authentication request information R11 indicating a request for authentication to server 180 via relay unit 52 and TCU 202C in a procedure conforming to TLS.
[0077] Specifically, for example, core 61A creates an IP packet that includes authentication request information R11 and includes, as a source IP address, its own IP address and the IP address of server 180 as a destination IP address, respectively. Core 61A then transmits the created IP packet to server 180 via relay unit 52 and TCU 202C.
[0078] For example, when the server 180 receives authentication request information R11 from the in-vehicle relay device 101 via the TCU 202C, it performs authentication processing for the core 61A in accordance with a procedure conforming to TLS.
[0079] When the authentication of the core 61A is successful in the authentication process of the core 61A, the server 180 creates an IP packet including authentication success information R12 indicating successful authentication and including its own IP address and the IP address of the core 61A as the source IP address and destination IP address, respectively.The server 180 then transmits the created IP packet to the in-vehicle relay device 101 via the TCU 202C.
[0080] In the vehicle-mounted relay device 101 , when the core 61 A receives the IP packet including the authentication success information R 12 from the server 180 via the TCU 202 C and the relay unit 52 , the core 61 A starts communication with the server 180 .
[0081] On the other hand, if the server 180 fails to authenticate the core 61A, it creates an IP packet that includes authentication failure information R13 indicating that the authentication has failed and that includes its own IP address and the IP address of the core 61A as the source IP address and destination IP address, respectively.The server 180 then transmits the created IP packet to the in-vehicle relay device 101 via the TCU 202C.
[0082] In the vehicle-mounted relay device 101, when the core 61A receives the IP packet including the authentication failure information R13 from the server 180 via the TCU 202C and the relay unit 52, it determines that communication with the server 180 is not possible.
[0083] For example, the function provided by the authentication application 32 included in the software SW 12 includes an IPsec authentication function that performs secure communication in accordance with the IPsec (Security Architecture for Internet Protocol) standard. IPsec is an example of a second communication protocol.
[0084] More specifically, when the core 61B's own vehicle relay device 101 is started up, for example, the core 61B sends authentication request information R21 indicating a request for authentication to the server 180 via the relay unit 52 and the TCU 202C in accordance with a procedure conforming to IPsec.
[0085] Specifically, for example, core 61B creates an IP packet that includes authentication request information R21 and includes, as a source IP address, its own IP address and the IP address of server 180 as a destination IP address, respectively. Core 61B then transmits the created IP packet to server 180 via relay unit 52 and TCU 202C.
[0086] For example, when the server 180 receives authentication request information R21 from the in-vehicle relay device 101 via the TCU 202C, it performs authentication processing for the core 61B in accordance with a procedure conforming to IPsec.
[0087] When the authentication of the core 61B is successful in the authentication process of the core 61B, the server 180 creates an IP packet that includes authentication success information R22 indicating that the authentication is successful and that includes its own IP address and the IP address of the core 61B as the source IP address and the destination IP address, respectively.The server 180 then transmits the created IP packet to the in-vehicle relay device 101 via the TCU 202C.
[0088] In the vehicle-mounted relay device 101, the core 61B starts communication with the server 180 by receiving an IP packet including authentication success information R22 from the server 180 via the TCU 202C and the relay unit 52.
[0089] On the other hand, if the server 180 fails to authenticate the core 61B, it creates an IP packet that includes authentication failure information R23 indicating that the authentication has failed and that includes its own IP address and the IP address of the core 61B as the source IP address and destination IP address, respectively.The server 180 then transmits the created IP packet to the in-vehicle relay device 101 via the TCU 202C.
[0090] In the vehicle-mounted relay device 101, when the core 61B receives the IP packet including the authentication failure information R23 from the server 180 via the TCU 202C and the relay unit 52, it determines that communication with the server 180 is not possible.
[0091] The authentication application 22 may have a function of performing secure communication according to a communication protocol other than TLS. Furthermore, the authentication application 32 may have a function of performing secure communication according to a communication protocol other than IPsec, as long as the communication protocol is different from the communication protocol used in the authentication application 22.
[0092] 3 and 5 , when the state of core 61A and the state of core 61B are normal and control unit 12 receives a risk notification from server 180 regarding a security risk of core 61A, control unit 12 performs a substitution process of stopping access from server 180 to core 61A and having core 61B take over receiving requests from server 180. In the first embodiment of the present disclosure, control unit 12 is realized by relay unit 52 and core 61B shown in FIG. 3 .
[0093] More specifically, for example, when a security risk is found in at least one of the Linux OS 21 and the authentication application 22 in the core 61A, the server 180 creates an IP packet containing a risk notification indicating that a security risk has been found in the core 61A, and containing its own IP address and the IP address of the core 61B as the source IP address and the destination IP address, respectively. The server 180 then transmits the created IP packet to the TCU 202C via the wireless base station device 161.
[0094] When the TCU 202C receives the IP packet including the risk notification from the server 180, it stores the IP packet in a frame (hereinafter also referred to as a "vulnerability notification frame") and transmits it to the in-vehicle relay device 101.
[0095] In the vehicle relay device 101, when the core 61B receives a vulnerability notification frame from the TCU 202C via the relay unit 52, it performs notification processing to output an update notification to the relay unit 52 requesting an update of the routing table Tb1.
[0096] More specifically, for example, the storage unit 62 stores an address table Tb10 that indicates the correspondence between the cores 61 and IP addresses.
[0097] When core 61B receives a vulnerability notification frame from TCU 202C via relay unit 52 while exchanging information with in-vehicle ECU 202 or core 61A, it checks the IP address of core 61A by referring to address table Tb10 in memory unit 62.
[0098] When core 61B confirms the IP address of core 61A, core 61B outputs, as a notification process, an update notification indicating a request to update routing table Tb1, table update information including the IP address of server 180 included in the vulnerability notification frame, and the confirmed IP address of core 61A to relay unit 52. Note that core 61B may output the table update information to relay unit 52 in a standby state in which no information is exchanged between core 61B and in-vehicle ECU 202 or core 61A.
[0099] When the relay unit 52 receives the table update information from the core 61B, it performs a table update process to update the routing table Tb1.
[0100] More specifically, as a table update process, the relay unit 52 performs a process of changing the relay destination of a frame in the routing table Tb1 whose source IP address is the IP address of the server 180 and whose destination IP address is the IP address of the core 61A. Specifically, for example, the relay unit 52 changes the relay destination of the frame from the core 61A to the core 61B. In other words, the relay unit 52 causes the core 61B to accept access from the server 180 to the core 61A instead.
[0101] FIG. 8 is a diagram illustrating an example of a routing table after the table update process by the vehicle-mounted relay device according to the first embodiment of the present disclosure.
[0102] 3 and 8, specifically, for example, when relay unit 52 receives table update information from core 61B, relay unit 52 reads out routing table Tb1 in storage unit 62. Then, relay unit 52 changes the port number in routing table Tb1 corresponding to a frame whose source IP address is the IP address of server 180 included in the table update information and whose destination IP address is the IP address of core 61A from "#4" to "#5."
[0103] Furthermore, for example, when the relay unit 52 receives table update information from the core 61B, it performs a list creation process to create a management list L1 that shows the correspondence between the source IP address contained in a frame that changes the relay destination (hereinafter also referred to as a "relay destination change frame") and the destination IP address contained in the relay destination change frame.
[0104] FIG. 9 is a diagram illustrating an example of a management list created by a list creation process performed by the vehicle-mounted relay device according to the first embodiment of the present disclosure.
[0105] 9, when relay unit 52 receives table update information from core 61B, it creates a management list L1 indicating relay stop frames whose source IP address is "IP_Server," the IP address of server 180 included in the table update information, and whose destination IP address is "IP_Core A," the IP address of core 61A included in the table update information. Then, relay unit 52 stores the created management list L1 in storage unit 62.
[0106] [Communication Continuation Processing] Referring again to FIG. 3, for example, after receiving the risk notification from the server 180, the relay unit 52 further performs communication continuation processing to continue communication within the vehicle 1 by the core 61A.
[0107] More specifically, for example, the relay unit 52 continues the communication between the core 61A and the core 61B as a communication continuation process.
[0108] Specifically, for example, relay unit 52 receives a risk notification from server 180 via TCU 202C, performs table update processing and list creation processing, and then, upon receiving a frame from on-board ECU 202, reads out routing table Tb1 and management list L1 in storage unit 62. Then, relay unit 52 refers to management list L1 to confirm whether the frame received from on-board ECU 202 is a relay stop frame.
[0109] When the frame received from the in-vehicle ECU 202 is a relay stop frame, the relay unit 52 stores, in the payload of the frame, discrimination information indicating that the frame is destined for the core 61A. Then, the relay unit 52 references the routing table Tb1 to output the frame in which the discrimination information is stored to the core 61B.
[0110] After outputting the table update information to the relay unit 52, when the core 61B receives a frame from the relay unit 52, it checks whether or not discrimination information is stored in the payload of the frame.
[0111] If discrimination information is stored in the payload of a frame from the relay unit 52, the core 61B performs a transfer process to output the frame to the core 61A. Upon receiving the frame from the core 61B, the core 61A performs a predetermined process based on the various information included in the frame.
[0112] On the other hand, the core 61B determines that transfer processing is unnecessary if no discrimination information is stored in the payload of the frame from the relay unit 52. Then, the core 61B performs predetermined processing based on the various information included in the frame.
[0113] Furthermore, for example, the relay unit 52 continues communication between the core 61A and the in-vehicle ECU 202 as a communication continuation process.
[0114] More specifically, for example, after receiving a risk notification from the server 180, if the frame received from the vehicle ECU 202 is not a relay stop frame, the relay unit 52 outputs the frame to the destination vehicle ECU 202 or core 61 by referring to the routing table Tb1.
[0115] Specifically, for example, after receiving a risk notification from the server 180, when the relay unit 52 receives a frame addressed to the core 61A from the in-vehicle ECU 202, the relay unit 52 outputs the frame to the addressed core 61A.
[0116] Furthermore, for example, after receiving a risk notification from the server 180, when the relay unit 52 receives a frame addressed to the in-vehicle ECU 202 from the core 61A, the relay unit 52 transmits the frame to the in-vehicle ECU 202 as the destination.
[0117] [Transmission of Information from Core 61A to Server 180] Furthermore, for example, after receiving a risk notification from the server 180, the relay unit 52 continues to transmit information from the core 61A to the server 180.
[0118] More specifically, for example, after receiving a risk notification from server 180, when relay unit 52 receives a frame addressed to server 180 from core 61A, it transmits the frame to the addressed server 180 via TCU 202C.
[0119] After receiving the risk notification from the server 180, the relay unit 52 may stop transmitting information from the core 61A to the server 180.
[0120] 10 is a flowchart illustrating an operation procedure when a core in an in-vehicle relay device according to the first embodiment of the present disclosure performs notification processing. FIG. 10 illustrates an operation procedure when a core 61B in an in-vehicle relay device 101 performs notification processing.
[0121] Referring to FIG. 10, when the core 61B's own in-vehicle relay device 101 is started (step S101), the core 61B transmits authentication request information R21 for requesting authentication by the server 180 to the server 180 via the TCU 202C (step S102).
[0122] Next, when core 61B receives authentication success information R22 indicating successful authentication from server 180 (YES in step S103), core 61B starts communication with server 180 (step S104).
[0123] Next, when core 61B receives a risk notification regarding the security risk of core 61A (YES in step S105), it performs a notification process to output to relay unit 21 an update notification indicating a request to update routing table Tb1, table update information including the IP address of server 180 indicated in the risk notification and the IP address of core 61A (step S106).
[0124] Next, the core 61B continues communication with the core 61A. For example, as described above, when the core 61B receives the frame storing the discrimination information from the relay unit 52, the core 61B outputs the frame to the core 61A (step S107).
[0125] On the other hand, when core 61B receives authentication failure information R23 indicating authentication failure from server 180 (NO in step S103), core 61B determines that communication with server 180 is not possible (step S108).
[0126] FIG. 11 is a flowchart defining an operation procedure when the relay unit in the vehicle-mounted relay device according to the first embodiment of the present disclosure performs a table update process and a list creation process.
[0127] 11 , first, the relay unit 52 waits for table update information from the core 61B (NO in step S201), and upon receiving the table update information from the core 61B (YES in step S201), performs a table update process to update the routing table Tb1. For example, as described above, the relay unit 52 changes, in the routing table Tb1, the port number corresponding to a frame whose source IP address is the IP address of the server 180 included in the table update information received from the core 61B and whose destination IP address is the IP address of the core 61A included in the table update information, to the port number corresponding to the core 61B (step S202).
[0128] Next, the relay unit 52 performs a list creation process to create a management list L1. For example, as described above, the relay unit 52 creates a management list L1 that indicates the correspondence between the source IP address included in the relay destination change frame and the destination IP address included in the relay destination change frame (step S203). Note that steps S202 and S203 may be executed in reverse order or in parallel.
[0129] Next, the relay unit 52 waits for reception of a frame (NO in step S204), and when it receives a frame (YES in step S204), it performs relay processing.
[0130] More specifically, if the received frame is a relay stop frame (YES in step S205), the relay unit 52 outputs the frame to the core 61 B. For example, as described above, the relay unit 52 stores, in the payload of the frame, discrimination information indicating that the frame is addressed to the core 61 A, and outputs the frame to the core 61 B (step S206).
[0131] Furthermore, if the source of the received frame is the core 61A (NO in step S205 and YES in step S207), the relay unit 52 transmits the frame to the destination in-vehicle ECU 202 (step S208).
[0132] On the other hand, if the relay unit 52 receives another frame (NO in step S205 and NO in step S207), the relay unit 52 performs relay processing on the other frame (step S209).
[0133] FIG. 12 is a diagram illustrating an example of a processing sequence of the in-vehicle relay device, the in-vehicle ECU, and the server in the communication system according to the first embodiment of the present disclosure.
[0134] Referring to FIG. 12, first, core 61A transmits authentication request information R11 indicating a request for authentication and its own IP address to server 180 via relay unit 52 and TCU 202C (step S301).
[0135] Next, when the server 180 receives the authentication request information R11 from the in-vehicle relay device 101 via the TCU 202C, it performs authentication processing for the core 61A (step S302).
[0136] Next, if the server 180 successfully authenticates the core 61A, it sends an IP packet to the vehicle relay device 101 via the TCU 202C, which includes authentication success information R12 indicating successful authentication and which includes its own IP address and the IP address of the core 61A as the source IP address and destination IP address, respectively (step S303).
[0137] Next, when the core 61A in the in-vehicle relay device 101 receives the IP packet including the authentication success information R12 from the server 180 via the TCU 202C and the relay unit 52, it starts communication with the server 180 (step S304).
[0138] Next, the core 61B transmits authentication request information R21 indicating a request for authentication and its own IP address to the server 180 via the relay unit 52 and the TCU 202C (step S305).
[0139] Next, when the server 180 receives the authentication request information R21 from the in-vehicle relay device 101 via the TCU 202C, it performs authentication processing for the core 61B (step S306).
[0140] Next, if the server 180 successfully authenticates the core 61B, it sends an IP packet to the vehicle relay device 101 via the TCU 202C, which includes authentication success information R22 indicating successful authentication and which includes its own IP address and the IP address of the core 61B as the source IP address and destination IP address, respectively (step S307).
[0141] Next, when the core 61B in the in-vehicle relay device 101 receives the IP packet including the authentication success information R22 from the server 180 via the TCU 202C and the relay unit 52, it starts communication with the server 180 (step S308).
[0142] Next, the server 180 transmits a risk notification regarding the security risk of the core 61A to the in-vehicle relay device 101 via the TCU 202C. For example, as described above, the server 180 transmits an IP packet including the risk notification and including its own IP address and the IP address of the core 61B as the source IP address and destination IP address, respectively, to the in-vehicle relay device 101 via the TCU 202C (step S309).
[0143] Next, core 61B in the vehicle relay device 101 outputs table update information to the relay unit 52, including an update notification indicating a request to update the routing table Tb1, the IP address of server 180 indicated in the risk notification, and the IP address of core 61A (step S310).
[0144] Next, the relay unit 52 performs a table update process to update the routing table Tb1. For example, as described above, the relay unit 52 changes, in the routing table Tb1, the port number corresponding to a frame whose source IP address is the IP address of the server 180 included in the table update information received from the core 61B and whose destination IP address is the IP address of the core 61A included in the table update information, to the port number corresponding to the core 61B (step S311).
[0145] Next, the relay unit 52 performs a list creation process to create a management list L1. For example, as described above, the relay unit 52 creates a management list L1 that indicates the correspondence between the source IP address included in the relay destination change frame and the destination IP address included in the relay destination change frame (step S312). Note that steps S311 and S312 may be executed in reverse order or in parallel.
[0146] Next, the server 180 transmits a frame addressed to the core 61A to the in-vehicle relay device 101 via the TCU 202C (step S313).
[0147] Next, in the vehicle relay device 101, the relay unit 52 confirms that the destination IP address contained in the frame received from the server 180 is registered in the management list L1 by referring to the management list L1 in the memory unit 62 (step S314).
[0148] Next, the relay unit 52 stores, in the payload of the frame received from the server 180, discrimination information indicating that the frame is addressed to the core 61A, and outputs the frame to the core 61B (step S315).
[0149] Next, when the core 61B receives the frame storing the discrimination information from the relay unit 52, it outputs the frame to the core 61A (step S316).
[0150] Next, the core 61A outputs a frame addressed to a certain in-vehicle ECU 202 to the relay unit 52 (step S317).
[0151] Next, the relay unit 52 transmits the frame received from the core 61A to the destination in-vehicle ECU 202 (step S318).
[0152] <Modification> FIG. 13 is a diagram illustrating an example of a sequence of processes performed by an in-vehicle relay device, an in-vehicle ECU, and a server in a modification of the communication system according to the first embodiment of the present disclosure.
[0153] The processes from step S401 to step S409 shown in FIG. 13 are similar to the processes from step S301 to step S309 shown in FIG.
[0154] Next, the server 180 transmits a risk notification regarding the security risk of the core 61A to the core 61A in addition to the core 61B. More specifically, the server 180 transmits an IP packet including the risk notification and including its own IP address and the IP address of the core 61A as the source IP address and the destination IP address, respectively, to the in-vehicle relay device 101 via the TCU 202C (step S410).
[0155] Next, in the vehicle relay device 101, when the core 61A receives a risk notification from the server 180 via the TCU 202C and the relay unit 52, it outputs a reception notification indicating that the risk notification has been received to the core 61B (step S411).
[0156] Next, when core 61B receives a risk notification from server 180 and a receipt notification from core 61A, it outputs to relay unit 52 table update information including an update notification requesting an update of routing table Tb1, the IP address of server 180 indicated in the risk notification, and the IP address of core 61A (step S412).
[0157] The processes from step S413 to step S420 are similar to the processes from step S311 to step S318 shown in FIG.
[0158] In the in-vehicle relay device 101 according to the first embodiment of the present disclosure, the processing unit 53 is configured to include two cores 61, but this is not limited thereto. The processing unit 53 may be configured to include three or more cores 61. In this case, after receiving a risk notification about a certain core 61 from the server 180, the relay unit 52 updates the routing table Tb1 and the management list L1 each time it receives a risk notification about a new core 61 from the server 180.
[0159] In addition, in the in-vehicle relay device 101 according to the first embodiment of the present disclosure, the routing table Tb1 in the memory unit 62 is not limited to a configuration indicating the correspondence relationship between the source IP address, destination IP address, and port number included in the frame, but may be a configuration indicating the correspondence relationship between the source MAC (Media Access Control) address, destination MAC address, and port number included in the frame. In this case, when a security risk is detected in the core 61A, the server 180 transmits an IP packet including a risk notification and including its own MAC address and the MAC address of the core 61A as the source MAC address and the destination MAC address, respectively, to the in-vehicle relay device 101 via the TCU 202C.
[0160] Second Embodiment In the first embodiment of the present disclosure described above, the core 61A and the core 61B have different configurations with respect to security, and the control unit 12 that performs alternative processing is realized by the relay unit 52 and the core 61B. In contrast, in the second embodiment of the present disclosure, the in-vehicle ECU 202A and the in-vehicle ECU 202B have different configurations with respect to security, and the control unit that performs alternative processing is realized by the in-vehicle relay device 101 and the in-vehicle ECU 202B. Contents other than those described below are the same as those of the communication system 501 according to the first embodiment.
[0161] 2 also shows the configuration of an in-vehicle system according to the second embodiment of the present disclosure. Referring to FIG. 2, the in-vehicle system 302 includes in-vehicle ECUs 202A, 202B, and 202C, which are in-vehicle ECUs 202, and an in-vehicle relay device 101. The in-vehicle system 302 is not limited to a configuration including three in-vehicle ECUs 202, and may include two or four or more in-vehicle ECUs 202.
[0162] FIG. 14 is a diagram illustrating an example of a routing table stored by the vehicle-mounted relay device according to the second embodiment of the present disclosure.
[0163] 2 and 14, the storage unit 62 in the vehicle-mounted relay device 101 stores a routing table Tb2 used in the relay process.
[0164] In the routing table Tb2, when the in-vehicle relay device 101 receives a frame including "IP_Server" and "IP_ECU A" as the source IP address and the destination IP address, respectively, it specifies "#1" as the port number corresponding to the frame. When the in-vehicle relay device 101 receives a frame including "IP_Server" and "IP_ECU B" as the source IP address and the destination IP address, respectively, it specifies "#2" as the port number corresponding to the frame. When the in-vehicle relay device 101 receives a frame including "IP_ECU A" and "IP_Server" as the source IP address and the destination IP address, respectively, it specifies "#3" as the port number corresponding to the frame. When the in-vehicle relay device 101 receives a frame including "IP_ECU B" and "IP_Server" as the source IP address and the destination IP address, respectively, it specifies "#3" as the port number corresponding to the frame.
[0165] 5 also shows functional blocks of the in-vehicle system according to the second embodiment of the present disclosure. Referring to FIG. 5, in the second embodiment of the present disclosure, the first functional unit 11A corresponds to the in-vehicle ECU 202A, and the second functional unit 11B corresponds to the in-vehicle ECU 202B.
[0166] The in-vehicle ECU 202A and the in-vehicle ECU 202B have different configurations with respect to security. In other words, the in-vehicle ECU 202A and the in-vehicle ECU 202B have little relationship with respect to security risks. More specifically, for example, the different configurations with respect to security are that the software SW21 used by the in-vehicle ECU 202A and the software SW22 used by the in-vehicle ECU 202B are different. In other words, the software SW21 installed in the in-vehicle ECU 202A and the software installed in the in-vehicle ECU 202B are different.
[0167] 15 and 16 are diagrams illustrating the configuration of first software used by a first functional unit according to a second embodiment of the present disclosure. Fig. 16 is a diagram illustrating the configuration of second software used by a second functional unit according to a second embodiment of the present disclosure.
[0168] 15 and 16, the in-vehicle ECU 202A and the in-vehicle ECU 202B are equipped with, for example, different operating systems.
[0169] More specifically, for example, the software SW 21 includes a Linux OS 21. Note that the software SW 21 may include a general-purpose OS other than the Linux OS 21.
[0170] For example, the software SW 22 includes an OS different from the Linux OS 21. Specifically, for example, the software SW 22 includes an RTOS 31. Note that the software SW 22 may include an OS other than the RTOS 31 as long as the OS is different from the OS included in the software SW 21.
[0171] Furthermore, the in-vehicle ECU 202A and the in-vehicle ECU 202B are equipped with, for example, different applications.
[0172] More specifically, for example, the software SW 21 includes an authentication application 22 , and the software SW 22 includes an authentication application 32 that is different from the authentication application 22 .
[0173] For example, the function provided by the authentication application 22 included in the software SW21 includes a TLS authentication function that performs secure communication in accordance with the TLS standard.
[0174] Specifically, for example, when the in-vehicle ECU 202A is started, it sends authentication request information R31 requesting authentication and indicating its own IP address to the server 180 via the in-vehicle relay device 101 and the TCU 202C in accordance with a procedure conforming to TLS.
[0175] For example, when the server 180 receives authentication request information R31 from the in-vehicle ECU 202A via the in-vehicle relay device 101 and the TCU 202C, it performs authentication processing for the in-vehicle ECU 202A in accordance with a procedure conforming to TLS.
[0176] When the server 180 has successfully authenticated the in-vehicle ECU 202A in the authentication process for the in-vehicle ECU 202A, the server 180 creates an IP packet that includes authentication success information R32 indicating successful authentication and that includes the IP address of the server 180 and the IP address of the in-vehicle ECU 202A as the source IP address and the destination IP address, respectively.The server 180 then transmits the created IP packet to the in-vehicle ECU 202A via the TCU 202C and the in-vehicle relay device 101.
[0177] When the in-vehicle ECU 202A receives the IP packet including the authentication success information R32 from the server 180 via the TCU 202C and the in-vehicle relay device 101, the in-vehicle ECU 202A starts communication with the server 180.
[0178] On the other hand, if the server 180 fails to authenticate the in-vehicle ECU 202A, the server 180 creates an IP packet that includes authentication failure information R33 indicating the authentication failure and that includes the IP address of the server 180 and the IP address of the in-vehicle ECU 202A as the source IP address and the destination IP address, respectively.The server 180 then transmits the created IP packet to the in-vehicle ECU 202A via the TCU 202C and the in-vehicle relay device 101.
[0179] When the in-vehicle ECU 202A receives the IP packet including the authentication failure information R33 from the server 180 via the TCU 202C and the in-vehicle relay device 101, the in-vehicle ECU 202A determines that communication with the server 180 is not possible.
[0180] For example, the functions provided by the authentication application 32 included in the software SW 22 include an IPsec authentication function that performs secure communication in accordance with the IPsec standard.
[0181] More specifically, for example, when the in-vehicle ECU 202B is started up, it sends authentication request information R41 requesting authentication and indicating its own IP address to the server 180 via the in-vehicle relay device 101 and the TCU 202C in accordance with a procedure conforming to IPsec.
[0182] For example, when the server 180 receives authentication request information R41 from the in-vehicle ECU 202B via the TCU 202C, the server 180 performs authentication processing for the in-vehicle ECU 202B in accordance with a procedure conforming to IPsec.
[0183] When the server 180 has successfully authenticated the in-vehicle ECU 202B in the authentication process for the in-vehicle ECU 202B, the server 180 creates an IP packet that includes authentication success information R42 indicating successful authentication and that includes the IP address of the server 180 and the IP address of the in-vehicle ECU 202B as the source IP address and the destination IP address, respectively.The server 180 then transmits the created IP packet to the in-vehicle ECU 202B via the TCU 202C and the in-vehicle relay device 101.
[0184] The in-vehicle ECU 202B starts communication with the server 180 by receiving the IP packet including the authentication success information R42 from the server 180 via the TCU 202C and the in-vehicle relay device 101.
[0185] On the other hand, if the server 180 fails to authenticate the in-vehicle ECU 202B, it generates authentication failure information R43 indicating that the authentication has failed and indicating the IP address of the in-vehicle ECU 202B as the destination IP address, and transmits the generated authentication failure information R43 to the in-vehicle ECU 202B via the TCU 202C and the in-vehicle relay device 101.
[0186] When the in-vehicle ECU 202B receives the IP packet including the authentication failure information R43 from the server 180 via the TCU 202C and the in-vehicle relay device 101, the in-vehicle ECU 202B determines that communication with the server 180 is not possible.
[0187] 5 , when the state of the in-vehicle ECU 202A and the state of the in-vehicle ECU 202B are normal and the control unit 12 receives a risk notification regarding a security risk of the in-vehicle ECU 202A from the server 180, the control unit 12 performs an alternative process of stopping access from the server 180 to the in-vehicle ECU 202A and having the in-vehicle ECU 202B take over the reception of requests from the server 180. In the first embodiment of the present disclosure, the control unit 12 is realized by the in-vehicle relay device 101 and the in-vehicle ECU 202B shown in FIG.
[0188] More specifically, for example, when a security risk is discovered in at least one of the LINUX_OS 21 and the authentication application 22 in the vehicle ECU 202A, the server 180 sends an IP packet to the vehicle ECU 202B via the TCU 202C and the vehicle relay device 101, the IP packet including a risk notification indicating that a security risk has been discovered in the vehicle ECU 202A, and including its own IP address and the IP address of the vehicle ECU 202B as the source IP address and the destination IP address, respectively.
[0189] When the in-vehicle ECU 202B receives a risk notification from the server 180 via the TCU 202C and the in-vehicle relay device 101, it performs a notification process of sending an update notification to the in-vehicle relay device 101 requesting an update of the routing table Tb2.
[0190] Specifically, for example, a storage unit (not shown) in the in-vehicle ECU 202B stores an address table Tb20 indicating the IP address of the in-vehicle ECU 202A.
[0191] For example, when the in-vehicle ECU 202B is exchanging information with other devices and receives a risk notification from the server 180 via the TCU 202C and the in-vehicle relay device 101, the in-vehicle ECU 202B checks the IP address of the in-vehicle ECU 202A by referring to the address table Tb20 in its own memory.
[0192] When the in-vehicle ECU 202B confirms the IP address of the in-vehicle ECU 202A, as a notification process, the in-vehicle ECU 202B creates a table update frame including an update notification indicating a request to update the routing table Tb2, the IP address of the server 180 indicated in the risk notification, and the confirmed IP address of the in-vehicle ECU 202A, and transmits the table update frame to the in-vehicle relay device 101. Note that the in-vehicle ECU 202B may transmit the table update frame to the in-vehicle relay device 101 in a standby state in which it is not exchanging information with other in-vehicle ECUs 202.
[0193] When the in-vehicle relay device 101 receives the table update frame from the in-vehicle ECU 202B, it performs a table update process to update the routing table Tb2.
[0194] More specifically, as a table update process, the in-vehicle relay device 101 performs a process of changing the relay destination of a frame in the routing table Tb2, the source IP address of which is the IP address of the server 180 and the destination IP address of which is the IP address of the in-vehicle ECU 202A. Specifically, for example, the in-vehicle relay device 101 changes the relay destination of the frame from the in-vehicle ECU 202A to the in-vehicle ECU 202B. That is, the in-vehicle relay device 101 substitutes the in-vehicle ECU 202B for accepting access from the server 180 to the in-vehicle ECU 202A.
[0195] FIG. 17 is a diagram illustrating an example of a routing table after the table update process by the vehicle-mounted relay device according to the second embodiment of the present disclosure.
[0196] 2 and 17, specifically, for example, when in-vehicle relay device 101 receives a table update frame from in-vehicle ECU 202B, it reads out routing table Tb2 in storage unit 62. Then, in routing table Tb2, in-vehicle relay device 101 changes the port number corresponding to a frame in which the IP address of server 180 included in the table update frame is the source IP address and the IP address of in-vehicle ECU 202A is the destination IP address from "#1" to "#2."
[0197] Also, for example, when the in-vehicle relay device 101 receives a table update frame from the in-vehicle ECU 202B, it performs a list creation process to create a management list L2 that shows the correspondence between the source IP address contained in the relay destination change frame and the destination IP address contained in the relay destination change frame.
[0198] FIG. 18 is a diagram illustrating an example of a management list created by a list creation process performed by the vehicle-mounted relay device according to the second embodiment of the present disclosure.
[0199] 18 , when in-vehicle relay device 101 receives a table update frame from in-vehicle ECU 202B, it creates a management list L2 indicating a relay stop frame whose source IP address is the IP address "IP_Server" of server 180 included in the table update frame and whose destination IP address is the IP address "IP_ECU A" of in-vehicle ECU 202A included in the table update frame. Then, in-vehicle relay device 101 stores the created management list L2 in memory unit 62.
[0200] [Communication Continuation Processing] Referring again to FIG. 2, for example, after receiving the risk notification from the server 180, the in-vehicle relay device 101 further performs communication continuation processing to continue communication within the vehicle 1 by the in-vehicle ECU 202A.
[0201] More specifically, for example, the in-vehicle relay device 101 continues the communication between the in-vehicle ECU 202A and the in-vehicle ECU 202B as the communication continuation process.
[0202] Specifically, for example, when the in-vehicle relay device 101 receives a risk notification from the server 180, performs a table update process and a list creation process, and then receives a frame from a certain in-vehicle ECU 202, it reads out the routing table Tb2 and the management list L2 in the storage unit 62. Then, the in-vehicle relay device 101 checks whether the received frame is a relay stop frame by referring to the management list L2.
[0203] When a frame received from an in-vehicle ECU 202 is a relay stop frame, the in-vehicle relay device 101 stores, in the payload of the frame, discrimination information indicating that the frame is destined for the in-vehicle ECU 202A. Then, the in-vehicle relay device 101 refers to the routing table Tb2 and transmits the frame storing the discrimination information to the in-vehicle ECU 202B.
[0204] After transmitting the table update frame to the in-vehicle relay device 101, when the in-vehicle ECU 202B receives a frame from the in-vehicle relay device 101, the in-vehicle ECU 202B checks whether discrimination information is stored in the payload of the frame.
[0205] When the discrimination information is stored in the payload of the frame from the in-vehicle relay device 101, the in-vehicle ECU 202B performs a transfer process of transmitting the frame to the in-vehicle ECU 202A via the in-vehicle relay device 101.
[0206] Specifically, for example, the in-vehicle ECU 202B changes the destination IP address of a frame containing discrimination information received from the in-vehicle relay device 101 from its own IP address to the IP address of the in-vehicle ECU 202A. Then, the in-vehicle ECU 202B transmits the frame with the changed destination IP address to the in-vehicle relay device 101. The in-vehicle relay device 101 transmits the frame received from the in-vehicle ECU 202B to the in-vehicle ECU 202A.
[0207] When the in-vehicle ECU 202A receives a frame from the in-vehicle ECU 202B via the in-vehicle relay device 101, the in-vehicle ECU 202A performs a predetermined process based on various information included in the frame.
[0208] On the other hand, the in-vehicle ECU 202B determines that the transfer process is unnecessary if the discrimination information is not stored in the payload of the frame from the in-vehicle relay device 101. Then, the in-vehicle ECU 202B performs a predetermined process based on the various information included in the frame.
[0209] Also, for example, the in-vehicle relay device 101 continues the communication between the in-vehicle ECU 202A and the in-vehicle ECU 202C as a communication continuation process.
[0210] More specifically, for example, after receiving a risk notification from the server 180, if the frame received from a certain vehicle ECU 202 is not a relay stop frame, the vehicle relay device 101 transmits the frame to the destination vehicle ECU 202 by referring to the routing table Tb2.
[0211] Specifically, for example, after receiving a risk notification from server 180, when in-vehicle relay device 101 receives a frame addressed to in-vehicle ECU 202C from in-vehicle ECU 202A, it transmits the frame to the addressed in-vehicle ECU 202C.
[0212] Furthermore, for example, after receiving a risk notification from the server 180, when the in-vehicle relay device 101 receives a frame addressed to the in-vehicle ECU 202A from the in-vehicle ECU 202C, the in-vehicle relay device 101 transmits the frame to the in-vehicle ECU 202A as the destination.
[0213] [Transmission of information from in-vehicle ECU 202A to server 180] Furthermore, for example, after receiving a risk notification from the server 180, the in-vehicle relay device 101 continues to transmit information from the in-vehicle ECU 202A to the server 180.
[0214] More specifically, for example, after receiving a risk notification from server 180, when in-vehicle relay device 101 receives a frame addressed to server 180 from in-vehicle ECU 202A, it transmits the frame to the addressed server 180 via TCU 202C.
[0215] After receiving the risk notification from the server 180, the in-vehicle relay device 101 may stop transmitting information from the in-vehicle ECU 202A to the server 180.
[0216] FIG. 19 is a diagram illustrating an example of a processing sequence of an in-vehicle relay device, an in-vehicle ECU, and a server in a communication system according to the second embodiment of the present disclosure.
[0217] Referring to FIG. 19, first, the in-vehicle ECU 202A transmits authentication request information R31 indicating a request for authentication and its own IP address to the server 180 via the in-vehicle relay device 101 and the TCU 202C (step S501).
[0218] Next, when the server 180 receives the authentication request information R31 from the in-vehicle ECU 202A via the in-vehicle relay device 101 and the TCU 202C, it performs authentication processing for the in-vehicle ECU 202A (step S502).
[0219] Next, if the server 180 successfully authenticates the in-vehicle ECU 202A, it transmits authentication success information R32 to the in-vehicle ECU 202A via the TCU 202C and the in-vehicle relay device 101, indicating that the authentication has been successful and indicating the IP address of the in-vehicle ECU 202A as the destination IP address (step S503).
[0220] Next, when the in-vehicle ECU 202A receives the authentication success information R32 from the server 180 via the TCU 202C and the in-vehicle relay device 101, the in-vehicle ECU 202A starts communication with the server 180 (step S504).
[0221] Next, the in-vehicle ECU 202B transmits authentication request information R41 requesting authentication and indicating its own IP address to the server 180 via the in-vehicle relay device 101 and the TCU 202C (step S505).
[0222] Next, when the server 180 receives the authentication request information R41 from the in-vehicle relay device 101 via the TCU 202C, it performs authentication processing for the in-vehicle ECU 202B (step S506).
[0223] Next, when the server 180 has successfully authenticated the in-vehicle ECU 202B, it transmits authentication success information R42 to the in-vehicle ECU 202B via the TCU 202C, indicating that the authentication has been successful and indicating the IP address of the in-vehicle ECU 202B as the destination IP address (step S507).
[0224] Next, when the in-vehicle ECU 202B receives the authentication success information R42 from the server 180 via the TCU 202C and the in-vehicle relay device 101, the in-vehicle ECU 202B starts communication with the server 180 (step S508).
[0225] Next, server 180 transmits a risk notification regarding the security risk of in-vehicle ECU 202A to in-vehicle ECU 202B via TCU 202C and in-vehicle relay device 101. For example, as described above, server 180 transmits an IP packet including the risk notification and including its own IP address and the IP address of in-vehicle ECU 202B as the source IP address and the destination IP address, respectively, to in-vehicle ECU 202B via TCU 202C and in-vehicle relay device 101 (step S509).
[0226] Next, the vehicle ECU 202B sends a table update frame to the vehicle relay device 101, which includes an update notification requesting an update of the routing table Tb2, the IP address of the server 180 indicated in the risk notification, and the IP address of the vehicle ECU 202A (step S510).
[0227] Next, the in-vehicle relay device 101 performs a table update process to update the routing table Tb2. For example, as described above, the in-vehicle relay device 101 changes, in the routing table Tb2, the port number corresponding to a frame in which the IP address of the server 180 included in the table update frame received from the in-vehicle ECU 202B is the source IP address and the IP address of the in-vehicle ECU 202A included in the table update frame is the destination IP address, to the port number corresponding to the in-vehicle ECU 202B (step S511).
[0228] Next, the in-vehicle relay device 101 performs a list creation process to create a management list L2 indicating a relay destination change frame. For example, as described above, the in-vehicle relay device 101 creates a management list L2 indicating a relay stop frame whose source IP address is the IP address of the server 180 and whose destination IP address is the IP address of the in-vehicle ECU 202A (step S512). Note that steps S511 and S512 may be executed in reverse order or in parallel.
[0229] Next, the server 180 transmits a frame addressed to the in-vehicle ECU 202A to the in-vehicle relay device 101 via the TCU 202C (step S513).
[0230] Next, the vehicle relay device 101 refers to the management list L2 in the memory unit 62 to confirm that the destination IP address included in the frame received from the server 180 is registered in the management list L2 (step S514).
[0231] Next, the in-vehicle relay device 101 stores, in the payload of the frame received from the server 180, discrimination information indicating that the frame is addressed to the in-vehicle ECU 202A, and transmits the frame to the in-vehicle ECU 202B (step S515).
[0232] Next, when the in-vehicle ECU 202B confirms that discrimination information is stored in the frame received from the in-vehicle relay device 101, it changes the destination IP address of the frame to the IP address of the in-vehicle ECU 202A and sends it to the in-vehicle relay device 101 (step S516).
[0233] Next, the in-vehicle relay device 101 transmits the frame received from the in-vehicle ECU 202B to the in-vehicle ECU 202A (step S517).
[0234] Next, the in-vehicle ECU 202A outputs the frame addressed to the in-vehicle ECU 202C to the relay unit 52 (step S518).
[0235] Next, the in-vehicle relay device 101 transmits the frame received from the in-vehicle ECU 202A to the destination in-vehicle ECU 202C (step S519).
[0236] In the in-vehicle systems 301 and 302 according to the embodiments of the present disclosure, the control unit 12 is configured to perform a communication continuation process to continue communication within the vehicle 1 by the first functional unit 11A after receiving a risk notification from the server 180, but this is not limited to this. The control unit 12 may be configured to stop communication within the vehicle 1 by the first functional unit 11A after receiving a risk notification from the server 180.
[0237] In addition, the in-vehicle systems 301 and 302 according to the embodiment of the present disclosure have different security configurations in which the software used by the first functional unit 11A and the software used by the second functional unit 11B are different, but this is not limiting. The in-vehicle systems 301 and 302 may have different security configurations in which the hardware used by the first functional unit 11A and the hardware used by the second functional unit 11B are different.
[0238] Furthermore, in the in-vehicle systems 301 and 302 according to the embodiments of the present disclosure, the control unit 12 is configured to continue transmitting information from the first functional unit 11A to the server 180 after receiving a risk notification about the first functional unit 11A from the server 180, but this is not limited to this. The control unit 12 may be configured to stop transmitting information from the first functional unit 11A to the server 180 after receiving the risk notification from the server 180.
[0239] The above-described embodiments should be considered to be illustrative in all respects and not restrictive. The scope of the present invention is defined by the claims, not by the above description, and is intended to include all modifications within the meaning and scope of the claims.
[0240] Each process (each function) in the above-described embodiments is realized by a processing circuit including one or more processors. The processing circuit may be configured as an integrated circuit or the like that combines one or more memories, various analog circuits, and various digital circuits in addition to the one or more processors. The one or more memories store programs (instructions) that cause the one or more processors to execute each of the processes. The one or more processors may execute each of the processes according to the program read from the one or more memories, or may execute each of the processes according to a logic circuit designed in advance to execute each of the processes. The processor may be any of various processors suitable for computer control, such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), an FPGA (Field Programmable Gate Array), and an ASIC (Application Specific Integrated Circuit). Note that the physically separated processors may cooperate with each other to execute the processes. For example, the processors installed in the physically separated computers may cooperate with each other via a network such as a LAN (Local Area Network), a WAN (Wide Area Network), or the Internet to execute the processes. The program may be installed into the memory from an external server device or the like via the network, or may be distributed in a state stored on a recording medium such as a CD-ROM (Compact Disc Read Only Memory), a DVD-ROM (Digital Versatile Disc Read Only Memory), or a semiconductor memory, and then installed into the memory from the recording medium.
[0241] REFERENCE SIGNS LIST 1 Vehicle 10 Ethernet cable 11A First function unit 11B Second function unit 12 Control unit 21 LINUX_OS 22, 32 Authentication application 31 RTOS 51 Communication port 52 Relay unit 53 Processing unit 61, 61A, 61B Core 62 Storage unit 101 Vehicle relay device 161 Wireless base station device 170 External network 180 Server 202, 202A, 202B, 202C Vehicle ECU 301, 302 Vehicle system 401 Vehicle network 501 Communication system SW11, SW12, SW21, SW22 Software
Claims
1. An in-vehicle system mounted on a vehicle, comprising: a plurality of functional units including a first functional unit and a second functional unit having different security configurations; and a control unit that, when the state of the first functional unit and the state of the second functional unit are normal and a risk notification regarding a security risk of the first functional unit is received from an external device outside the vehicle, stops access to the first functional unit from the external device and performs an alternative process of having the second functional unit accept the access instead.
2. The in-vehicle system according to claim 1, wherein the control unit further performs a communication continuation process for continuing communication within the vehicle by the first functional unit after receiving the risk notification from the external device.
3. The in-vehicle system of claim 2, wherein the control unit, as the communication continuation processing, continues communication between the first functional unit and other functional units among the plurality of functional units other than the first functional unit and the second functional unit.
4. The in-vehicle system according to claim 2 or 3, wherein the control unit continues communication between the first functional unit and the second functional unit as the communication continuation process.
5. The in-vehicle system according to any one of claims 1 to 4, wherein the first software used by the first functional unit and the second software used by the second functional unit are different.
6. The in-vehicle system described in claim 5, wherein the functions provided by the first software include a function of performing secure communication according to a first communication protocol, and the functions provided by the second software include a function of performing the secure communication according to a second communication protocol different from the first communication protocol.
7. The in-vehicle system according to claim 5 or 6, wherein the first software includes a first application, and the second software includes a second application different from the first application.
8. The in-vehicle system according to any one of claims 5 to 7, wherein the first software includes a first OS (Operating System), and the second software includes a second OS different from the first OS.
9. A security management method for an in-vehicle system mounted on a vehicle, the in-vehicle system having a plurality of functional units including a first functional unit and a second functional unit having different security configurations, the security management method including the steps of: receiving a risk notification regarding a security risk of the first functional unit from an external device outside the vehicle when the state of the first functional unit and the state of the second functional unit are normal; and, when the risk notification is received, stopping access from the external device to the first functional unit and performing an alternative process of having the second functional unit accept the access instead.
10. A security management program used in an in-vehicle system mounted on a vehicle, the in-vehicle system having multiple functional units including a first functional unit and a second functional unit having different security configurations, the security management program causing a computer to function as a control unit that, when the state of the first functional unit and the state of the second functional unit are normal and a risk notification regarding a security risk of the first functional unit is received from an external device outside the vehicle, stops access to the first functional unit from the external device and performs alternative processing to have the second functional unit accept the access instead.
