Anomaly determination method, anomaly determination device, and program

The abnormality determination method in in-vehicle networks selects specific detection functions based on processing time constraints, effectively identifying abnormal messages by analyzing message fields with fixed and variable values, addressing inefficiencies in existing detection methods.

JP2024114857AActive Publication Date: 2024-08-23PANASONIC INTELLECTUAL PROPERTY CORP OF AMERICA
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024103327
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2019-02-08
Filing Date
2024-06-26
Publication Date
2024-08-23
Estimated Expiration
2039-12-26

AI Technical Summary

Technical Problem

Existing methods for detecting abnormal messages in in-vehicle networks, such as those described in Patent Document 1, are inadequate as they do not effectively execute anomaly detection processes within the limited time frames required, leading to inefficiencies in identifying unauthorized access and potential vehicle control by fraudulent ECUs.

Method used

An abnormality determination method that selects specific combinations of anomaly detection functions based on the available processing time, utilizing fields with fixed and variable values in received messages, including determinations based on periodicity, message reception timing, and message content, to efficiently identify abnormal messages.

Benefits of technology

This approach allows for effective anomaly detection within limited processing time, ensuring timely identification of abnormal messages and reducing resource consumption, thereby enhancing the security of in-vehicle networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024114857000001_ABST
    Figure 2024114857000001_ABST
Patent Text Reader

Abstract

To provide an anomaly determination method which enables effective anomaly detection processing.SOLUTION: An anomaly determination method includes: receiving a plurality of messages which include messages that are periodic, each of the messages including a first field having a fixed value and a second field having a variable value, as the received messages; calculating available time for anomaly determination in the received messages; and selecting one of the following options, employing all n anomaly determinations, employing k anomaly determinations of the n anomaly determinations, and employing no anomaly determination so as to finish within the calculated time. The n anomaly determinations include an anomaly determination utilizing a reception timing based on the periodicity or the number of received messages, an anomaly determination utilizing the first field, and an anomaly determination utilizing the second field.SELECTED DRAWING: Figure 12
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a method for determining a detection function according to a processing load when detecting an abnormal message in an in-vehicle network. [Background technology]

[0002] In recent years, systems inside automobiles are equipped with many devices called electronic control units (ECUs). The communication network that connects these ECUs is called an in-vehicle network. There are many communication standards for in-vehicle networks. One of the most mainstream standards for in-vehicle networks is the Controller Area Network (hereafter referred to as CAN).

[0003] In a network based on the CAN standard (hereinafter referred to as a CAN network), the communication path (bus) consists of two cables, and the ECUs connected to the bus are also called nodes. Each node connected to the bus sends and receives data in units called frames or messages. CAN does not use identifiers to indicate the destination or source of data.

[0004] A node that transmits a frame (hereafter also referred to as a transmitting node) assigns an ID called a message ID, which indicates the type of message, to each message, and transmits the message; that is, sends a signal onto the bus. A node that receives a message (hereafter also referred to as a receiving node) receives only messages that contain a predetermined message ID; that is, reads a signal from the bus. Messages with the same ID are transmitted at regular intervals.

[0005] As mentioned above, the numerous ECUs installed in systems inside automobiles are each connected to a CAN network and operate by exchanging various messages with each other.

[0006] Here, an ECU having a communication function with the outside of the CAN network may be illegally accessed from the outside and illegally controlled by someone, and may transmit an abnormal message (also called an attack message) to the CAN network. Such an ECU illegally controlled by someone (also called a fraudulent ECU) may, for example, masquerade as another ECU and transmit an abnormal message, thereby illegally controlling the vehicle. A method for detecting such so-called spoofing attacks is disclosed in, for example, Patent Document 1. [Prior art documents] [Patent documents]

[0007] [Patent Document 1] International Publication No. 2015 / 151418 Summary of the Invention [Problem to be solved by the invention]

[0008] However, the method disclosed in Patent Document 1 has a problem in that the abnormality detection process is not executed when the time available for executing the abnormality detection process to detect an abnormal message sent to the in-vehicle network is short.

[0009] Therefore, the present disclosure provides an abnormality determination method and an abnormality determination device that can perform effective abnormality detection processing. [Means for solving the problem]

[0010] In order to solve the above problem, an abnormality determination method according to one embodiment of the present disclosure is an abnormality determination method for determining an abnormality in a received message, the method receiving as the received message a plurality of messages including a plurality of messages having periodicity, each of the plurality of messages including a first field having a fixed value and a second field having a changing value, calculating a time available for determining an abnormality in the received message, and selecting one of the following so as to fit within the calculated time: (i) selecting all n abnormality determinations out of n abnormality determinations (n ​​is a positive integer), (ii) selecting k abnormality determinations (k is a positive integer and k≦n) out of the n abnormality determinations, or (iii) selecting none of the n abnormality determinations, the n abnormality determinations including an abnormality determination using a reception timing based on the periodicity or the number of the received messages, an abnormality determination using the first field, and an abnormality determination using the second field.

[0011] In addition, these comprehensive or specific aspects may be realized in a system, an apparatus, a method, an integrated circuit, a computer program, or a non-transitory recording medium such as a computer-readable CD-ROM, or may be realized in any combination of a system, an apparatus, a method, an integrated circuit, a computer program, and a recording medium. Effect of the Invention

[0012] According to the anomaly determination method and the like according to an aspect of the present disclosure, appropriate anomaly detection processing can be performed according to the detection processing time. [Brief description of the drawings]

[0013] [Figure 1] FIG. 1 is a block diagram showing an overall configuration of an in-vehicle network system according to the first embodiment. [Diagram 2] FIG. 2 is a diagram showing a format of a message (data frame) of the CAN protocol in the first embodiment. [Diagram 3]FIG. 3 is a block diagram showing an example of a gateway included in the in-vehicle network system according to the first embodiment. [Figure 4] FIG. 4 is a diagram showing an example of a reception ID list according to the first embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of a transfer rule according to the first embodiment. [Figure 6] FIG. 6 is a block diagram showing an example of an anomaly detection processing function group according to the first embodiment. [Figure 7] FIG. 7 is a diagram illustrating an example of the relationship between the determination function and the processing time versus detection performance according to the first embodiment. In FIG. [Figure 8] FIG. 8 is a diagram illustrating an example of a relationship between a determination function and a processing time versus a detection performance according to the first embodiment. In FIG. [Figure 9] FIG. 9 is a diagram illustrating an example of the relationship between the determination function and the processing time versus detection performance according to the first embodiment. In FIG. [Figure 10] FIG. 10 is a block diagram showing an example of an ECU included in the in-vehicle network system according to the first embodiment. [Figure 11] FIG. 11 is a flowchart showing an example of the transfer process according to the first embodiment. [Figure 12] FIG. 12 is a flowchart showing another example of the abnormality detection process according to the first embodiment. [Figure 13] FIG. 13 is a flowchart showing yet another example of the abnormality detection process according to the first embodiment. [Figure 14] FIG. 14 is a flowchart showing another example of the abnormality detection process according to the first embodiment. [Figure 15] FIG. 15 is a flowchart showing yet another example of the abnormality detection process according to the first embodiment. [Figure 16] FIG. 16 is a flowchart showing another example of the abnormality detection process according to the first embodiment. [Figure 17] FIG. 17 is a flowchart showing an example of the abnormality detection process including the reset process according to the first embodiment. [Figure 18] FIG. 18 is a flowchart showing another example of the abnormality detection process including the reset process according to the first embodiment. [Figure 19] FIG. 19 is a flowchart showing yet another example of the abnormality detection process including the reset process in the first embodiment. [Figure 20] FIG. 20 is a diagram showing an example of a reset process in the modified example. [Figure 21] FIG. 21 is a block diagram showing an example of an anomaly detection processing function group according to the second embodiment. [Figure 22] FIG. 22 is a flowchart showing an example of the abnormality detection process according to the second embodiment. [Diagram 23] FIG. 23 is a flowchart showing another example of the abnormality detection process in the second embodiment. [Figure 24] FIG. 24 is a flowchart showing yet another example of the abnormality detection process in the second embodiment. [Diagram 25] FIG. 25 is a flowchart showing another example of the abnormality detection process in the second embodiment. [Figure 26] FIG. 26 is a flowchart showing yet another example of the abnormality detection process in the second embodiment. [Figure 27] FIG. 27 is a block diagram showing an example of an abnormality detection processing function group according to the third embodiment. In FIG. [Figure 28] FIG. 28 is a block diagram showing another example of the abnormality detection processing function group in the third embodiment. In FIG. [Figure 29] FIG. 29 is a diagram showing an example of non-selection information according to the third embodiment. [Diagram 30] FIG. 30 is a flowchart showing an example of the abnormality detection process in the third embodiment. [Diagram 31] FIG. 31 is a flowchart showing another example of the abnormality detection process in the third embodiment. [Diagram 32] FIG. 32 is a flowchart showing an example of the non-selection information following process according to the third embodiment. [Diagram 33] FIG. 33 is a table showing the determination functions and the selection conditions for the determination functions in the modified example. [Diagram 34] FIG. 34 is a flowchart showing an example of an abnormality detection process in the modified example. [Diagram 35] FIG. 35 is a flowchart showing another example of the abnormality detection process in the modified example. [Diagram 36] FIG. 36 is a block diagram showing an example of an ECU in the modified example. [Figure 37] FIG. 37 is a block diagram showing another example of the ECU in the modified example. [Figure 38] FIG. 38 is a block diagram showing the overall configuration of an in-vehicle network system in a modified example. [Figure 39] FIG. 39 is a block diagram showing an example of a communication ECU included in an in-vehicle network system according to a modified example. [Diagram 40] FIG. 40 is a block diagram showing an example of a server in the modified example. [Diagram 41] FIG. 41 is a table showing the determination functions and the selection conditions for the determination functions in the modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] (Knowledge that forms the basis of this disclosure) When a function that detects an abnormal message being sent on a CAN network generates and outputs the detection result and information related to the detection result as a log, a large amount of data is required to perform a detailed post-mortem check of the situation that led to the detection of the abnormality. However, if the storage capacity of the log output destination or the communication volume for sending the detection result to the log output destination is large, it will incur a large time or resource cost.

[0015] Therefore, an abnormality determination method according to one embodiment of the present disclosure is an abnormality determination method for determining an abnormality in a received message, which receives as the received message a plurality of messages including a plurality of messages having periodicity, each of the plurality of messages including a first field having a fixed value and a second field having a variable value, and selects, depending on one or more criteria of the time, load, data amount, or number of messages, at which the abnormality determination method may be executed, a reception timing based on the periodicity, or a plurality of combinations each consisting of one or more of a plurality of abnormality determinations including an abnormality determination using the number of received messages, an abnormality determination using the first field, and an abnormality determination using the second field.

[0016] As a result, the anomaly determination method according to one aspect of the present disclosure can perform appropriate anomaly detection processing according to the detection processing time, which is a limited time.

[0017] Moreover, an abnormality judgment device according to one embodiment of the present disclosure is an abnormality judgment device in an in-vehicle network system including a network and one or more electronic control units connected to the network, and includes one or more processors and a memory unit accessible from the one or more processors, and the one or more processors receive, as the received messages, a plurality of messages including a plurality of messages having periodicity, each of the plurality of messages including a first field having a fixed value and a second field having a changing value, and select, depending on one or more criteria of the time, load amount, data amount, or number of messages for which the abnormality judgment method may be executed, a reception timing based on the periodicity or a plurality of combinations each consisting of one or more of a plurality of abnormality judgments including an abnormality judgment using the number of received messages, an abnormality judgment using the first field, and an abnormality judgment using the second field.

[0018] As a result, the abnormality determination device according to one aspect of the present disclosure can perform appropriate abnormality detection processing according to the detection processing time, which is a limited time.

[0019] Moreover, a program according to one aspect of the present disclosure is a program for causing the one or more processors in the abnormality determination device to execute the abnormality determination method.

[0020] This allows appropriate abnormality detection processing to be performed according to the detection processing time.

[0021] Hereinafter, the embodiment will be described in detail with reference to the drawings.

[0022] The embodiments described below are all comprehensive or specific examples. The numerical values, shapes, materials, components, arrangement and connection of components, steps, and order of steps shown in the following embodiments are merely examples and are not intended to limit the present disclosure. Among the components in the following embodiments, components that are not described in an independent claim showing a top concept are described as components that are optionally included.

[0023] (Embodiment 1) [1. Overview] In this embodiment, a case in which an abnormality is determined by appropriately controlling the execution of a function for determining an abnormality in an in-vehicle network system depending on the time that the abnormality detection process can be executed will be described in detail with reference to the drawings.

[0024] [1.1 Overall configuration of in-vehicle network system] FIG. 1 is a block diagram showing the overall configuration of an in-vehicle network system according to the present embodiment.

[0025] 1, the in-vehicle network system 10 is configured with a CAN network, and includes an ECU 100a, an ECU 100b, an ECU 100c, and an ECU 100d, a bus 200a and a bus 200b, and a gateway 300. Note that the ECU 100a, the ECU 100b, the ECU 100c, and the ECU 100d are examples of electronic control units.

[0026] In the following description, the ECU 100a, the ECU 100b, the ECU 100c, and the ECU 100d may be collectively referred to as the ECU 100, or may refer to an unspecified portion of the ECUs.

[0027] In the following description, the buses 200a and 200b may be referred to as the bus 200 collectively or without specifying one of them.

[0028] The ECU 100 a is connected to an engine 101 , the ECU 100 b is connected to a brake 102 , the ECU 100 c is connected to a door opening / closing sensor 103 , and the ECU 100 d is connected to a window opening / closing sensor 104 .

