Security device, network system and attack detection method

CN112286764BActive Publication Date: 2024-11-26PANASONIC INTELLECTUAL PROPERTY CORP OF AMERICA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011202721.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2016-09-14
Filing Date
2016-10-07
Publication Date
2024-11-26
Estimated Expiration
2036-10-07

Smart Images

  • Figure CN112286764B_ABST
    Figure CN112286764B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a safety device, a network system and an attack detection method. The safety device (2110) connected to a bus in a vehicle comprises: a determination unit (2113) for determining whether a frame received by a receiving unit (2111) for receiving frames from the bus satisfies a predetermined condition, wherein the predetermined condition is used to distinguish whether a frame may be an attack frame; an acquisition unit (2114) for controlling, when the determination unit determines that the predetermined condition is satisfied, to transmit a determination request to an external device (2200) outside the vehicle and obtain a determination result transmitted from the external device according to the determination request; and an output unit (2115) for outputting a first prompt message when the determination unit determines that the predetermined condition is satisfied, and for outputting a second prompt message when the acquisition unit obtains a determination result from the external device.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the Chinese patent application with the application date of October 7, 2016, application number 201680045757.X, and invention name “SECURITY DEVICE, NETWORK SYSTEM AND ATTACK DETECTION METHOD”. Technical Field

[0002] The present disclosure relates to a technology for detecting an attack frame, which is an abnormal frame transmitted in a network in which an electronic control unit mounted on a vehicle or the like performs communication. Background Art

[0003] In recent years, many devices called electronic control units (ECUs) have been installed in the systems in cars. The network connecting these ECUs is called the vehicle network. There are many standards for vehicle networks. As one of the most mainstream vehicle networks, there is the CAN (Controller Area Network) standard specified by ISO11898-1.

[0004] In CAN, the communication path is a bus consisting of two wires, and the ECUs connected to the bus are called nodes. Each node connected to the bus sends and receives messages called frames.

[0005] In CAN, there is no identifier that indicates the destination or source of transmission. The transmitting node attaches an ID called a message ID to each frame and transmits it (i.e., sends a signal to the bus), and each receiving node only receives frames with a predetermined ID (i.e., reads a signal from the bus). In addition, the CSMA / CA (Carrier Sense Multiple Access / CollisionAvoidance) method is adopted. When multiple nodes transmit at the same time, arbitration (mediation) based on the message ID is performed, and frames with smaller message ID values ​​are sent first.

[0006] As described above, because the CAN does not implement verification of whether the transmission source is correct, an attacker (abnormal node) can abnormally control the car by accessing the CAN bus and sending an abnormal frame (attack frame). As a defense technology against such an attack, the following technology is known: when a frame has been sent to the CAN bus, it is determined whether it is an abnormally sent frame, and actions such as issuing an alarm and blocking the abnormal frame are taken (see Patent Document 1).

[0007] Prior art literature

[0008] Patent Document 1: Japanese Patent Application Publication No. 2015-136107 Summary of the invention

[0009] Technical problem to be solved by the invention

[0010] However, further improvements are needed in the above-mentioned prior art.

[0011] Technical solutions to solve problems

[0012] A safety device of a technical solution of the present disclosure is a safety device connected to one or more buses in a vehicle, and comprises: a receiving unit, which receives a frame from one of the buses; a determining unit, which determines whether a predetermined condition is satisfied for the frame received by the receiving unit, wherein the predetermined condition is used to distinguish whether there is a possible attack frame; an acquiring unit, which controls to transmit a determination request to an external device located outside the vehicle and obtain a determination result transmitted from the external device according to the determination request when the determining unit determines that the predetermined condition is satisfied; and an output unit, which outputs a first prompt information when the determining unit determines that the predetermined condition is satisfied, and outputs a second prompt information when the acquiring unit obtains the determination result from the external device.

[0013] In addition, these general or specific technical solutions can be implemented through devices, systems, integrated circuits, computer programs or computer-readable recording media such as CD-ROMs, or through any combination of devices, systems, methods, computer programs and recording media.

[0014] Effects of the Invention

[0015] According to the present disclosure, when a frame suspected to be an attack frame is transmitted, appropriate notification is performed, so the driver of the vehicle or the like receives the notification and takes appropriate measures.

[0016] In addition, further effects and advantages of the present disclosure can be known from the disclosure of this specification and the accompanying drawings. The above further effects and advantages can be provided by various embodiments and features disclosed in this specification and the accompanying drawings alone, and not necessarily all effects and advantages need to be provided. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a diagram showing the overall configuration of the network system according to the first embodiment.

[0018] Figure 2 This is a sequence diagram showing an operation example of the network system according to the first embodiment.

[0019] Figure 3 This is a diagram showing a specific example of the contents of frames exchanged by a gateway.

[0020] Figure 4 This is a diagram of the steering wheel ECU.

[0021] Figure 5 This is a diagram of the speed notification ECU.

[0022] Figure 6 This is a diagram showing the structure of the white line angle notification ECU.

[0023] Figure 7 This is a diagram of the structure of the automatic steering indicator ECU.

[0024] Figure 8 This is a diagram of the main unit ECU.

[0025] Fig. 9 This is a diagram showing an example of a display content table held by the display content holding section of the main unit ECU.

[0026] Fig.10 It is a diagram showing a display example of a warning notification in the main unit ECU.

[0027] Fig.11 It is a diagram showing a display example of a no-abnormality notification in the main unit ECU.

[0028] Fig.12 2 is a diagram showing a display example of an attack detection notification in the main unit ECU.

[0029] Fig.13 It is a diagram showing a display example of a parking advice in the main unit ECU.

[0030] Fig.14 This is a diagram of the configuration of the gateway of implementation mode 1.

[0031] Fig.15 This is a diagram showing an example of a reception ID list related to frames received by a gateway.

[0032] Fig.16 This is a diagram showing an example of a frame format rule used by a gateway to check whether a frame is an abnormal frame.

[0033] Fig.17 This is a diagram showing an example of a judgment rule used by the gateway to judge whether it is necessary to send a judgment request to the outside.

[0034] Fig.18 This is a diagram showing an example of a warning rule used by the gateway to determine whether a warning is necessary.

[0035] Fig.19 This is a diagram showing an example of a notification rule used by the gateway to determine the notification content.

[0036] Fig. 20 This is a diagram showing an example of a forwarding rule used by a gateway.

[0037] Fig.21 This is a diagram showing an example of data values ​​stored in the state storage unit of the gateway.

[0038] Fig. 22 This is a flowchart showing an example of frame reception response processing in the gateway of Implementation Example 1.

[0039] Fig.23 This is a flowchart showing an example of processing corresponding to the reception of the determination result in the gateway according to the first embodiment.

[0040] Fig.24 This is a diagram of the server's configuration.

[0041] Fig.25 This is a flowchart showing an example of abnormality determination processing in the server.

[0042] Fig.26 This is a flowchart showing an example of the operation of the server.

[0043] Fig. 27 This is a diagram showing the overall structure of a network system according to the second embodiment.

[0044] Fig.28 This is a sequence diagram showing an example of operation of the network system according to the second embodiment.

[0045] Fig.29 This is a diagram of the configuration of the gateway of implementation mode 2.

[0046] Fig.30 This is a flowchart showing an example of frame reception response processing in the gateway of Implementation Example 2.

[0047] Fig.31 This is a flowchart showing an example of processing corresponding to the reception of the determination result in the gateway according to the second implementation mode.

[0048] Fig.32 1 is a flowchart showing an example of operation in the vehicle B in response to a determination request.

[0049] Fig.33 This is a diagram schematically showing the structure of a network system. DETAILED DESCRIPTION

[0050] (Insights that form the basis of this disclosure)

[0051] In the technology described in Patent Document 1, when a frame has been transmitted to the bus line of CAN, it is determined whether the frame is transmitted abnormally, and actions such as issuing an alarm and blocking the abnormal frame are taken.

[0052] However, when a frame transmitted to the bus of the in-vehicle network is suspected to be an attack frame transmitted by an attacker to abnormally control a vehicle such as a car, but it cannot be determined to be an attack frame, the frame should not necessarily be blocked.

[0053] Based on the above considerations, the inventors have come up with various technical solutions disclosed in the present invention.

[0054] A safety device of a technical solution of the present disclosure is a safety device connected to one or more buses in a vehicle, and comprises: a receiving unit that receives a frame from one of the buses; a determining unit that determines whether a predetermined condition is satisfied for the frame received by the receiving unit, the predetermined condition being used to distinguish whether it is a possible attack frame; an acquiring unit that controls to transmit a determination request to an external device located outside the vehicle and obtain a determination result transmitted from the external device according to the determination request when the determining unit determines that the predetermined condition is satisfied; and an output unit that outputs a first prompt information when the determining unit determines that the predetermined condition is satisfied, and outputs a second prompt information when the acquisition unit obtains the determination result from the external device. After the safety device makes a determination based on the predetermined condition for distinguishing whether it is a possible attack frame, if the predetermined condition is satisfied, it waits for the determination result of the external device to determine whether it is an attack frame. It takes a certain amount of time to send a determination request to an external device, make the external device make a determination, and receive the determination result. According to the safety device based on the above structure, when a predetermined condition is met, that is, when a frame suspected of being an attack frame is sent, appropriate notification is made by outputting the first prompt information, and when the determination result of the external device is obtained after a certain period of time, appropriate notification is made by outputting the second prompt information. In addition, the output of the prompt information is a notification (information prompt, etc.) to the driver, fellow passengers, etc. of the vehicle directly or via a device with a user interface. Therefore, the driver of the vehicle, etc. can receive the notification and respond appropriately. For example, if the attention of the driver, etc. is attracted by the notification based on the first prompt information when a frame suspected of being an attack frame is sent, when the external device determines that the frame is an attack frame and a notification based on the second prompt information is made, the driver, etc. will be able to respond smoothly. Therefore, the adverse effects caused by the frame or the frame following the frame when the frame suspected of being an attack frame is sent can be reduced.

[0055] In addition, for example, the vehicle may be equipped with a plurality of electronic control units that perform frame transfer via the one or more buses in accordance with the CAN protocol, i.e., the controller area network protocol. Thus, when an attack frame is sent in a vehicle network in accordance with CAN for transferring frames between electronic control units (ECUs), appropriate notification can be performed to reduce the adverse effects of the attack frame.

[0056] In addition, for example, the safety device may be a gateway device connected to the plurality of buses in the vehicle. Thus, the safety device as a gateway device connecting the plurality of buses and forwarding frames can appropriately notify when an attack frame is sent to a certain bus.

[0057] In addition, for example, the safety device may also include a confirmation unit, the confirmation unit confirms whether the frame received by the receiving unit from a bus meets the abnormal condition, the safety device transfers the frame received by the receiving unit from a bus to another bus when the confirmation unit confirms that the frame does not meet the abnormal condition, and does not transfer the frame when the confirmation unit confirms that the frame meets the abnormal condition, the determination unit does not determine that the predetermined condition is met when the confirmation unit confirms that the frame received by the receiving unit meets the abnormal condition, and the output unit outputs the first prompt information when the determination unit determines that the predetermined condition is met. Thus, the safety device as a gateway device can suppress the transfer between buses when it is confirmed that the frame sent to a certain bus is an abnormal frame (i.e., a frame that does not meet the predetermined rule). In addition, even if a frame sent to a certain bus cannot be determined as an abnormal frame but is determined to be a frame that may be abnormal, that is, a frame suspected of attack, the safety device forwards the frame, but outputs the first prompt information during the determination, so that the driver can be properly notified through the output. For example, the driver can quickly know that the vehicle may behave differently from its own plan. In addition, the driver can drive while paying attention to the behavior of the vehicle.

[0058] In addition, for example, when the determination unit determines that the predetermined condition is satisfied, the output unit outputs the first prompt information when the warning condition is satisfied, and does not output the first prompt information when the warning condition is not satisfied. Thus, even when a frame suspected of being an attack frame is sent, it is possible to determine whether a warning is necessary based on the frame content, etc. Therefore, in the case where the adverse effects caused by the sent frame are small, it is possible not to output for notification, and not to provide unnecessary warnings to the driver, etc., thereby preventing confusion.

[0059] In addition, for example, when the acquisition unit acquires the determination result from the external device, the output unit may output information selected from a plurality of predetermined different information different from the first prompt information according to the determination result and whether the warning condition is satisfied as the second prompt information. Thus, appropriate information may be output in view of the necessity of issuing a warning when the determination result is obtained from the external device. Therefore, appropriate notification may be issued to the driver etc. based on the determination result of the external device.

[0060] In addition, for example, the output unit may determine whether the warning condition is satisfied based on the content of one or more frames received by the receiving unit in the past. Thus, for example, if the warning condition is satisfied when a frame causing abnormal behavior of the vehicle is received in the past close to the present or a certain period of time, the warning condition may be determined, and thus the notification content may be changed according to whether the behavior of the vehicle is abnormal. That is, according to this configuration, for example, in a state where the abnormality has been controlled, a notification can be made that does not excessively draw the attention of the driver, etc., and in a state where the abnormality continues, a notification can be made that advises the driver, etc. to stop the vehicle, etc.

