Anomaly detection method and anomaly detection device
The anomaly detection method and device in communication networks, particularly in-vehicle networks, address the lack of detailed anomaly information by identifying abnormal frame parts and types, enhancing safety through rapid and targeted responses.
Patent Information
- Application Number
- JP2021511446
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-03-29
- Filing Date
- 2020-03-19
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-03-19
AI Technical Summary
Existing methods for detecting abnormal frames in communication networks, such as in-vehicle networks, only provide a general measure of abnormality without detailed information needed for quick and appropriate responses to attacks, such as the location and type of anomalies.
An anomaly detection method and device that analyze frames in a communication network to identify abnormal parts within the payload, determine the type and risk of anomalies, and output detailed information by comparing frame distributions with a reference model, identifying abnormal frames and their payload components based on feature quantity differences.
Enables rapid and appropriate responses to network anomalies by providing detailed information on abnormal frames, improving vehicle safety by identifying the nature and risk of anomalies, allowing for prioritized and targeted responses.
Smart Images

Figure 0007573513000001 
Figure 0007573513000002 
Figure 0007573513000003
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to a technique for detecting an abnormal frame included in a set of frames flowing in a communication network system. [Background technology]
[0002] The systems inside modern automobiles are equipped with numerous devices called Electronic Control Units (hereafter referred to as ECUs). The communication network that connects these ECUs is called an in-vehicle network. There are many standards for in-vehicle networks, but one of the most mainstream standards is the Controller Area Network (hereafter referred to as CAN).
[0003] CAN does not specify security functions that take into account cases where unauthorized frames are sent, so if no countermeasures are taken, for example, an attacker could take control of a vehicle by sending unauthorized frames to the CAN bus.
[0004] Patent Document 1 discloses a method for uploading information about a frame transmitted to an in-vehicle network to a fraud detection server, and for the fraud detection server to calculate the degree of anomaly of the frame. Patent Document 2 discloses a method for extracting features from a communication log of an in-vehicle network and calculating the degree of anomaly of communication by comparing the extracted features with a normal model. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent No. 642302 [Patent Document 2] Japanese Patent Application Laid-Open No. 2018-160078 Summary of the Invention [Problem to be solved by the invention]
[0006] The methods disclosed in Patent Documents 1 and 2 only calculate the degree of anomaly in a frame or communication, and do not provide more detailed information that can be used to quickly respond to anomalies caused by attacks, for example.
[0007] Therefore, the present disclosure provides an anomaly detection method and anomaly detection device that detects abnormal frames contained in frames flowing through a communication network such as an in-vehicle network, and outputs more detailed information that can be used to quickly respond to anomalies caused by attacks. [Means for solving the problem]
[0008] BookAn anomaly detection method according to one aspect of the disclosure is an anomaly detection method in a communication network system, which determines whether each frame included in observation data consisting of a set of frames transmitted and received on the communication network system observed over a predetermined period of time is anomalous, and outputs an anomalous portion of the payload of a frame determined to be anomalous, and includes a reference model acquisition step of acquiring a data distribution of multiple feature quantities related to a portion of one or more bits that constitutes the payload included in the frame, a frame anomaly detection step of determining whether a frame included in the observation data is anomalous, and an anomalous portion output step, wherein the reference model acquisition step acquires the data distribution for a set of frames transmitted and received on the communication network system, which is acquired at a timing different from the timing of acquisition of the observation data, The frame anomaly detection step calculates the difference between the data distribution acquired in the reference model acquisition step and the data distribution of features extracted from the frames included in the observation data, and determines that a frame having a feature for which the difference is equal to or greater than a predetermined value is an abnormal frame. The abnormal portion output step, if there is a frame determined to be an abnormal frame in the frame anomaly detection step, calculates the abnormality contributions of the plurality of feature values extracted from the abnormal frame and outputs payload abnormal portions, which are one or more portions in the payload corresponding to the feature values whose abnormality contributions are equal to or greater than a predetermined value. The method further includes an abnormality type determination step, in which a payload abnormal portion length is identified based on the payload abnormal portion, and an abnormality type is determined according to the payload abnormal portion length.
[0009] Also , BookAn anomaly detection device according to one aspect of the disclosure is an anomaly detection device that, in a communication network system, determines whether a frame included in observation data consisting of a set of frames transmitted and received over the communication network system observed over a predetermined period of time is anomalous, and outputs an anomalous portion of the payload of a frame that is determined to be anomalous, and includes a reference model holding unit that holds a data distribution of a plurality of feature quantities relating to a portion of one or more bits that constitutes the payload included in the frame, an anomaly detection unit that determines whether a frame included in the observation data is anomalous, and, when an anomalous frame is detected by the anomaly detection unit, calculates anomaly contributions of the plurality of feature quantities extracted from the anomalous frame, and outputs a pre-defined anomaly model corresponding to a feature quantity whose anomaly contribution is equal to or greater than a predetermined value. and an abnormality part output unit that outputs an abnormal payload part, which is one or more parts included in the frame, wherein the reference model holding unit holds the data distribution for a set of frames transmitted and received on the communication network system, which was acquired at a timing different from the timing at which the observation data was acquired, and the abnormality detection unit calculates the difference between the data distribution held by the reference model holding unit and the data distribution of features extracted from the frames included in the observation data, and determines that a frame having a feature for which the difference is equal to or greater than a predetermined value is an abnormal frame, and further comprises a judgment unit that identifies a length of the abnormal payload part based on the abnormal payload part, and judges the type of abnormality according to the length of the abnormal payload part.
[0010] These comprehensive or specific aspects may be realized as a system, an integrated circuit, a computer program, or a computer-readable recording medium such as a CD-ROM, or may be realized as any combination of an apparatus, a system, a method, an integrated circuit, a computer program, and a recording medium. [Effects of the Invention]
[0011] The anomaly detection method and anomaly detection device disclosed herein detect an abnormal frame contained in frames flowing through a communication network such as an in-vehicle network, and then output more detailed information that can be used to respond quickly to the anomaly. [Brief explanation of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram illustrating an overview of an in-vehicle network anomaly detection system according to an embodiment. [Figure 2] FIG. 2 is a diagram showing the overall configuration of an in-vehicle network system according to the embodiment. [Figure 3] FIG. 3 is a block diagram showing the functional configuration of the anomaly detection server included in the in-vehicle network anomaly detection system. [Figure 4] FIG. 4 is a diagram showing an example of a determination result of attack content in the embodiment. [Figure 5] FIG. 5 is a diagram illustrating an example of a normal data distribution model stored in a reference model storage unit included in the anomaly detection server. [Figure 6] FIG. 6 is a diagram showing an example of an attack type determination table included in the anomaly detection server. [Figure 7] FIG. 7 is a diagram showing an example of an attack level determination table included in the anomaly detection server. [Figure 8] FIG. 8 is a diagram showing the functional configuration of the ECU and the telematics control unit included in the in-vehicle network system. [Figure 9] FIG. 9 is a diagram showing an example of a reception history of frames received by the ECU. [Figure 10] FIG. 10 is a diagram showing the configuration of a gateway included in the above-described in-vehicle network system. [Figure 11] FIG. 11 is a diagram showing an example of a processing sequence executed in the in-vehicle network anomaly detection system including the vehicle and the anomaly detection server. [Figure 12]FIG. 12 is a flowchart showing an example of the procedure for analyzing logs in the anomaly detection server. [Figure 13] FIG. 13 is a flowchart showing an example of the procedure for attack type determination processing in the anomaly detection server. [Figure 14] FIG. 14 is a flowchart showing an example of the procedure for attack level determination processing in the anomaly detection server. DETAILED DESCRIPTION OF THE INVENTION
[0013] (Findings that formed the basis of this disclosure) When an abnormality occurs in a communication network, it is important to not only identify the abnormal frame contained in the transmitted frame, but also to understand the nature of the abnormality and take appropriate and prompt action based on that nature in order to prevent or minimize damage. The nature of the abnormality here refers to, for example, the location of the abnormality in the frame, the possible cause of the abnormality, and the degree of danger of the abnormality. However, using the conventional methods described in the "Background Art" section, while it is possible to understand the degree of abnormality in the frame or communication, it is not possible to obtain information regarding the nature of the abnormality as described above.
[0014] An anomaly detection method according to one aspect of the present disclosure, which has been devised to solve such problems, is an anomaly detection method in a communication network system, which determines whether each frame included in observation data consisting of a set of frames transmitted and received on the communication network system observed over a predetermined period of time is anomalous, and outputs an anomalous portion of the payload of a frame determined to be anomalous, and includes a reference model acquisition step of acquiring a data distribution of a plurality of feature quantities related to a portion of one or more bits that constitutes the payload included in the frame, a frame anomaly detection step of determining whether a frame included in the observation data is anomalous, and an anomalous portion output step, and in the reference model acquisition step, a timing different from the timing at which the observation data is acquired is used. The data distribution is acquired for a set of frames transmitted and received on the communication network system, which is acquired by timing; in the frame anomaly detection step, a difference between the data distribution acquired in the reference model acquisition step and a data distribution of features extracted from the frames included in the observation data is calculated, and a frame having a feature for which the difference is equal to or greater than a predetermined value is determined to be an abnormal frame; in the abnormal part output step, if there is a frame determined to be an abnormal frame in the frame anomaly detection step, an abnormality contribution degree of the plurality of feature values extracted from the abnormal frame is calculated, and a payload abnormal part, which is one or more parts in the payload corresponding to the feature whose abnormality contribution degree is equal to or greater than a predetermined value, is output.
[0015] This not only detects abnormal frames from the many frames sent and received over a communications network, but also provides information about the abnormal parts of the frame payload, enabling faster and more appropriate responses to the abnormalities.
[0016] The anomaly detection method may further include an anomaly type determination step, in which a payload abnormal portion length is identified based on the payload abnormal portion, and the anomaly type is determined according to the payload abnormal portion length.
[0017] This provides information about the type of anomaly that has occurred in the detected anomalous frame, and the details of the anomaly that are further identified in this way can be used to respond to the anomaly more quickly and appropriately.
[0018] Furthermore, in the abnormality type determination step, the abnormality type may be determined as a state value abnormality when the abnormal payload portion length is within a first range, as a sensor value abnormality when the abnormal payload portion length is within a second range longer than the first range, and as a trial attack abnormality when the abnormal payload portion length is within a third range longer than the second range. For example, the first range may have an upper limit of 4 bits or less, the second range may have a lower limit of 8 bits or more and an upper limit of 16 bits or less, and the third range may have a lower limit of 32 bits.
[0019] In this way, the type of abnormality, which is the content of the abnormality, can be determined based on the bit length of the abnormal part. By using the content of the abnormality thus determined, it becomes possible to respond to the abnormality more quickly and appropriately.
[0020] The method may further include an abnormality level determination step, in which, if multiple types of frames are detected as abnormal in the frame abnormality detection step and the payload abnormal portion output in the abnormal portion output step is different between the multiple types of frames, the abnormality level may be determined to be higher than when the payload abnormal portion is the same between the multiple types of frames.
[0021] This makes it possible to determine the level of danger (risk) of the anomaly from the type of frame determined to be abnormal and information about the portion of the payload of that frame that contributed to the anomaly. By using the details of the anomaly identified in this way, it becomes possible to take more appropriate measures in terms of safety, such as prioritizing the response to the anomaly with the highest risk when multiple anomalies have occurred.
[0022] The method may further include an abnormality level determination step, in which the abnormality level determination step determines the abnormality level to be higher than when multiple types of frames are detected as abnormal in the frame abnormality detection step and the abnormality type determined in the abnormality type determination step is the same among the multiple types of frames.
[0023] This makes it possible to determine the risk of an anomaly based on a combination of the number of types of frames determined to be abnormal in the communication network and the number of types of anomalies occurring in the frames. By using the content of the anomaly identified in this way, it becomes possible to take a more appropriate response in terms of safety, for example, when multiple anomalies have occurred, by prioritizing the response to the anomaly with the highest risk.
[0024] The method may further include an abnormality level determination step, in which if one or more types of frames are detected as abnormal in the frame abnormality detection step and the abnormality type determined in the abnormality type determination step is only a trial attack abnormality, the abnormality level may be determined to be lower than if the determined abnormality types do not include a trial attack abnormality.
[0025] This makes it possible to determine whether the anomaly that has occurred is a low-risk anomaly based on its type. By using the details of the anomaly that are grasped in this way, it becomes possible to take a more appropriate response in terms of safety, for example, when multiple anomalies have occurred, by prioritizing the response to the anomaly with the highest risk. Furthermore, when the risk is low, the limitations on the functions of the communication network system that are used to respond to the anomaly can be relaxed, thereby minimizing the sacrifice of user convenience.
[0026] The method may further include an abnormality level determination step, in which, if one or more types of frames are determined to be abnormal in the frame abnormality detection step, the abnormality level determination step may determine the abnormality level based on a predetermined calculation formula having as parameters one or more of the following elements: the type of frame determined to be abnormal, the number of types of frames determined to be abnormal, the abnormal portion of the payload output in the abnormal portion output step, and the type of abnormality determined in the abnormality type determination step.
[0027] This makes it possible to determine the risk of an anomaly based on multiple conditions related to the content of the anomaly detected in a frame. By using the content of the anomaly ascertained in this way, it becomes possible to take a more appropriate response in terms of safety, for example, when multiple anomalies have occurred, by prioritizing the response to the anomaly with the highest risk.
[0028] In addition, in the abnormality type determination step, when there are multiple payload abnormal portions included in one frame, if the number of intermediate bits between the multiple payload abnormal portions is equal to or less than a predetermined standard, the multiple payload abnormal portions and the intermediate bits may be treated together as one payload abnormal portion.
[0029] This increases the likelihood that the type of abnormality can be determined more accurately based on the length of the abnormal portion in the payload of a frame that has been determined to be abnormal.
[0030] The communication network system may be an in-vehicle network system.
[0031] This makes it possible to monitor the large number of frames sent and received by the in-vehicle network system, detect any abnormal frames among them, and understand the nature of the abnormality, leading to faster and more appropriate responses, thereby improving the safety of automobiles.
[0032] Furthermore, an anomaly detection device according to an embodiment of the present disclosure is an anomaly detection device that, in a communication network system, determines whether a frame included in observation data consisting of a set of frames transmitted and received on the communication network system observed over a predetermined period of time is anomalous, and outputs an anomalous portion of the payload of a frame that is determined to be anomalous, and includes a reference model holding unit that holds a data distribution of a plurality of feature amounts relating to a portion of one or more bits that constitutes the payload included in the frame; an anomaly detection unit that determines whether a frame included in the observation data is anomalous; and, when an anomalous frame is detected by the anomaly detection unit, outputs the plurality of feature amounts extracted from the anomalous frame. an abnormality part output unit that calculates the abnormality contribution of a feature and outputs one or more parts of the payload included in the frame that correspond to the feature whose abnormality contribution is equal to or greater than a predetermined value, wherein the reference model holding unit holds the data distribution for a set of frames transmitted and received on the communication network system that are acquired at a timing different from the timing at which the observation data is acquired, and the abnormality detection unit calculates the difference between the data distribution held by the reference model holding unit and the data distribution of the feature extracted from the frame included in the observation data, and determines that a frame having a feature whose difference is equal to or greater than a predetermined value is an abnormal frame.
[0033] This not only detects abnormal frames from the many frames sent and received over a communications network, but also provides information about the abnormal parts of the frame payload, enabling faster and more appropriate responses to the abnormalities.
[0034] These comprehensive or specific aspects may be realized as a system, an integrated circuit, a computer program, or a computer-readable recording medium such as a CD-ROM, or may be realized as any combination of an apparatus, a system, a method, an integrated circuit, a computer program, and a recording medium.
[0035] Hereinafter, with reference to the drawings, embodiments of an anomaly detection method and an anomaly detection device according to the present disclosure will be described. Note that the embodiments described below are all comprehensive or specific examples. The numerical values, shapes, materials, components, component arrangements and connection forms, steps, step orders, and the like shown in the following embodiments are shown for illustrative purposes and are not intended to limit the present invention.
[0036] (Embodiment) The following describes a method for detecting an abnormal frame mixed in frames sent and received in a communication network system, identifying the abnormal part in the frame, and determining the type and risk of the abnormality. In this description, we use as an example an in-vehicle network anomaly detection system that includes a vehicle equipped with an in-vehicle network system in which multiple electronic control units (ECUs) communicate via a network configured using a CAN bus, and a server that detects abnormal frames.
[0037] [1.1 Overview of the in-vehicle network anomaly detection system] FIG. 1 is a diagram showing an overview of an in-vehicle network anomaly detection system according to this embodiment. The in-vehicle network monitoring system is configured by connecting an anomaly detection server 60 and a vehicle 10 via a network 20, which serves as a communication path. The network 20 may include the Internet or a dedicated line. The in-vehicle network system installed in the vehicle 10 includes multiple ECUs that communicate via an in-vehicle bus (CAN bus). These ECUs are connected to various devices such as in-vehicle control devices, sensors, actuators, and user interface devices.
[0038] In this embodiment, each ECU in an in-vehicle network system communicates according to the CAN protocol. The CAN protocol supports a data frame, a remote frame, an overload frame, and an error frame. The following description focuses primarily on data frames. The CAN protocol defines a data frame as including a data field for storing data, a DLC (Data Length Code) indicating the data length of the data field, and an ID field for storing an ID indicating the type of data stored in the data field. The anomaly detection method or anomaly detection device according to this embodiment can also be applied to CAN protocol frames of types other than data frames, or to communication network systems that comply with other communication protocols.
[0039] [1.2 In-vehicle network system configuration] FIG. 2 is a diagram showing an example of the configuration of an in-vehicle network system provided in the vehicle 10. As shown in FIG.
[0040] The in-vehicle network system in the vehicle 10 includes nodes such as a plurality of ECUs (ECUs 100, 101, 200, 201, 300, 301, 302, 400, 401) connected to buses (CAN buses) 1000, 2000, 3000, 4000, and 5000, and a gateway 900 that relays communications between these buses. The gateway 900 is also an ECU.
[0041] Although not shown in Figure 2, the in-vehicle network system may include many more ECUs. An ECU is a device that includes, for example, a processor (microprocessor), digital circuits such as memory, analog circuits, and communication circuits. The memory is a read-only memory (ROM) and a random access memory (RAM), and can store control programs (computer programs) executed by the processor. For example, the ECU realizes various functions by the processor operating in accordance with the control programs. Note that a computer program is a combination of multiple instruction codes for the processor to realize a predetermined function.
[0042] Powertrain ECUs related to driving the vehicle 10, such as those for controlling the motor, fuel, and battery, are connected to the bus 1000. An ECU (engine ECU) 100 connected to the engine 110 and an ECU (transmission ECU) 101 connected to the transmission 111 are examples of powertrain ECUs in this embodiment.
[0043] Chassis-related ECUs related to control of steering and braking of the vehicle 10, such as "turning" and "stopping," are connected to the bus 2000. The ECU (brake ECU) 200 connected to the brake 210 and the ECU (steering ECU) 201 connected to the steering 211 are examples of chassis-related ECUs in this embodiment.
[0044] ECUs related to information systems, such as functions for recognizing, determining, and controlling driving assistance based on image information, functions related to an audio head unit, and vehicle-to-vehicle communication, are connected to bus 3000. ECUs 300, 301, and 302, which are connected to camera 310, car navigation system 311, and telematics control unit (TCU) 312, respectively, are examples of ECUs of the information system in this embodiment.
[0045] Body ECUs related to the control of vehicle equipment such as doors, air conditioners, and turn signals are connected to bus 4000. ECU 400 connected to door 410 and ECU 401 connected to light 411 are examples of body ECUs in this embodiment.
[0046] To the bus 5000, a diagnostic port 510 is connected, which is an interface for communicating with an external diagnostic tool (fault diagnosis tool) such as OBD2 (On-Board Diagnostics 2nd generation).
[0047] Each of the above ECUs (ECU 100, 200, etc.) acquires information indicating the status of the connected devices (engine 110, brake 210, etc.) and periodically transmits data frames, etc. (hereinafter, data frames will also be simply referred to as frames) indicating this status to the in-vehicle network system, i.e., the CAN bus.
[0048] Gateway 900 is an ECU that transfers data between different communication paths. Referring to the example in Fig. 2, gateway 900 is connected to bus 1000, bus 2000, bus 3000, bus 4000, and bus 5000. In other words, gateway 900 is an ECU that has the function of transferring a frame received from one bus to another bus (i.e., a destination bus selected according to a condition) under certain conditions.
[0049] The ECU 302 has a function of receiving and holding frames transmitted over the bus 3000 and periodically uploading them to the anomaly detection server 60. The frames are uploaded from the TCU 312 to the anomaly detection server 60 via the network 20, which includes communication lines such as mobile phone lines.
[0050] [1.3 Anomaly detection server configuration] 3 is a block diagram showing the functional configuration of the server (anomaly detection server) 60. The anomaly detection server 60, which handles unauthorized frames transmitted by the in-vehicle network system of the vehicle 10, is realized by one or more computers including, for example, a processor, memory, a communication interface, etc. The anomaly detection server 60 includes a communication unit 610, an anomaly detection unit 620, an abnormal part identification unit 630, an attack type determination unit 640, an attack level determination unit 650, a result output unit 660, a reference model holding unit 670, an attack type determination table 680, and an attack level determination table 690.
[0051] The functions of the reference model storage unit 670, the attack type determination table 680, and the attack level determination table can be realized as data stored in a predetermined configuration in a storage medium such as a memory or a hard disk. These data will be described later using examples.
[0052] Furthermore, the functions of the anomaly detection unit 620, the abnormal part identification unit 630, the attack type determination unit 640, the attack level determination unit 650, and the result output unit 660 can be realized, for example, by a processor executing a control program stored in memory.
[0053] The communication unit 610 is realized by a communication interface, a processor that executes a control program stored in a memory, etc. The communication unit 610 receives information about the in-vehicle network system of the vehicle 10 by communicating with the vehicle 10 via the network 20. The information about the in-vehicle network system may include, for example, information about the contents (payload information) of frames transmitted on the CAN bus of the in-vehicle network system and reception timing (interval, frequency, etc.).
[0054] The anomaly detection unit 620 determines whether the log data (observation data set D') of the in-vehicle network system notified from the communication unit 610 is abnormal. At this time, the anomaly detection unit 620 refers to the in-vehicle network log (reference model data set D) during normal driving stored in the reference model holding unit 670, and determines whether the observation data set contains abnormal frame data based on the difference between the observation data set and the reference model data set.
[0055] To determine whether the observed data set D' is abnormal, an anomaly detection method using density ratio estimation, for example, can be used. Density ratio estimation is a technology that detects differences between the distribution of the reference model data set D and the distribution of the observed data set D'. For example, anomalies caused by an attack using a data frame that does not contain outliers are difficult to detect using a method that uses only outlier detection. However, this technology can detect even such anomalies based on the difference in value distribution from normal data.
[0056] An example of a density ratio estimation algorithm is shown below. The density ratio estimation algorithm trains a classifier to classify normal data and observed data by setting the label of data in each data frame during normal driving that constitutes the reference model dataset D as 0 and the label of data in each data frame included in the observed dataset D' as 1. Models that can be used for the classifier include MLP (Multi Layer Perceptron), logistic regression, random forest, and k-nearest neighbor method.
[0057] When the observation data corresponding to one data frame (details will be described later) is x, the density ratio r(x) can be calculated using Bayes' theorem using the following equation 1.
[0058] r(x) = p D (x) / p D ′(x) = p(x|y=0) / p(x|y=1) = p(y=1)p(y=0|x) / p(y=0)p(y=1|x) ...(Formula 1)
[0059] Here, p(y=1|x) is the probability that observed data x belongs to observed dataset D', which is the output of the classifier. Also, p(y=0|x) is the probability that observed data x belongs to normal dataset D, which is 1 minus the output of the classifier. p(y=1) and p(y=0) are the ratios of the size of the observed dataset and the reference model dataset to the entire dataset, respectively.
[0060] If the absolute value of r(x) exceeds a predetermined threshold, that is, if the classifier determines that there is a high probability that the observed data x belongs to the observed data set D' (or the reference model data set D), the observed data x (or the corresponding data frame) is determined to be abnormal. The observed data x is a feature extracted from the payload of one data frame, and is, for example, a 64-dimensional feature in which each bit value of a data field included in a CAN data frame is one feature.
[0061] Note that each feature does not have to be a bit value of the data field, but may be the entire value of the data field divided by a predetermined bit length. Therefore, the observed data x may be, for example, a 16-dimensional feature, where 16 values obtained by dividing the value of a 64-bit data field into 4-bit units are used as one feature, or an 8-dimensional feature, where 8 values obtained by dividing the value into 8-bit units are used as one feature. Furthermore, the division into bits of a fixed length is not necessary. For example, features may be extracted corresponding to each meaningful subfield contained in the payload.
[0062] Furthermore, the classifier may be prepared for each ID included in the data frame and trained, or a single classifier may be trained on data frames of a predetermined combination of IDs or on data frames of all IDs. The anomaly detection unit 620 notifies the anomalous part identification unit 630 of the ID of the data frame determined to be anomalous, its feature amount, and information on the classifier used for the determination.
[0063] Based on the information notified by the anomaly detection unit 620, the anomaly part identification unit 630 calculates the degree of contribution to the anomaly of each feature (here, each feature constituting a high-dimensional feature extracted from one data frame) in the payload of the data frame determined to be anomaly (hereinafter, also referred to as anomaly contribution degree). i is calculated by differentiating the density ratio r(x) with respect to the input x (see Equation 2).
[0064] c i = δr(x) / δx ......(Equation 2)
[0065] Specifically, the change in the density ratio r(x) when the value of feature i is inverted (bit) or when a small change is made to it is taken as the anomaly contribution. The abnormal portion identification unit 630 calculates this anomaly contribution for each feature i of a data frame determined to be anomalous, and determines that a feature i that shows an anomaly contribution equal to or greater than a predetermined threshold is a feature that contributes to the anomaly of the data frame. The abnormal portion identification unit 630 then identifies the bit position in the payload of the portion that shows this feature as the payload anomaly portion.
[0066] The abnormal part identification unit 630 notifies the attack type determination unit 640 of the information notified by the abnormality detection unit 620, as well as the feature amount determined to be contributing to the abnormality and information on the identified abnormal part of the payload.
[0067] The attack type determination unit 640 has a function of determining the type of attack that is causing the abnormal frame by referring to the information notified by the abnormal part identification unit 630 and the attack type determination table 680 .
[0068] The attack type determination unit 640 first identifies the length of the abnormal portion in the payload from the abnormal portion of the payload notified by the abnormal portion identification unit 630. For example, if the first feature amount, second feature amount, third feature amount, etc. correspond to the most significant 1 bit, 2 bits, 3 bits, etc. of the payload, respectively, the attack type determination unit 640 determines that the range of consecutive bit positions of the abnormal portion is the abnormal portion related to the common abnormality. Then, if it is determined that the first feature amount through the tenth feature amount are the abnormal portion of the payload, the attack type determination unit 640 identifies the 10 bits from bit positions 1 to 10 of the payload as the length of the abnormal portion.
[0069] The method for identifying the length of the abnormal portion is not limited to the above method. For example, if the first to fourth feature quantities and the sixth to tenth feature quantities as described above are abnormal portions, the first to tenth feature quantities, including the fifth feature quantity, may be treated as a single continuous payload abnormal portion, and the length of the abnormal portion may be set to 10 bits. In this example, if the number of bits between two adjacent payload abnormal portions (hereinafter referred to as intermediate bits) is 1, the adjacent payload abnormal portion and the intermediate bit are treated together as a single payload abnormal portion, but this is not limiting. The length (number of bits) of the intermediate bit that is treated as a single payload abnormal portion by combining adjacent payload abnormal portions and the intermediate bit is a design item that can be determined separately. In other words, the number of bits used as the criterion for treating the intermediate bit in this way may be a value greater than 1. Alternatively, the ratio of the number of intermediate bits to the total number of bits of multiple payload abnormal portions and the intermediate bits between them may be used as a criterion, and if this ratio is equal to or less than a predetermined value, these may be treated as a single payload abnormal portion.
[0070] Next, the attack type determination unit 640 determines the type of attack according to the length (number of bits) of the abnormal portion. For example, if the length of the abnormal portion is 4 bits or less, the attack type determination unit 640 determines that the attack is a "state value spoofing" attack, assuming that the attack involves spoofing or tampering with values in the portion occupied by a flag or value indicating a state. For example, if the length of the abnormal portion is 5 bits or more and 31 bits or less, the attack type determination unit 640 determines that the attack is a "sensor value spoofing" attack. For example, if the length of the abnormal portion is 32 bits or more, the attack type determination unit 640 determines that the attack is a "trial attack," which is a trial attack that injects random values or values based on some kind of analogy, or a brute force attack using all possible values. The attack type determination unit 640 performs the above-mentioned determination on data frames that are notified by the abnormal part identification unit 630 and that the abnormality detection unit 20 has determined to be abnormal in the in-vehicle network log corresponding to data frames observed in the in-vehicle network system at a specified time or for a specified length of time (hereinafter, without any particular distinction, also referred to as a specified period) notified by the vehicle 10, and notifies the attack level determination unit 650 of a series of determination results regarding the attack type.
[0071] The attack level determination unit 650 refers to the attack type notified by the attack type determination unit 640 and the attack level determination table 690, and determines the attack level indicating the degree of danger of the abnormality that has occurred by combining conditions related to the type of data frame in which the abnormality has occurred, conditions related to the abnormal portion of the payload, and conditions related to the determined attack type, and notifies the result output unit 660. In this example, the attack level is determined in three stages: low, medium, and high.
[0072] The result output unit 660 outputs the information notified from the attack level determination unit 650 in a data format appropriate for the application. For example, the result output unit 660 outputs image data for displaying on a connected display an indication of the occurrence of an anomaly due to an attack on the display and the attack level, in order to notify the administrator of the in-vehicle network anomaly detection system of the information as an alert. For example, the result output unit 660 may be configured to cause part of the anomaly detection server 60 to function as a web server that the administrator can access using software (e.g., a general-purpose web browser or dedicated application software) for viewing such information. For example, the result output unit 660 may be configured to cause part of the anomaly detection server 60 to function as a mail server that notifies the administrator of such information by email. For example, the result output unit 660 may output such information in a data format suitable for recording as an incident log on electronic media, etc. The administrator is an example of a recipient of a notification from the in-vehicle network monitoring system of an anomaly occurring in the in-vehicle network system of the vehicle 10. Another example of the recipient of this notification may be a security analyst at a security operation center entrusted with monitoring the in-vehicle network system.
[0073] An example of information output from the result output unit 660 is shown in Fig. 4. The example shown in Fig. 4 indicates that the time when an abnormality occurred in the in-vehicle network system of a vehicle that is model A (or the abnormality was detected from the in-vehicle network log) was 1:15 PM on January 15, 2020. Furthermore, this example indicates that the attack level of the attack that caused this abnormality was high, that the IDs of the frames in which the abnormality was detected, i.e., the types of data frames, are 0x100 and 0x200, and that for the data frame with an ID of 0x100, the portion of the payload (data field) in bit positions 0 to 15 is the abnormal portion due to sensor value falsification, and for the data frame with an ID of 0x200, the portion of the payload in bit positions 33 to 36 is the abnormal portion due to state value falsification.
[0074] By receiving such information, the administrator or security analyst can not only prioritize responses to each anomaly according to its level of danger (in the above example, the attack level), but also determine the type of attack that is causing the anomaly, allowing them to more quickly and appropriately decide on the content of the response.
[0075] The reference model holding unit 670 holds a reference model (hereinafter also referred to as a normal data distribution model) that indicates the data distribution of frames transmitted and received by the in-vehicle network system when the vehicle 10 is running normally. Data during normal running is data acquired at a different timing from observed data. For example, the data may be data collected during a test run of the vehicle 10 or another vehicle with the same specifications before shipping, or may be in-vehicle network data uploaded from the vehicle 10 or another vehicle with the same specifications that is determined not to have been attacked. Figure 5 shows an example of a normal data distribution model stored in the reference model holding unit 670, and details will be described later.
[0076] The attack type determination table 680 holds a table for determining the attack type based on the abnormal portion length. An example of the attack type determination table is shown in Fig. 6, and will be described in detail later.
[0077] The attack level determination table 690 holds a table for determining the risk level using a combination of conditions related to the number of types of IDs where an abnormality has occurred, conditions related to the abnormal part of the payload, and conditions related to the determined attack type. An example of the attack level determination table is shown in Figure 7, and details will be described later.
[0078] [1.4 Normal Data Distribution Model] Fig. 5 is a diagram showing an example of a normal data distribution model stored in the reference model storage unit 670 of the anomaly detection server 60. As shown in Fig. 5, the normal data distribution model stores a frequency distribution of payload values for each CAN data frame ID (see the "CAN ID" column in the figure).
[0079] Specifically, in a data frame with an ID of 0x100, the payload value 0x00000000000000000 appears 10 times, the payload value 0x0000000000000011 appears 22 times, the payload value 0x00FF000000000000 appears 10,000 times, and the payload value 0x00FF008888000011 appears 8,000 times. Also, in a data frame with an ID of 0x200, the payload value 0xFF00FFFF00000088 appears 50 times.
[0080] 5 is in the form of a frequency distribution using the actual measured values of the occurrence frequency of the payload value as is, but it may also be in the form of a frequency distribution of values normalized for each ID, for example, relative frequency.Furthermore, a frequency distribution of normal data for each vehicle state, such as when the vehicle is stopped or moving, may also be held.Furthermore, the model held by the reference model holding unit 670 may be encrypted.
[0081] [1.5 Attack Type Judgment Table] FIG. 6 is a diagram showing an example of the attack type determination table stored in the attack type determination table 680 of the anomaly detection server 60. As shown in FIG.
[0082] 6, when the bit length (abnormal portion length) of the payload abnormal portion, i.e., the portion corresponding to the feature that contributed to the abnormality in the payload of the data frame, is 1 bit or more and 4 bits or less, the attack type determination unit 640 determines that the attack is a state value spoofing. Also, when the abnormal portion length is 8 bits or more and 31 bits or less, it is determined that the attack is a sensor value spoofing, and when it is 32 bits or more, it is determined that the attack is a trial attack.
[0083] [1.6 Attack Level Judgment Table] FIG. 7 is a diagram showing an example of the attack level determination table stored in the attack level determination table 690 of the anomaly detection server 60. As shown in FIG.
[0084] According to the attack level determination table 690 shown in Figure 7, when there are multiple data frames that are determined to be abnormal, the attack level is determined based on a combination of a first condition related to the number of types of data frames, i.e., whether these data frames contain a single or multiple IDs, and a second condition related to the attack type or number of attack types and the abnormal part of the payload (bit position in the payload).
[0085] Even if the ID of the data frame determined to be abnormal (the first condition) is either single or multiple, if the attack type (the second condition) is only a trial attack, the attack level determination unit 650 determines the attack level to be low. This is because the attack is carried out by an attacker who does not understand vehicle control commands, and the impact on vehicle control is likely to be low.
[0086] If the first condition is satisfied, and the data frame determined to be abnormal has a single ID, and the second condition is satisfied, and the attack type is other than a trial attack, the attack level determination unit 650 determines the attack level to be medium. This is because the attack is carried out by an attacker who has specified the type of data frame to be attacked, and is likely to be more dangerous as it affects vehicle control. Furthermore, if the first condition is satisfied, and the data frame determined to be abnormal has multiple IDs, but the second condition is satisfied, and the attack type is one type other than a trial attack, and the abnormal parts of the payload are the same, the attack level is determined to be medium. This is because the attack is carried out by an attacker who has specified at least the part of the data field to be attacked, and is likely to be more dangerous.
[0087] If the first condition is met, where there are multiple IDs in the data frame that are determined to be abnormal, and the second condition is met, where different types of attacks are being carried out in combination, or where the abnormal parts differ depending on the ID of the data frame, the attack level is determined to be high. This is because there is a high possibility that this is a high-risk attack by an attacker who is able to spoof or tamper with the minimum number of data frames necessary for unauthorized control.
[0088] [1.7 ECU Configuration] 8 is a configuration diagram of the ECU 302 and the TCU 312. The other ECUs have basically the same configuration as the ECU 302, but the devices connected to the external device control unit 350 differ depending on the ECU. As shown in FIG. 8, the ECU 302 includes a frame transmission / reception unit 330, a frame interpretation unit 340, the external device control unit 350, a frame generation unit 360, and a reception history storage unit 370. The functions of these components are realized by, for example, a communication circuit, a processor that executes a control program stored in a memory, a digital circuit, or the like.
[0089] The frame transmitting / receiving unit 330 is connected to the bus 3000 and notifies the frame interpreting unit 340 of a data frame received from the bus 3000 .
[0090] The frame interpretation unit 340 interprets the data frame notified from the frame transmission / reception unit 330, and notifies the external device control unit 350 of the control of the external device according to the result of the interpretation. In the case of the ECU 302, the received data frame is temporarily stored as a reception history in the reception history storage unit 370. This reception history is uploaded to the anomaly detection server 60 at predetermined intervals via the TCU 312 as an in-vehicle network log.
[0091] 8, the external device control unit 350 has a function of controlling an external device connected to the ECU 302, such as the TCU 312. The external device control unit 350 also instructs the frame generation unit 360 to generate a frame based on the state of the external device or the content of communication with the external device.
[0092] Upon receiving an instruction to generate a frame, the frame generating unit 360 generates a frame and requests the frame transmitting / receiving unit 330 to transmit the generated frame.
[0093] The reception history holding unit 370 holds a history of data frames received from the bus 3000 at predetermined intervals, that is, a reception history. Fig. 9 shows an example of the reception history held in the reception history holding unit 370. The reception history will be described in detail later.
[0094] The TCU 312 includes a server communication unit 380 .
[0095] The server communication unit 380 communicates with the abnormality detection server 60 via the network 20. For example, the server communication unit 380 uploads the reception history received from the ECU 302 to the abnormality detection server 60.
[0096] [1.8 Frame reception history] 9 is a diagram showing an example of the reception history stored in the reception history storage unit 370 of the ECU 302. As shown in Fig. 9, the reception history stores a frequency distribution of payload values for each ID of a CAN data frame (see the "CAN ID" column in the figure).
[0097] Specifically, in a data frame with an ID of 0x100, the payload value 0x00FF000000000022 appears four times, the payload value 0x00FF000000000011 appears six times, and the payload value 0x00FF000000000000 appears ten times. Also, in a data frame with an ID of 0x200, the payload value 0xFF00FFFF00000088 appears three times, and the payload value 0xFF00FFF0000000F0 appears two times. Also, in a data frame with an ID of 0x300, the payload value 0x5500FF00330011E4 appears three times.
[0098] Note that the reception history shown in the example of FIG. 9 is in the form of a frequency distribution using the actual measured values of the number of occurrences of payload values as they are, but it may also be in the form of values normalized for each ID, for example, a relative frequency. Also, a frequency distribution of payload values for each vehicle status, such as when stopped or moving, may be stored. Also, the reception history stored by the reception history storage unit 370 may be encrypted. The data structure of the reception history is not limited to the examples described above. For example, it may be data in a format in which the reception time and payload value of each data frame are arranged in chronological order.
[0099] [1.9 Gateway Configuration] 10 shows the configuration of a gateway 900 in the in-vehicle network system of a vehicle 10. As shown in Fig. 10, the gateway 900 includes a frame transmitting / receiving unit 910, a frame interpretation unit 920, a transfer control unit 930, a frame generation unit 940, and a transfer rule storage unit 950. The functions of these components are realized by, for example, a communication circuit, a processor that executes a control program stored in memory, a digital circuit, or the like.
[0100] The frame transmitting / receiving unit 910 is connected to bus 1000, bus 2000, bus 3000, bus 4000, and bus 5000, and transmits and receives frames conforming to the CAN protocol to and from each of them. The frame transmitting / receiving unit 910 receives a frame one bit at a time from each bus and notifies the frame interpretation unit 920. Furthermore, when the frame generating unit 940 notifies it of bus information indicating the destination bus and a frame to be transmitted, it transmits the frame one bit at a time to the bus indicated by the bus information, among bus 1000, bus 2000, bus 3000, bus 4000, and bus 5000.
[0101] The frame interpretation unit 920 interprets the bit values constituting the frame received from the frame transmission / reception unit 910 so as to map them to each field in the frame format defined by the CAN protocol. Thereafter, it notifies the transfer control unit 930 of information regarding the received data frame. If the frame interpretation unit 920 determines that the received frame does not conform to the CAN protocol, it notifies the frame generation unit 940 to transmit an error frame. Furthermore, if the frame interpretation unit 920 receives an error frame, that is, if it interprets the received frame as an error frame based on the bit values constituting the frame, it discards the subsequent frame, that is, it stops interpreting the frame.
[0102] The transfer control unit 930 selects a destination bus according to the ID and source bus of the received frame, i.e., the bus that received the frame, in accordance with the transfer rules stored in the transfer rule storage unit 950, and notifies the frame generation unit 940 of the bus information indicating the destination bus and the contents of the frame to be transferred, such as the ID, DLC, data field, etc. notified by the frame interpretation unit 920, and requests transmission to the destination bus.
[0103] In response to a transmission request from the transfer control unit 930, the frame generation unit 940 generates a frame for transmission using the contents of the frame notified by the transfer control unit 930, and notifies the frame transmission / reception unit 910 of destination information based on the frame for transmission and bus information, such as the identifier of the destination bus.
[0104] The transfer rule storage unit 950 stores transfer rule information that indicates rules for transferring frames for each bus. For example, the transfer rule information indicates, for each bus as a transfer source, the correspondence between the ID of a data frame to be transferred received from that bus, the transfer destination bus, and the ID of the data frame at the transfer destination.
[0105] [1.10 Processing sequence between vehicle and anomaly detection server] 11 is a diagram showing an example of a processing sequence in an in-vehicle network anomaly detection system including an anomaly detection server 60 and a vehicle 10. More specifically, this is an example of processing in which an in-vehicle network log including information about the payload of a data frame transmitted and received over a CAN bus of an in-vehicle network system provided in the vehicle 10 is transmitted to the anomaly detection server 60, and the anomaly detection server 60 analyzes this log. Specifically, this is an example of processing when the ECU 302 of the vehicle 10 receives a data frame transmitted over the bus 3000.
[0106] When one of the ECUs connected to the bus 3000 in the in-vehicle network of the vehicle 10 (the camera ECU 300, the car navigation system ECU 301, or the gateway 900) transmits a CAN data frame to the bus 3000, the data frame flows on the bus 3000 (steps S101, S103, S105).
[0107] The ECU 302 of the vehicle 10 receives the data frames transmitted to the bus 3000 in steps S101, S103, and S105, and stores a reception history (see the example in FIG. 9) of the set of received data frames (steps S102, S104, and S106).
[0108] After a predetermined period of time has elapsed, ECU302 causes TCU312 to upload an in-vehicle network log (denoted as "log" in the figure) containing information related to the distribution of the payload of the received data frame to the anomaly detection server 60 via network 20 (step S107).
[0109] The abnormality detection server 60 receives the in-vehicle network log transmitted from the vehicle 10 (step S108).
[0110] Then, the anomaly detection server 60 analyzes the received in-vehicle network log using the normal model (see the example in FIG. 5) stored in the anomaly detection server 60 (step S109).
[0111] Finally, the abnormality detection server 60 outputs the analysis result of the in-vehicle network log (step S110).
[0112] [1.11 Analysis of in-vehicle network logs on the anomaly detection server] 12 is a flowchart showing an example of the procedure for processing executed by the anomaly detection server 60 to analyze the in-vehicle network log received from the vehicle 10. The processing for analyzing the log information of the vehicle 10 will be described below with reference to this flowchart.
[0113] The anomaly detection server 60 uses the in-vehicle network log uploaded from the vehicle 10, i.e., the log containing information about the distribution of payloads of data frames transmitted and received by the in-vehicle network system of the vehicle 10, and the normal data distribution model stored in the reference model storage unit 670 of the anomaly detection server 60 to train a classifier to classify data observed for anomaly detection (observed data) and normal data (step S201).
[0114] Next, the anomaly detection server 60 inputs the payload of each data frame (hereinafter also referred to as received data) contained in the in-vehicle network log uploaded from the vehicle 10 as a target for anomaly detection processing into the classifier trained in step S201 (step S202).
[0115] The in-vehicle network log uploaded from the vehicle 10 in step S202 is based on a set of data frames (observation data) that are transmitted and received by the in-vehicle network system and acquired as observation targets for actual anomaly detection. In contrast, the in-vehicle network log uploaded from the vehicle 10 in step S201 is based on data frames that were transmitted and received by the in-vehicle network system on a different occasion from the observation data on which the in-vehicle network log uploaded in step S202 is based, and is used as training data for learning the classifier.
[0116] If, as a result of inputting the received data into the classifier, the score belonging to observed data of the input received data is equal to or greater than a predetermined value (or the score belonging to normal data is equal to or less than a predetermined value), that is, if the received data (or the corresponding data frame) is determined to be abnormal (Yes in step S203), the anomaly detection server 60 executes step S205. If the received data is not abnormal (No in step S203), the anomaly detection server 60 executes step S204.
[0117] The anomaly detection server 60 checks whether the determination of anomalies in the corresponding data frames for the series of received data to be processed has been completed, that is, whether there is received data that has not yet been input to the classifier (step S204). If there is received data that has not yet been input to the classifier (Yes in step S204), the anomaly detection server 60 executes step S202 for the received data that has not yet been input to the classifier. If there is no received data that has not yet been input to the classifier (No in step S204), the anomaly detection server 60 executes step S206.
[0118] The anomaly detection server 60 calculates the bit position (abnormal part) of the part that indicates the feature that contributed to the anomaly in the payload of the data frame corresponding to the received data that was determined to be abnormal, and the bit length of the abnormal part (abnormal part length), and stores it together with the ID and payload data (step S205).
[0119] The anomaly detection server 60 checks whether or not there is a data frame determined to be abnormal in the in-vehicle network log uploaded from the vehicle 10 (step S206). If there is a data frame determined to be abnormal (Yes in step S206), the anomaly detection server 60 executes step S207, and if there is no received data determined to be abnormal (No in step S206), the anomaly detection server 60 ends the process.
[0120] The anomaly detection server 60 refers to the attack type determination table stored in the attack type determination table 680, and determines the attack type for each data frame determined to be anomalous from the length of the anomalous portion (step S207). The detailed processing content of step S207 will be described later with reference to FIG. 13.
[0121] Next, the anomaly detection server 60 determines the attack level based on the number of types of IDs in each data frame determined to be anomalous, the position of the anomalous part in the payload, and the combination of attack types (step S208). The detailed processing content of step S208 will be described later with reference to FIG. 14.
[0122] Finally, the anomaly detection server 60 outputs the determination result (corresponding to step S110 in FIG. 11), and ends the process.
[0123] [1.12 Attack type determination process by anomaly detection server] 13 is a flowchart showing an example of the procedure for determining the type of attack in the anomaly detection server 60. This example of the procedure shows details of step S207 in the analysis process of the in-vehicle network log shown in FIG.
[0124] The anomaly detection server 60 checks whether the length of the abnormal portion of the data frame determined to be abnormal is 1 bit or more and 4 bits or less (step S2071). If the abnormal portion length is 1 bit or more and 4 bits or less (Yes in step S2071), the anomaly detection server 60 determines the type of attack to be state value falsification (step S2072). If the abnormal portion length is not 1 bit or more and 4 bits or less (No in step S2071), the anomaly detection server 60 checks whether the abnormal portion length is 5 bits or more and 31 bits or less (step S2073). If the abnormal portion length is 5 bits or more and 31 bits or less (Yes in step S2073), the anomaly detection server 60 determines the type of attack to be sensor value falsification (step S2074). If the abnormal portion length is not between 5 bits and 31 bits (No in step S2073), that is, if the abnormal portion length is 32 bits or more, the anomaly detection server 60 determines the attack type to be a trial attack (step S2075).
[0125] The anomaly detection server 60 performs the above process until there are no more data frames that have been determined to be abnormal but whose attack type has not yet been determined.
[0126] [1.13 Anomaly detection server attack level determination process] 14 is a flowchart showing an example of the procedure for attack level determination processing in the anomaly detection server 60. This example of the procedure is a detailed example of step S208 of the processing for analyzing the in-vehicle network log shown in FIG.
[0127] The anomaly detection server 60 checks whether or not there are any data frames whose attack types have not been determined (step S2081). If there are any data frames whose attack types have not been determined (Yes in step S2081), the anomaly detection server 60 waits until there are no more data frames whose attack types have not been determined.
[0128] If there are no data frames whose attack type has not yet been determined (No in step S2081), the anomaly detection server 60 checks whether the determined attack type is only a trial attack (step S2082). If the attack type is only a trial attack (Yes in step S2082), the anomaly detection server 60 determines the attack level to be "low" (step S2083).
[0129] If the attack type is not only a trial attack (No in step S2082), the anomaly detection server 60 checks whether the IDs of the data frames determined to be abnormal are of only one type (step S2084). If the IDs of the data frames determined to be abnormal are of only one type (Yes in step S2084), the anomaly detection server 60 determines the attack level to be "medium" (step S2085).
[0130] If the data frames determined to be anomalous do not have only one type of ID, i.e., if there are multiple IDs (No in step S2084), the anomaly detection server 60 checks whether the attack type determined in step S207 is common among the data frames with different IDs and whether the anomalous parts are also common (step S2086). If the attack type and attack part are common (Yes in step S2086), the anomaly detection server 60 determines the attack level to be "medium" (step S2085). If not (No in step S2086), the anomaly detection server 60 determines the attack level to be "high" (step S2087).
[0131] [1.14 Effect of the embodiment] In the in-vehicle network monitoring system according to this embodiment, the anomaly detection server 60 acquires from the vehicle 10 information regarding the distribution of payload values of frames transmitted and received in the in-vehicle network system, and compares this distribution with the distribution of payload values of normal data frames held by the anomaly detection server 60 to detect anomalous data frames. This allows the anomaly detection server 60 to detect changes in the distribution of payload values within a predetermined period of observation for anomaly detection. Even if a data frame has a payload value within the normal range injected into its payload for the purpose of an attack, rather than an outlier, the data frame is detected as anomalous based on this change. Such an anomaly detection server 60 has high accuracy in detecting anomalous data frames, potentially enhancing the security of the in-vehicle network system.
[0132] Furthermore, for a data frame determined to be anomalous, the anomaly detection server 60 calculates the anomaly contribution level, which determines which of multiple feature values corresponding to different parts of the payload of the data frame contributes to the anomaly. This not only detects anomalous data frames, but also makes it possible to identify anomalous parts of the payload of the data frame, making it easier to understand the details of the attack.
[0133] Furthermore, the anomaly detection server 60 determines the type of attack that caused the anomaly based on the length of the payload anomaly portion of the data frame that was determined to be anomalous (anomaly portion length). This makes it possible to determine which subfield in the payload is spoofed, allowing for a more abstract understanding of the attack content, leading to a faster and more appropriate response to the anomaly.
[0134] Furthermore, the anomaly detection server 60 determines the attack level, which indicates the degree of danger, based on conditions related to the type of attack ascertained from the ID indicating the type of data frame determined to be anomalous, the abnormal portion of the payload, and the length of the abnormal portion. This makes it possible to prioritize responses to high-risk attacks, such as those related to unauthorized control of a vehicle, and to reduce the risk of an accident occurring early on.
[0135] [Modifications and Supplements] Although an anomaly detection method or anomaly detection device according to one or more aspects has been described based on the embodiments, the anomaly detection method and anomaly detection device according to the present disclosure are not limited to these embodiments. As long as they do not deviate from the spirit of the present disclosure, configurations constructed by combining components of different embodiments and various modifications conceivable by those skilled in the art to the present embodiments may also be included within the scope of one or more aspects. Below are listed such modifications of the above embodiments and supplementary notes to the explanation of the above embodiments.
[0136] (1) In the above embodiments, the in-vehicle network system is described as conforming to the CAN protocol. However, the communication network system to which the anomaly detection method and anomaly detection device according to the present disclosure can be applied is not limited to this. The in-vehicle network system may also be compliant with other standards, such as CAN-FD (CAN with Flexible Data Rate), Ethernet (registered trademark), LIN (Local Interconnect Network), or FlexRay (registered trademark). The in-vehicle network system may also include a mixture of multiple networks conforming to any of these standards. Furthermore, in the above embodiments, the anomaly detection method and anomaly detection device according to the present disclosure are described as security measures applied to an in-vehicle network system installed in an automobile. However, the scope of application is not limited to this. The anomaly detection method and anomaly detection device according to the present disclosure may also be applied to communication network systems for mobility, such as construction machinery, agricultural machinery, ships, railways, airplanes, and drones, in addition to automobiles. The anomaly detection method and anomaly detection device according to the present disclosure may also be applied to communication network systems used in industrial control systems in facilities such as factories or buildings, and communication network systems for controlling embedded devices.
[0137] (2) In the above embodiment, the cause of the detected anomaly is assumed to be an attack on the communication network system, and the type of attack is determined. However, the cause of the anomaly detected by the anomaly detection method and anomaly detection device according to the present disclosure is not limited to an attack. For example, the type of anomaly may be determined to be a failure, damage, or defect in various devices connected to the communication network, or a malfunction due to an external factor (e.g., temperature, humidity, or external noise). The attack type determined by the attack type determination unit 640 in the above embodiment may be an example of this anomaly type. Furthermore, an anomaly level indicating a degree of danger may be determined using conditions related to these anomaly types, not limited to attacks. The attack level determined by the attack level determination unit 650 in the above embodiment may be an example of this anomaly level.
[0138] (3) In the above embodiment, the anomaly detection process is performed by a server. However, it may also be performed locally within a communication network system, such as a vehicle. For example, it may be performed by a graphics processing unit (GPU) of a head unit constituting the in-vehicle network system. This allows for more immediate anomaly detection than when the process is performed by a server. In this case, the server may aggregate the results of the anomaly detection process performed locally on each vehicle. The reference model used locally at this time may be stored in advance in a storage device within the local communication network system or may be downloaded from the server as appropriate. Furthermore, the anomaly detection process may be shared between the local communication network system and the server, for example, with the communication network system performing the process up to identifying the abnormal part, and the server performing the subsequent process of determining the attack type and attack level.
[0139] (4) In the above embodiment, a reference model is stored in advance in the anomaly detection server. However, a reference model does not have to be stored in advance. For example, log information indicating that no anomaly has occurred may be used as a reference model indicating the distribution of data when no anomaly has occurred in subsequent anomaly determinations. Furthermore, the reference model stored in the anomaly detection server may be updated using the in-vehicle network log.
[0140] (5) In the above embodiment, no particular example of the anomaly detection server is given, but it may be executed locally, i.e., in the above embodiment, on a server prepared as an edge server close to the vehicle. This reduces the impact of network delays compared to having a cloud server handle the anomaly detection process. For example, the edge server may be a roadside device connected to a cloud server via a network, and the vehicle uploads an in-vehicle network log to the roadside device. The roadside device may execute anomaly detection on the received in-vehicle network log, return the results to the vehicle, and also upload the results to the cloud server.
[0141] (6) In the above embodiment, the administrator or security analyst of the in-vehicle network monitoring system is set as the recipient of information for notifying an alert when an abnormality is detected in the vehicle or server, but the present invention is not limited to this. For example, the information may be provided to an information terminal used by the car manufacturer, ECU supplier, or vehicle user such as the driver or owner. The information may also be provided to a security provider that can be shared among multiple car manufacturers.
[0142] (7) In the above embodiment, the TCU uploads logs of data frames received by an ECU connected to the TCU to the anomaly detection server. However, the uploading of data frames from a vehicle to the anomaly detection server is not limited to this. For example, a gateway that receives data frames from a wider range within the in-vehicle network system may upload logs of data frames received to the anomaly detection server. Furthermore, this log information may be uploaded from the gateway to the anomaly detection server.
[0143] (8) In the above embodiment, the ECU periodically uploads the in-vehicle network data frame log. However, the uploading opportunity or frequency is not limited to this. For example, the in-vehicle network log may be uploaded in response to a request from the anomaly detection server, or may be uploaded only when an anomaly is detected by an intrusion detection system (IDS) installed in the vehicle. Network congestion and an overload on the anomaly detection server can cause delays in the anomaly detection process, leading to delays in the response based on the results. However, this reduces network traffic and the processing load on the anomaly detection server, thereby preventing response delays.
[0144] (9) In the above embodiment, the anomaly detection server may perform anomaly detection processing on all data frames indicated by the in-vehicle network log uploaded from the vehicle, or may only perform anomaly detection processing on a portion of the data frames. For example, only data frames with a specific ID may be subject to anomaly detection processing. This reduces the processing load on the anomaly detection server. Furthermore, the IDs of the target data frames may be dynamically switched. This reduces the load of the anomaly detection processing on the anomaly detection server while performing anomaly detection processing on data frames with all IDs, achieving a balance between maintaining safety and avoiding delays in responding to anomalies.
[0145] (10) In the above embodiment, the ECU that uploads the in-vehicle network log uploads log information based on the payload information of all data frames received during a predetermined period. However, the log information uploaded to the anomaly detection server does not have to be based on the payload information of all data frames. For example, the uploaded log information may be based on the payload information of data frames with a specific ID. This reduces network traffic and the processing load on the anomaly detection server. Furthermore, the IDs of data frames to be uploaded may be dynamically switched. This reduces the load of the anomaly detection process on the anomaly detection server while performing anomaly detection on data frames with all IDs, achieving a balance between maintaining safety and avoiding delays in responding to anomalies.
[0146] (11) In the above embodiment, the anomaly detection server performs anomaly detection processing using all of the multidimensional features corresponding to the payload values of the data frame as input. However, the number of dimensions of the input features may be reduced. For example, if the counter or checksum subfields included in the payload are known, the features corresponding to these subfields may be excluded from the input to the anomaly detection processing. This reduces the amount of calculation by excluding parts that do not directly affect unauthorized control from the anomaly detection processing, and enables appropriate anomaly detection.
[0147] (12) In the above embodiment, the anomaly detection server classifies attacks into three types: sensor value falsification, state value falsification, and trial attacks. However, the classification of attacks is not limited to these. For example, a classification that includes the above-mentioned combined attacks within the same data frame may be used. Furthermore, in the above embodiment, the values of the abnormal portion length of the payload used to determine attacks and other anomaly types are merely examples and are not intended to be limiting. If the possible range of the abnormal portion length in the case of an abnormal sensor value is defined as the first range, the possible range of the abnormal portion length in the case of an abnormal state value is defined as the second range, and the possible range of the abnormal portion length in the case of an abnormality due to a trial attack is defined as the third range, the first range, the second range, and the third range are likely to be longer in this order. The above example reflects this idea. Furthermore, the first range, the second range, and the third range do not necessarily have to be contiguous. For example, if the upper limit of the first range is 4 bits, the lower limit of the second range does not have to be 5 bits and may be, for example, 8 bits. The upper and lower limits of each of these ranges may be determined based on the design, specifications, or standards of the in-vehicle network system. Alternatively, a range of abnormal portion lengths that indicates the occurrence of a complex attack such as the one described above may be used.
[0148] (13) In the above embodiment, the anomaly detection server classified attack levels into low, medium, and high, but the classification method is not limited to this. For example, a score with more levels may be used. The attack level score may be calculated using a predetermined formula including parameters based on, for example, the ID of the frame determined to be anomalous, the number of IDs of frames determined to be anomalous (i.e., the number of types of data frames), the attack type, or the length of the anomalous portion, and the location of the anomalous portion in the payload. This makes it possible to respond to an anomaly that has occurred according to a more granular level of risk, and to more accurately prioritize analysis.
[0149] (14) In the above embodiment, the anomaly detection server determines the type of attack based on the bit length of the anomalous portion, i.e., the portion of the payload that contributed to the anomaly. However, the method for determining the type of attack is not limited to this. For example, the anomaly contribution may also be used to determine the type of attack. Alternatively, the anomaly contribution calculated for the payload of the data frame being subjected to anomaly detection processing may be input into an attack type classifier that has been trained on the anomaly contribution to determine the type of attack. Alternatively, a database containing subfield information for the payload may be maintained, and the type of attack may be determined by comparing the anomalous portion with this database.
[0150] (15) In the above embodiment, an example in which one reference model is used is shown, but this is not limited to this. For example, in the case of a vehicle, different normal models may be used depending on the vehicle model, model year, option configuration, in-vehicle network system configuration, etc.
[0151] (16) In the above embodiment, the reference model is a model that shows the distribution of data when a vehicle is running normally, but the reference model is not limited to this. For example, the reference model may be a model that shows the distribution of data when an abnormality occurs, based on data collected from a communication network system where an abnormality is known to occur.
[0152] (17) In the above embodiment, the anomaly detection server determines the attack level based on a combination of conditions related to the number of types of IDs in the data frame determined to be anomalous, the determined attack type, and the location of the anomalous part in the payload. However, the attack level may be determined without using all of these conditions. For example, if there is only one type of ID determined to be anomalous, the attack level may always be determined to be medium. This allows for more flexible calculation of the attack level.
[0153] (18) In the above embodiment, the anomaly detection server determines that a frame is anomalous when the density ratio exceeds a predetermined threshold. However, the predetermined threshold may be the value at which the density ratio of the reference model feature becomes maximum. This reduces the possibility of erroneously determining that a normal frame is anomalous, leading to reduced analysis costs.
[0154] (19) In the above embodiment, the anomaly detection server stores the distribution of payload values for each ID as a reference model. However, the distribution of payload values may be stored without separating them by ID. This allows for an effective reduction in the data size of the reference model.
[0155] (20) In the above embodiment, the vehicle log notified to the anomaly detection server is information related to CAN frames, but the vehicle log notified to the anomaly detection server is not limited to this. For example, the vehicle log may be an Ethernet frame, a CAN-FD frame, or a FlexRay frame, or may not be an in-vehicle network frame. For example, the vehicle log may be information such as GPS information indicating the current location of the vehicle, an access log to the audio head unit, a log related to the operating process, firmware version information, etc.
[0156] (21) Each device in the above embodiments is specifically a computer system consisting of a microprocessor, ROM, RAM, hard disk unit, display unit, keyboard, mouse, etc. A computer program is recorded in the RAM or hard disk unit. Each device achieves its function when the microprocessor operates in accordance with the computer program. Here, a computer program is composed of a combination of multiple instruction codes that indicate commands to a computer to achieve a predetermined function.
[0157] (22) In each of the above embodiments, some or all of the constituent elements may be configured from a single system LSI (Large Scale Integration). A system LSI is an ultra-multifunctional LSI manufactured by integrating multiple components on a single chip, and specifically, is a computer system configured to include a microprocessor, ROM, RAM, etc. A computer program is recorded in the RAM. The system LSI achieves its functions when the microprocessor operates in accordance with the computer program.
[0158] Furthermore, each of the components constituting each of the above devices may be individually integrated into a single chip, or some or all of them may be integrated into a single chip.
[0159] Although we refer to it as a system LSI here, it may also be called an IC, LSI, super LSI, or ultra LSI depending on the level of integration. Furthermore, the method of integration is not limited to LSI; it can also be realized using dedicated circuits or general-purpose processors. It is also possible to use FPGAs (Field Programmable Gate Arrays), which can be programmed after LSI manufacturing, or reconfigurable processors, which allow the connections and settings of circuit cells within LSI to be reconfigured.
[0160] Furthermore, if an integrated circuit technology that can replace LSI emerges due to advances in semiconductor technology or other derivative technologies, it is natural that such technology may be used to integrate functional blocks. The application of biotechnology, etc. is also a possibility.
[0161] (23) Some or all of the components constituting each of the above devices may be configured as an IC card or a standalone module that can be attached to 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-multifunctional LSI. The IC card or module achieves its functions when the microprocessor operates in accordance with a computer program. This IC card or module may be tamper-resistant.
[0162] (24) The present invention may be embodied as the methods described above, as a computer program for implementing these methods on a computer, or as a digital signal comprising the computer program.
[0163] The present invention 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), a semiconductor memory, etc. Alternatively, the present invention may be a digital signal recorded on such a recording medium.
[0164] Furthermore, the present invention may also be applied to 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.
[0165] The present invention may also be 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.
[0166] 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 that the program or digital signal can be implemented by another independent computer system.
[0167] (25) The above-described embodiments and modifications may be combined with each other. [Industrial Applicability]
[0168] In a communication network system such as an in-vehicle network system, the present disclosure can determine whether a frame is abnormal, even if an attacker sends a fraudulent frame that does not contain an outlier. Furthermore, the present disclosure can calculate the abnormal portion of the payload of the abnormal frame, and based on this abnormal portion, quickly determine the type and level of the abnormality and take appropriate action, which is effective in improving safety. [Explanation of symbols]
[0169] 10 vehicles 20 Network 60 Anomaly Detection Server 100, 101, 200, 201, 300, 301, 302, 400, 401 Electronic Control Unit (ECU) 110 Engine 111 Transmission 210 Brake 211 Steering 310 Camera 311 Car navigation system 312 Telematics Control Unit (TCU) 330, 910 Frame Transmitter / Receiver 340, 920 Frame interpretation section 350 External device control unit 360, 940 frame generation unit 370 Reception history storage unit 380 Server Communication Department 410 Doors 411 Light 510 Diagnostic Port 610 Communications Department 620 Abnormality detection unit 630 Abnormal part identification part 640 Attack Type Determination Unit 650 Attack Level Judgment 660 Result Output Section 670 Reference Model Holder 680 Attack Type Determination Table 690 Attack Level Judgment Table 900 Gateway 930 Transfer control section 950 Transfer rule storage unit 1000, 2000, 3000, 4000, 5000 buses
Claims
1. 1. An anomaly detection method for a communication network system, comprising: determining whether each frame included in observation data consisting of a set of frames transmitted and received on the communication network system observed during a predetermined period of time is anomalous; and outputting an anomalous portion of a payload of a frame determined to be anomalous, the method comprising: The method includes a reference model acquisition step of acquiring a data distribution of a plurality of feature quantities related to a portion of one or more bits constituting a payload included in the frame, a frame anomaly detection step of determining whether or not a frame included in the observation data is abnormal, and an anomaly portion output step, In the reference model acquisition step, the data distribution is acquired for a set of frames transmitted and received on the communication network system, the data distribution being acquired at a timing different from a timing at which the observation data is acquired; the frame anomaly detection step calculates a difference between the data distribution acquired in the reference model acquisition step and a data distribution of features extracted from the frames included in the observation data, and determines that a frame having a feature for which the difference is equal to or greater than a predetermined value is an abnormal frame; the abnormal portion output step, when a frame is determined to be an abnormal frame in the frame abnormality detection step, calculates anomaly contributions of the plurality of feature amounts extracted from the abnormal frame, and outputs a payload abnormal portion which is one or more portions in a payload corresponding to a feature amount having an anomaly contribution equal to or greater than a predetermined value; Further comprising an abnormality type determination step, In the abnormality type determination step, a payload abnormal portion length is specified based on the payload abnormal portion, and an abnormality type is determined according to the payload abnormal portion length. Anomaly detection methods.
2. In the abnormality type determination step, the abnormality type is determined to be a state value abnormality when the payload abnormal portion length is within a first range, a sensor value abnormality when the payload abnormal portion length is within a second range longer than the first range, and a trial attack abnormality when the payload abnormal portion length is within a third range longer than the second range. The anomaly detection method according to claim 1 .
3. the first range has an upper limit of 4 bits or less, the second range has a lower limit of 8 bits or more and an upper limit of 16 bits or less, The third range has a lower limit of 32 bits. The anomaly detection method according to claim 2 .
4. Further comprising an abnormality level determination step, In the abnormality level determination step, when a plurality of types of frames are detected as abnormal in the frame abnormality detection step and the payload abnormal portion outputted in the abnormal portion output step is different among the plurality of types of frames, the abnormality level is determined to be higher than when the payload abnormal portion is the same among the plurality of types of frames. The anomaly detection method according to claim 1 .
5. Further comprising an abnormality level determination step, In the abnormality level determination step, when a plurality of types of frames are detected as abnormal in the frame abnormality detection step and the abnormality types determined in the abnormality type determination step are different among the plurality of types of frames, the abnormality level is determined to be higher than when the abnormality types are the same among the plurality of types of frames. The anomaly detection method according to claim 1 .
6. Further comprising an abnormality level determination step, In the abnormality level determination step, when one or more types of frames are detected as abnormal in the frame abnormality detection step and the abnormality type determined in the abnormality type determination step is only a trial attack abnormality, the abnormality level is determined to be lower than when the determined abnormality types do not include a trial attack abnormality. The anomaly detection method according to claim 1 .
7. Further comprising an abnormality level determination step, In the abnormality level determination step, when one or more types of frames are determined to be abnormal in the frame abnormality detection step, an abnormality level is determined based on a predetermined calculation formula having as parameters one or more of the following elements: the type of the frame determined to be abnormal, the number of types of the frames determined to be abnormal, the payload abnormal portion output in the abnormal portion output step, and the type of abnormality determined in the abnormality type determination step. The anomaly detection method according to claim 1 .
8. In the abnormality type determination step, when a single frame contains a plurality of payload abnormal portions, if the number of intermediate bits between the plurality of payload abnormal portions is equal to or smaller than a predetermined threshold, the plurality of payload abnormal portions and the intermediate bits are treated as a single payload abnormal portion. The anomaly detection method according to claim 1 .
9. The communication network system is an in-vehicle network system. The anomaly detection method according to claim 1 .
10. 1. An anomaly detection device for a communication network system, the anomaly detection device determining whether a frame included in observation data consisting of a set of frames transmitted and received on the communication network system observed during a predetermined period of time is abnormal, and outputting an abnormal portion of a payload of a frame determined to be abnormal, a reference model storage unit that stores data distributions of a plurality of feature quantities related to a portion of one or more bits constituting a payload included in the frame; an anomaly detection unit that determines whether a frame included in the observation data is abnormal; an abnormality portion output unit that calculates anomaly contributions of the plurality of feature amounts extracted from the abnormal frame when an abnormal frame is detected by the anomaly detection unit, and outputs a payload abnormal portion, which is one or more portions included in the frame and corresponds to a feature amount having an anomaly contribution degree equal to or greater than a predetermined value; the reference model holding unit holds the data distribution for a set of frames transmitted and received over the communication network system, the data distribution being acquired at a timing different from an acquisition timing of the observation data; the anomaly detection unit calculates a difference between the data distribution held by the reference model holding unit and a data distribution of features extracted from the frames included in the observation data, and determines that a frame having a feature for which the difference is equal to or greater than a predetermined value is an abnormal frame; Further, a determination unit is provided, the determination unit specifies a length of the payload abnormal portion based on the payload abnormal portion, and determines an abnormality type according to the length of the payload abnormal portion. Anomaly detection device.
11. A program for causing a computer to execute the anomaly detection method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Production of thermistor [tosa[tosa][garasuko[garasuko] - -
JP1989002302A
Network abnormality detection system
JP2006115129A
Abnormality detection device and abnormality detection method
JP2018160078A
Information processing method, information processng system, and program
WO2018105330A1
Information processing method, information processing system, and program
WO2018168291A1