[0029] ECU 100 acquires messages indicating the status of connected devices, and periodically transmits the messages indicating the acquired status to bus 200. For example, ECU 100a acquires information regarding the rotation speed, which is one of the statuses of engine 101, and transmits a message including a data value indicating the rotation speed to bus 200 with a predetermined ID.

[0030] Furthermore, each ECU 100 reads messages transmitted by other ECUs 100 from the bus 200 and selectively receives the messages according to the IDs attached to the messages. This selective reception will be described later.

[0031] The gateway 300 connects a bus 200a to which the ECUs 100a and 100b are connected, and a bus 200b to which the ECUs 100c and 100d are connected. The gateway 300 has a function of transferring a message received from one bus 200 to the other bus 200. The gateway 300 is also a node on the CAN network.

[0032] Note that the in-vehicle network system is an example for determining whether a message is an abnormal message or not and for explaining targets to which the abnormality determination method and the like can be applied, and the targets to which the method and the like can be applied are not limited to in-vehicle network systems.

[0033] [1.2 Message data format] 2 is a diagram showing the format of a message (data frame) of the CAN protocol, in which a message is shown in the standard ID format of the CAN protocol.

[0034] The message consists of a Start Of Frame (SOF), an ID field, a Remote Transmission Request (RTR), an IDentifier Extension (IDE), a reserved bit (r), a Data Length Code (DLC), a data field, a Cyclic Redundancy Check (CRC) sequence, a CRC delimiter (DEL on the left in the figure), an Acknowledgement (ACK) slot, an ACK delimiter (DEL on the right in the figure), and an End Of Frame (EOF).

[0035] SOF is a 1-bit dominant. Dominant means superior. In a CAN network where a digital method is used to transmit data, dominant means a state in which voltage is applied to two cables constituting a bus to transmit a value of "0", or the value of "0" transmitted. In contrast, a state in which voltage is applied to two cables constituting a bus to transmit a value of "1", or the value of "1" transmitted, is called recessive. Recessive means inferior. If a value of "0" and a value of "1" are transmitted from two nodes to the bus at the same time, the value of "0" takes precedence. The bus is in a recessive state when idle. Each ECU 100 starts transmitting a message by changing the state of the bus 200 from recessive to dominant, and the other ECUs 100 read this change and synchronize. In FIG. 2, the parts in which the lines indicating the dominant or recessive constituting the message are solid lines indicate that the dominant or recessive values ​​can be taken. Since SOF is fixed in the dominant state, the dominant line is solid and the recessive line is dashed.

[0036] An ID is an 11-bit value that indicates the type of data contained in a message. In addition, CAN is designed so that when multiple nodes start sending messages at the same time, messages with smaller ID values ​​have higher priority. ID is synonymous with message ID and CAN ID.

[0037] RTR is a 1-bit dominant that indicates that the frame is a message.

[0038] Each IDE is 1 bit dominant. A message is also called a data frame.

[0039] DLC is a 4-bit value that indicates the length of the following data field.

[0040] The data field is a value that indicates the content of the data to be transmitted, and is a maximum of 64 bits long, and the length can be adjusted in 8-bit units. The specifications regarding the allocation of data to this part depend on the vehicle model or manufacturer.

[0041] The CRC sequence is a 15-bit value calculated from the transmitted values ​​of the SOF, ID field, control field, and data field.

[0042] The CRC delimiter is a fixed 1-bit recessive delimiter that indicates the end of the CRC sequence. The receiving node determines whether there are any errors by comparing the result calculated from the SOF, ID field, control field, and data field of the received message with the CRC sequence value.

[0043] The ACK slot is 1 bit long, and the transmitting node transmits a recessive bit in this portion. If the receiving node has received the CRC sequence normally, it transmits a dominant bit as an acknowledgment. Since dominant bits have priority, if the communication of one message has been normal up to the CRC sequence, the bus 200 is dominant during the transmission of the ACK slot.

[0044] The ACK delimiter is fixed to 1 recessive bit and is the delimiter that indicates the end of the ACK slot.

[0045] EOF is fixed to a 7-bit recessive signal, indicating the end of a message.

[0046] [1.3 Gateway configuration] Fig. 3 is a block diagram showing an example of a gateway 300 included in the in-vehicle network system 10 in the embodiment 1. In Fig. 3, the gateway 300 includes a frame transmitting / receiving unit 310, a frame interpreting unit 320, a received ID determining unit 330, a received ID list holding unit 340, a frame processing unit 350, a transfer rule holding unit 360, an anomaly detection processing function group 370, and a frame generating unit 380.

[0047] Note that these configurations indicate functions, and the gateway 300 is provided as an information processing device having, for example, a processing unit realized by a processor, a storage unit realized by a semiconductor memory or the like, and an input / output unit realized by an input / output port.

[0048] The configuration exhibiting the above-mentioned functions is realized by reading and executing a program stored in the storage unit by the processing unit, and recording predetermined data in the storage unit. Alternatively, instead of recording predetermined data in the storage unit, these configurations may be realized by transmitting and receiving data via the input / output unit. Alternatively, the configuration exhibiting the above-mentioned functions may be realized by a combination of these.

[0049] The frame transmitting / receiving unit 310 transmits and receives messages conforming to the CAN protocol to and from each of the buses 200a and 200b.

[0050] More specifically, the frame transmitting / receiving unit 310 reads the message sent to the bus 200 one bit at a time, and transfers the read message to the frame interpreting unit 320 .

[0051] Furthermore, in response to the bus information transmitted from the frame generating unit 380, the frame transmitting / receiving unit 310 transmits a message to the buses 200a and 200b, one bit at a time.

[0052] Frame transmitting / receiving unit 310 transfers messages between buses 200 by transmitting messages received from bus 200a to bus 200b and transmitting messages received from bus 200b to bus 200a.

[0053] The frame interpretation unit 320 receives message values ​​from the frame transmission / reception unit 310, maps them to each field in the CAN protocol, and interprets the received message. The frame interpretation unit 320 transfers the series of values ​​that it has interpreted as the ID field value to the received ID determination unit 330.

[0054] Frame interpretation unit 320 further determines, depending on the judgment result sent from received ID judgment unit 330, whether to transfer the value of the ID field of the message and the data fields appearing after the ID field to frame processing unit 350, or to cancel reception of the message.

[0055] Furthermore, if the frame interpretation unit 320 determines that the received message does not conform to the CAN protocol, it requests the frame generation unit 380 to transmit an error frame.

[0056] An error frame is a frame with a specific format defined by the CAN protocol that is sent from a node when an error occurs on the CAN network. When an error frame is sent to the bus, the transmission of messages on that network is interrupted.

[0057] Furthermore, if the frame interpretation unit 320 interprets the received frame as an error frame transmitted by another node, it discards the message being read.

[0058] The received ID determination unit 330 receives the value of the ID field from the frame interpretation unit 320, and determines whether or not to receive the read message according to the list of message IDs held by the received ID list holding unit 340. The received ID determination unit 330 sends the result of this determination to the frame interpretation unit 320.

[0059] The receiving ID list holding unit 340 holds a list of message IDs (also called a receiving ID list) received by the gateway 300. Fig. 4 is a diagram showing an example of the receiving ID list in the embodiment 1. The receiving ID list in Fig. 4 will be described later in detail.

[0060] The frame processing unit 350 determines the destination bus 200 based on the ID of the received message in accordance with the rules regarding data transfer stored in the transfer rule storage unit 360, and sends information indicating the destination bus 200, the message ID sent by the frame interpretation unit 320, and the data to be transferred to the frame generation unit 380.

[0061] Furthermore, frame processing unit 350 sends the message received from frame interpretation unit 320 to anomaly detection processing function group 370, and requests anomaly detection processing function group 370 to determine whether or not the message is an abnormal message. Frame processing unit 350 does not forward a message that is determined to be an abnormal message by anomaly detection processing function group 370.

[0062] The transfer rule storage unit 360 stores rules (hereinafter, also referred to as transfer rules) regarding data transfer for each bus 200. Fig. 5 is a diagram showing an example of the transfer rules in the first embodiment. The details of the transfer rules in Fig. 5 will be described later.

[0063] The abnormality detection processing function group 370 is a function group that judges whether or not a message being received is an abnormal message. The functional configuration included in the abnormality detection processing function group 370 will be described in detail later. The abnormality detection processing function group 370 sends the judgment result to the frame processing unit 350.

[0064] The frame generating section 380 generates an error frame in response to a request from the frame interpreting section 320 to transmit an error frame, and causes the frame transmitting / receiving section 310 to transmit the error frame.

[0065] Furthermore, frame generator 380 generates a message frame using the message ID and data received from frame processor 350, and sends the message frame to frame transmitter / receiver 310 together with bus information.

[0066] [1.4 Receiving ID list] As shown in FIG. 4, the reception ID list is a list of message IDs of messages that the gateway 300 receives and processes, and is held in a reception ID list holding unit 340 .

[0067] In Fig. 4, the receiving ID list stores a message ID in each row. The receiving ID list in Fig. 4 has message IDs "1", "2", "3", and "4", and the gateway 300 receives messages with these message IDs. The gateway 300 stops receiving messages with message IDs that are not included in the receiving ID list.

[0068] Note that the ID values ​​and the number of IDs included in the received ID list are merely examples for the purpose of explanation, and the configuration of the received ID list used in the gateway 300 is not limited to this.

[0069] [1.5 Transfer Rules] The transfer rules are stored in the transfer rule storage unit 360. In Fig. 5, the transfer rules store in each row a combination of the bus 200 from which a message is transferred, the bus 200 to which the message is transferred, and the message ID to be transferred.

[0070] Specifically, the first line of the transfer rule has source "bus 200a", destination "bus 200b", and ID "*", and the gateway 300 transfers messages received from bus 200a to bus 200b regardless of the ID. The second line of the transfer rule has source "bus 200b", destination "bus 200a", and ID "3", and the gateway 300 transfers messages received from bus 200b to bus 200a if the message has an ID of "3".

[0071] [1.6 Configuration of anomaly detection processing function group] Fig. 6 is a block diagram showing an example of an anomaly detection processing function group in embodiment 1. In Fig. 6, anomaly detection processing function group 370 includes a determination function selection unit 371, a control unit 372, an anomaly detection unit 373, and a detection rule storage unit 381.

[0072] Note that these configurations indicate functions, and these configurations are realized in gateway 300 by the processing unit reading and executing a program held in the memory unit, by the processing unit storing specified data in the memory unit, or by the processing unit transmitting and receiving data via the input / output unit, or by a combination of these.

[0073] The judgment function selection unit 371 selects which judgment function to execute among the judgment functions included in the anomaly detection unit 373 and sends the result to the control unit. The judgment function selection unit 371 calculates the time (detection processing time) available for the anomaly detection processing of the anomaly detection unit 373, and selects a judgment function so as to fit within the detection processing time. FIG. 7 is a diagram showing an example of the relationship between the judgment function, the processing time, and the detection performance in the first embodiment. For example, the judgment function selection unit 371 holds the processing time and the detection performance (e.g., the false detection rate and the detection rate) for each judgment function as shown in FIG. 7, and determines a combination of judgment functions that fits within the detection processing time calculated by the judgment function selection unit 371, and selects the judgment function. At this time, if there are multiple combinations of judgment functions that fit within the detection processing time calculated by the judgment function selection unit 371, the combination with the best detection performance (e.g., a combination with a low false detection rate and a high detection rate) is selected.

[0074] Control unit 372 controls abnormality detection unit 373 so as to execute the function selected by determination function selection unit 371 from among the determination functions included in abnormality detection unit 373.

[0075] The abnormality detection unit 373 includes at least seven types of determination functions. Specifically, the determination functions include a function for determining whether a DoS attack is occurring based on the amount of messages transmitted per unit time (the amount of messages is also called the amount of data), a function for checking the ID field of a message, a function for checking the data length of a message, a function for checking the cycle in which a message is transmitted (the cycle may be a time interval) for each CAN ID, a function for checking the frequency with which a message is transmitted for each CAN ID, and a function for checking the value of a data field of a message (the value of the data field is called a data value).

[0076] The above-mentioned functions are called, in order, a DoS attack determination function, an ID determination function, a data length determination function, a transmission period determination function, a transmission frequency determination function, and a data value determination function. Abnormality determinations that use reception timing based on periodicity or the number of received messages are the DoS attack determination function, the transmission period determination function, the transmission frequency determination function, and the like. Abnormality determinations that use a field with a fixed value are the ID determination function, and the like. A field with a fixed value, such as an ID field, is a specific example of a first field. In addition, abnormality determinations that use a field with a variable value are the data length determination function and the data value determination function, and the like. A field with a variable value, such as a data field, is a specific example of a second field.

[0077] Furthermore, the abnormality detection unit 373 includes a function for recognizing the vehicle state based on the determination results of these determination functions, the transmission cycle, the frequency, the data value, or the amount of change in the data value, and checking the vehicle state. This function is called a vehicle state determination function. Furthermore, the abnormality detection unit 373 includes a comprehensive determination function for comprehensively determining whether or not the message received from the frame processing unit 350 is an abnormal message from the determination results of these determination functions. The result determined by the comprehensive determination function becomes the result of the detection process by the abnormality detection unit 373.

[0078] The detection rule storage unit 381 stores the judgment criteria required to execute each judgment function. The detection rule storage unit 381 stores individual judgment criteria for each CAN ID. Furthermore, the anomaly detection unit 373 may not execute a judgment function because a detection rule is not set. The control unit 372 controls the execution of the judgment function according to the judgment criteria stored in the detection rule storage unit 381.