[0061] In addition, for example, the determination result from the external device may selectively indicate whether it is normal, and when the acquisition unit acquires the determination result from the external device, the output unit outputs the information selected from a plurality of predetermined different information different from the first prompt information according to whether the determination result indicates normality as the second prompt information. Thus, when the determination result of the external device is acquired, the second prompt information based on the determination result different from the first prompt information may be output. In this way, the prompt information outputted before and after the determination result of the external device is acquired may change, so, for example, the display based on the prompt information may be switched to appropriately notify the driver or the like of the information.

[0062] In addition, for example, the acquisition unit may include an external communication unit, which sends the determination request to the external device and receives the determination result sent from the external device in response to the determination request. As a result, since the safety device can communicate with the external device, it is not necessary to provide a communication device other than the safety device in the vehicle for communicating with the outside of the vehicle, and for example, communication delay can be reduced.

[0063] In addition, for example, the output unit may send a frame including the first prompt information to a bus in the vehicle when the determination unit determines that the predetermined condition is satisfied, and may send a frame including the second prompt information to the bus when the acquisition unit acquires the determination result from the external device. Thus, even if the safety device itself does not have a structure for displaying (displaying, etc.) prompt information, it can send prompt information to an ECU connected to the bus and prompt the information via the ECU, thereby realizing notification.

[0064] In addition, for example, the predetermined condition used by the determination unit in the determination of the frame may be a condition related to at least one of a reception interval, a difference, and a correlation, wherein the reception interval is a reception interval between the frame and a previous frame of the same type that has the same ID as the frame and was previously received by the receiving unit, the difference is a difference between the content of the data of the frame and the content of the previous frame of the same type, and the correlation is a correlation between the content of the previous frame of a different type that has an ID different from the frame and was previously received by the receiving unit and the content of the frame. Thus, the security device can appropriately determine whether the frame sent to the bus is a suspected attack frame.

[0065] In addition, a network system of a technical solution of the present disclosure comprises: the above-mentioned security device; the external device; the vehicle equipped with a communication device for communicating with the external device; the one or more buses; and a plurality of electronic control units installed in the vehicle for transmitting and receiving frames via the one or more buses. Thus, when a frame suspected of being an attack frame is sent in a vehicle network composed of a plurality of electronic control units (ECUs), appropriate notification is made by outputting a first prompt message, and when a determination result of an external device located outside the vehicle is obtained after a certain period of time, appropriate notification is made by outputting a second prompt message. Therefore, the adverse effects caused by a frame suspected of being an attack frame or a frame following the frame when the frame is sent can be reduced.

[0066] In addition, for example, one of the plurality of electronic control units may be a predetermined electronic control unit having an information prompting function, and the output unit may send a frame containing the first prompting information to a bus connected to the predetermined electronic control unit when the determination unit determines that the predetermined condition is satisfied, and may send a frame containing the second prompting information to a bus connected to the predetermined electronic control unit when the acquisition unit acquires the determination result from the external device, and the predetermined electronic control unit may prompt the first prompting information when receiving the frame containing the first prompting information, and may prompt the second prompting information when receiving the frame containing the second prompting information. Thus, when a frame suspected of being an attack frame is sent in the vehicle network, the predetermined electronic control unit (predetermined ECU) having an information prompting function may make an appropriate notification (information prompting).

[0067] In addition, for example, the vehicle may include a notification device for notifying the outside of the vehicle, the first prompt information may include control information for causing the notification device to make a notification, and the output of the first prompt information by the output unit may include sending the first prompt information to the notification device. The notification device may be, for example, a whistle, an emergency flashing indicator light (hazard light), etc. Thus, when a frame suspected of being an attack frame is sent to the bus of the vehicle, for example, the attention of other vehicles traveling around the vehicle may be drawn.

[0068] In addition, for example, the communication device may send log information related to each frame received by the receiving unit of the safety device to the external device, the acquisition unit of the safety device may send the determination request to the external device via the communication device, and receive the determination result sent from the external device according to the determination request via the communication device. When the external device receives the determination request, it determines whether an attack frame is sent in the vehicle based on the log information, thereby sending the determination result to the communication device. Thus, the external device can accumulate log information related to the frame, analyze the accumulated log information and make appropriate determinations. In addition, in the determination using the frame information, there may be a case where the external device can determine something that the vehicle cannot determine. For example, in the case where the vehicle cannot accumulate a relatively large amount of log information, or there is no log information in vehicles other than the vehicle, the external device may collect log information of multiple vehicles to accumulate a large amount of log information.

[0069] In addition, for example, the external device may observe the movement of the vehicle from outside the vehicle, determine whether the movement of the vehicle is normal, and send the determination result to the communication device. Thus, by determining what the vehicle cannot determine through the external device, it is possible to appropriately determine whether the movement of the vehicle is normal. Furthermore, the determination result of the external device can be used in the vehicle to appropriately determine whether it is being attacked. Therefore, when a frame suspected of being an attack frame is sent in the vehicle, appropriate notification can be made through the vehicle.

[0070] In addition, for example, the external device may be another vehicle located around the vehicle when the determination unit determines that the predetermined condition is satisfied. Thus, when a frame suspected of being an attack frame is sent from a vehicle, the vehicle sends a determination request to other vehicles around it and obtains the determination result, thereby making appropriate notification.

[0071] In addition, an attack detection method of a technical solution of the present disclosure is an attack detection method used in an in-vehicle network system in which multiple electronic control units perform frame transmission and reception via one or more buses, comprising: a receiving step of receiving a frame from the bus; a determining step of determining whether a predetermined condition is satisfied for the frame received by the receiving step, the predetermined condition being used to distinguish whether there is a possible attack frame; a first prompting step of prompting first prompting information when the predetermined condition is satisfied by the determining step; an obtaining step of controlling to transmit a determination request to an external device located outside the vehicle and obtain a determination result transmitted from the external device according to the determination request when the predetermined condition is satisfied by the determining step; and a second prompting step of prompting second prompting information when the determination result from the external device is obtained by the obtaining step. Thus, in an in-vehicle network system composed of multiple electronic control units (ECUs) in a vehicle, when a frame suspected of being an attack frame has been sent to the bus, the first prompting information is prompted, and when the determination result of the external device located outside the vehicle is obtained after a certain period of time, the second prompting information is prompted. The driver of the vehicle can recognize the first presentation information and the second presentation information. Therefore, when a frame that is suspected to be an attack frame is transmitted, adverse effects caused by the frame or subsequent frames can be reduced.

[0072] In addition, these general or specific technical solutions can be implemented through systems, methods, integrated circuits, computer programs or computer-readable recording media such as CD-ROMs, or through any combination of systems, methods, integrated circuits, computer programs and recording media.

[0073] Hereinafter, a network system including a gateway device as an example of a security device of an implementation method is described with reference to the accompanying drawings. The implementation methods shown here all represent a specific example of the present disclosure. Therefore, the numerical values, constituent elements, configurations and connection forms of constituent elements, steps (processes), and the order of steps shown in the following implementation methods are examples and do not limit the meaning of the present disclosure. Regarding the constituent elements in the following implementation methods that are not recorded in the independent claims, they are constituent elements that can be added arbitrarily. In addition, each figure is a schematic diagram and is not necessarily a strict illustration.

[0074] (Implementation Method 1)

[0075] The following describes a gateway as a security device in an in-vehicle network (in-vehicle network system) for multiple electronic control units (ECUs) mounted on a vehicle to communicate via a bus, a network system including the vehicle and an external device, and an attack detection method used in the network system. The attack detection method is a method for detecting that an attack frame (including a suspicious frame) that is an abnormal frame is sent on a bus used for communication between ECUs mounted on the vehicle, and outputting a notification corresponding to the detection result. A security device (such as a gateway device) mounted in the in-vehicle network of a vehicle is a device that has at least a function for detecting an attack associated with the attack detection method.

[0076] Here, the network system is explained with a gateway device as the center. When the gateway device determines that a frame sent to the bus in the car is likely to be an abnormal frame (attack frame) and the car may perform an action that the driver did not plan due to the frame, the gateway device quickly notifies the driver. Furthermore, when it is possible to determine whether it is an attack frame by receiving a determination result made by a server outside the car, the notification content is determined according to the behavior of the car and the driver is notified.

[0077] [1.1 Overall Configuration of Network System 100]

[0078] Figure 1 1 is a diagram showing the overall configuration of network system 100 according to the present embodiment.

[0079] The network system 100 is composed of a car 500, a server 400, and a network 10 that serves as a communication path between the car 500 and the server 400. The network 10 may include the Internet or the like.

[0080] The automobile 500 has an on-board network, which is connected to various devices such as control devices, sensors, actuators, user interface devices, etc. in the vehicle, and is composed of multiple electronic control units (ECUs) that communicate involving frames via a bus in the vehicle. In the on-board network in the automobile 500, each ECU communicates in accordance with the CAN protocol. The frames of the CAN protocol include data frames, remote frames, overload frames, and error frames, but the main focus here is on data frames for explanation. In addition, in CAN, the data frame is defined as including an ID field that stores an ID (message ID), a DLC (Data Length Code) that indicates the data length, a data field that stores data, etc.

[0081] Specifically, the vehicle network Figure 1 As shown, there are CAN buses A101, B102, and C103 installed in the automobile 500. The steering wheel ECU 200, the speed notification ECU 210, the white line angle notification ECU 220, and the gateway 300 are connected to the CAN bus A101. The automatic steering indication ECU 230 and the gateway 300 are connected to the CAN bus B102. The host unit ECU 240 and the gateway 300 are connected to the CAN bus C103. In addition, in the vehicle network, in addition to Figure 1 In addition to the ECU shown, many ECUs may be included, but here, for convenience, the gateway 300, steering wheel ECU200, speed notification ECU210, white line angle notification ECU220, automatic steering indication ECU230 and host unit ECU240 are explained. Gateway 300 is also a kind of ECU. ECU is a device including, for example, a processor (microprocessor), digital circuits such as memory, analog circuits, communication circuits, etc. The memory is ROM, RAM, etc., which can store control programs executed by the processor (computer programs as software). For example, the ECU will realize various functions by the processor working according to the control program (computer program). In addition, the computer program is composed of a plurality of command codes representing instructions to the processor in order to realize a predetermined function. In addition, the gateway 300 has a communication device (communication circuit, etc.) for communicating with a server 400 outside the car 500.

[0082] The steering wheel ECU 200, speed notification ECU 210, and white line angle notification ECU 220 obtain the status of the devices (sensors, etc.) connected to them, and periodically send frames (data frames) indicating the status to the CAN bus (one of the CAN buses A to C). The gateway 300 transfers data frames between the buses. When the automatic steering indication ECU 230 receives a frame related to the angle of the white line sent by the white line angle notification ECU 220, in order to make adjustments based on the frame so that the car 500 moves along the white line, it sends a frame for indicating the next steering wheel angle to the CAN bus B 102.

[0083] The gateway (gateway device) 300 confirms the ID of the received frame based on the maintained receiving ID list (list of message IDs) and performs frame filtering. In addition, the gateway 300 has a function for detecting attacks by monitoring frames flowing on the bus, and sends log information extracted from the received frames to the server 400. In addition, the gateway 300 determines whether the received frame satisfies the judgment conditions related to the receiving cycle predetermined for each ID, the amount of change in the data in the frame, etc., and whether it is a suspicious frame (i.e., a frame suspected of being an attack frame) that is sent abnormally. If it is determined to be a frame suspected of being an attack frame, the gateway 300 requests (commissions) the server 400 to make a judgment.

[0084] For example, when the gateway 300 receives a frame that is suspected to be an attack frame from the CAN bus B102 and determines based on predetermined warning conditions that the forwarding of the frame may cause the automobile 500 to perform an action that the driver did not intend to perform, such as control in the steering wheel ECU200, the frame is forwarded to the CAN bus A101 after indicating a warning to the main unit ECU240 (such as displaying a warning to the driver).

[0085] The server 400 that has received the determination request (determination entrustment) from the gateway 300 uses the log information received and accumulated so far to determine whether the frame involved in the determination request is normal or abnormal based on the reception cycle, etc., and returns the determination result to the gateway 300. The gateway 300 determines the content of the notification to the driver based on the determination result from the server 400 and the current state of the car 500 (steering wheel angle, speed of the car 500, etc.) and instructs the host unit ECU 240. The host unit ECU 240 receives the instruction from the gateway 300 and notifies, for example, on a display provided on the dashboard, etc. (switches the display of the notification to the driver). Figure 2 2 shows an operation example of such network system 100. The details of the operation will be described later.

[0086] [1.2ECU]

[0087] Here, the configuration of each ECU and the content of the frame to be generated are described. In addition, the same reference numerals are attached to the same components among the ECUs, and the description thereof is appropriately omitted.