[0079] As described above, the judgment criteria held by the detection rule holding unit 381 exist for each CAN ID, and the judgment criteria further differ for each judgment function. Also, the judgment function for which the judgment criteria exist differs for each CAN ID. And, there may be multiple judgment criteria for each CAN ID for one judgment function. As a result, the judgment function that the judgment function selection unit 371 selects with priority differs for each CAN ID of the received message.

[0080] In addition, if there are multiple combinations of judgment functions that fit within the calculated detection processing time, the judgment function selection unit 371 selects the combination of judgment functions with the best detection performance, but this is not limited to this. For example, a combination with a low false positive rate and a high detection rate is selected, but this is not limited to this. The judgment function selection unit 371 may select a combination of judgment functions using only one of the false positive rate and the detection rate as the detection performance, or may use an evaluation index that represents the detection performance, such as detection precision, F-measure, infomedness, or markedness, or a combination of these, instead of the false positive rate or the detection rate. Therefore, the judgment function selection unit 371 can select an effective combination of judgment functions according to the target system by adopting an appropriate index for each system.

[0081] The determination function selection unit 371 obtains a combination of determination functions that fits within the calculated detection processing time, and selects an appropriate combination from the combination of the determination functions, but is not limited to this. FIG. 8 is a diagram showing an example of the relationship between the determination function and the processing time / detection performance in the first embodiment. As shown in FIG. 8, for example, when processing is performed in the order of the DoS attack determination function, the ID determination function, the data length determination function, the transmission period determination function, the data value (range) determination function, and the vehicle state determination function, a selection may be made between the range of the determination functions to be executed and the range of the determination functions not to be executed. Here, the processing order of the determination functions is an example, and is not limited to this. The order in which the determination functions are executed may be different, and other determination functions may be added to the described determination functions.

[0082] FIG. 9 is a diagram showing an example of the relationship between the judgment function and the processing time / detection performance in the first embodiment. The judgment function selection unit 371 may hold in advance the processing time and detection performance for each combination of judgment functions as shown in FIG. 9, and select one of the held combinations. This allows the anomaly detection unit 373 to process the judgment functions in an appropriate order for each system, and appropriately select the judgment function to be executed. Furthermore, by determining in advance the judgment function to be selected by the judgment function selection unit 371 at the time of design, etc., the time required for selection can be reduced.

[0083] In the above embodiment, the determination function selection unit 371 determines a combination of determination functions that fits within the calculated detection processing time, and selects the determination function. However, the present invention is not limited to this. For example, when the anomaly detection unit 373 detects some anomaly, the anomaly detection unit 373 may select the determination function in which the anomaly is detected, and may not select some or all of the determination functions that do not detect the anomaly. When the anomaly detection unit 373 does not detect an anomaly, the anomaly detection unit 373 may select the minimum necessary determination functions within the detection processing time. This allows the anomaly detection unit 373 to continue selecting the anomaly determination process by the determination function in which the anomaly is detected, and therefore allows the anomaly to be continuously detected. When the anomaly detection unit 373 does not detect an anomaly, the anomaly detection processing time can be shortened.

[0084] When the frame transmitting / receiving unit 310 receives messages from a plurality of networks connected to the gateway 300, the anomaly detection unit 373 may select a determination function so that the anomaly detection process for a message from a network transmitting a message that will affect the operation of the vehicle if an anomaly occurs is longer than that for a network transmitting a message that will not affect the operation of the vehicle if an anomaly occurs. The anomaly detection unit 373 may also determine which determination function to select for each message. This increases the likelihood that the anomaly detection unit 373 can secure sufficient detection process time for important messages, thereby making the in-vehicle network system 10 safer.

[0085] In order to calculate the detection processing time, the determination function selection unit 371 may use the time allowed from when the gateway 300 receives a message until the transfer is completed (permitted time) minus the transfer processing time required for the transfer processing, such as the determination of the destination bus 200 or the processing in which the frame transmission / reception unit 310 actually transmits the message to each bus 200, as the detection processing time. The determination function selection unit 371 may also calculate the detection processing time by excluding the transfer time from the permitted time and further excluding other necessary processing. This allows the in-vehicle network system 10 to prioritize the abnormality detection processing over other processing, and conversely, allows other processing to be prioritized over the abnormality detection processing.

[0086] It is noted that, although it has been described that the judgment function selection unit 371 calculates the detection processing time, the present invention is not limited to this, and the anomaly detection processing function group 370 may have a processing time calculation unit that calculates the detection processing time, and the judgment function selection unit 371 may acquire the processing time from the processing time calculation unit and select a judgment function, or the anomaly detection processing function group 370 may receive the detection processing time from the frame processing unit 350 and select a judgment function based on that. This makes it possible to make the calculation of the processing time more efficient when processing times are calculated for functions other than the anomaly detection processing function group 370.

[0087] [1.7 ECU Configuration] Fig. 10 is a block diagram showing an example of an ECU included in the in-vehicle network system in the embodiment 1. In Fig. 10, the ECU 100 includes a frame transmitting / receiving unit 110, a frame interpreting unit 120, a received ID determining unit 130, a received ID list holding unit 140, a frame processing unit 150, a data acquiring unit 170, and a frame generating unit 180.

[0088] Note that these configurations indicate functions, and these configurations are realized in gateway 300 by the processing unit reading and executing a program held in the memory unit, by the processing unit storing specified data in the memory unit, or by the processing unit transmitting and receiving data via the input / output unit, or by a combination of these.

[0089] The frame transmitting / receiving unit 110 transmits and receives messages to and from the bus 200 in accordance with the CAN protocol.

[0090] More specifically, the frame transmitting / receiving section 110 reads the message sent to the bus 200 one bit at a time, and transfers the read message to the frame interpreting section 120 .

[0091] Furthermore, the frame transmitting / receiving unit 110 sends the message sent from the frame generating unit 180 onto the bus 200 .

[0092] The frame interpretation unit 120 receives values ​​representing messages from the frame transmission / reception unit 110, maps them to each field in the CAN protocol, and interprets the messages. The frame interpretation unit 120 transfers the interpreted series of values, which are the ID field, to the received ID determination unit .

[0093] Frame interpretation unit 120 further determines, depending on the judgment result sent from received ID judgment unit 130, whether to transfer the value of the ID field contained in the message and the value of the data field appearing after the ID field to frame processing unit 150, or to cancel reception of the message.

[0094] Furthermore, if the frame interpretation unit 120 determines that the target message does not comply with the CAN protocol, it requests the frame generation unit 180 to transmit an error frame.

[0095] Furthermore, if frame interpretation section 120 interprets the received frame as an error frame transmitted by another node, it discards the message being read.

[0096] The received ID determination unit 130 receives the value of the ID field from the frame interpretation unit 120, and determines whether or not to receive the read message according to the list of message IDs held by the received ID list holding unit 140. The received ID determination unit 130 sends the result of this determination to the frame interpretation unit 120.

[0097] The received ID list storage unit 140 stores a received ID list received by the ECU 100. The received ID list has a format similar to that shown in Fig. 4, and therefore a description thereof will be omitted here.

[0098] Frame processing unit 150 performs processing according to the data of the received message. The content of the processing differs for each ECU 100.

[0099] For example, when the ECU 100a receives a message indicating that a door is open while the vehicle is traveling at a speed exceeding 30 km / h, it executes a process to sound an alarm. When the ECU 100c receives a message indicating that the brakes are not applied and the door is opened, it executes a process to sound an alarm.

[0100] These processes are merely examples for the purpose of explanation, and ECU 100 may execute processes other than those described above. Frame processing unit 150 causes frame generating unit 180 to generate frames to be sent in order to execute such processes.

[0101] The data acquisition unit 170 acquires output data indicating the states of devices connected to the ECU 100 or measured values ​​by sensors, and transfers the acquired output data to the frame generation unit 180 .

[0102] In response to a request from the frame interpretation section 120 to transmit an error frame, the frame generation section 180 constructs an error frame and sends it to the frame transmission / reception section 110 .

[0103] Furthermore, frame generating section 180 generates a message frame by attaching a predetermined message ID to the value of the data received from data acquiring section 170 , and sends the generated message frame to frame transmitting / receiving section 110 .

[0104] [1.8 Transfer process] 11 is a flowchart showing an example of a forwarding process in the embodiment 1. The forwarding process performed by the gateway 300 is common regardless of the direction of forwarding, so here, a case where the gateway 300 forwards a message received from the bus 200a to the bus 200b will be described as an example.

[0105] First, the frame transmitting / receiving unit 310 reads a message from the bus 200a (step S1001). The frame transmitting / receiving unit 310 sends the data of each field of the read message to the frame interpretation unit 320.

[0106] Next, the frame interpretation unit 120, in cooperation with the received ID determination unit 130, determines from the value of the ID field of the read message (message ID) whether or not the message is a target message for processing (step S1002).

[0107] If frame interpretation section 120 determines that the read message is not a message to be processed (No in step S1002), the message is not transferred.

[0108] If the frame interpretation unit 120 determines that the read message is a message to be processed (Yes in step S1002), the frame interpretation unit 120 transfers the values ​​of each field in the message to the frame processing unit 350. After that, the frame processing unit 350 determines a bus to be the transfer destination in accordance with the transfer rules held in the transfer rule holding unit 360 (step S1003).

[0109] Frame processing unit 350 sends the value of each field in the message received from frame interpretation unit 320 to anomaly detection processing function group 370, and requests a determination as to whether or not the message is anomalous. Anomaly detection processing function group 370 determines whether or not the sent message is anomalous based on the value of each field in the sent message, and sends the result of the determination to frame processing unit 350 (step S1004).

[0110] When the abnormality detection processing function group 370 determines that the message is an abnormal message (Yes in step S1005), the message is not transferred.

[0111] If the abnormality detection processing function group 370 determines that the message is a normal message and not an abnormal message (No in step S1005), the frame processing unit 350 requests the frame generation unit 380 to transfer the message to the destination bus determined in step S1003.

[0112] Upon receiving the request from frame processing unit 350, frame generating unit 380 generates a message to be received by the specified transfer destination, and causes frame transmitting / receiving unit 310 to send the message (step S1006).

[0113] In the above example, after the forwarding destination of the received message is determined (step S1003), it is judged whether the message is an abnormal message (step S1004). However, this is not limited to the above. The forwarding destination of the received message may be determined after the judgment whether the received message is an abnormal message. Furthermore, the judgment of the forwarding destination of the received message and the judgment whether the message is an abnormal message may be performed in parallel.

[0114] [1.9 Anomaly detection processing] FIG. 12 is a flowchart showing another example of the abnormality detection process according to the first embodiment.

[0115] First, anomaly detection processing function group 370 receives an anomaly detection processing request from frame processing unit 350 and calculates the time available for anomaly detection processing (step S1101). Here, the time available for anomaly detection processing is called detection processing time. The detection processing time is calculated according to the amount of messages sent to the network, the amount of data included in the messages, the number of forwarding destinations of the messages, etc.

[0116] Next, determination function selection section 371 determines whether or not the calculated detection processing time is shorter than the time necessary for the detection processing (step S1102).

[0117] If determination function selection unit 371 determines that the calculated detection processing time is shorter than the time required for the detection processing (Yes in step S1102), determination function selection unit 371 selects a determination function to execute the processing (step S1103).

[0118] Next, the determination function selection section 371 sends information about the selected determination function to the control section 372 .

[0119] Next, control unit 372 controls each determination function so as to execute only the function selected by determination function selection unit 371 in step S1103, and abnormality detection unit 373 executes an abnormality detection process (step S1104).

[0120] If the judgment function selection unit 371 determines that the detection processing time is longer than the time required for the detection processing (No in step S1102), the control unit 372 controls each judgment function of the abnormality detection unit 373 so as to execute all of the detection processing that should be executed.

[0121] When the determination function to be executed by the determination function selection unit 371 is selected individually, the process performed in the step (step S1104) of executing the abnormality detection process in Fig. 12 is the process performed in steps S1110 to S1119 in Fig. 13. Fig. 13 is a flowchart showing yet another example of the abnormality detection process in the first embodiment. Moreover, the process performed in step S1103 in Fig. 12 of selecting the determination function to be executed by the determination function selection unit 371 is the process performed in step S1105 in Fig. 13.

[0122] If the determination function selection unit 371 determines that the calculated detection processing time is shorter than the time required for the detection processing (Yes in step S1102), the determination function selection unit 371 selects a determination function that can be executed within the detection processing time (step S1105). Then, the determination function selection unit 371 sends information about the selected determination function to the control unit 372.

[0123] If determination function selection section 371 determines that the calculated detection processing time is longer than the time necessary for the detection processing (No in step S1102), step S1110 described below is performed.

[0124] The control unit 372 determines whether or not the determination function selection unit 371 has selected the DoS attack determination function (step S1110).

[0125] When the control unit 372 determines that the DoS attack determination function has been selected by the determination function selection unit 371 (Yes in step S1110), the control unit 372 executes the DoS attack determination function of the anomaly detection unit 373 (step S1111).

[0126] When the control unit 372 determines that the DoS attack determination function has not been selected (No in step S1110), the control unit 372 does not execute the DoS attack determination function of the anomaly detection unit 373.

[0127] Next, the control unit 372 determines whether or not the determination function selection unit 371 has selected the ID determination function (step S1112).

[0128] If the control unit 372 determines that the ID determination function has been selected by the determination function selection unit 371 (Yes in step S1112), the control unit 372 executes the ID determination function of the abnormality detection unit 373 (step S1113).

[0129] When the control unit 372 determines that the ID determination function has not been selected by the determination function selection unit 371 (No in step S1112), the control unit 372 does not execute the ID determination function of the abnormality detection unit 373.

[0130] Next, control unit 372 determines whether or not determination function selection unit 371 has selected the data length determination function (step S1114).

[0131] If the control unit 372 determines that the data length determination function has been selected by the determination function selection unit 371 (Yes in step S1114), the control unit 372 executes the data length determination function of the abnormality detection unit 373 (step S1115).

[0132] If control unit 372 determines that the data length determination function has not been selected by determination function selection unit 371 (No in step S1114), control unit 372 does not execute the data length determination function of abnormality detection unit 373.

[0133] The control unit 372 determines whether or not the determination function selection unit 371 has selected the transmission cycle determination function (step S1116).

[0134] If the control unit 372 determines that the transmission cycle determination function has been selected by the determination function selection unit 371 (Yes in step S1116), the control unit 372 executes the transmission cycle determination function of the abnormality detection unit 373 (step S1117).

[0135] If the control unit 372 determines that the transmission cycle determination function has not been selected by the determination function selection unit 371 (No in step S1116), the control unit 372 does not execute the transmission cycle determination function of the abnormality detection unit 373.

[0136] Control unit 372 determines whether or not judgment function selection unit 371 has selected the data value judgment function (step S1118).

[0137] If control unit 372 determines that the data value determination function has been selected by determination function selection unit 371 (Yes in step S1118), control unit 372 executes the data value determination function of abnormality detection unit 373 (step S1119).

[0138] If control unit 372 determines that the data value determination function has not been selected by determination function selection unit 371 (No in step S1118), control unit 372 does not execute the data value determination function of abnormality detection unit 373.

[0139] Here, the abnormality detection process for the five determination functions of DoS attack determination, ID determination, data length determination, transmission period determination, and data value determination has been described, but the abnormality detection process may further include abnormality detection process for transmission frequency determination and vehicle state determination. The abnormality detection process may also include some combination of the above-mentioned determination functions, or may include other determination processes not described. For example, the abnormality detection process may include a process in which the control unit 372 determines whether the determination function selection unit 371 has selected each determination function, and the control unit 372 controls the execution of the determination function according to the determination result. This allows for flexible control of the determination function to be executed.

[0140] When the determination function selection unit 371 selects a range of determination functions to be executed and a range of determination functions not to be executed, the process performed in the step (S1104) of executing the abnormality detection process in Fig. 12 becomes the process shown in Fig. 14. Also, the process performed in step S1103 in Fig. 12 where the determination function selection unit 371 selects a function becomes the process performed in step S1106 in Fig. 14.

[0141] 14 is a flowchart showing another example of the anomaly detection process in embodiment 1. When determination function selection unit 371 determines that the detection process time is shorter than the time required for the detection process (Yes in step S1102), determination function selection unit 371 determines a determination function that can be executed within the detection process time, and selects a determination function at the time of terminating the anomaly detection process (step S1106).

[0142] Then, the determination function selection unit 371 sends it to the control unit 372.

[0143] If determination function selection section 371 determines that the detection processing time is longer than the time necessary for the detection processing (No in step S1102), step S1120 described below is performed.

[0144] The control unit 372 determines whether the determination function selection unit 371 has selected to end the process before the DoS attack determination function (step S1120).

[0145] If the control unit 372 determines that the determination function selection unit 371 has selected not to terminate processing before the DoS attack determination function (No in step S1120), the control unit 372 executes the DoS attack determination function of the anomaly detection unit 373 (S1111).

[0146] When the control unit 372 determines that the determination function selection unit 371 has selected to end the process before the DoS attack determination function (Yes in step S1120), the control unit 372 ends the anomaly detection process.

[0147] Next, the control unit 372 determines whether or not the determination function selection unit 371 has selected to end the process before the ID determination function (step S1112).

[0148] If control unit 372 determines that determination function selection unit 371 has selected not to end the processing before the ID determination function (No in step S1112), control unit 372 executes the ID determination function of abnormality detection unit 373 (step S1113).

[0149] When the control unit 372 determines that the determination function selection unit 371 has selected to end the process before the ID determination function (Yes in step S1112), the control unit 372 ends the abnormality detection process.

[0150] Next, control unit 372 determines whether or not determination function selection unit 371 has selected to end the process before the data length determination function (step S1122).

[0151] If the control unit 372 determines that the judgment function selection unit 371 has selected not to end the processing before the data length judgment function (No in step S1122), the control unit 372 executes the data length judgment function of the abnormality detection unit 373 (step S1115).

[0152] If the control unit 372 determines that the selection to end the process before the data length determination function has been made (Yes in step S1122), the control unit 372 ends the abnormality detection process.

[0153] Then, the control unit 372 determines whether or not the determination function selection unit 371 has selected to end the process before the transmission cycle determination function (step S1123).

[0154] If the control unit 372 determines that the judgment function selection unit 371 has selected not to end the processing before the transmission cycle judgment function (No in step S1123), the control unit 372 executes the transmission cycle judgment function of the abnormality detection unit 373 (step S1117).

[0155] When the control unit 372 determines that the determination function selection unit 371 has selected to end the process before the transmission cycle determination function (Yes in step S1123), the control unit 372 ends the abnormality detection process.

[0156] Next, control unit 372 determines whether or not judgment function selection unit 371 has selected to end the process before the data value judgment function (step S1124).

[0157] If the control unit 372 determines that the judgment function selection unit 371 has selected not to end the processing before the data value judgment function (No in step S1124), the control unit 372 executes the data value judgment function of the abnormality detection unit 373 (step S1119).

[0158] When control unit 372 determines that determination function selection unit 371 has selected to end the process before the data value determination function (Yes in step S1124), control unit 372 ends the abnormality detection process.

[0159] Here, the abnormality detection processing for the five judgment functions of DoS attack judgment, ID judgment, data length judgment, transmission period judgment, and data value judgment has been described, but the processing described in FIG. 14 may further include abnormality detection processing for transmission frequency judgment and vehicle state judgment. In addition, the processing described in FIG. 14 may be a combination of some of the judgment functions described above, or may include other judgment functions. The processing described in FIG. 14 may include a process in which the control unit 372 judges whether the judgment function selection unit 371 has selected a range of judgment functions to be executed and a range of judgment functions not to be executed, and the control unit 372 controls the execution of the judgment functions according to the judgment result. This makes it unnecessary to check one by one whether each judgment function has been selected, and it is possible to reduce the processing time.

[0160] In addition, when the judgment function selection unit 371 selects only whether or not to execute the transmission period judgment function and the data value judgment function, the step of executing the abnormality detection process shown in FIG. 12 (step S1104) becomes the process shown in FIG.

[0161] Fig. 15 is a flowchart showing yet another example of the abnormality detection process in embodiment 1. Moreover, the process performed in step S1103 in which determination function selection unit 371 shown in Fig. 12 selects a determination function becomes the process performed in step S1107 shown in Fig. 15.

[0162] The determination function selection unit 371 determines whether or not the detection processing time calculated in step S1101 is longer than the time required for the abnormality detection processing by the transmission cycle determination function and the data value determination function (step S1102).

[0163] If determination function selection section 371 determines that the detection processing time is shorter than the required time (Yes in step S1102), determination function selection section 371 does not select the transmission cycle determination function and the data value determination function (step S1107).

[0164] When determination function selection section 371 determines that the detection processing time is longer than the required time (No in step S1102), step S1111 described next is performed.

[0165] The control unit 372 executes the process of the DoS attack determination function (step S1111).

[0166] Then, the control unit 372 executes the process of the ID determination function (step S1113).

[0167] Next, the control unit 372 executes the process of the data length determination function (step S1115).

[0168] Thereafter, control unit 372 determines whether or not determination function selection unit 371 has selected the transmission cycle determination function and the data value determination function (step S1130).

[0169] If control unit 372 determines that the transmission cycle determination function and the data value determination function have been selected by determination function selection unit 371 (Yes in step S1130), control unit 372 executes the transmission cycle determination function of abnormality detection unit 373 (step S1117).

[0170] Next, the control unit 372 executes a data value determination function (step S1119).

[0171] If the control unit 372 determines that the transmission period determination function and the data value determination function have not been selected by the determination function selection unit 371 (No in step S1130), the control unit 372 does not execute the transmission period determination function and the data value determination function of the abnormality detection unit 373.

[0172] Here, the abnormality detection processing for the five judgment functions of DoS attack judgment, ID judgment, data length judgment, transmission cycle judgment, and data value judgment has been described, but the processing described in FIG. 15 may further include abnormality detection processing for transmission frequency judgment and vehicle state judgment. The processing described in FIG. 15 may be a combination of some of the judgment processing described above, or may include other judgment functions. The processing described in FIG. 15 does not only select whether or not to execute the transmission cycle judgment function and the data value judgment function, but may also be processing in which the control unit 372 judges whether or not the judgment function selection unit 371 has selected a combination of some of the judgment functions, and the control unit 372 controls the execution of the judgment functions according to the judgment result. This allows the combination of processing to be performed to be determined in advance at the time of design, etc., and allows the selection of judgment functions to be confirmed in a lump, thereby shortening the processing time.

[0173] FIG. 16 is a flowchart showing another example of the abnormality detection process according to the first embodiment.

[0174] In addition, if the judgment function selection unit 371 not only selects whether or not to execute the transmission period judgment function and the data value judgment function, but also selects not to execute all judgment functions, the processing performed in step S1108 and step S1109 shown in FIG. 16 are added between the processing performed in step S1107 and the processing performed in step S1131 shown in FIG. 15.

[0175] Next, the determination function selection unit 371 determines whether or not the detection processing time calculated in step S1101 is longer than the time required for anomaly detection processing by the DoS attack determination function, the ID determination function, and the data length determination function (step S1108).

[0176] If determination function selection section 371 determines that the detection processing time is shorter than the above-mentioned necessary time, determination function selection section 371 does not select any determination functions (step S1109).

[0177] Next, the control unit 372 judges whether or not the judgment function selection unit 371 has selected all the judgment functions (step S1131). That is, the control unit 372 judges whether or not the judgment function selection unit 371 has not selected the DoS attack judgment function, the ID judgment function, or the data length judgment function.

[0178] If the control unit 372 determines that the DoS attack determination function, the ID determination function, and the data length determination function have been selected by the determination function selection unit 371 (Yes in step S1131), the control unit 372 executes the DoS attack determination function of the anomaly detection unit 373 (step S1111).

[0179] After that, the control unit 372 executes the ID determination function of the abnormality detection unit 373 (step S1113).

[0180] Then, the control unit 372 executes the data length determination function of the abnormality detection unit 373 (step S1115).

[0181] The subsequent processing relating to the transmission cycle determination function and the data value determination function is similar to the processing described with reference to FIG. 15, and therefore the description thereof will be omitted.

[0182] If the control unit 372 determines that the DoS attack determination function, the ID determination function, and the data length determination function have not been selected by the determination function selection unit 371 (No in step S1131), the control unit 372 does not execute each of the determination functions of the anomaly detection unit 373.

[0183] Here, the abnormality detection processing for the five judgment functions of DoS attack judgment, ID judgment, data length judgment, transmission cycle judgment, and data value judgment has been described as the processing described in FIG. 16, but the processing described in FIG. 16 may further include abnormality detection processing for transmission frequency judgment and vehicle state judgment. In addition, the processing described in FIG. 16 may be a combination of some of the above judgment processing, or may include other judgment functions. The processing described in FIG. 16 has been described as being divided into a processing for judging whether or not the DoS attack judgment function, the ID judgment function, and the data length judgment function have been selected, and a processing for selecting only whether or not to execute the transmission cycle judgment function and the data value judgment function, but is not limited thereto. The processing described in FIG. 16 may be a processing in which the control unit 372 judges that the judgment function selection unit 371 has selected all judgment functions, and the control unit 372 controls the execution of the judgment functions according to the judgment result. As a result, the abnormality judgment method in this embodiment can perform abnormality judgment even when there is no time to perform abnormality detection processing.

[0184] The abnormality detection process by the determination function selection section 371 and the control section 372 is not limited to the above, and may be a combination of the above.

[0185] Note that, when the determination function selection unit 371 determines that the detection processing time is shorter than the time required for the detection processing (step S1102), it selects a determination function to be executed for performing processing, but this is not limited to the above. When the determination function selection unit 371 selects a determination function to be executed for performing processing without performing the determination processing of step S1102, it may select all determination functions if the detection processing time is longer than the time required for the detection processing. This can simplify the processing by the determination function selection unit 371.

[0186] When the control unit 372 executes each determination function, the control unit 372 refers to the detection rule set for each CAN ID. Then, the control unit 372 performs control so as to execute the determination function selected by the determination function selection unit 371 and described in the detection rule. In other words, a determination function that is not described in the detection rule is not executed even if it is selected by the determination function selection unit 371. Also, when it is determined that the detection processing time calculated in step S1102 is longer than the time required for the detection processing, the control unit 372 regards all the determination functions as having been selected by the determination function selection unit 371, and executes the functions described in the detection rule.

[0187] [1.10 Reset process] In the abnormality detection process, depending on the type of the judgment function that was not selected when the judgment function selection unit 371 selected the function to be executed, the next time any of the judgment functions is executed, a judgment result different from normal may be obtained. For example, the transmission cycle judgment function is premised on the in-vehicle network system 10 receiving messages periodically, records the reception time at the previous reception (referred to as the previous reception time), and judges whether the message received this time is an abnormal message or not based on the difference between the previous reception time and the current reception time.