[0088] The steering wheel ECU200 periodically sends frames of ID1 with a period of 10ms. Here, the case where ID is 1 is expressed as ID1, and the cases where ID is 2, 3, 4, and 5 are expressed as ID2, ID3, ID4, and ID5, respectively. In addition, the period of 10ms is an example, and an arbitrary value can also be determined and sent. The frame of ID1 contains data indicating the steering angle (the current angle of the steering wheel). In addition, when the steering wheel ECU200 receives the frame of ID4 sent from the automatic steering indication ECU230, it controls the steering wheel angle according to the steering indication angle of the steering wheel indicated by the data in the frame.

[0089] The speed notification ECU 210 periodically transmits a frame of ID2 at a cycle of 10 ms. The frame of ID2 includes data indicating the current speed of the vehicle.

[0090] The white line angle notification ECU 220 regularly transmits a frame of ID3 at a cycle of 10 ms. The frame of ID3 includes data indicating a white line angle (ie, an angle difference between the traveling direction as the front-rear direction of the vehicle body and the white line).

[0091] The automatic steering instruction ECU 230 periodically transmits a frame of ID 4 at a cycle of 10 ms. The frame of ID 4 includes data indicating an automatic steering angle (ie, a next steering wheel angle).

[0092] When receiving the frame of ID5 transmitted from gateway 300 , host unit ECU 240 switches the display content on a display such as an instrument panel, for example, according to the display content indicated by the data in the frame.

[0093] [1.2.1 Frames generated by each ECU]

[0094] Figure 3 This is a diagram showing an example of a frame (data frame) generated by each ECU. The value of DLC is predetermined for each ID. In addition, the content represented by the data in the data field is predetermined for each ID. The specifications of the data, etc. are not specified by the CAN protocol, and are, for example, specifications that depend on the model of the automobile 500, the manufacturer (manufacturer), etc.

[0095] Here, the frame of ID1 indicates the current steering angle of the automobile 500, and the DLC is 2. Figure 3In the data, the data is expressed in hexadecimal, and 1 bit of the data represents a 4-bit value. The data of the frame of ID1 uses the first 1 bit to indicate which direction the steering wheel is currently turning to. 0 indicates left, and 1 indicates right. The steering wheel angle when the tire is in the same direction as the front and rear direction of the vehicle is set to 0 degrees, and the following 3 bits of the data represent 0 to 360 degrees. The frame of ID2 indicates the current speed of the car 500, and the DLC is 2. The data uses 2 bits to indicate the current speed. The frame of ID3 indicates the white line angle, which is the angle difference between the direction of travel of the car 500 and the direction of the white line on the road surface, and the DLC is 2. The method of expressing the data of the frame of ID3 is the same as that of the frame of ID1. The frame of ID4 is a frame of automatic steering instruction (instruction for automatically controlling the steering wheel), which indicates the automatic steering angle of the car 500, and the DLC is 2. The method of expressing the data of the frame of ID4 is the same as that of the frame of ID1. The frame of ID5 indicates the number (display switching signal) that specifies the display content used in the display switching performed by the host unit ECU 240, and the DLC is 1. The data of the frame ID5 uses 2 bits to specify the display content. The specific display content (screen display) and the number that specifies the display content will be used later. Figures 9 to 13 Provide explanation.

[0096] [1.2.2 Steering wheel ECU]

[0097] Figure 4 2 is a diagram showing the structure of the steering wheel ECU 200. As shown in the figure, the steering wheel ECU 200 includes a frame transceiver 201, a frame interpreter 202, a reception ID determination unit 203, a reception ID list storage unit 209, a frame generator 208, a controller 205, an automatic steering motor 206, and a steering wheel sensor 207.

[0098] When receiving a frame from the connected CAN bus, the frame transceiver 201 transmits the frame to the frame interpretation unit 202 . When receiving a frame generated by the frame generation unit 208 , the frame transceiver 201 transmits the received frame to the connected CAN bus.

[0099] The frame interpretation unit 202 extracts the ID, DLC, and data separately from the frame received from the frame transceiver unit 201, and sends the ID to the reception ID determination unit 203. When the frame interpretation unit 202 receives the result that the ID to be received from the reception ID determination unit 203 is the ID to be received, the ID, DLC, and data are sent to the control unit 205, and when the frame interpretation unit 202 receives the result that the ID not to be received is the ID to be received, the frame is discarded.

[0100] When receiving an ID from the frame interpretation unit 202 , the reception ID determination unit 203 determines whether the ID is an ID to be received based on the reception ID list held by the reception ID list holding unit 209 , and returns the result to the frame interpretation unit 202 .

[0101] The reception ID list holding unit 209 holds a reception ID list for the reception ID determination unit 203 to determine whether or not the ID is to be received. The steering ECU 200 holds a reception ID list for receiving a frame of ID4 indicating an automatic steering angle.

[0102] When the control unit 205 confirms the ID of the received frame and confirms that the frame is the frame for automatic steering instruction (frame with ID 4 ), it controls the automatic steering motor 206 with reference to the current steering wheel angle obtained by the steering wheel sensor 207 .

[0103] The automatic steering motor 206 operates the steering wheel according to an instruction from the control unit 205 .

[0104] The steering wheel sensor 207 acquires the steering wheel angle of the automobile 500 at a cycle of once every 10 ms, and transmits the acquisition to the control unit 205 and the frame generation unit 208 .

[0105] The frame generation unit 208 generates a frame of ID1 including data indicating the steering wheel angle of the automobile 500 transmitted from the steering wheel sensor 207 every 10 ms, and transmits the frame to the frame transmission and reception unit 201 .

[0106] [1.2.3 Speed ​​notification ECU]

[0107] Figure 5 2 is a diagram showing the configuration of the speed notification ECU 210. As shown in the figure, the speed notification ECU 210 includes a frame transceiver 201, a frame generator 218, and a speed sensor 211.

[0108] The speed sensor 211 transmits the speed of the automobile 500 to the frame generation unit 218 at a cycle of once every 10 ms.

[0109] The frame generation unit 218 generates a frame of ID2 including data indicating the speed of the automobile 500 transmitted from the speed sensor 211 every 10 ms, and transmits the frame to the frame transmission / reception unit 201 .

[0110] When receiving the frame generated by the frame generation unit 218 , the frame transceiver unit 201 transmits the received frame to the connected CAN bus.

[0111] [1.2.4 White line angle notification ECU]

[0112] Figure 6 2 is a diagram showing the configuration of the white line angle notification ECU 220. As shown in the figure, the white line angle notification ECU 220 includes a frame transceiver 201, a frame generator 228, and a white line angle detection sensor 221.

[0113] The white line angle detection sensor 221 transmits the angle difference between the front-rear direction of the vehicle body, that is, the traveling direction, and the white line on the road surface to the frame generation unit 228 at a certain period.

[0114] The frame generation unit 228 generates a frame of ID3 including data indicating the angle difference between the vehicle 500 and the white line transmitted from the white line angle detection sensor 221 every 10 ms, and transmits the frame to the frame transmission and reception unit 201 .

[0115] When receiving the frame generated by the frame generation unit 228 , the frame transceiver unit 201 transmits the received frame to the connected CAN bus.

[0116] [1.2.5 Automatic steering indication ECU]

[0117] Figure 7 2 is a block diagram of the automatic steering instruction ECU 230. As shown in the figure, the automatic steering instruction ECU 230 includes a frame transceiver 201, a frame interpreter 202, a reception ID determination unit 203, a reception ID list storage unit 239, a frame generator 238, and a control unit 231.

[0118] The reception ID list holding unit 239 holds the reception ID list including ID1 and ID3 in order to determine that the frame of ID1 indicating the steering wheel angle from the steering wheel ECU 200 and the frame of ID3 indicating the white line angle from the white line angle notification ECU 220 are frames received by the reception ID determination unit 203 .

[0119] The control unit 231 determines and instructs the next steering wheel angle based on the steering angle indicated by the data of the frame ID1 and the white line angle (the angle difference between the direction of the moving direction of the automobile 500 and the direction of the white line on the road surface) indicated by the data of the frame ID3 among the frames received from the frame interpretation unit 202. For example, when the white line angle (angle difference) is 10 degrees to the left, for example, the next steering wheel angle is determined to be 10 degrees to the left, and the frame generation unit 238 generates a frame indicating the determined angle.

[0120] The frame generation unit 238 generates a frame of ID4 including data indicating the angle (automatic steering angle) determined by the control unit 231 every 10 ms, and transmits the frame to the frame transmission and reception unit 201 .

[0121] [1.2.6 Main unit ECU]

[0122] The host unit ECU 240 displays various information on a display provided on a dashboard or the like, including functions such as a car navigation system, so that the driver can recognize information.

[0123] Figure 82 is a block diagram of the host unit ECU 240. As shown in the figure, the host unit ECU 240 includes a frame transceiver 201, a frame interpreter 202, a reception ID determination unit 203, a reception ID list storage unit 249, a display unit 241, and a display content storage unit 241a.

[0124] The reception ID list holding unit 249 holds the reception ID list including ID5 in order to determine that the frame of ID5 indicating the display switching signal from the gateway 300 is a frame received by the reception ID determination unit 203 .

[0125] The display unit 241 has the function of performing various displays on the display screen. When the frame ID5 representing the number (display switching signal) corresponding to the display content is received from the gateway 300 by the frame transceiver unit 201, the display content is determined based on the display content table maintained by the display content maintenance unit 241a and the display screen display is switched.

[0126] The display content storage unit 241 a stores a display content table.

[0127] Fig. 9 : is a diagram showing an example of a display content table stored in the display content holding unit 241a. The display content table associates the number (display switching signal) represented by the data of the frame of ID5 received from the gateway 300 with the display content. According to the display content table, when the number represented by the data of the received frame of ID5 is 1, the display unit 241 displays the display content as a no abnormality notification (a message indicating that there is no abnormality, etc.) on the display. In addition, when the number represented by the data of the received frame of ID5 is 2, the display unit 241 displays the display content as a warning notification (a message urging the driver to pay attention to the unplanned actions of the car 500, etc.) on the display. In addition, when the number represented by the data of the received frame of ID5 is 3, the display unit 241 displays the display content as an attack detection notification (a message indicating that an attack frame has been sent in the vehicle network, etc.) on the display. Furthermore, when the number indicated by the data of the received frame of ID5 is 4, the display unit 241 displays the display content as a parking advice (a message advising to park the automobile 500, etc.) on the display.

[0128] Below, use Figure 10 to Figure 13 A specific screen display example of the above-mentioned display unit 241 will be described.

[0129] Fig.10This is an example of a display of a warning notification in the host unit ECU 240. It is assumed that the host unit ECU 240 displays a screen 242a indicating the position of the car 500 on the road map based on the in-vehicle navigation function on the display. In this state, when the host unit ECU 240 receives a frame of ID5 including data numbered 2, the host unit ECU 240 displays a screen 242b related to the warning notification on the display. When a frame of ID5 including data numbered 2 is transferred between the CAN buses, which may cause an action of the car 500 that the driver did not plan for, it is sent from the gateway 300 to the CAN bus C103.

[0130] Fig.11 This is an example of display of a no abnormality notification in the host unit ECU 240. After the host unit ECU 240 displays the above screen 242b on the display, when a frame with ID5 including data numbered 1 is received, the host unit ECU 240 displays a screen 242c related to the no abnormality notification on the display. When the frame with ID5 including data numbered 1 is determined to be no attack frame based on the determination result in the server 400, it is sent from the gateway 300 to the CAN bus C103.

[0131] Fig.12 This is an example of display of an attack detection notification in the host unit ECU 240. After the host unit ECU 240 displays the above-mentioned screen 242b on the display, when a frame with ID5 including data numbered 3 is received, the host unit ECU 240 displays the screen 242d related to the attack detection notification on the display. The frame with ID5 including data numbered 3 is sent from the gateway 300 to the CAN bus C103 when it is determined that an attack frame has been sent based on the determination result in the server 400 and it is currently confirmed that no unplanned action by the driver has occurred in the car 500.

[0132] Fig.13 This shows an example of a parking advice display in the host unit ECU 240. After the host unit ECU 240 displays the above-mentioned screen 242b on the display, when a frame with ID5 including data numbered 4 is received, the host unit ECU 240 displays a screen 242e related to the parking advice on the display. The frame with ID5 including data numbered 4 is sent from the gateway 300 to the CAN bus C103 when it is determined based on the determination result of the server 400 that an attack frame has been sent and it is also confirmed that an unplanned action of the driver has occurred in the car 500.

[0133] [1.3 Gateway]