[0188] At this time, if the transmission cycle judgment function is not selected by the judgment function selection unit 371 even though the message arrived normally, the previous reception time cannot be recorded, so the reception time two times before and the current reception time are compared, which may result in an incorrect judgment. In particular, if the transmission cycle judgment function is not selected consecutively, the period during which the reception time cannot be recorded becomes long, increasing the possibility that a correct judgment cannot be made. The same concern also applies to the case where the data value judgment function judges whether a message is normal or abnormal from the amount of change between the previous data value and the current data value.

[0189] Therefore, when a certain judgment function is not selected by the judgment function selection unit 371 and the process is skipped, it is necessary to perform a reset process on the judgment function before the next execution of the judgment function to prevent an unexpected judgment result. In particular, for a function that makes a judgment by comparing a previous value with a current value, such as a transmission cycle judgment function or a data value judgment function that judges the amount of change in data, or a function that performs a cumulative calculation, such as a transmission frequency judgment function, when the function is not selected by the judgment function selection unit 371 and the process is skipped, it is necessary to perform a reset process in advance to clear the previous value or the cumulative value.

[0190] Fig. 17 is a flowchart showing an example of an abnormality detection process including a reset process in the first embodiment. Fig. 18 is a flowchart showing another example of an abnormality detection process including a reset process in the first embodiment, and Fig. 19 is a flowchart showing yet another example of an abnormality detection process including a reset process in the first embodiment. This flowchart adds a reset process to the abnormality detection process in which the determination function selection unit 371 shown in Fig. 15 selects only whether or not to execute the transmission period determination function and the data value determination function. Therefore, a description of the same processes as in Fig. 15 other than the reset process will be omitted.

[0191] First, determination function selection section 371 checks a flag indicating that the processes of the transmission cycle determination function and the data value determination function have been skipped, thereby determining whether or not the previous process has been skipped (step S1140).

[0192] If determination function selection section 371 determines that the previous process was skipped (Yes in step S1140), determination function selection section 371 requests control section 372 to execute reset processing for the transmission cycle determination function and the data value determination function.

[0193] Then, upon receiving the request from the determination function selection section 371, the control section 372 executes a reset process for the transmission cycle determination function (step S1141).

[0194] Next, the control unit 372 executes a reset process for the data value determination function (step S1142).

[0195] After steps S1101 and S1102, the determination function selection unit 371 performs a process of not selecting the transmission period determination function and the data value determination function in step S1107, and then sets a flag indicating that the processes for the transmission period determination function and the data value determination function have been skipped (step S1143). Here, the flag indicating that the processes for the transmission period determination function and the data value determination function have been skipped is set for each CAN ID.

[0196] As the reset process, for example, the value when the judgment function is executed for the first time after clearing the stored previous value may be stored as the previous value, or the message that the judgment function that does not have a previous value judges to be a normal message for the first time after clearing the stored previous value may be stored as the previous value. Here, if the previous value is stored for each CAN ID, the time when a message with the same CAN ID as when the previous value was cleared is first received is stored as the previous value when the judgment function is executed for the first time, or when the judgment function that does not have a previous value judges a received message to be a normal message for the same CAN ID as when the previous value was cleared. Also, it may be determined whether to store the previous value based on a message with a different CAN ID rather than a message with the same CAN ID.

[0197] For example, a message with a correct message authentication code (MAC) may be used as a criterion to determine whether to store the previous value, or a message with a different CAN ID that has a similar or similar transmission period may be used as a criterion to determine whether to store the previous value.

[0198] FIG. 20 is a diagram showing an example of a reset process in a modified example. FIG. 20 shows an example of a message having another CAN ID with the same transmission period. For example, in the abnormality determination method according to the present disclosure, when the load factor falls below the threshold immediately before time T2, when messages of ID1, ID2, and ID3 are received at approximately the same timing, the reception times of the messages of ID1, ID2, and ID3 are stored as the previous values. In addition, in the abnormality determination method according to the present disclosure, the stored cumulative value may be initialized, or the held vehicle state may be initialized. This allows the determination by the determination function after the reset process to be performed more accurately.

[0199] In the abnormality determination method according to the present disclosure, the reset process is performed on the transmission cycle determination function and the data value determination function, but this is not limited to this, and the reset process may be performed on other determination functions having previous values, or the reset process may be performed on the transmission frequency determination function or the vehicle state determination function storing the cumulative value or the vehicle state. Also, the reset process does not need to be performed at the timing shown in Fig. 17, and may be performed at the timing shown in Fig. 18 or 19, for example.

[0200] 17 to 19 are obtained by adding a reset process to the flowchart shown in FIG. 15, but the present invention is not limited to this, and a reset process may be added to other flowcharts of anomaly detection processes (for example, the flowcharts shown in FIG. 12 to 14, FIG. 16, FIG. 21 and subsequent figures). Also, the timing at which the reset process is executed may be changed for each CAN ID. In this way, in the anomaly determination method according to the embodiment of the present disclosure, it is possible to execute the reset process at an appropriate timing according to the stored information.

[0201] In addition, when the determination function selection unit 371 does not select the transmission cycle determination function and the data value determination function, a flag indicating that the process has been skipped is set, but this is not limited to the above. For example, the determination function selection unit 371 may also refer to the detection rules set for each CAN ID, and when a determination function not selected by the determination function selection unit 371 is not executed as a detection rule, the flag indicating that the process has been skipped may not be set, and even if the flag indicating that the process has been skipped is set, the reset process may not be executed at the time of the reset process. This reduces unnecessary reset processes, shortens the processing time, or prevents a decrease in detection performance due to the reset process.

[0202] [1.11 Effects] In this embodiment, the anomaly detection processing function group 370 selects a judgment function to be executed according to the time available for anomaly detection processing (detection processing time), so that even if the detection processing time is short, a combination of judgment functions that can exhibit a large anomaly detection effect according to the detection processing time can be selected. Also, by performing a reset process on some or all of the judgment functions, it is possible to mitigate the adverse effects caused by not executing the judgment function, and therefore the anomaly detection performance can be further improved.

[0203] (Embodiment 2) [2. Overview] In the first embodiment, in the anomaly detection processing function group 370, the determination function selection unit 371 selects a determination function to perform processing, and the control unit 372 controls the execution of each determination function according to the selection result of the determination function selection unit 371. In the present embodiment, a case in which the control unit 372 determines which determination function to execute according to the detection processing time in an in-vehicle network system will be described with reference to the drawings.

[0204] [2.1 Configuration of anomaly detection processing functions] Fig. 21 is a block diagram showing an example of an abnormality detection processing function group in embodiment 2. In Fig. 21, abnormality detection processing function group 370 includes a control unit 374 and an abnormality detection unit 373. Note that a description of the same components as in embodiment 1 will be omitted.

[0205] Note that these configurations indicate functions, and are realized by a processing unit reading and executing a program held in a memory unit in the gateway 300, storing specified data in the memory unit, or transmitting and receiving data via an input / output unit, or by a combination of these processes.

[0206] The control unit 374 determines which of the determination functions included in the abnormality detection unit 373 can be executed within the detection processing time, and controls the execution of the determination functions. The control unit 374 calculates the time (detection processing time) available for the abnormality detection processing of the abnormality detection unit 373, and controls the execution of the determination functions so as to fit within the detection processing time.

[0207] For example, like the judgment function selection unit 371 in the first embodiment, the control unit 374 holds data on the processing time and detection performance (e.g., false positive rate and detection rate) for each judgment function as shown in Fig. 7, finds a combination of judgment functions that fits within the calculated detection processing time, and performs control to execute only those judgment functions. At this time, if there are multiple combinations of judgment functions that fit within the calculated detection processing time, the combination of judgment functions with the best detection performance (e.g., a combination with a low false positive rate and a high detection rate) is executed.

[0208] Note that, although the control unit 374 calculates the detection processing time, this is not limiting. The anomaly detection processing function group 370 has a processing time calculation unit that calculates the detection processing time, and the control unit 374 may acquire the processing time from the processing time calculation unit and select a judgment function, or the anomaly detection processing function group 370 may acquire information related to the detection processing time from the frame processing unit 350 and select a judgment function to be executed based on the information. In this way, the control unit 374 only needs to manage the processing time related to the anomaly detection processing, so that the anomaly detection processing can be loosely coupled with other functions, and the influence of other functions on the anomaly detection processing can be suppressed.

[0209] [2.2 Anomaly detection processing] FIG. 22 is a flowchart showing an example of the abnormality detection process according to the second embodiment.

[0210] First, abnormality detection processing function group 370 receives a request for abnormality detection processing from frame processing unit 350 and calculates the time available for abnormality detection processing (detection processing time) (step S1101).

[0211] Next, control unit 374 determines whether or not the detection processing time calculated in step S1101 is longer than the time required for the detection processing to be executed (step S1200).

[0212] If control unit 374 determines in step S1200 that the detection processing time is longer than the time required for the detection processing to be executed (Yes in step S1200), control unit 374 executes an abnormality detection processing (step S1104).

[0213] When the determination functions executed by the control unit 374 are individually controlled, the step (step S1104) of executing the abnormality detection process shown in Fig. 22 becomes the process shown in Fig. 23. Fig. 23 is a flowchart showing another example of the abnormality detection process in the second embodiment, and Fig. 24 is a flowchart showing yet another example of the abnormality detection process in the second embodiment.

[0214] After calculating the detection processing time in step S1101, the control unit 374 determines whether there is time to execute the DoS attack determination function (step S1210).

[0215] When the control unit 374 determines that there is time to execute the DoS attack determination function (Yes in step S1210), the control unit 374 executes the DoS attack determination function of the anomaly detection unit 373 (S1111).

[0216] When the control unit 374 determines that there is no time to execute the DoS attack determination function (No in step S1210), the control unit 374 does not execute the DoS attack determination function of the anomaly detection unit 373.

[0217] Next, the control unit 374 determines whether there is time to execute the ID determination function within the remaining detection processing time after the DoS attack determination function is executed (step S1211).

[0218] When the control unit 374 determines that there is time to execute the ID determination function (Yes in step S1211), the control unit 374 executes the ID determination function of the abnormality detection unit 373 (S1113).

[0219] When the control unit 374 determines that there is no time to execute the ID determination function (No in step S1211), the control unit 374 does not execute the ID determination function of the abnormality detection unit 373.

[0220] Next, the control unit 374 determines whether there is time to execute the data length determination function within the remaining detection processing time after executing the ID determination function (step S1212).

[0221] When the control unit 374 determines that there is time to execute the data length determination function (Yes in step S1212), the control unit 374 executes the data length determination function of the abnormality detection unit 373 (S1115).

[0222] When the control unit 374 determines that there is no time to execute the data length determination function (No in step S1212), the control unit 374 does not execute the data length determination function of the abnormality detection unit 373.

[0223] Then, the control unit 374 determines whether there is time to execute the transmission cycle determination function with respect to the remaining detection processing time after executing the data length determination function (step S1213).

[0224] When the control unit 374 determines that there is time to execute the transmission cycle determination function (Yes in step S1213), the control unit 374 executes the transmission cycle determination function of the abnormality detection unit 373 (S1117).

[0225] When the control unit 374 determines that there is no time to execute the transmission cycle determination function (No in step S1213), the control unit 374 does not execute the transmission cycle determination function of the abnormality detection unit 373.

[0226] Next, the control unit 374 determines whether there is time to execute the data value determination function within the remaining detection processing time after executing the transmission cycle determination function (step S1214).

[0227] When the control unit 374 determines that there is time to execute the data value determination function (Yes in step S1214), the control unit 374 executes the data value determination function of the abnormality detection unit 373 (S1119).

[0228] If control unit 374 determines that there is no time to execute the data value determination function (No in step S1214), control unit 374 does not execute the data value determination function of anomaly detection unit 373. This allows the anomaly determination method according to the present disclosure to flexibly control the selection of the determination function to be executed.

[0229] When the control unit 374 determines the range of the determination function to be executed, the process of the flowchart shown in Fig. 14 in the first embodiment becomes the process of the flowchart shown in Fig. 24. This eliminates the need to check one by one whether each determination function is selected or not, and can reduce the processing time required for checking.

[0230] Moreover, in the case where the control unit 374 only determines whether or not to execute the transmission cycle determination function and the data value determination function, the process of the flowchart shown in Fig. 15 in the first embodiment becomes the process of the flowchart shown in Fig. 25. Fig. 25 is a flowchart showing another example of the abnormality detection process in the second embodiment.

[0231] First, abnormality detection processing function group 370 receives a request for abnormality detection processing from frame processing section 350 and calculates the time available for the abnormality detection processing (step S1101).

[0232] Next, the control unit 374 executes the DoS attack determination function of the anomaly detection unit 373 (step S1111).

[0233] Next, the control unit 374 executes the ID determination function of the abnormality detection unit 373 (step S1113).

[0234] Then, the control unit 374 executes the data length determination function of the abnormality detection unit 373 (step S1115).

[0235] Next, control unit 374 determines whether the detection processing time is longer than the time required for the processing to be executed (step S1230).

[0236] Next, if the control unit 374 determines that the detection processing time is longer than the time required for the processing to be executed (Yes in step S1230), the control unit 374 executes the transmission cycle determination function of the abnormality detection unit 373 (step S1117).

[0237] If control unit 374 determines that the detection processing time is longer than the time required for the processing to be executed (Yes in step S1230), control unit 374 executes the data value determination function of abnormality detection unit 373 (step S1119).