[0134] Fig.14 4 is a diagram showing the configuration of the gateway 300. In addition, the server 400 is attached to the diagram. The gateway 300 performs the function of transferring frames between buses and also functions as a security device having the function of detecting attacks. Fig.14 As shown, the gateway 300 includes a frame transceiver 301, a frame interpreter 302, an external communication unit 303, a reception ID judgment unit 302a, a reception ID list storage unit 302b, a confirmation unit 305, a format rule storage unit 305a, a judgment unit 306, a judgment rule storage unit 306a, a notification unit 307, a warning rule storage unit 307a, a state storage unit 307b, a notification rule storage unit 307c, a forwarding unit 308, a forwarding rule storage unit 308a, and a frame generator 304. These components are implemented by a communication circuit in the gateway 300, a processor or a digital circuit that executes a control program stored in a memory, and the like.

[0135] When receiving a frame from any of CAN bus A101, CAN bus B102, and CAN bus C103, frame transceiver 301 transmits the frame to frame interpreter 302. When receiving a frame generated by frame generator 304, frame transceiver 301 transmits the received frame to a bus determined by transfer unit 308.

[0136] The frame interpretation unit 302 extracts the ID, DLC, and data separately from the frame received from the frame transceiver unit 301, sends the ID, DLC, and data to the external communication unit 303, and sends the ID to the reception ID judgment unit 302a. When the frame interpretation unit 302 receives the result that the ID is to be received from the reception ID judgment unit 302a, the ID, DLC, and data are sent to the confirmation unit 305 and the state storage unit 307b. When the frame interpretation unit 302 receives the result that the ID is not to be received, the frame is discarded.

[0137] The state storage unit 307b receives the ID, DLC, and data from the frame interpretation unit 302, and stores the ID and data. The state storage unit 307b can store data received multiple times (e.g., twice) in the past for each ID in a storage medium such as a memory. The data stored in the state storage unit 307b is referenced in order to notify the current state of the automobile 500 in the notification unit 307. The data stored in the state storage unit 307b will be used later. Fig.21 Let me explain a specific example.

[0138] The external communication unit 303 can function as a communication device. When the external communication unit 303 receives the ID, DLC, and data from the frame interpretation unit 302, it sends them to the server 400 as log information. In addition, when receiving a determination request (determination entrustment) from the determination unit 306, the determination request is sent to the server 400. The determination request includes information indicating the communication address of the gateway 300, etc. When receiving a determination result corresponding to the determination request from the server 400, the determination result is communicated to the notification unit 307.

[0139] When receiving an ID from the frame interpretation unit 302 , the reception ID determination unit 302 a determines whether it is an ID to be received based on the reception ID list held by the reception ID list holding unit 302 b , and returns the result to the frame interpretation unit 302 .

[0140] The receiving ID list holding unit 302b holds a receiving ID list for use by the receiving ID judging unit 302a to judge whether it is an ID to be received. Fig.15 To explain.

[0141] When the confirmation unit 305 receives the ID, DLC, and data from the frame interpretation unit 302, it confirms (determines) whether the ID, DLC, and data are abnormal based on the format rule held by the format rule holding unit 305a. If the confirmation unit 305 determines that the received ID, DLC, and data are not abnormal, the ID, DLC, and data are sent to the determination unit 306. Otherwise, the ID, DLC, and data are not sent to the determination unit 306 but are discarded.

[0142] The format rule holding unit 305a holds the format rules that serve as a basis for determining (confirming) whether the received ID, DLC, and data are normal in the confirmation unit 305. The format rules can also be said to define the abnormal conditions that the abnormal frames satisfy. Frames that are confirmed by the confirmation unit 305 to not meet the abnormal conditions are forwarded between buses by the gateway 300, and frames that are confirmed by the confirmation unit 305 to meet the abnormal conditions are not forwarded (discarded). Regarding the format rules, Fig.16 To explain.

[0143] When receiving the ID, DLC, and data from the confirmation unit 305, the judgment unit 306 judges whether a judgment request should be issued to the server 400 (i.e., whether the frame involved in the ID, DLC, and data is a frame suspected of being an attack frame) based on whether the predetermined condition represented by the judgment rule stored in the judgment rule storage unit 306a is satisfied. When the judgment unit 306 judges that a judgment request should be issued to the server 400, the judgment unit 306 sends the judgment request to the external communication unit 303, and sends the ID, DLC, and data to the notification unit 307 when sending the judgment request. When the judgment unit 306 does not judge that a judgment request should be issued to the server 400 (i.e., when the corresponding frame is not judged to be a frame suspected of being an attack frame), the ID, DLC, and data are sent to the forwarding unit 308.

[0144] The judgment rule storage unit 306a stores the judgment rule indicating the judgment condition (predetermined condition) of whether the frame involving the ID, DLC and data received in the judgment unit 306 is a frame suspected of an attack frame (whether a judgment request should be issued to the server). Fig.17 To explain.

[0145] When receiving the ID, DLC, and data from the determination unit 306, the notification unit 307 determines whether the vehicle 500 is likely to perform an unplanned action by the driver due to the gateway 300 forwarding the received frame, based on whether the warning condition indicated by the warning rule stored in the warning rule storage unit 307a is satisfied. When the notification unit 307 determines that the driver's unplanned action is likely to occur (i.e., when the warning condition is satisfied), the notification unit 307 sends information of the frame of ID5 for generating the number (notification switching signal) indicating the warning notification to the host unit ECU 240 and the received ID, DLC, and data to the forwarding unit 308. When the notification unit 307 determines that the driver's unplanned action is unlikely to occur (i.e., when the warning condition is not satisfied), the notification unit 307 sends the received ID, DLC, and data to the forwarding unit 308. In addition, when the notification unit 307 receives the judgment result received from the server 400 from the external communication unit 303, it refers to the state storage unit 307b for the current state of the vehicle 500, and determines the number related to the notification content according to the notification rule based on whether the warning condition represented by the warning rule is met, and sends the information of the frame of ID5 used to generate the number (notification switching signal) indicating the notification content to the main unit ECU240 to the forwarding unit 308.

[0146] The warning rule storage unit 307a stores warning rules indicating warning conditions, which are used to determine whether the vehicle 500 is likely to perform an unplanned action by the driver by forwarding the received ID, DLC, and data frame in the notification unit 307, or whether the vehicle 500 is in a state where an unplanned action by the driver is likely to occur when receiving the determination result from the server 400. Fig.18 To explain.

[0147] The notification rule storage unit 307c stores notification rules that serve as a basis for determining notification content based on the determination result from the server 400 received by the notification unit 307 and the current state of the vehicle 500. Fig.19 To explain.

[0148] When receiving the ID, DLC and data from the determination unit 306 or the notification unit 307, the transfer unit 308 sends an instruction to send to the bus specified for each ID and an instruction to generate a frame corresponding to the received ID, DLC and data to the frame generation unit 304 based on the transfer rule held by the transfer rule holding unit 308a. When receiving information for generating a frame of ID5 related to the instruction to the host unit ECU 240 from the notification unit 307, the frame generation unit 304 sends an instruction to send to the CAN bus C103 and an instruction to generate the frame of ID5.

[0149] The forwarding rule storage unit 308a stores a forwarding rule indicating to which bus the ID received by the forwarding unit 308 should be sent. Fig. 20 To explain.

[0150] The frame generation unit 304 generates a frame based on the frame generation instruction received from the transfer unit 308 , and transmits the generated frame and an instruction to transmit to a designated bus to the frame transmission / reception unit 301 .

[0151] [1.3.1 Receiver ID List in Gateway]

[0152] Fig.15 : This is a diagram showing an example of a reception ID list. The reception ID list shows the ID of frames that can be received for each bus (CAN bus A101, CAN bus B102, and CAN bus C103) connected to the gateway 300. When the gateway 300 receives a frame with an ID not shown in the reception ID list, the frame is discarded (the frame is not forwarded between buses).

[0153] Fig.15The reception ID list of the example shows that the IDs of the frames that can be received from the CAN bus A101 are 1, 2, and 3, and the ID of the frame that can be received from the CAN bus B102 is 4.

[0154] [1.3.2 Format rules]

[0155] Fig.16 This is a diagram showing an example of a format rule. The format rule specifies the range of values ​​represented by the DLC of a regular frame and the data in the data field for each ID of the frame. The gateway 300 determines whether it is a regular frame (whether it is not an abnormal frame) according to the format rule. If an abnormal frame is received, the frame is discarded (the frame is not forwarded between buses).

[0156] according to Fig.16 According to the format rules of the example, for frames with ID1, the gateway 300 only determines as regular frames those frames whose DLC is 2 and whose steering angle values ​​represented by the data in the data field are in the range of -360 to 360, and determines as abnormal frames the other frames.

[0157] [1.3.3 Judgment rules]

[0158] Fig.17 2 is a diagram showing an example of a judgment rule. The judgment rule shows a predetermined condition for judging whether a received frame is a frame suspected of being an attack frame (that is, whether a judgment request should be issued to the server 400). Fig.17The judgment rule of the example is a threshold value of the absolute value of the change amount of the value represented by the data in the data field, a period specified for the frame, etc., for each ID of the frame. The threshold value of the absolute value of the change amount is the upper limit of the absolute value of the difference between the value represented by the data in the data field of the received frame and the value represented by the data in the data field of the frame with the same ID as the frame received last time. For example, if the upper limit is exceeded and the predetermined condition is satisfied, the received frame is judged as a frame suspected of being an attack frame (that is, it is judged to be required to be judged by an external device located outside the car 500). That is, when the change amount in the relationship between the received frame and the last received frame exceeds the upper limit, the gateway 300 judges that the received frame is a frame suspected of being an attack frame, and sends a judgment request to the server 400. In addition, the specified period for the frame is a reference (specified period) related to the reception interval between the received frame and the last received frame with the same ID as the frame. For example, if the received frame deviates from the reference by a predetermined margin (e.g., plus or minus 1 ms, etc.), the predetermined condition is satisfied and the received frame is determined to be a frame suspected of being an attack frame (i.e., it is determined that it is necessary to make a determination by an external device located outside the automobile 500). That is, when the reception interval between the received frame and the last received frame deviates from the reference by a predetermined margin, the gateway 300 determines that the received frame is a frame suspected of being an attack frame and issues a determination request to the server 400.

[0159] according to Fig.17 In the judgment rule of the example, when the steering angle represented by the data of the frame of ID1 has an absolute value of a change of more than 200 since the last update, or when the frame of ID1 is received at a reception interval shorter than (prescribed period 10ms-predetermined margin) or longer than (prescribed period 10ms+predetermined margin), the gateway 300 judges that it is a suspicious frame (a frame suspected of being an attack frame) that is sent abnormally (i.e., it is judged that it needs to be judged by the external server 400). In addition, in order to determine the reception interval, the gateway 300 can store the reception time of the received frame for each ID.

[0160] [1.3.4 Warning rules]

[0161] Fig.18 2 is a diagram showing an example of a warning rule. The warning rule shows a warning condition for determining whether the automobile 500 is in a state where an action not planned by the driver may occur. Fig.18The warning rule of the example is a threshold value of the absolute value of the change amount of the value represented by the data in the data field for each ID of the frame. The threshold value of the absolute value of the change amount is the upper limit of the absolute value of the difference between the value updated by the frame and the value before the update. For example, when the upper limit is exceeded, the warning condition is satisfied, and it is determined that the car 500 is in a state where the driver's unplanned action may occur. That is, when the gateway 300 receives a frame, when the change amount in the relationship between the received frame and the last received frame exceeds the upper limit, it is determined that the car 500 is in a state where the driver's unplanned action may occur, and the frame of ID5 is sent to the host unit ECU240. In addition, when the gateway 300 receives the judgment result from the server 400, for example, based on whether the change amount in the relationship between the last received frame stored in the state storage unit 307b and the last received frame exceeds the upper limit, it is determined whether the car 500 is in a state where the driver's unplanned action may occur, and the notification content is determined based on the judgment and the like, and the frame of ID5 is sent to the host unit ECU240.

[0162] according to Fig.18 According to the warning rule of the example, when the absolute value of the change in the data of the frame ID1 representing the steering angle since the last update exceeds 90, or when the absolute value of the change in the data of the frame ID2 representing the speed of the vehicle since the last update exceeds 50, the gateway 300 determines that the vehicle 500 is in a state where an action not planned by the driver may occur.

[0163] [1.3.5 Notification Rules]

[0164] Fig.19 FIG. 2 shows an example of a notification rule that serves as a basis for determining the content of a notification to be given to the host unit ECU 240. Fig.19 In the notification rule, the notification content is different for the case before the server 400 makes a judgment, the case when an abnormal (abnormal) judgment result is obtained from the server 400, and the case when a normal judgment result is obtained. In addition, in the case before the server 400 makes a judgment, the fact that the warning condition indicated by the warning rule is satisfied becomes a prerequisite for determining the notification content of the notification unit 307. In addition, in the case of obtaining an abnormal (abnormal) judgment result from the server 400, the notification content is different when the warning condition indicated by the warning rule is satisfied (when a warning is required) and when the warning condition is not satisfied (when a warning is not required).

[0165] according to Fig.19 In the example notification rule, the gateway 300 will send the second (refer to Fig. 9) The gateway 300 sends a frame with ID5 including data of a notification switching signal indicating a parking advice to the host unit ECU 240. In addition, when the gateway 300 obtains an abnormal determination result from the server 400 and determines that a warning is required, the gateway 300 sends a frame with ID5 including data of a fourth notification switching signal indicating a parking advice to the host unit ECU 240. In addition, when the gateway 300 obtains an abnormal determination result from the server 400 and determines that a warning is not required, the gateway 300 sends a frame with ID5 including data of a third notification switching signal indicating an attack detection notification to the host unit ECU 240. In addition, when the gateway 300 obtains a normal determination result from the server 400, the gateway 300 sends a frame with ID5 including data of a first notification switching signal indicating a no abnormality notification to the host unit ECU 240.

[0166] [1.3.6 Transfer rules]

[0167] Fig. 20 This is a diagram showing an example of a forwarding rule. The forwarding rule shows that a frame with an object ID should be forwarded only when it is received from a forwarding source bus and the forwarding destination bus used for the forwarding. Forwarding that is not shown in the forwarding rule as a combination of an object ID and a forwarding source bus is not performed.

[0168] according to Fig. 20 In the example of the forwarding rule, when the gateway 300 receives a frame with ID1 from the CAN bus A101, it forwards the frame to the CAN bus B102 and the CAN bus C103. In addition, the frame with ID5 is sent from the gateway 300, so in Fig. 20 There is no corresponding forwarding source bus in the forwarding rule.

[0169] [1.3.7 Data stored in the state storage unit 307b]

[0170] Fig.21 307b is a diagram showing an example of data stored in the state storage unit 307b. In the state storage unit 307b, the IDs and data of multiple frames received by the gateway 300 in the past are stored for each ID. Fig.21 For convenience, a data received in the past is shown for each ID. In this example, the value of the steering angle (steering wheel angle) represented by the data related to the frame of ID1 currently stored is 5, the value of the speed of the car represented by the data related to the frame of ID2 is 40, the value of the white line angle represented by the data related to the frame of ID3 is -8, and the value of the automatic steering angle (angle related to the automatic steering indication of the steering wheel) represented by the data related to the frame of ID4 is 5.

[0171] [1.3.8 Frame reception processing in the gateway]

[0172] Fig. 22 2 is a flowchart showing an example of frame reception processing in the gateway 300. Hereinafter, the frame reception processing will be described with reference to this figure.

[0173] The gateway 300 receives a frame from a certain bus and interprets the frame (step S301 ). The gateway 300 sends the ID, DLC and data in the frame as log information to the server 400 (step S302 ).

[0174] Next, the gateway 300 uses the format rule to confirm whether the received frame is a regular frame (step S303). If it is not a regular frame (i.e., an abnormal frame), the gateway 300 discards the received frame (step S304) and ends the frame reception corresponding processing. In addition, the gateway 300 can also be configured such that when it is confirmed to be an abnormal frame, the gateway 300 sends a frame indicating that an attack detection should be notified to the host unit ECU 240 in order to notify the driver of the abnormal detection.

[0175] When it is confirmed in step S303 that the received frame is normal according to the format rule, the gateway 300 uses the determination rule to determine whether determination is required in the server 400 (whether the frame is a suspected attack frame) (step S305 ).

[0176] When it is determined in step S305 that the server 400 does not need to make a determination (the frame is not a suspected attack frame), the gateway 300 forwards the received frame according to the forwarding specification (step S306), and ends the frame reception response process.

[0177] When it is determined in step S305 that the server 400 needs to make a determination (the frame is a suspected attack frame), the gateway 300 transmits a determination request (determination request) to the server 400 (step S307 ).

[0178] Next, the gateway 300 uses the warning rule to determine whether forwarding the received frame will cause the automobile 500 to be in a state where the driver may take an action that was not planned (whether a warning is required) (step S308).

[0179] When it is determined in step S308 that a warning is required (the vehicle 500 is in a state where an action not planned by the driver may occur), the gateway 300 generates a frame of ID5 for causing the host unit ECU 240 to issue a warning notification (step S309) and sends the frame to the CAN bus C103 (step S310).

[0180] When it is determined in step S308 that a warning is not necessary (the car 500 is not in a state where an action not planned by the driver may occur), or after the frame is sent in step S310, the gateway 300 forwards the received frame according to the forwarding rule (step S311).

[0181] [1.3.9 Processing of receiving judgment results in the gateway]

[0182] Fig.23 2 is a flowchart showing an example of the determination result reception corresponding process in the gateway 300. Hereinafter, the determination result reception corresponding process will be described with reference to this figure.

[0183] When receiving the determination result from the server, the gateway 300 determines whether the determination result is abnormal (abnormal frame) (step S321 ).

[0184] When the result of step S321 is determined to be abnormal, the gateway 300 uses the data stored in the status storage unit 307b to determine whether the current vehicle 500 is in a state where an unplanned action by the driver may occur (for example, a state where an unplanned action has occurred just before, etc.) based on the warning rule (step S322).

[0185] When it is determined in step S322 that the automobile 500 is in a state where the driver may take an unplanned action, the gateway 300 generates a frame of ID5 instructing the host unit ECU 240 to notify the driver of parking advice (step S323). Next, the gateway 300 sends the generated frame of ID5 to the CAN bus C103 connected to the host unit ECU 240 (step S324), and ends the determination result reception corresponding processing.

[0186] When it is determined in step S322 that the automobile 500 is not in a state where an unplanned action by the driver may occur, the gateway 300 generates a frame of ID5 indicating that the host unit ECU 240 notifies the driver of an attack detection notification (step S325). Next, the gateway 300 sends the generated frame of ID5 to the CAN bus C103 connected to the host unit ECU 240 (step S324), and ends the determination result reception corresponding processing.

[0187] In addition, if the result of the determination in step S321 is normal, the gateway 300 generates a frame of ID5 indicating that the host unit ECU 240 notifies the driver of the absence of abnormality (step S326). Then, the gateway 300 sends the generated frame of ID5 to the CAN bus C103 connected to the host unit ECU 240 (step S324), and ends the determination result reception corresponding processing.

[0188] [1.4 Server]

[0189] Server 400 is located outside automobile 500 and is a computer including a processor (microprocessor), memory, storage media such as a hard disk, communication circuits, etc. The memory is ROM, RAM, etc. and can store a control program (computer program as software) executed by the processor.

[0190] Fig.24 4 is a diagram of the configuration of the server 400. In addition, the gateway 300 is attached in the figure. As shown in the figure, the server 400 is configured to include a receiving unit 401, a judging unit 402, a log storage unit 403, an abnormality judging unit 404, and a sending unit 405. These components are implemented by a communication circuit in the server 400, a processor that executes a control program stored in a memory, and the like.

[0191] The receiving unit 401 receives log information or a determination request (determination request) which is a combination of ID, DLC, and data transmitted from the gateway 300 .

[0192] When the receiving unit 401 receives the log information as a group of ID, DLC and data, the judging unit 402 sends the log information to the log storage unit 403. When the receiving unit 401 receives the determination request, the judging unit 402 instructs the abnormal determination unit 404 whether to determine whether it is abnormal (abnormal) or normal.

[0193] When the log storage unit 403 receives the log information as a group of ID, DLC and data from the judgment unit 402, the log information is stored in association with the time when the log information is received. According to the instruction from the abnormal judgment unit 404, the stored time, ID, DLC and data are sent. In addition, the log information can also be the log information sent from the gateway 300 when the frame involved in the ID, DLC and data is received on the gateway 300 side. In this case, the server 400 simply stores the log information including the receiving time.

[0194] When receiving an instruction to determine whether it is abnormal (abnormal) or normal from the determination unit 402, the abnormal determination unit 404 sends an instruction to the log storage unit 403 to obtain log information, and determines whether it is abnormal (abnormal) or normal based on the log information.

[0195] The transmission unit 405 transmits the determination result of the abnormality determination unit 404 to the gateway 300 .

[0196] [1.4.1 Abnormality determination and processing in the server]

[0197] Fig.253 is a flowchart showing an example of abnormality determination processing in the server 400. Note that this is merely an example of determination performed in the server 400 in response to a determination request from the gateway 300, and the server 400 may perform determination using any determination method.

[0198] The server 400 obtains information related to the frame that becomes the trigger for the determination request by referring to the log storage unit 403, and confirms the reception period of the frame based on the past reception time corresponding to the ID of the frame (step S701). Then, based on the accumulated log information to date, the server 400 compares the minimum (short) period in the past reception period of the frame with the same ID to determine whether the reception interval, i.e., the period, between the frame that becomes the trigger for the determination request and the previous frame is smaller than the above-mentioned minimum period (step S702). Then, in the case where the reception interval, i.e., the period, between the frame that becomes the trigger for the determination request and the previous frame is smaller, the server 400 determines it as abnormal (abnormal) (step S703), and in other cases determines it as normal (step S704).

[0199] [1.4.2 Server Operation]

[0200] Fig.26 This is a flowchart showing an operation example of the server 400 .

[0201] The server 400 determines whether the received content is a determination request (determination request) or log information (a set of ID, DLC, and data) (step S401 ).

[0202] When receiving the determination request, the server 400 performs an abnormality determination process to determine whether the frame involved in the determination request is abnormal (abnormal) or normal. Fig.25 )(Step S700). Next, the server 400 determines the result of the abnormal determination process (step S402), and when it is determined to be normal through the abnormal determination process, the normal determination result is sent to the gateway 300 (step S403). In addition, when it is determined to be abnormal through the abnormal determination process, the abnormal (abnormal) determination result is sent to the gateway 300 (step S404).

[0203] When it is determined in step S401 that log information is received, the server 400 associates the log information as a set of ID, DLC, and data with the time of reception and stores it in a storage medium such as a memory or a hard disk (step S405 ).

[0204] [1.5 Timing involved in network system operation]

[0205] Figure 22 is a sequence diagram showing an operation example of network system 100. In this example, an example in which the reception time of a frame in gateway 300 is included in the log information transmitted from gateway 300 to server 400 is described.

[0206] When receiving a frame from each connected bus (step S1 ), the gateway 300 extracts the ID, DLC, and data, associates the frames with the reception time, and transmits the frames to the server 400 as log information (step S2 ).

[0207] When receiving the log information from the gateway 300 , the server 400 accumulates the log information in the storage medium (step S3 ).

[0208] The gateway 300 checks whether the frame received from each bus is in a regular format (whether it is an abnormal frame) (step S4). If it is confirmed to be an abnormal frame, the gateway 300 discards the frame and refrains from forwarding it (step S5).

[0209] If it is confirmed in step S4 that the frame is in a regular format, the gateway 300 determines whether the frame needs to be determined by the server 400 (i.e., whether the frame is a suspected attack frame) (step S6). If it is determined in step S6 that it is not necessary for the server 400 to determine, the gateway 300 forwards the frame to another bus based on the forwarding rule (step S7).

[0210] In addition, when it is determined that the received frame needs to be determined by the server 400, the gateway 300 sends a determination request (determination entrustment) to the server 400 (step S8), and determines whether a warning notification is required based on the warning rule (whether the car 500 is in a state where an unplanned action by the driver may occur due to the forwarding of the received frame) (step S9). When it is determined that a warning notification is required, the gateway 300 sends an instruction related to the notification to the main unit ECU 240 (step S10), whereby the main unit ECU 240 receives the frame indicating the warning notification (step S11).

[0211] When receiving the instruction for warning notification, host unit ECU 240 displays the warning notification on the display (step S12 ).

[0212] Furthermore, after step S9 , the gateway 300 transfers the received frame to another bus (step S13 ).

[0213] When the server 400 receives a judgment request (judgment delegation) from the gateway 300, it uses the accumulated log information to perform an abnormal judgment as an alternative judgment, wherein the alternative judgment is whether the server is in an abnormal state in which frames are sent abnormally (whether the server is not in a normal state) (step S14), and sends the judgment result to the gateway 300 (step S15).

[0214] The gateway 300 that receives the determination result in step S15 determines the notification content based on the notification rule according to the determination result and whether the current automobile 500 is in a state where the driver's unplanned action may occur (step S16). The gateway 300 sends a frame indicating the notification content determined in step S16 to the host unit ECU 240 (step S17).

[0215] When receiving the frame indicating the notification content in step S17 , host unit ECU 240 switches the display content of the display according to the notification content (step S18 ).

[0216] [1.6 Effects of Implementation Method 1]

[0217] In the network system 100 of the present embodiment, a judgment is requested to the server 400 outside the car 500 for a suspicious frame (a frame suspected to be an attack frame) that is abnormally sent and received by the gateway 300 of the vehicle network of the car 500, and when the car 500 is in a state where a dangerous action may occur due to the frame, a control for notifying a warning to draw attention is performed. In addition, when the gateway 300 receives a judgment result indicating an abnormality from the server 400, when the car 500 is in a state where an action that the driver did not plan for may occur (for example, when the driver continues to take an action that the driver did not plan for), a control for notifying a parking advice is performed. In addition, when the judgment result of an abnormality is received, when the car 500 is not in a state where an action that the driver did not plan for may occur, a control for notifying an abnormal detection is performed.