[0238] If control unit 374 determines that the detection processing time is shorter than the time required for the processing to be executed (No in step S1230), control unit 374 ends the operation.

[0239] As a result, when a combination of processes to be performed can be determined in advance at the time of design, etc., it is possible to check whether or not the judgment functions are selected at once, thereby shortening the processing time. Also, when the control unit 374 not only judges whether or not to execute the transmission cycle judgment function and the data value judgment function, but also judges that all judgment functions are not to be executed, the processing of the flowchart shown in FIG. 16 in the first embodiment becomes the processing of the flowchart shown in FIG. 26. FIG. 26 is a flowchart showing yet another example of the abnormality detection processing in the second embodiment. As a result, the abnormality judgment method according to the present disclosure can also handle cases where there is no time to perform the abnormality detection processing.

[0240] First, abnormality detection processing function group 370 receives a request for abnormality detection processing from frame processing section 350 and calculates the time available for the abnormality detection processing (step S1101).

[0241] Next, the control unit 374 determines whether the detection processing time is longer than the time required for the minimum processing performed by the control unit 374 (step S1231).

[0242] Next, if the control unit 374 determines that the detection processing time is longer than the time required for the minimum processing performed by the control unit 374 (Yes in step S1231), the control unit 374 executes the DoS attack determination function of the anomaly detection unit 373 (step S1111).

[0243] Next, if the control unit 374 determines that the detection processing time is longer than the time required for the minimum processing performed by the control unit 374 (Yes in step S1231), the control unit 374 executes the ID determination function of the abnormality detection unit 373 (step S1113).

[0244] If the control unit 374 determines that the detection processing time is longer than the time required for the minimum processing performed by the control unit 374 (Yes in step S1231), the control unit 374 executes the data length determination function of the abnormality detection unit 373 (step S1115).

[0245] Next, control unit 374 determines whether the detection processing time is longer than the time required for the processing to be executed (step S1230).

[0246] Next, if the control unit 374 determines that the detection processing time is longer than the time required for the processing to be executed (Yes in step S1230), the control unit 374 executes the transmission cycle determination function of the abnormality detection unit 373 (step S1117).

[0247] If control unit 374 determines that the detection processing time is longer than the time required for the processing to be executed (Yes in step S1230), control unit 374 executes the data value determination function of abnormality detection unit 373 (step S1119).

[0248] When control unit 374 determines that the detection processing time is shorter than the time required for the minimum processing performed by control unit 374 (No in step S1231), control unit 374 ends the operation.

[0249] Moreover, if control unit 374 determines that the detection processing time is shorter than the time required for the processing to be executed (No in step S1230), control unit 374 ends the operation.

[0250] Although the abnormality detection processes related to the five determination functions of DoS attack determination, ID determination, data length determination, transmission period determination, and data value determination have been described, the abnormality determination method according to the present disclosure may further include abnormality detection processes related to transmission frequency determination and vehicle state determination. Also, the abnormality determination method according to the present disclosure may include some combination of the above processes, or may include other determination functions.

[0251] The abnormality detection process performed by the control unit 374 is not limited to the above, and may be a combination of the above.

[0252] In addition, the processing relating to the DoS attack determination function, ID determination function, data length determination function, transmission period determination function, and data value determination function shown in Figures 13 to 19 and Figures 23 to 26 may be performed in a different order for each message ID.

[0253] [2.3 Reset process] In the abnormality detection process, when the control unit 374 judges whether or not to execute each judgment function, depending on the judgment function that was not executed, a judgment result different from normal may be obtained the next time the judgment function is executed. Therefore, as in the first embodiment, a reset process needs to be performed for the judgment function that the control unit 374 judges not to execute.

[0254] In the first embodiment, when the determination function selection unit 371 executes the process of selecting a determination function, a flag indicating that the process has been skipped is set. In the second embodiment, when the control unit 374 determines not to execute each determination function, a flag indicating that the process has been skipped must be set. The determination of whether or not to execute the reset process, which is made by the control unit 374 in accordance with the flag indicating that the process has been skipped, is similar to the process shown in Figs. 17 to 19 in the first embodiment, and therefore will not be described.

[0255] [2.4 Effects] In this embodiment, the anomaly detection processing function group 370 determines whether or not to execute each judgment function immediately before executing that judgment function, so that the execution time of each judgment function can be accurately reflected in the decision as to whether or not to execute that judgment function, and it is possible to execute a combination of judgment functions that can provide a significant anomaly detection effect.

[0256] (Embodiment 3) [3. Overview] In the first embodiment, in the anomaly detection processing function group 370, the determination function selection unit 371 selects a determination function to perform processing, and the control unit 372 controls the execution of each determination function according to the selection result of the determination function selection unit 371. In the present embodiment, in the in-vehicle network system, when a determination function is not executed, a message at that time is stored, and when there is sufficient time for the detection processing, anomaly detection processing for that message is executed later will be described with reference to the drawings.

[0257] [3.1 Configuration of anomaly detection processing functions] FIG. 27 is a block diagram showing an example of an anomaly detection processing function group in the third embodiment. In FIG. 27, an anomaly detection processing function group 370 includes a determination function selection unit 371, an anomaly detection unit 373, a non-selection information storage unit 375, and a control unit 376. Alternatively, as shown in FIG. 28, the anomaly detection processing function group 370 may not include the determination function selection unit 371 as in the second embodiment, but may include an anomaly detection unit 373, a non-selection information storage unit 375, and a control unit 377. FIG. 28 is a block diagram showing another example of an anomaly detection processing function group in the third embodiment. Note that a description of the same components as those in the first embodiment will be omitted.

[0258] Note that these configurations indicate functions, and are realized by having the processing unit read and execute a program stored in the memory unit in the gateway 300, storing specified data in the memory unit, or transmitting and receiving data via the input / output unit, or by executing a combination of these.

[0259] The non-selection information holding unit 375 transmits and holds information of the received message when some of the determination functions of the abnormality detection unit 373 are not executed. In addition, the non-selection information holding unit 375 transmits the held message to the control unit 376 in response to a request from the control unit 376.

[0260] Control unit 376, in addition to the functions of control unit 372 in embodiment 1, has a judgment function that was not selected in past processing, and when it is determined that a message is stored in non-selection information storage unit 375 and there is time to execute anomaly detection processing for the message, it obtains the message from non-selection information storage unit 375 and executes anomaly detection processing for the message.

[0261] Control unit 377 has the same functions as control unit 376, except that control unit 377 has the functions of control unit 374 in the second embodiment instead of the functions of control unit 372 in the first embodiment.

[0262] In addition, when some of the determination functions of the anomaly detection unit 373 are not executed, the non-selection information holding unit 375 may not only hold the received message but also hold information on the determination functions that were not executed, for example, as shown in Fig. 28, so that when the control unit 376 or the control unit 377 executes the anomaly detection process, the control unit 376 or the control unit 377 may execute the anomaly detection process related only to the determination functions that were not executed. Fig. 29 is a diagram showing an example of the non-selection information in the third embodiment. As a result, in the anomaly determination method according to the present disclosure, it is possible to execute only the necessary determination functions, thereby shortening the processing time.

[0263] [3.2 Anomaly detection processing] Fig. 30 is a flowchart showing an example of an abnormality detection process in the third embodiment, and Fig. 31 is a flowchart showing another example of the abnormality detection process in the third embodiment. In the abnormality detection process in the first embodiment shown in Fig. 12, if a certain determination function is not executed, the message received at that time is saved (step S1300). Then, if there is sufficient time for the detection process, the abnormality detection process for the message is executed later (step S1302). Here, a description of the same process as that shown in Fig. 12 will be omitted.

[0264] After selecting a determination function that performs processing and whose detection processing time is shorter than the time required for the determination processing that should be performed (after step S1103), the determination function selection unit 371 requests the non-selected information storage unit 375 to store information related to the message. In response to the request from the determination function selection unit 371, the non-selected information storage unit 375 stores information related to the message (step S1300).

[0265] Thereafter, the control unit 376 executes an abnormality detection process, inquires of the non-selection information storage unit 375 as to whether or not there is non-selection information, and determines whether or not there is non-selection information (step S1301).

[0266] When the control unit 376 determines that there is non-selected information (Yes in step S1301), the control unit 376 executes a non-selected information follow-up process (step S1302). The non-selected information follow-up process will be described later.

[0267] If control unit 376 determines that there is no non-selected information (No in step S1301), control unit 376 ends the abnormality detection process.

[0268] Note that when a message having the same CAN ID as the CAN ID of a message (received message) for which anomaly detection processing requested by frame processing unit 350 is performed is stored in non-selection information storage unit 375, if there is processing using the previous value in some of the determination functions, there is a possibility that the anomaly detection processing will not be performed correctly. Therefore, when a message having the same CAN ID as the CAN ID of the received message is stored in non-selection information storage unit 375, determination function selection unit 371 may not select a determination function having processing using the previous value, and may perform anomaly detection processing by all of the determination functions after the non-selection information follow-up processing for the message having the same CAN ID as the CAN ID of the received message is completed.

[0269] The above process is shown in FIG.

[0270] If the judgment function selection unit 371 determines that the detection processing time is longer than the time required for the detection processing (No in step S1102), the judgment function selection unit 371 determines whether a message having the same CAN ID as the CAN ID of the received message is held in the non-selected information holding unit 375 (step S1310).

[0271] If the judgment function selection unit 371 determines that a message having the same CAN ID as the CAN ID of the received message is stored in the non-selection information storage unit 375 (Yes in step S1310), the judgment function selection unit 371 selects only the judgment functions for which the previous value is not required (step S1311).

[0272] Then, determination function selection section 371 stores non-selection information because some determination functions will be skipped (step S1300).

[0273] When the determination function selection unit 371 determines that a message having the same CAN ID as the CAN ID of the received message is not stored in the non-selection information storage unit 375 (No in step S1310), the control unit 376 executes anomaly detection processing (step S1104). As a result, when the non-selection information follow-up processing is completed, the state of each determination function becomes the same as when the determination function selection processing is not performed, and therefore there is no need to perform a reset processing.

[0274] [3.3 Non-selection information follow-up processing] Fig. 32 is a flowchart showing an example of the non-selected information following process in embodiment 3. In Fig. 32, the above-mentioned non-selected information following process will be described.

[0275] First, the control unit 376 calculates the time (detection processing time) available for the abnormality detection processing for the message included in the non-selection information (step S1320).

[0276] Next, the control unit 376 acquires one piece of non-selection information from the non-selection information storage unit 375 (step S1321).

[0277] Next, the control unit 376 calculates the time required for the abnormality detection process of the message included in the obtained non-selection information, and determines whether or not the calculated time is shorter than the detection process time (step S1322).

[0278] If the control unit 376 determines that the time required for the anomaly detection process of the message included in the acquired non-selected information is shorter than the detection process time and there is sufficient time (Yes in step S1322), the control unit 376 executes the anomaly detection process on the message included in the non-selected information (step S1323).

[0279] Then, return to step S1320.

[0280] If control unit 376 determines that the time required for anomaly detection processing of a message included in the acquired non-selected information is longer than the detection processing time and that there is not enough time (No in step S1322), control unit 376 returns the non-selected information to non-selected information storage unit 375 (step S1324).

[0281] Here, the control unit 376 ends the non-selected information following process.

[0282] When performing anomaly detection processing on a message included in the non-selection information in step S1323, the control unit 376 may execute only the determination functions that were not selected in the previously performed anomaly detection processing. At this time, in determining whether there is sufficient time in step S1322, it is determined whether there is sufficient time to process the determination functions that were not selected in the previously performed anomaly detection processing. In this way, in the anomaly detection method according to the present disclosure, only the necessary determination functions can be executed, and therefore the processing time can be shortened.

[0283] [3.4 Effects] In this embodiment, when the determination function is not executed, the anomaly detection processing function group 370 stores the message received at that time, and executes the anomaly detection process for the message later if there is sufficient time for the detection process. As a result, the anomaly detection processing function group 370 can perform a determination that can achieve the maximum anomaly detection effect while satisfying the time constraint when the message is received, and can also execute the anomaly detection process by the determination function as originally scheduled, although the timing is delayed. As a result, in the anomaly determination method and the like according to the present disclosure, the processing time constraint is satisfied without deteriorating the anomaly detection performance.

[0284] [4. Other Modifications] The present disclosure is not limited to the above-described embodiments. Furthermore, as long as it does not deviate from the spirit of the present disclosure, various modifications conceived by a person skilled in the art to the embodiments and forms formed by combining components in different embodiments are also included in the scope of the present disclosure. For example, the following modifications are also included in the present disclosure.

[0285] (1) In the above embodiment, the anomaly detection processing function group 370 calculates the time available for the anomaly detection processing (detection processing time) and determines whether or not to select a judgment function to be executed in the anomaly detection processing or the judgment function to be selected depending on whether or not the detection processing time is longer than the time required for the detection processing that should be executed, but the present disclosure is not limited to this. For example, whether or not to select a judgment function to be executed in the anomaly detection processing or the judgment function to be selected may be determined based on the load rate, data amount, message amount, etc. of the in-vehicle network system 10. Here, the load rate is the ratio of the amount of data or message amount transmitted per unit time to the maximum amount of data or message amount that can be transmitted to the in-vehicle network.

[0286] Fig. 33 is a table showing the judgment functions and the selection conditions for the judgment functions in the modified example. Fig. 34 is a flowchart showing an example of an abnormality detection process in the modified example. For example, Fig. 34 shows an example of a judgment function selected according to a load factor. The judgment function selection unit 371 may determine the judgment function to be selected based on the information described in Fig. 33 instead of the information of the first embodiment described in Fig. 7.