[0218] This allows the driver to be informed at an early stage that suspicious frames that are abnormally sent are flowing on the bus of the in-vehicle network, and by changing the notification based on the judgment result of the server 400 and according to the behavior of the car, a useful notification can be given to the driver.

[0219] (Implementation Method 2)

[0220] The following describes a network system constructed as follows, which deforms a portion of the above-mentioned network system 100 so that when a frame sent to the bus inside a car is likely to be an abnormal frame (attack frame), a determination request is not sent to an external server 400, but is sent to other cars around the car.

[0221] [2.1 Overall Configuration of Network System 100A]

[0222] Fig. 27 1 is a diagram showing the overall configuration of network system 100A according to the present embodiment.

[0223] The network system 100A is a network system that promptly notifies the driver when it determines that a frame sent to a bus within the car A1000 is a suspected attack frame and that the car A1000 may take an action not planned by the driver due to the frame. Furthermore, when other cars B600 around the car A1000 are requested to make a determination and the determination result is received, the notification content is determined based on the determination result and the behavior of the car A1000, and the driver is notified.

[0224] The network system 100A is composed of a car A 1000, a car B 600, and a network 20 that is a communication path between these cars. The network 20 may include the Internet, etc., but may also be a wireless communication path for directly transmitting and receiving wireless signals in inter-vehicle communication, for example.

[0225] The automobile A1000 has an in-vehicle network that is connected to various devices in the vehicle, such as control devices, sensors, actuators, and user interface devices, and includes a plurality of electronic control units (ECUs) that communicate via a bus in the vehicle involving frames. Fig. 27 As shown, there are CAN buses A101, B102, and C103 installed in the automobile A1000. The CAN bus A101 is connected to the steering wheel ECU 200, the speed notification ECU 210, the white line angle notification ECU 220, and the gateway 3001. The CAN bus B102 is connected to the automatic steering indication ECU 230 and the gateway 3001. The CAN bus C103 is connected to the host unit ECU 240 and the gateway 3001. For the same components as those described in the first embodiment, Fig. 27 Marked with Figure 1 The same reference numerals are appropriately omitted for description. Gateway 3001 is obtained by partially deforming gateway 300 shown in Implementation Example 1, and is the same as gateway 300 unless otherwise specified. In addition, gateway 3001 has a communication device (communication circuit, etc.) for communicating with a car (for example, car B600) located around car A1000 (for example, within tens of meters).

[0226] The gateway 3001 transfers data frames between buses. In addition, the gateway 3001 confirms the ID of the received frame based on the maintained receiving ID list and filters the frame. In addition, the gateway 3001 has a function for detecting attacks. Based on whether the received frame meets the judgment conditions related to the receiving cycle predetermined for each ID, the change amount of data in the frame, etc., it determines whether it is a suspicious frame (i.e., a frame suspected of attack frame) sent abnormally. If it is determined to be a frame suspected of attack frame, a judgment request (judgment entrustment) is sent to the car B600 existing in the surrounding. Specifically, for example, when the gateway 3001 receives a frame suspected of attack frame from the CAN bus B102, and based on the predetermined warning conditions, it is determined that the forwarding of the frame, such as control in the steering wheel ECU200, may cause the car A1000 to take an action that the driver did not plan, the frame is forwarded to the CAN bus A101 after indicating a warning to the host unit ECU240 (display of the warning to the driver, etc.). Furthermore, when a warning is indicated, the gateway 3001 sends a determination request (determination delegation) to the car B600 located around the car A1000, which is attached with the location information of the car A1000, steering wheel information (such as direction information indicating the direction of travel of the car A1000, etc.), and speed information.

[0227] Car B600 (the on-board equipment of car B600, etc.) that receives the judgment request (judgment delegation) from the gateway 3001 determines whether it is abnormal (normal) based on whether car A1000, the source of the judgment request, is dangerous to car B600, and returns the judgment result to the gateway 3001 of car A1000.

[0228] The gateway 3001 determines the content of notification to the driver based on the determination result from the car B 600 and the current state of the car A 1000 (steering wheel angle, speed of the car A 1000 , etc.), and instructs the head unit ECU 240 . Fig.28 An operation example of such network system 100A is shown in FIG. The operation will be described in detail later.

[0229] [2.2 Gateway]

[0230] Fig.29 3001 is a diagram of the configuration of the gateway 3001. In addition, the car B600 is attached in the figure. The gateway 3001 performs the function of transferring frames between buses similarly to the gateway 300 shown in the first embodiment, and also functions as a security device having a function for detecting attacks. Fig.29As shown, the structure includes a frame transceiver unit 301, a frame interpretation unit 302, an external communication unit 303, a location information acquisition unit 303a, a receiving ID judgment unit 302a, a receiving ID list storage unit 302b, a confirmation unit 305, a format rule storage unit 305a, a judgment unit 306, a judgment rule storage unit 306a, a notification unit 307, a warning rule storage unit 307a, a state storage unit 307b, a notification rule storage unit 307c, a forwarding unit 308, a forwarding rule storage unit 308a and a frame generation unit 304. These components are implemented by the communication circuit in the gateway 3001, a processor or a digital circuit that executes the control program stored in the memory. In addition, Fig.29 The components of the gateway 3001 shown in the embodiment 1 are the same as those of the gateway 300 shown in the embodiment 1 (see Fig.14 ), marked with Fig.14 The same reference numerals are appropriately omitted for explanation.

[0231] The position information acquisition unit 303 a acquires information indicating the current position of the automobile A1000 such as latitude, longitude, and altitude from a GPS (Global Positioning System) receiver used in a car navigation system, and transmits the information to the external communication unit 303 .

[0232] When the external communication unit 303 receives a determination request (determination entrustment) from the determination unit 306, it sends the determination request to the car B600 located around the car A1000 by attaching the location information obtained from the location information acquisition unit 303a. The external communication unit 303 attaches the steering wheel information and speed information obtained from the sensors, ECU, etc. of each part of the car A1000 to the determination request in the same way as the location information and sends it. In addition, in this embodiment, the external communication unit 303 does not send the log information obtained from the frame interpretation unit 302 as a group of ID, DLC and data to the outside. In addition, when the external communication unit 303 receives a determination result corresponding to the determination request from the car B600, it conveys the determination result to the notification unit 307.

[0233] When the judgment unit 306 receives the ID, DLC and data from the confirmation unit 305, it determines whether the frame involved in the ID, DLC and data is a frame suspected of an attack frame based on whether the predetermined condition represented by the judgment rule maintained by the judgment rule maintenance unit 306a is satisfied. When the judgment unit 306 determines that the received frame is a frame suspected of an attack frame, it can determine that a judgment request should be issued to the external car B600. However, in the judgment unit 306 of the gateway 3001 of this embodiment, as an example, only when the received frame is a frame suspected of an attack frame and satisfies the warning condition represented by the warning rule maintained by the warning rule maintenance unit 307a, it is determined that a judgment request should be issued to the car B600. That is, in the judgment unit 306 of the gateway 3001, based on whether the warning condition represented by the warning rule stored in the warning rule storage unit 307a is satisfied, it is determined whether the gateway 3001 forwards the received frame, which may cause the car A1000 to perform an action that the driver did not plan for. Only when the driver may perform an action that the driver did not plan for is determined to be issued a judgment request to the car B600. If the judgment unit 306 determines that the judgment request should be issued to the car B600, the judgment request is sent to the external communication unit 303, and the ID, DLC and data are sent to the notification unit 307 when the judgment request is sent. If the judgment unit 306 does not determine that the judgment request should be issued to the car B600, the ID, DLC and data are sent to the forwarding unit 308.

[0234] The judgment rule storage unit 306 a stores a judgment rule indicating a judgment condition for judging in the judgment unit 306 whether a frame related to the received ID, DLC, and data is a frame suspected of being an attack frame.

[0235] When the notification unit 307 receives the ID, DLC and data from the determination unit 306, it sends the information of the frame of ID5 indicating the number (notification switching signal) indicating the warning notification to the host unit ECU 240 and the received ID, DLC and data to the forwarding unit 308. In the notification unit 307 of the gateway 3001 of the present embodiment, it is not directly judged whether the warning condition indicated by the warning rule is satisfied, but the ID, DLC and data are transmitted only when it is judged by the determination unit 306 that the warning condition is satisfied. Therefore, the control related to indicating the warning notification to the host unit ECU 240 is performed only when there is a possibility that the driver's unplanned action will occur. In addition, when the notification unit 307 receives the judgment result received from the car B600 from the external communication unit 303, it refers to the state storage unit 307b for the current state of the car A1000, and determines the number related to the notification content according to the notification rule based on whether the warning condition represented by the warning rule is met, and sends the information of the frame of ID5 used to generate the number (notification switching signal) indicating the notification content to the main unit ECU240 to the forwarding unit 308.

[0236] The notification rule storage unit 307c stores notification rules that serve as a basis for determining notification content based on the determination result from the car B 600 received by the notification unit 307 and the current state of the car A 1000. Fig.19 The notification rules illustrated are the same.

[0237] [2.3 Frame reception processing in the gateway]

[0238] Fig.30 3001 is a flowchart showing an example of frame reception response processing in the gateway 3001. Hereinafter, the frame reception response processing will be described with reference to this figure.

[0239] The gateway 3001 receives a frame from a bus and interprets the frame (step S3001).

[0240] Next, the gateway 3001 uses the format rule to confirm whether the received frame is a regular frame (step S3002). In the case of a non-regular frame (i.e., an abnormal frame), the gateway 3001 discards the received frame (step S3003) and ends the frame reception corresponding processing. In addition, the gateway 3001 can also be configured such that, in the case of confirming that it is an abnormal frame, the gateway 3001 sends a frame indicating that an attack detection should be notified to the host unit ECU 240 in order to notify the driver of the abnormal detection.

[0241] When it is confirmed in step S3002 that the received frame is regular through the format rule, the gateway 3001 uses the judgment rule to determine whether the condition required to be judged by the external vehicle is met according to whether the frame is a suspected attack frame (step S3004).

[0242] When it is determined in step S3004 that no determination is required by an external vehicle (the frame is not a suspected attack frame), the gateway 3001 forwards the received frame according to the forwarding rule (step S3005), and ends the frame reception corresponding processing.

[0243] When it is determined in step S3004 that a judgment by an external vehicle is required (it is a frame suspected of being an attack frame), the gateway 3001 uses warning rules to determine whether the forwarding of the received frame will cause the car A1000 to be in a state where the driver may take an action that was not planned by the driver (whether a warning is required) (step S3006).

[0244] When it is determined in step S3006 that a warning is required (the car A1000 is in a state where an action not planned by the driver may occur), the gateway 3001 generates a frame of ID5 for causing the main unit ECU240 to issue a warning notification (step S3007), and sends the frame to the CAN bus C103 (step S3008). In addition, a judgment request (judgment delegation) is sent to the external car B600 with attached position information, steering wheel information and speed information (step S3009).

[0245] When it is determined in step S3006 that a warning is not necessary, or after a determination request is transmitted in step S3009, the gateway 3001 forwards the received frame according to the forwarding rule (step S3010).

[0246] [2.4 Gateway receives the judgment result and responds to the processing]

[0247] Fig.31 2 is a flowchart showing an example of the processing corresponding to the reception of the determination result in the gateway 3001. Hereinafter, the processing corresponding to the reception of the determination result will be described with reference to this figure.

[0248] When receiving the determination result from the car B 600 , the gateway 3001 determines whether the determination result is abnormal (a state in which the car A 1000 is dangerous to the car B 600 ) (step S3101 ).

[0249] When the result of step S3101 is determined to be abnormal, the gateway 3001 uses the data stored in the status storage unit 307b to determine based on the warning rule whether the current vehicle A1000 is in a state where an unplanned action by the driver may occur (for example, a state where an unplanned action has occurred just before, etc.) (step S3102).

[0250] When it is determined in step S3102 that the automobile A1000 is in a state where the driver may take an unplanned action, the gateway 3001 generates a frame of ID5 indicating that the host unit ECU240 should notify the driver of parking advice (step S3103). Then, the gateway 3001 sends the generated frame of ID5 to the CAN bus C103 connected to the host unit ECU240 (step S3104), and ends the determination result reception corresponding processing.

[0251] When it is determined in step S3102 that the automobile A1000 is not in a state where the driver's unplanned action may occur, the gateway 3001 generates a frame of ID5 indicating that the host unit ECU240 notifies the driver of the attack detection notification (step S3105). Then, the gateway 3001 sends the generated frame of ID5 to the CAN bus C103 connected to the host unit ECU240 (step S3104), and ends the corresponding processing of receiving the determination result.

[0252] In addition, if the result of the determination in step S3101 is normal, the gateway 3001 generates a frame of ID5 indicating that the host unit ECU 240 notifies the driver of the absence of abnormality (step S3106). Next, the gateway 3001 sends the generated frame of ID5 to the CAN bus C103 connected to the host unit ECU 240 (step S3104), and ends the determination result reception corresponding processing.

[0253] [2.5 Example of operation of vehicle B in response to determination request]

[0254] Fig.32 This is a flowchart showing an example of a work example (abnormal determination processing) in car B600 corresponding to a determination request. In addition, this is only an example of a determination performed in car B600 corresponding to a determination request from gateway 3001, and car B600 can perform a determination using any determination method. Here, car B600 determines whether there is an abnormality based on whether car A1000 is in a dangerous state for the vehicle. Fig.32 The abnormality determination process will be described.

[0255] The car B 600 receives the determination request to which the information indicating the position, speed, and traveling direction of the car A 1000 is attached from the car A 1000 (step S600 ).

[0256] Next, the car B600 determines whether the speed of the car A1000 is above a predetermined threshold value (step S601). The threshold value is, for example, 60 km / h. If the speed of the car A1000 is less than the threshold value in step S601, the car B600 sends a determination result of "normal" to the car A1000 (step S604). That is, if the current speed of the car A1000 is, for example, less than 60 km / h, the car B600 determines that the car A1000 is not dangerous (abnormal) to the car B600, and sends a determination result of "normal" in response to the determination request.

[0257] When it is determined in step S601 that the speed of car A1000 is above a predetermined threshold, car B600 determines whether the distance to car A1000 is below a predetermined threshold (step S602). The threshold is 5m as an example. When it is determined in step S602 that the distance to car A1000 exceeds the threshold, car B600 sends a determination result of normal to car A1000 (step S604). That is, if the distance between the position indicated by the position information of car A1000 and the current position of car B600 is greater than 5m, car B600 determines that car A1000 is not dangerous (abnormal) to car B600, and sends a determination result of normal in response to the determination request.

[0258] When it is determined in step S602 that the distance from the car A1000 is less than a predetermined threshold, the car B600 determines whether the direction of travel of the car A1000 is toward the car B600 (step S603). When it is determined in step S603 that the direction of travel of the car A1000 is not toward the car B600, the car B600 sends a determination result of normal to the car A1000 (step S604). That is, when the position and the direction of travel of the car A1000 do not show the direction of the current position of the car B600, the car B600 determines that the car A1000 is not dangerous (abnormal) to the car B600, and sends a determination result of normal in response to the determination request.

[0259] When it is determined in step S603 that the traveling direction of the car A 1000 is toward the car B 600 , the car B 600 transmits the determination result of abnormality (danger) to the car A 1000 (step S605 ).

[0260] [2.6 Timing involved in network system operation]

[0261] Fig.28 It is a sequence diagram showing an operation example of network system 100A.

[0262] The gateway 3001 receives frames from each connected bus (step S21), and checks whether the received frame is a frame of a regular format (an abnormal frame) (step S22). If it is confirmed to be an abnormal frame, the gateway 3001 discards the frame and suppresses forwarding (step S23).

[0263] When it is confirmed in step S22 that the frame is in a regular format, the gateway 3001 determines whether the impact of the frame needs to be determined by an external vehicle (ie, whether the frame is a suspected attack frame) (step S24).

[0264] When the received frame is determined to be a suspected attack frame through step S24, the gateway 3001 determines whether a warning notification is required based on the warning rule (whether the forwarding of the received frame will cause the car A1000 to be in a state where the driver may take an action that was not planned by the driver) (step S25).

[0265] When it is determined in step S24 that the external vehicle does not need to make a determination, or when it is determined in step S25 that the warning notification is not necessary, the gateway 3001 transfers the frame to another bus based on the transfer rule (step S26).

[0266] If it is determined in step S25 that a warning notification is required, the gateway 3001 sends an instruction related to the notification to the host unit ECU 240 (step S27), whereby the host unit ECU 240 receives the frame indicating the warning notification and displays the warning notification on the display (step S28). In addition, if it is determined that a warning notification is required, the gateway 3001 sends a determination request (determination entrustment) to the car B600 located around the car A1000 (step S29), and transfers the received frame to another bus (step S30).

[0267] When car B600 receives a judgment request (judgment delegation) from gateway 3001, it performs a danger judgment as an alternative judgment, which is whether car A1000 is in a dangerous abnormal state (whether it is not in a normal state) for car B600 (step S31), and sends the judgment result to gateway 3001 (step S32).

[0268] The gateway 3001 that receives the determination result in step S32 determines the notification content based on the notification rule according to the determination result and whether the current automobile A1000 is in a state where the driver's unplanned action may occur (step S33). The gateway 3001 sends a frame indicating the notification content determined in step S33 to the host unit ECU240 (step S34).

[0269] When receiving the frame indicating the notification content in step S34, host unit ECU 240 switches the display content of the display according to the notification content (step S35).

[0270] [2.7 Effects of Implementation Method 2]