[0287] For example, if a load rate of 60% or more is defined as high load, in the abnormality detection process shown in FIG. 34, the judgment function selection unit 371 judges that a load rate calculated in step S1400 is “high load” when it is 60% or more (step S1401).

[0288] Next, determination function selection section 371 selects a determination function to perform processing based on the information shown in FIG. 33 (step S1402).

[0289] Next, the control unit 374 executes an abnormality detection process (step S1104).

[0290] Moreover, if determination function selection section 371 does not determine that it is "high load" (No in step S1401), control section 374 executes an abnormality detection process (step S1104).

[0291] Fig. 35 is a flow chart showing another example of anomaly detection processing in the modified example. The processing is the same as that in Fig. 34 except that the load rate shown in Fig. 34 is used as the message amount. In addition, although not shown, the same applies to the case where the determination function selection unit 371 determines the determination function to be selected according to the data amount.

[0292] Note that instead of selecting a judgment function only when the load is high, the state determined by the load rate may be defined as three stages, "high load", "medium load", and "low load", and the judgment function to be selected by the judgment function selection unit 371 may be determined depending on which stage it is, or the respective stages may be combined and the judgment function to be selected by the judgment function selection unit 371 may be determined based on conditions such as "high load", "high load" + "medium load", and "full load". Also, the state determined by the load rate may be defined as two stages or four or more stages instead of three stages.

[0293] Note that an index other than the load rate, the data amount, or the message amount may be used, or the load rate, the data amount, or the message amount may be calculated from the entire in-vehicle network. Also, for example, in the case of the gateway 300, a value related to an index such as the load rate, the data amount, or the message amount may be calculated for a message forwarded by the gateway 300, or a value related to an index such as the load rate, the data amount, or the message amount may be calculated for a message input to the gateway 300.

[0294] The anomaly detection processing function group 370 may receive the load rate, data amount, or message amount from the frame processing unit 350, and may select a judgment function and control the execution of the judgment function based on the load rate, data amount, or message amount. Also, the load rate, data amount, or message amount may be received when there is a change in the stage, rather than each time a message is received. In this case, when the anomaly detection processing function group 370 does not receive the load rate, data amount, or message amount from the frame processing unit 350, it determines that the value is the same as the previous time.

[0295] In addition, the judgment function selection unit 371 may select a judgment function based on the state of the vehicle, such as whether the vehicle is stopped, traveling, traveling at high speed, traveling at a constant speed, in autonomous driving, whether autonomous driving has started, whether autonomous driving has ended, whether a driving assistance function is operating, whether a driving assistance function has started, or whether a driving assistance function has ended, and the control unit 377 may control the execution of the judgment function.

[0296] Note that the determination function selection unit 371 may select a determination function from a determination function used in a detection rule set for each CAN ID, the detection processing time, the load rate, the data amount, and the message amount, and the control unit 377 may control the execution of the determination function. In other words, the determination function selection unit 371 or the control units 374 and 377 select a determination function from a combination of functions used in the detection rule.

[0297] Note that the judgment function selection unit 371 determines the judgment function to be selected based on the information shown in Fig. 33, but is not limited to this. For example, the judgment function selection unit 371 may determine the judgment function to be selected from a combination of judgment functions and selection conditions as shown in Fig. 41.

[0298] FIG. 35 is a flowchart showing another example of the abnormality detection process in the modified example.

[0299] First, the control unit 374 calculates the amount of messages (step S1410).

[0300] Next, the control unit 374 determines whether the amount of messages is large or not (step S1411).

[0301] If the control unit 374 determines that the message amount is greater than the predetermined value (Yes in step S1411), the control unit 374 selects a determination function to perform processing (step S1412).

[0302] Then, the control unit 374 executes an abnormality detection process (step S1104).

[0303] Moreover, when the control unit 374 determines that the message amount is less than the predetermined value (No in step S1411), the control unit 374 executes an abnormality detection process (step S1104).

[0304] As a result, the anomaly determination method, etc. disclosed herein can select a determination function using other indicators such as load rate, data volume, and message volume even when it is difficult to calculate the detection processing time or when the detection processing time cannot be uniquely determined.

[0305] (2) In the above embodiment, ECU 100 is described as including a frame transmission / reception unit 110, a frame interpretation unit 120, a received ID determination unit 130, a received ID list holding unit 140, a frame processing unit 150, a data acquisition unit 170, and a frame generation unit 180, but the configuration of the ECU included in the in-vehicle network system in the present disclosure is not limited to this.

[0306] Fig. 36 is a block diagram showing an example of an ECU in a modified example. In Fig. 36, an ECU 100f is composed of a frame transmission / reception unit 110, a frame interpretation unit 120, a frame generation unit 180, and an anomaly detection processing function group 370. The frame interpretation unit 120 may receive all messages regardless of ID, for example, and request the anomaly detection processing function group 370 to determine whether or not each message is an abnormal message.

[0307] Furthermore, in addition to the configuration of FIG. 36, the ECU 100f may include a received ID determination unit 130 and a received ID list holding unit 140, and may receive only messages having a message ID listed in the received ID list held by the received ID list holding unit, and may request the abnormality detection processing function group 370 to determine whether or not the message is an abnormal message.

[0308] The ECU 100g may further include an external communication unit 390.

[0309] This allows not only the gateway but also the ECU to analyze whether a message being sent to the in-vehicle network is abnormal, improving the anomaly detection function in the in-vehicle network system, for example, and ensuring a higher level of safety.

[0310] Fig. 37 is a block diagram showing another example of an ECU in a modified example. The ECU 100g shown in Fig. 37 may include a transmission data acquisition unit 171 that acquires data to be transmitted to the bus 200 from another connected device or from the outside, and an abnormality detection processing function group 370g. The abnormality detection processing function group 370g included in the ECU 100g may also determine whether or not the data received from the transmission data acquisition unit 171 is an abnormal message, and may request the frame generation unit 180 to transmit a message only when it is determined that the received data is not an abnormal message.

[0311] The ECU 100g may further include an external communication unit 390.

[0312] As a result, the abnormality determination method and the like according to the present disclosure can, for example, when an ECU used together with a car navigation system transmits an abnormal message from a car navigation system that has been illegally operated from the outside, suppress the spread of the message to the in-vehicle network including the ECU 100g. Also, the abnormality determination method and the like according to the present disclosure can suppress the intrusion of an abnormal message attempted to be transmitted from outside the vehicle into the in-vehicle network system.

[0313] (3) In the above embodiment, the determination function selection unit 371 uses one criterion to determine the determination function to be selected or the determination function to be executed, but this is not limited to the above. For example, the determination function selection unit 371 may use different criteria for each CAN ID. In addition, when multiple buses are connected to the gateway 300 or the ECU, the determination function selection unit 371 may use different criteria for each of the multiple buses. In addition, the determination function selection unit 371 may use different criteria for each state of the vehicle, such as whether the vehicle is stopped, running, running at high speed, running at a constant speed, in automatic driving, has started automatic driving, has ended automatic driving, whether a driving assistance function is operating, has started a driving assistance function, or has ended a driving assistance function.

[0314] If there is a criterion for each CAN ID, the judgment function selection unit 371 may not select a judgment function for an important CAN ID, and may select a judgment function for an unimportant CAN ID. The judgment function selection unit 371 may also change the judgment function to be selected depending on the importance.

[0315] As a result, the anomaly determination method etc. disclosed herein can more flexibly control the execution of the determination function, thereby enabling optimal execution depending on various systems and various situations.

[0316] (4) In the above embodiment, anomaly detection processing function group 370 returns the judgment result to frame processing unit 350. However, this is not limited to this. Information regarding the selected judgment function or information regarding the executed judgment function may be returned together with the judgment result.

[0317] This allows the frame processing unit 350 or the like that has called the anomaly detection processing function group 370 to check the accuracy of the determination result of the anomaly detection processing function group 370 .

[0318] (5) In the above embodiment, an in-vehicle network is shown as an example of a network communication system that communicates according to the CAN protocol. The technology according to the present disclosure is not limited to use in in-vehicle networks, and may be used in networks for robots, industrial equipment, and other network communication systems that communicate according to the CAN protocol other than in-vehicle networks.

[0319] In addition, the CAN protocol is used as the in-vehicle network, but the present invention is not limited to this. For example, CAN-FD (CAN with Flexible Data Rate), FlexRay, Ethernet, LIN (Local Interconnect Network), MOST (Media Oriented Systems Transport), etc. may be used. Alternatively, a network in which these networks are combined as a sub-network may be used.

[0320] For example, in the case of Ethernet, the determination function selection unit 371 selects a determination function from among a DoS attack determination function, a source address determination function, a destination address determination function, a protocol determination function, a source port number determination function, a destination port number determination function, or a data value determination function. Alternatively, the determination function selection unit 371 may select one or more determination functions from the above-mentioned multiple determination functions as the determination function to be executed by the control unit 377. In network standards other than Ethernet, the same processing as in the case of CAN or Ethernet is performed for functions such as determining header information or payload values.

[0321] (6) The gateway 300 in the above embodiment may include a first processing unit and a second processing unit, and among the anomaly detection processing function group 370, the function of the determination function selection unit 371 may be processed by the first processing unit, and the functions of the control unit 372 and the anomaly detection unit 373 may be processed by the second processing unit. At this time, the result selected by the determination function selection unit 371 is sent from the first processing unit to the second processing unit. Then, in the second processing unit, the control unit 372 may control the determination function of the anomaly detection unit 373 according to the selection result sent from the determination function selection unit 371.

[0322] Moreover, the gateway 300 may include a third processing unit, a fourth processing unit, and a fifth processing unit. The third processing unit includes a processing time calculation unit that calculates the detection processing time during which the determination function selection unit 371 performed the processing, and the detection processing time calculated by the processing time calculation unit is sent to the fourth processing unit. In the fourth processing unit, the determination function selection unit 371 selects a determination function according to the detection processing time, and the selection result is sent to the fifth processing unit. In the fifth processing unit, the control unit 372 may control the determination function of the anomaly detection unit 373 according to the selection result sent out.

[0323] Furthermore, the first processing unit may include a judgment function selection unit 371, a control unit 372, and an anomaly detection unit 373, and the second processing unit may include a control unit 372 and an anomaly detection unit 373. In the first processing unit, when the judgment function selection unit 371 performs an anomaly detection process using the anomaly detection unit 373 of the first processing unit, the judgment function that was not selected by the judgment function selection unit 371 may be selected and sent to the second processing unit, and the control unit 372 and the anomaly detection unit 373 of the second processing unit may perform the anomaly detection process, thereby performing the anomaly detection process that was originally desired to be performed.

[0324] In addition, the gateway 300 may have a second processing unit and a fifth processing unit, and another ECU may have a first processing unit, a third processing unit, and a fourth processing unit. FIG. 38 is a block diagram showing an overall configuration of an in-vehicle network system in a modified example, and FIG. 39 is a block diagram showing an example of a communication ECU included in the in-vehicle network system in a modified example. As shown in FIG. 37, the in-vehicle network system includes a communication ECU 100e and communicates with a server 500 via an external network 400. The communication ECU 100e may include an external communication unit 390 as shown in FIG. 39, and may send a message received from the in-vehicle network, an abnormality detection processing result by the abnormality detection processing function group 370, and information on the executed determination function to the server 500.

[0325] Fig. 40 is a block diagram showing an example of a server in the modified example, and Fig. 41 is a table showing the determination functions and the selection conditions of the determination functions in the modified example. As shown in Fig. 40, the server 500 includes a receiving unit 510, a message holding unit 520, and a processing unit 530, and the above-mentioned first processing unit and fourth processing unit may be the processing unit 530. In addition, the processing unit 530 may include a display unit and an input unit, and may display the detection processing time, the load rate, the data amount, the message amount, the vehicle state, or the like, and an operator may select a determination function to be executed from the displayed information or information obtained from elsewhere, and input the selection result via the input unit.

[0326] The input result may be sent from server 500 to control unit 372, and control unit 372 may control the determination function of anomaly detection unit 373 in accordance with the input result. Furthermore, when server 500 determines from information on the determination function executed by anomaly detection unit 373 that a determination function that should be executed has not been executed, processing unit 530 of server 500 may perform anomaly detection processing for the message.

[0327] As a result, the in-vehicle network system of the present disclosure can be realized with a flexible configuration, and can be configured to take into account various system constraints.

[0328] (7) Each device in the above embodiments is specifically a computer system consisting of a microprocessor, ROM, RAM, a hard disk unit, a display unit, a keyboard, a mouse, etc. A computer program is recorded in the RAM or the hard disk unit. Each device achieves its function by the microprocessor operating in accordance with the computer program. Here, the computer program is composed of a combination of multiple instruction codes that indicate commands for a computer to achieve a specified function.

[0329] (8) Some or all of the components constituting each device in the above embodiments may be composed of one system LSI (Large Scale Integration). The system LSI is an ultra-multifunctional LSI manufactured by integrating multiple components on one chip, and specifically, is a computer system including a microprocessor, ROM, RAM, etc. A computer program is recorded in the RAM. The system LSI achieves its functions by the microprocessor operating in accordance with the computer program.

[0330] Furthermore, each of the components constituting each of the above devices may be individually implemented as a single chip, or some or all of them may be included in a single chip.

[0331] In addition, although some or all of the components constituting each device in the embodiments are realized by a system LSI, they may be called IC, LSI, super LSI, or ultra LSI depending on the degree of integration. The method of integration is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. After LSI manufacture, a programmable FPGA (Field Programmable Gate Array) or a reconfigurable processor that can reconfigure the connections and settings of circuit cells inside the LSI may be used.