[0271] In the network system 100A of the present embodiment, when a suspicious frame (a frame suspected to be an attack frame) is received by the gateway 300 of the vehicle network of the car A1000, only when the car A1000 is in a state where the driver's unplanned action may occur, control for notifying a warning to draw attention is performed, and a determination is requested from an external device (an onboard device of another car B600, etc.) located around the car A1000. In addition, when the gateway 3001 receives a determination result indicating an abnormality (the car A1000 is dangerous to the car B600) from the car B600 (the onboard device of the car B600, etc.), when the car A1000 is in a state where the driver's unplanned action may occur (for example, when the driver's unplanned action continues), control for notifying a parking advice is performed. In addition, when the abnormal determination result is received, when the car A1000 is not in a state where the driver's unplanned action may occur, control for notifying abnormal detection is performed.

[0272] In this way, the driver can be informed at an early stage of the fact that suspicious frames that are sent abnormally are flowing on the bus of the vehicle network. By changing the notification based on the judgment result of whether car A1000 is dangerous (abnormal) made by car B600 and according to the behavior of the car, useful notification can be given to the driver.

[0273] (Other embodiments)

[0274] As described above, as an illustration of the technical properties of the present disclosure, embodiments 1 and 2 are described. However, the technology of the present disclosure is not limited thereto, and can also be applied to embodiments in which appropriate changes, substitutions, additions, omissions, etc. are made. For example, the following modified examples are also included in one embodiment of the present disclosure.

[0275] (1) In the above embodiment, an example is shown in which the host unit ECU 240 displays a message on the display to draw the driver's attention when a frame suspected of an attack frame is detected in the vehicle network (see Figure 10 to Figure 13 ), but the prompt information (warning notification, parking advice, etc.) to be conveyed to the driver may be prompted by methods other than display (such as reproducing sound from a speaker, etc.). In addition, as a notification method for warning notifications in the network system, notification may be made by changing the lighting state of the interior lights, by changing the tightening strength of the seat belt, or by vibrating the steering wheel or pedals. In addition, for Fig. 9 The classification of the prompt information as the notification content, such as the abnormality notification, warning notification, attack detection notification, and parking advice shown in the above, can also be determined in any manner. In addition, the specific prompt content (such as display content) is not limited to Figure 10 to Figure 13 The content shown as an example may be any content.

[0276] (2) In the above embodiment, an example is shown in which the gateway 300, 3001 that monitors frames in the vehicle network of the automobile cooperates with the host unit ECU240 to notify the driver (warning notification, etc.) under certain conditions. The vehicle network can also be installed in vehicles other than automobiles (such as two-wheeled vehicles). In addition, the object of the notification (warning notification, etc.) is not limited to the driver of the vehicle, but can also be the occupants of the vehicle, devices located around the vehicle (other vehicles, etc.). In addition, the notification to the notification object can also be performed via other devices such as a server. For example, in order to notify other vehicles under certain conditions based on the monitoring of frames in the vehicle network of a vehicle, a vehicle can be equipped with a notification device that controls the lighting state of the emergency flashing display light. In addition, in the above embodiment, it is assumed that the gateway 300, 3001 has a communication function (external communication unit) for communicating with the outside, but it can also be that the vehicle has a communication device (communication unit) outside the gateway 300, 3001, and the gateway 300, 3001 communicates with the outside of the vehicle via the communication device. Fig.33 An example of a network system including the notification device, communication device, etc. is shown in FIG.

[0277] Fig.33 The configuration of network system 2000 according to one embodiment is shown. Network system 2000 includes vehicle 2100 and external device 2200 .

[0278] The vehicle 2100 includes a safety device 2110 connected to a bus 2190a, a bus 2190b, and a bus 2190c and monitoring these buses, a communication device 2120 for communicating with an external device 2200, a predetermined ECU (host unit) 2140 having an information prompting function, ECUs 2150a to 2150d connected to the respective buses, and a notification device 2130 for notifying the outside of the vehicle 2100. The notification device 2130 is, for example, an emergency flashing display light, or a whistle. The safety device 2110 includes a receiving unit 2111, a confirming unit 2112, a determining unit 2113, an acquiring unit 2114, and an output unit 2115. The receiving unit 2111 corresponds to the receiving function part of the frame transceiver unit 301 described above, and receives a frame from one bus. The confirming unit 2112 corresponds to the confirming unit 305 described above, and confirms whether the frame received from the one bus by the receiving unit 2111 meets an abnormal condition. The determination unit 2113 is equivalent to the determination unit 306 described above, and determines whether the frame received by the receiving unit 2111 satisfies a predetermined condition for distinguishing whether it is a possible attack frame. The determination unit 2113 may not determine that the predetermined condition is satisfied when the confirmation unit 2112 confirms that the frame received by the receiving unit 2111 satisfies an abnormal condition. In addition, the predetermined condition used by the determination unit 2113 in the determination on the frame is a condition related to at least one of a reception interval, a difference, and a correlation, wherein the reception interval is a reception interval between a previous frame of the same type that has the same ID as the frame and was previously received by the receiving unit 2111 and the frame, the difference is a difference between the content of the data of the frame and the content of the data of the previous frame of the same type, and the correlation is a correlation between the content of a previous frame of a different type that has the same ID as the frame and was previously received by the receiving unit 2111 and the content of the frame. When the determination unit 2113 determines that the predetermined condition is satisfied, the acquisition unit 2114 controls the communication device 2120 to transmit the determination request to the external device 2200, and obtains the determination result transmitted from the external device 2200 according to the determination request through the communication device 2120. In addition, the communication device 2120 may also send the log information related to each frame received by the receiving unit 2111 of the safety device 2110 to the external device 2200. The output unit 2115 outputs the first prompt information (for example, a warning notification) when the determination unit 2113 determines that the predetermined condition is satisfied, and outputs the second prompt information (for example, a parking advice, an attack detection notification, a no abnormality notification, etc.) when the acquisition unit 2114 obtains the determination result from the external device 2200. The first prompt information includes control information for causing the notification device 2130 to make a notification, and the output of the first prompt information by the output unit 2115 may include sending the first prompt information to the notification device 2130.The output unit 2115 may output the first prompt information and the second prompt information by prompting (display, vibration, buzzer, light, sound output, etc.), or by sending to the predetermined ECU 2140, etc. (the predetermined ECU 2140 sends a frame containing each prompt information to the connected bus 2190c). The predetermined ECU 2140 prompts the first prompt information when receiving the frame containing the first prompt information, and prompts the second prompt information when receiving the frame containing the second prompt information. Regarding the prompting timing of the first prompt information, the output unit 2115 may output the first prompt information when the determination unit 2113 determines that the predetermined condition is satisfied. When the determination unit 2113 determines that the predetermined condition is satisfied, the output unit 2115 outputs the first prompt information when the warning condition (for example, the condition based on the warning rule maintained by the warning rule maintenance unit 307a) is satisfied, and does not output the first prompt information when the warning condition is not satisfied. The output unit 2115 may also determine whether the warning condition is satisfied based on the content of one or more frames received in the past by the receiving unit 2111. When the acquisition unit 2114 obtains the determination result from the external device 2200, the output unit 2115 may also output, as the second prompt information, information selected from a plurality of predetermined different information different from the first prompt information based on whether the determination result indicates normality. In addition, when the acquisition unit 2114 obtains the determination result from the external device 2200, the output unit 2115 may also output, as the second prompt information, information selected from a plurality of predetermined different information different from the first prompt information based on whether the warning condition and the determination result are satisfied. In addition, the security device 2110 may be a gateway device, but it does not necessarily have to be a gateway device.

[0279] The external device 2200 is a device that receives a determination request from the vehicle 2100, determines whether there is an abnormality, and sends the determination result to the vehicle 2100, and may be a server (e.g., server 400), another vehicle located around the vehicle 2100 (e.g., automobile B600), a roadside device located around the vehicle 2100, a signal device, etc. The vehicle 2100 is a car, a two-wheeled vehicle, etc., and is equipped with an in-vehicle network, which is connected to various devices such as a control device, a sensor, an actuator, and a user interface device in the vehicle, and is composed of a plurality of ECUs that perform frame-related communication via a bus in the vehicle.

[0280] The external device 2200 may be a device that determines whether an attack frame is sent in the vehicle based on log information when receiving a determination request, thereby sending the determination result to the communication device 2120. The determination result may, for example, indicate whether it is normal (whether it is not abnormal). The external device 2200 may also be a device that observes the movement of the vehicle from the outside of the vehicle and determines whether the movement of the vehicle is normal, thereby sending the determination result to the communication device 2120, and may be other vehicles located around the vehicle 2100 when the determination unit 2113 determines that the predetermined condition is satisfied.

[0281] (3) In the above-mentioned embodiment, as the judgment rule used in determining suspicious frames (frames suspected of being attack frames) that are sent abnormally, a rule related to the change in the receiving cycle (sending cycle) of the frame or the value of the data field is exemplified, but any property of the CAN frame can also be used to determine whether the frame is a suspected attack frame.

[0282] (4) In the above-mentioned embodiment, when a determination request is sent to a server or other automobile and a determination result is received, only the notification content is determined (i.e., only the notification is switched). However, it is also possible that the rules maintained by the gateway 300, 3001 are added to or updated so as not to forward a frame with the same ID as the frame that triggered the determination request between buses.

[0283] (5) In the above-mentioned second embodiment, the car B600 makes a determination whether there is an abnormality based on the information such as the position, speed, and direction of travel received from the car A1000 and attached to the determination request. However, it is also possible to use a vehicle-mounted device such as a sensor in the car B600 to measure the position, speed, or direction of travel of the car A1000, and use the measurement results to make each determination in steps S601 to S603. For example, the car B600 may also determine the position of the car A1000 that is the source of the determination request by observing the radio wave strength when a predetermined wireless signal is received from the car A1000 as a determination request.

[0284] (6) In the above embodiment, an in-vehicle network that communicates in accordance with the CAN protocol is shown. The CAN protocol should be treated as a broad protocol that also includes derived protocols such as CANFD (CAN with Flexible Data Rate). In addition, in the network system, communication protocols other than the CAN protocol, such as Ethernet (registered trademark), MOST (registered trademark), FlexRay (registered trademark), etc., may also be used.

[0285] (7) The various processing steps shown in the above embodiments (for example Figure 2 , Fig. 22 , Fig.23 , Fig.25 , Fig.26 , Fig.28 , Figure 30 to Figure 32 The execution order of the steps shown in the figures is not necessarily limited to the above-mentioned order, and the execution order may be changed, a plurality of steps may be performed in parallel, and / or a part of the steps may be omitted without departing from the scope of the disclosure.

[0286] (8) The ECU such as the gateway in the above-mentioned embodiment is a device including, for example, a processor, a digital circuit such as a memory, an analog circuit, a communication line, etc., but may also include other hardware components such as a hard disk device, a display, a keyboard, a mouse, etc. In addition, instead of having the processor execute the control program stored in the memory and realize the function in software, it is also possible to realize its function by dedicated hardware (digital circuit, etc.).

[0287] (9) Part or all of the components constituting each device in the above-mentioned embodiments may also be constituted by a system LSI (Large Scale Integration). System LSI is a super-multifunctional LSI manufactured by integrating multiple components on a single chip, and specifically, is a computer system composed of a microprocessor, ROM, RAM, etc. The RAM stores a computer program. The microprocessor operates according to the computer program, thereby achieving the function of the system LSI. In addition, each component constituting the components of each of the above-mentioned devices may be individually single-chip or may be single-chip in a manner that includes part or all of them. In addition, although LSI is used here, it may also be referred to as IC, LSI, super LSI, and ultra LSI depending on the degree of integration. In addition, the method of integrated circuitization is not limited to LSI, and may also be implemented by a dedicated circuit or a general-purpose processor. After LSI is manufactured, FPGA (Field Programmable Gate Array) or a reconfigurable processor (reconfigurable processor) that can reconfigure the connection and / or setting of the circuit unit inside the LSI may also be used. Furthermore, with the development of semiconductor technology or the emergence of other derived technologies, if there is an integrated circuit technology that can replace LSI, it is of course possible to use this technology to integrate functional blocks. There may also be the possibility of applying biotechnology.

[0288] (10) A part or all of the components constituting each of the above-mentioned devices may also be constituted by an IC card or a single module that can be loaded and unloaded on each device. The IC card or the module is a computer system composed of a microprocessor, ROM, RAM, etc. The IC card or the module may also include the above-mentioned super-multifunctional LSI. The microprocessor operates according to the computer program, thereby the IC card or the module achieves its function. The IC card or the module may also have tamper resistance.

[0289] (11) As a technical solution of the present disclosure, it may also include, for example, Fig. 22 , Fig.23 , Fig.30 , Fig.31For example, the attack detection method is an attack detection method used in a vehicle network system in which a plurality of electronic control units transmit and receive frames via one or more buses, and includes: a receiving step of receiving a frame from a bus; a determination step of determining whether a predetermined condition for distinguishing whether a frame may be an attack frame is satisfied for the frame received by the receiving step (e.g., steps S305 and S3004); a first prompting step of prompting a first prompting message when the predetermined condition is satisfied by the determination step (e.g., steps S309, S310, S3007 and S3008); a control step of transmitting a determination request to an external device located outside the vehicle when the predetermined condition is satisfied by the determination step, and obtaining a determination result transmitted from the external device according to the determination request (e.g., steps S307 and S3009); and a second prompting step of prompting a second prompting message when the determination result from the external device is obtained by the acquisition step (e.g., steps S323 to S326, S3103 to S3106). In addition, as a technical solution of the present disclosure, it can also be a computer program that implements the processing involved in the attack detection method by a computer, or it can be a digital signal formed by the computer program. In addition, as a technical solution of the present disclosure, the computer program or the digital signal can also be recorded on a computer-readable recording medium such as a floppy disk, a hard disk, a CD-ROM, an MO, a DVD, a DVD-ROM, a DVD-RAM, a BD (Blu-ray (registered trademark) Disc), a semiconductor memory, etc. In addition, it can also be the digital signal recorded in the above-mentioned recording medium. In addition, as a technical solution of the present disclosure, the computer program or the digital signal can also be transmitted via an electric communication line, a wireless or wired communication line, a network represented by the Internet, data broadcasting, etc. In addition, as a technical solution of the present disclosure, it can also be a computer system having a microprocessor and a memory, the memory recording the above-mentioned computer program, and the microprocessor can work according to the computer program. In addition, it can also be implemented by another independent computer system by transferring the program or the digital signal recorded in the recording medium, or transferring the program or the digital signal via the network, etc.

[0290] (12) Embodiments achieved by arbitrarily combining the components and functions described in the above-described embodiment and the above-described modified examples are also included in the scope of the present disclosure.

[0291] Industrial Applicability

[0292] The present disclosure can be used to deal with attack frames and the like in an in-vehicle network.

[0293] Description of the label

[0294] 10.20 Network

[0295] 100, 100A, 2000 Network Systems

[0296] 101 Bus A

[0297] 102 Bus B

[0298] 103 Bus C

[0299] 200 Steering wheel ECU

[0300] 201, 301 frame transceiver

[0301] 202, 302 Frame interpretation unit

[0302] 203, 302a Receiving ID judgment unit

[0303] 205, 231 Control Department

[0304] 206 Automatic steering motor

[0305] 207 Steering wheel sensor

[0306] 208, 218, 228, 238, 304 frame generation unit

[0307] 209, 239, 249, 302b Receiving ID list holding unit

[0308] 210 Speed ​​notification ECU

[0309] 211 Speed ​​sensor

[0310] 220 White line angle notifies ECU

[0311] 221 White line angle detection sensor

[0312] 230 Automatic steering indication ECU

[0313] 240 Main unit ECU

[0314] 241 Display

[0315] 241a Display content storage unit

[0316] 300, 3001 Gateway (security device)

[0317] 303 External Communications Department

[0318] 303a Position information acquisition unit

[0319] 305 Confirmation Department

[0320] 305a Format rule maintenance unit

[0321] 306 Judgment Department

[0322] 306a Judgment rule storage unit

[0323] 307 Notification Department

[0324] 307a Warning rule maintenance unit

[0325] 307b Status storage unit

[0326] 307c Notification Rules Maintenance Department

[0327] 308 Transfer Department

[0328] 308a Transfer rule storage unit

[0329] 400 Server

[0330] 401, 2111 Receiving Department

[0331] 402 Judgment Department

[0332] 403 Log Storage

[0333] 404 Abnormal Judgment Department

[0334] 405 Sending Department

[0335] 500 Cars

[0336] 600 Car B

[0337] 1000 Car A

[0338] 2100 Vehicles

[0339] 2110 Safety Device

[0340] 2112 Confirmation Department

[0341] 2113 Judgment Department

[0342] 2114 Acquisition Department

[0343] 2115 Output

[0344] 2120 Communication device

[0345] 2130 Notification Device

[0346] 2140, 2150a~2150d Electronic Control Unit (ECU)

[0347] 2190a~2190c bus

[0348] 2200 External Devices

Claims

1. A security device is a security device connected to one or more networks in a vehicle, having: a receiving unit that receives a frame from one of the networks; a determination unit that determines whether to request a determination request to an external part of the vehicle with respect to the frame received by the receiving unit; an acquisition unit that, when it is determined that the determination request is requested, controls so as to transmit the determination request to the outside of the vehicle and acquires a determination result transmitted from the outside in response to the determination request; as well as An output unit outputs presentation information corresponding to the determination result.

2. The safety device according to claim 1, The vehicle is equipped with a plurality of electronic control units that exchange frames via the one or more networks in compliance with the CAN protocol, ie, the Controller Area Network protocol.

3. The safety device according to claim 1 or 2, The security device is a gateway device connected to the plurality of networks in the vehicle.

4. The safety device according to claim 3, The security device further includes a confirmation unit that confirms whether a frame received by the receiving unit from a network is an abnormal frame. The security device forwards a frame received by the receiving unit from one network to another network when the confirmation unit confirms that the frame is not an abnormal frame, and does not forward the frame when the confirmation unit confirms that the frame is an abnormal frame.

5. The safety device according to claim 1, The determination unit determines that the determination request is requested when the received frame is a suspicious frame that is not normally transmitted.

6. The safety device according to claim 1, When the determination unit determines that the determination request is requested, the determination unit outputs presentation information.

7. The safety device according to claim 1 or 2, The output unit transmits a frame including presentation information to a network within the vehicle when the determination unit determines that the determination request is requested.

8. The safety device according to claim 1 or 2, The output unit outputs the presentation information when a warning condition is satisfied, and does not output the presentation information when the determination unit determines that the determination request is requested, if the warning condition is not satisfied.

9. The safety device according to claim 8, The output unit determines whether the warning condition is satisfied based on the content of one or more frames received in the past by the receiving unit.

10. The safety device according to claim 1 or 2, When the acquisition unit acquires the determination result from the outside, the output unit transmits a frame including the presentation information corresponding to the determination result to the one network.

11. A network system comprising: The safety device according to any one of claims 1 to 10; External devices; the vehicle equipped with a communication device for communicating with the external device; the one or more networks; and A plurality of electronic control units mounted on the vehicle exchange frames via the one or more networks.

12. The network system according to claim 11, One of the plurality of electronic control units is a predetermined electronic control unit having an information prompting function, The output unit transmits a frame including the presentation information to a network to which the predetermined electronic control unit is connected when the acquisition unit acquires the determination result from the external device. The predetermined electronic control unit presents the presentation information when receiving a frame including the presentation information.

13. The network system according to claim 11 or 12, The vehicle includes a notification device for notifying the outside of the vehicle. The notification information includes control information for causing the notification device to perform notification. The output of the presentation information by the output unit includes sending the presentation information to the notification device.

14. The network system according to claim 11 or 12, the communication device transmits log information about each frame received by the receiving unit of the security device to the external device, the acquisition unit of the security device transmits the determination request to the external device via the communication device, and receives the determination result transmitted from the external device in response to the determination request via the communication device, When receiving the determination request, the external device determines whether an attack frame is transmitted in the vehicle based on the log information, thereby transmitting the determination result to the communication device.

15. The network system according to claim 11 or 12, The external device observes the movement of the vehicle from outside the vehicle, determines whether the movement of the vehicle is normal, and transmits the determination result to the communication device.

16. The network system according to claim 15, The external device is another vehicle or a roadside machine located around the vehicle.

17. An attack detection method is used in a vehicle network system in which a plurality of electronic control units mounted on a vehicle perform frame transmission and reception via one or more networks, comprising: A receiving step, receiving a frame from the network; a determination step of determining whether to entrust a determination request to an external part of the vehicle with respect to the frame received in the receiving step; an acquisition step of, when it is determined that the determination request is requested, controlling so as to transmit the determination request to the outside of the vehicle, and acquiring a determination result transmitted from the outside in accordance with the determination request; as well as A presenting step of presenting presentation information corresponding to the determination result when the determination result is obtained from the outside in the obtaining step.