[0332] Furthermore, if an integrated circuit technology that can replace LSI appears due to the progress of semiconductor technology or a derived technology, that technology may be used to integrate the functional blocks. As an integrated circuit technology that can replace LSI, the application of biotechnology, etc. is also envisioned.

[0333] (9) Some or all of the components constituting each of the above devices may be composed of an IC card or a standalone module that is detachable from each device. The IC card or module is a computer system composed of a microprocessor, ROM, RAM, etc. The IC card or module may include the above-mentioned ultra-multifunction LSI. The IC card or the module achieves its functions by the microprocessor operating according to a computer program. This IC card or this module may be tamper-resistant.

[0334] (10) The present disclosure may be a computer program for implementing the above-described method on a computer, or a digital signal comprising a computer program.

[0335] The present disclosure may also be a computer program or a digital signal recorded on a computer-readable recording medium, such as a flexible disk, a hard disk, a CD-ROM, an MO, a DVD, a DVD-ROM, a DVD-RAM, a BD (Blu-ray (registered trademark) Disc), or a semiconductor memory, or a digital signal recorded on such a recording medium.

[0336] The present disclosure may also involve transmitting a computer program or a digital signal via a telecommunications line, a wireless or wired communication line, a network such as the Internet, or data broadcasting, etc.

[0337] The present disclosure may also be directed to a computer system having a microprocessor and a memory, the memory storing the computer program, and the microprocessor operating in accordance with the computer program.

[0338] Furthermore, the program or digital signal may be recorded on a recording medium and transferred, or the program or digital signal may be transferred via a network or the like, so as to be implemented by another independent computer system.

[0339] (11) The above-described embodiments and modifications may be combined with each other.

[0340] The above describes a technique for determining a message to be used as a criterion for detecting fraudulent communications for the purpose of fraudulent control using fraudulent messages in an in-vehicle network according to one or more aspects, based on an embodiment and its modified examples.

[0341] In each of these embodiments and their variations, a message used as a criterion for detecting unauthorized communication is determined by a gateway or an ECU that is connected to and communicates with the in-vehicle network system, or a combination of these with a server computer.

[0342] A system that performs such fraudulent communication detection and includes one or more processors and a memory unit is referred to in this disclosure as a fraudulent communication detection criteria determination system.

[0343] Therefore, the fraudulent communication detection standard determination system may be realized by a single device, such as a gateway connected to an in-vehicle network system, or may be realized by multiple devices, such as a combination of such a gateway and an ECU, or a combination of a gateway or an ECU and a remote server computer.

[0344] In addition, this technology can be realized as a method that includes some or all of the processing steps executed by each component in each of the above-mentioned embodiments or their variations, or as a program that is executed by a processor of the fraudulent communication detection criteria determination system to cause the fraudulent communication detection criteria determination system to implement the method.

[0345] In addition, in the above embodiment or its modified example, the process executed by a specific component may be executed by another component instead of the specific component. Furthermore, the order of multiple processes may be changed, or multiple processes may be executed in parallel.

[0346] The above-mentioned anomaly determination method may be executed by an anomaly determination device including one or more processors and a storage unit accessible from the one or more processors. The anomaly determination device may be the gateway 300 or the server 500, or may be included therein.

[0347] [Effects, etc.] The anomaly determination method of the present disclosure is an anomaly determination method for determining anomalies in received messages, which receives as the received messages a plurality of messages having periodicity, each of which has a first field containing a fixed value and a second field containing a changing value, and selects, depending on one or more criteria of the time, load, data amount, or number of messages for which the anomaly determination method may be executed, a reception timing based on the periodicity or a plurality of combinations each consisting of one or more of anomaly determination using the number of received messages, anomaly determination using the field whose value is fixed, and anomaly determination using the field whose value changes.

[0348] As a result, the method for determining anomaly according to the present disclosure can select an anomaly determination to be performed within a limited time period and proceed with the process, thereby effectively determining an anomaly in a received message.

[0349] In addition, the abnormality determination method according to the present disclosure may perform the abnormality determination using the selected combination.

[0350] As a result, the anomaly determination method according to the present disclosure can effectively determine anomalies in received messages within a limited time by executing a combination of preselected anomaly determinations.

[0351] Furthermore, in the abnormality determination method according to the present disclosure, if an abnormality determination using previous information among the multiple abnormality determinations has not been performed when the abnormality determination method is performed, the previous information used for the abnormality determination using the previous information may be reset the next time the abnormality determination method is performed.

[0352] As a result, the anomaly determination method according to the present disclosure can avoid a situation where, when a certain anomaly determination is skipped and then the same anomaly determination is performed, the same anomaly determination is not performed correctly due to normal data not being recorded as a result of the anomaly determination being skipped. Thus, the anomaly determination method according to the present disclosure can effectively determine an anomaly in a received message.

[0353] In addition, the anomaly determination method according to the present disclosure may, when the load rate of the network for receiving the incoming message falls below a predetermined threshold, use information of the most recently received incoming message of a different type as information in place of the previous information that was reset.

[0354] As a result, the anomaly determination method according to the present disclosure can avoid a situation in which, when an identical anomaly determination is performed after a certain anomaly determination has been skipped, the anomaly determination process cannot be performed due to normal data not being recorded as a result of the anomaly determination being skipped. In other words, in the above-mentioned case, the anomaly determination method according to the present disclosure can perform the same anomaly determination process as the skipped anomaly determination process by using information from a message with a different ID that was received immediately before.

[0355] In addition, the abnormality determination method according to the present disclosure may execute the abnormality determination that was not selected if there is enough time to execute the abnormality determination method after the selected determination process has been executed.

[0356] This allows the method of determining anomalies according to the present disclosure to perform more abnormality determinations, and therefore allows the method of determining anomalies according to the present disclosure to more effectively determine whether anomalies exist in received messages.

[0357] The abnormality judgment device according to the present disclosure is an abnormality judgment device in an in-vehicle network system including a network and one or more electronic control units connected to the network, and is equipped with one or more processors and a memory unit accessible from the one or more processors, and the one or more processors receive, as received messages, each of the plurality of messages including a plurality of messages having periodicity, each of the plurality of messages including a first field having a fixed value and a second field having a changing value, and selects, depending on one or more criteria of the time, load amount, data amount, or number of messages, according to which the abnormality judgment method performed by the abnormality judgment device can be executed, a reception timing based on the periodicity, or a plurality of combinations each consisting of one or more of a plurality of abnormality judgments including an abnormality judgment using the number of received messages, an abnormality judgment using the first field, and an abnormality judgment using the second field.

[0358] As a result, the abnormality determination device according to the present disclosure can achieve the same effects as the abnormality determination method described above.

[0359] Furthermore, the program according to the present disclosure may be a program for causing a computer to execute the abnormality determination method according to the present disclosure.

[0360] As a result, the program according to the present disclosure can achieve the same effects as the above-described abnormality determination method.

[0361] In addition, when the anomaly determination method according to the present disclosure determines that the time during which the anomaly determination method can be executed is shorter than a predetermined time, the method may execute a combination of one or more anomaly determinations that have a lower false positive rate and a higher detection rate than a predetermined standard, from among anomaly determination using the reception timing based on the periodicity or the number of received messages, anomaly determination using the first field, and anomaly determination using the second field.

[0362] As a result, the anomaly determination method according to the present disclosure can more effectively determine anomalies in received messages.

[0363] In addition, when it is determined that the time during which the abnormality determination method can be executed is shorter than a predetermined time, the abnormality determination method according to the present disclosure does not need to execute the reception timing based on the periodicity, the abnormality determination using the number of received messages, and the abnormality determination using the second field.

[0364] As a result, the anomaly determination method disclosed herein can more effectively determine anomalies in received messages within a limited time by only performing anomaly determinations that use fields having changing values.

[0365] When it is determined that the time during which the abnormality determination method can be executed is shorter than a predetermined time, the abnormality determination method according to the present disclosure may select to end the process before any of the abnormality determinations using the reception timing based on the periodicity or the number of received messages, the abnormality determination using the first field, or the abnormality determination using the second field. This allows the abnormality determination method according to the present disclosure to more effectively determine abnormalities in received messages within a limited time.

[0366] When it is determined that the time during which the abnormality determination method can be executed is shorter than a predetermined time, the abnormality determination method according to the present disclosure may store in a memory information regarding an abnormality determination that has been determined not to be executed, among the abnormality determination using the reception timing based on the periodicity, or the number of received messages, the abnormality determination using a field whose value is fixed, or the abnormality determination using a field whose value changes, or information regarding a message for which an abnormality determination that has been determined not to be executed will be performed.

[0367] As a result, the method for determining anomaly according to the present disclosure can later execute the anomaly determination that was determined not to be executed depending on the situation, thereby enabling the method for determining anomaly in the received message to be determined more effectively. [Industrial Applicability]

[0368] The anomaly detection method and the like according to the present disclosure can be used for detecting anomalies in messages in an in-vehicle network. Furthermore, the anomaly detection method and the like according to the present disclosure can perform an appropriate anomaly detection process according to the detection processing time available for the anomaly detection process. As a result, the anomaly detection method and the like according to the present disclosure can accurately identify normal messages even at times when anomaly detection processing could not be performed in the past, thereby making it possible to protect the network. [Explanation of symbols]

[0369] 10 In-vehicle network system 100, 100a, 100b, 100c, 100d, 100e, 100f, 100g ECU 101 Engine 102 Brake 103 Door opening / closing sensor 104 Window opening / closing sensor 110 Frame Transmitter / Receiver 120 Frame Interpretation Unit 130 Reception ID determination unit 140 Reception ID list storage unit 150 Frame Processing Unit 170 Data Acquisition Section 171 Transmission data acquisition unit 180, 380 Frame Generation Unit 200, 200a, 200b bus 300 Gateway 310 Frame Transmitter / Receiver 320 Frame Interpretation Unit 330 Reception ID determination unit 340 Reception ID list storage unit 350 Frame Processing Unit 360 Transfer rule storage unit 370 Anomaly detection processing function group 371 Judgment function selection unit 372, 374, 376, 377 Control section 373 Anomaly Detection Unit 375 Non-selection information storage unit 381 Detection Rule Storage Unit 390 External Communications Department 400 External Network 500 servers 510 Receiving unit 520 Message storage unit 530 Processing section

Claims

1. An abnormality determination method for determining an abnormality in a received message, comprising: receiving, as the received message, a plurality of messages including a plurality of messages having periodicity, each of the plurality of messages including a first field having a fixed value and a second field having a varying value; Calculating a time available for determining an anomaly in the received message; To fit within the calculated time, (i) selecting all n abnormality judgments out of n abnormality judgments (n is a positive integer); (ii) selecting k abnormality judgments (k is a positive integer and k≦n) from the n abnormality judgments; (iii) selecting none of the n abnormality judgments; Select one of the the n abnormality determinations include an abnormality determination using a reception timing based on the periodicity or the number of received messages, an abnormality determination using the first field, and an abnormality determination using the second field. Abnormality determination method.

2. The abnormality determination using the reception timing based on the periodicity or the number of received messages includes a DoS attack determination. The method for determining an abnormality according to claim 1 .

3. The k abnormality determinations include a DoS attack determination. The method for determining an abnormality according to claim 1 .

4. The k abnormality determinations are only DoS attack determinations. The method for determining an abnormality according to claim 1 .

5. Furthermore, when the k abnormality judgments are selected, the selected abnormality judgments are notified. The method for determining an abnormality according to claim 1 .

6. If the calculated time is longer than the time required to process all of the n abnormality determinations, all of the n abnormality determinations are selected. The method for determining an abnormality according to claim 1.

7. Execute the selected anomaly judgment, The method for determining an abnormality according to claim 1 .

8. If there is time remaining to perform another abnormality determination after the k abnormality determinations have been performed, perform the abnormality determination that was not selected. The method for determining an abnormality according to claim 7.

9. resetting the previous information used for the abnormality determination using the previous information when an abnormality determination using the previous information is performed on the next received message, among the n abnormality determinations; The method for determining an abnormality according to any one of claims 1 to 8.

10. When a load factor of the network for receiving the received message falls below a predetermined threshold, information of the received message of a different type that was received immediately before is used as information in place of the previous information that was reset. The method for determining an abnormality according to claim 9.

11. An abnormality determination device in an in-vehicle network system including a network and one or more electronic control units connected to the network, one or more processors; a storage unit accessible by the one or more processors; The one or more processors: receiving, as received messages, a plurality of messages including a plurality of periodic messages from the network, each of the plurality of messages including a first field having a fixed value and a second field having a varying value; Calculating a time available for determining an anomaly in the received message; To fit within the calculated time, (i) selecting all n abnormality judgments out of n abnormality judgments (n is a positive integer); (ii) selecting k abnormality judgments (k is a positive integer and k≦n) from the n abnormality judgments; (iii) selecting none of the n abnormality judgments; Select one of the the n abnormality determinations include an abnormality determination using a reception timing based on the periodicity or the number of received messages, an abnormality determination using the first field, and an abnormality determination using the second field. Abnormality determination device.

12. A program for causing a computer to execute the abnormality determination method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Control device and control method

    JP2012247978A

  • On-vehicle network device

    JP2017047835A

  • On-vehicle device and log collection system

    JP2018032254A

  • Information processing device and anomaly response method

    WO2018207551A1

  • Network communication system, fraud detection electronic control unit and fraud handling method

    WO2015151418A1