Information processing device, log analysis method and program product
By generating the log graph structure of the device and analyzing the attack path of the network attack, the problem of discontinuous attack paths in the existing technology is solved, and the effective analysis of the abnormal impact range and the determination of the attack path are achieved to prevent the expansion of the attack.
Patent Information
- Application Number
- CN201980066134.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-10-11
- Filing Date
- 2019-10-10
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2039-10-10
AI Technical Summary
Existing technology makes it difficult to analyze how the attack path of a network attack causes anomalies. Especially when the attack path is discontinuous, it is difficult to determine the root cause of the attack.
By generating a log graph structure of the device, it represents the association between processes and objects, and determines the relevant processes and objects if the object is specified. The tracking component uses the graph structure to determine the impact scope of the anomaly.
Effectively analyze the impact scope of specified events in the device, and can conduct effective analysis when anomalies are detected and external attacks are suspected to prevent the expansion of attacks.
Smart Images

Figure CN112823339B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an information processing device, a log analysis method and a program. Background Art
[0002] In the soon-to-be-popularized connected cars (vehicles connected to an external network), it is expected that convenience will be improved, for example, work such as software upgrades of ECUs (Electronic Control Units) that previously had to be performed at dealers can be performed wirelessly.
[0003] On the other hand, it is also pointed out that since the vehicle and its control equipment are connected to the external network, such a vehicle and its control equipment may become the target of network attacks (server attacks) from malicious attackers, just like existing IT equipment. In addition, there are studies that point out that by accessing from the external network, the controller actually installed on the vehicle can be illegally tampered with, and false instructions can be issued from the controller to the ECU, thereby taking over the control of the vehicle (for example, non-patent document 1).
[0004] In order to detect cyber attacks on vehicles, IDS (Intrusion Detection System) for detecting abnormalities in the vehicle's control information network, ie, CAN (Controller Area Network) has been studied and discussed (for example, Non-Patent Documents 2 and 3).
[0005] [Reference document]
[0006] [Non-patent document]
[0007] [Non-Patent Document 1] Sen Nie, “FREE-FALL: HACKING TESLA FROM WIRELESS TO CANBUS”, BlackHat, 2017, [online], Internet <URL: https: / / www.blackhat.com / docs / us-17 / thursday / us-17-Nie-Free-Fall-Hacking-Tesla-From-Wireless-To-CAN-Bus-wp.pdf>
[0008] [Non-patent document 2] Otsuka Toshiyoshi, "It is not necessary to use in-vehicle LAN intrusion techniques in the existing EUC", Information Processing Society Research Report, Vol. 2013-EMB-28 No. 6, pp. 31-35, 2013
[0009] [Non-patent document 3] Okano Yasuda, "Variance Gamma Distribution およびDouble Gamma Distribution: Anomaly Knowledge of Insert Attack Using Gamma Distribution”, SCIS2018, 2018 Summary of the invention
[0010] [Technical issues to be solved]
[0011] Although the detection of anomalies by IDS when a cyber attack against a vehicle occurs has been studied and explored, it is difficult to analyze how the anomalies are caused.
[0012] In the example of a network attack in non-patent document 1, first, the vehicle-mounted web browser accesses a fake website and downloads malicious code. Then, the malicious code downloads fake controller update software to update the software of the vehicle's controller. Based on this, a false instruction can be issued from the controller to the ECU. In this example, the attack path is temporarily cut off before and after the fake controller update software is downloaded. In this way, when a network attack is carried out on the vehicle, the attack path from the occurrence of the network attack to the detection of the abnormality may be discontinuous. Although the IDS can detect the abnormality when a false instruction is issued to the ECU, since the abnormality exists not only in the ECU, but also in the attack path to the vehicle-mounted web browser, it is difficult to determine the attack path to the root cause of the abnormality, that is, the download of the malicious code.
[0013] It should be noted that the above-mentioned problem is not limited to vehicles, but can be considered a universal problem existing in various devices connected to the network. For example, IoT (Internet of Things) devices can work as client devices, so similar to network attacks against vehicles, there is a possibility that the attack has already occurred before anomaly detection and the attack path is discontinuous. For this reason, in devices connected to the network, it is necessary to effectively analyze the scope of influence of the attack path, etc. In addition, it is also expected that the scope of influence can be effectively analyzed not only when anomaly detection is performed, but also when an external attack is suspected.
[0014] The present invention is proposed in view of the above problems, and its object is to effectively analyze the impact range of a specified event in a device.
[0015] [Technical solution]
[0016] Therefore, in order to solve the above-mentioned problem, the information processing device comprises: a generating unit, which generates a graph structure based on the log acquired from the device, and the graph structure represents the association between a process and an object related to the process; and a determining unit, which determines the process related to the specified object and determines the object related to the determined process based on the generated graph structure when any object of the device is specified.
[0017] [Beneficial Effects]
[0018] Ability to effectively analyze the impact scope of a specified event in a device. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] [ Figure 1 ]A schematic diagram of an example of a system configuration in an embodiment of the present invention.
[0020] [ Figure 2 ]A schematic diagram of an example of the hardware configuration of the monitoring server 10 in an embodiment of the present invention.
[0021] [ Figure 3 ]A schematic diagram of an example of the hardware configuration of a vehicle 20 in an embodiment of the present invention.
[0022] [ Figure 4A ] A diagram showing an example of the functional configuration of a vehicle 20 and a monitoring server 10 in Embodiment 1 of the present invention.
[0023] [ Figure 4B ]A schematic diagram of an example of the functional configuration of a vehicle 20 in Embodiment 1 of the present invention.
[0024] [ Figure 5A ]A schematic diagram of an example of the functional configuration of a vehicle 20 and a monitoring server 10 in Embodiment 2 of the present invention.
[0025] [ Figure 5B ]A schematic diagram of an example of the functional configuration of a vehicle 20 and a monitoring server 10 in Embodiment 3 of the present invention.
[0026] [ Figure 6 ]A flowchart used to illustrate an example of the processing steps when generating a log.
[0027] [ Fig. 7A ]A timing diagram showing an example of processing performed during normal operation.
[0028] [ Figure 7B ]A timing diagram showing an example of processing performed during normal operation.
[0029] [ Figure 8]exist Fig. 7A and Figure 7B Schematic diagram of an example of a log obtained by the monitoring unit 251 in the sequence of .
[0030] [ Fig.9A ]A timing diagram showing an example of the processing performed when an external attack occurs.
[0031] [ Fig. 9B ]A timing diagram showing an example of the processing performed when an external attack occurs.
[0032] [ Fig.10 ]exist Fig.9A and Fig. 9B Schematic diagram of an example of a log obtained by the monitoring unit 251 in the sequence of .
[0033] [ Fig.11 ]A schematic diagram of an example of a graph structure.
[0034] [ Fig.12 ] Schematic diagram of an example of bundling information.
[0035] [ Fig.13 ] Schematic diagram of an example of combining graph structures.
[0036] [ Fig.14A ]Schematic diagram of the graph structure under normal conditions.
[0037] [ Fig. 14B ]Schematic diagram of the graph structure when an external attack occurs.
[0038] [ Fig.15 ]A timing diagram showing an example of the processing performed when a failure occurs.
[0039] [ Fig.16 ]exist Fig.15 Schematic diagram of an example of a log obtained by the monitoring unit 251 in the sequence of .
[0040] [ Fig.17A ] Schematic diagram of the graph structure during common faults.
[0041] [ Fig. 17B ]Schematic diagram of the graph structure when an external attack occurs. DETAILED DESCRIPTION
[0042] Embodiments of the present invention will be described below based on the drawings. Figure 1 It is a schematic diagram of a system configuration example in an embodiment of the present invention. Figure 1In the embodiment, a plurality of vehicles 20 are cars (connected cars) connected to various servers (monitoring server 10, service providing server 30a, service providing server 30b, etc.) via a network N1 such as the Internet. For example, each vehicle 20 is connected to the network N1 via a wireless network such as a mobile communication network, and communicates with various servers.
[0043] The service providing server 30a, the service providing server 30b, etc. (hereinafter collectively referred to as the "service providing server 30" without distinguishing them) is one or more computers that provide a predetermined service to the vehicle 20 or provide a predetermined service to the vehicle 20 based on information collected from the vehicle 20. For example, the service providing server 30a can provide a telematics service. In addition, the service providing server 30b can provide a service based on data collected from each vehicle 20.
[0044] The monitoring server 10 is one or more computers that detect the occurrence of abnormality in the vehicle 20 and analyze the content of the abnormality based on data transmitted (uploaded) from the vehicle 20. An example of the abnormality is a network attack (external attack) on the vehicle 20 via the network.
[0045] Figure 2 It is a schematic diagram of a hardware configuration example of the monitoring server 10 in the embodiment of the present invention. Figure 2 In the embodiment, the monitoring server 10 includes a drive device 100, an auxiliary storage device 102, a storage (memory) device 103, a CPU 104, an interface device 105, etc., which are connected to each other via a bus B, respectively.
[0046] The program for implementing the processing in the monitoring server 10 is provided by a storage medium 101 such as a CD-ROM. After the storage medium 101 storing the program is placed in the drive device 100, the program can be installed from the storage medium 101 to the auxiliary storage device 102 via the drive device 100. It should be noted that the installation of the program does not necessarily have to be performed from the storage medium 101, and can also be performed by downloading from other computers via the network. The auxiliary storage device 102 stores the installed program and also stores the required files, data, etc.
[0047] When there is (receives) an instruction to start a program, the storage device 103 reads the program from the auxiliary storage device 102 and stores it. The CPU 104 executes functions related to the monitoring server 10 according to the program stored in the storage device 103. The interface device 105 is an interface for connecting to a network.
[0048] Figure 3It is a schematic diagram of a hardware configuration example of the vehicle 20 in the embodiment of the present invention. Figure 3 In the embodiment, the vehicle 20 includes a communication device 210, an information subsystem 220, a control subsystem 230, a gateway 240, and the like.
[0049] The communication device 210 includes a communication module for connecting to the network N1, a communication module for communicating with other vehicles 20 or equipment on the road, a communication module for connecting to a smartphone via a wireless LAN or short-range wireless communication, and the like.
[0050] The information subsystem 220 is a part that performs information processing based on the installed program, and includes a CPU 221, a storage device 222, an auxiliary storage device 223, a display device 224, an input device 225, and the like. The auxiliary storage device 223 can store the installed program, various data used by the program, and the like. The storage device 222 reads the program as the startup object (target) from the auxiliary storage device 223 and saves it. The CPU 221 executes functions related to the information subsystem 220 according to the program saved in the storage device 222. The display device 224 displays a GUI (Graphical User Interface) based on the program. The input device 225 is an operating component such as a button or a touch screen, which is used to input various operating instructions. It should be noted that, for example, vehicle-mounted devices such as a car navigation system and a car audio host are examples of the information subsystem 220.
[0051] The control subsystem 230 is a part that controls the behavior of the vehicle 20, and includes a plurality of microcomputers (microcomputers) 231 for performing various controls. For example, a non-IP protocol such as CAN (Controller Area Network) can be applied to the control subsystem 230. It should be noted that, for example, an ECU (Electronic Control Unit) is an example of a microcomputer 231.
[0052] The gateway 240 is a network connector (e.g., CGW (Central Gateway)) for connecting to the information subsystem 220 and the control subsystem 230. The gateway 240 can relay the communication between the network of the information subsystem 220 and the network of the control subsystem 230. For the purpose of communication filtering, there is a situation where only sufficient and necessary communication is relayed (signal relay), and the gateway 240 can play a role in properly separating (isolating) the information subsystem 220 and the control subsystem 230 in terms of hardware and software.
[0053] It should be noted that Figure 3The hardware configuration shown is only an example, and the hardware configuration of the vehicle 20 is not particularly limited as long as the following functions can be realized.
[0054] (Example 1)
[0055] In the first embodiment of the present invention, a description is given of a means for acquiring a log output from a device to be monitored and grasping a series of actions related to a designated event.
[0056] Figure 4A It is a schematic diagram showing an example of the functional configuration of the vehicle 20 and the monitoring server 10 in the first embodiment of the present invention. Figure 4A In the embodiment, the information subsystem 220 of the vehicle 20 includes a monitoring unit 251, a log sending unit 253, etc. Each of these components can be realized by a process executed by the CPU 221 through one or more programs installed in the information subsystem 220. The information subsystem 220 also includes a database (storage unit) such as a log management DB 271. The database (storage unit) can be realized by using, for example, a storage device 222, an auxiliary storage device 223, etc., and can be set in a storage protection area of the storage device 222, the auxiliary storage device 223, etc.
[0057] The monitoring unit 251 obtains logs from the devices to be monitored (e.g., the information subsystem 220, the microcomputer 231 of the control subsystem 230, the gateway 240, etc.). The timing (timing) at which the monitoring unit 251 obtains logs may be a certain period or the occurrence of a specific event, for example, the time when the abnormality detection device (IDS in the vehicle 20, etc.) detects an abnormality, or the time when the execution trigger of the monitoring unit 251 is input manually or by other devices. For example, the monitoring unit 251 may obtain logs related to the process executed on the CPU 221 of the information subsystem 220, the process executed on the microcomputer 231 of the control subsystem 230, and the process executed on the gateway 240 at the time of obtaining the logs. Depending on the device and the processes inside it, it is not always possible to output the required logs, but the monitoring unit 251 may obtain logs using system commands, etc. For example, in the case where the device to be monitored is a system based on Linux (registered trademark), the behavior of the kernel may be obtained using SystemTap. In addition, for example, when the device to be monitored is a BSD-based system, DTrace can be used to obtain the trend of the process. The log includes items such as the device to be monitored, the process executed on the device, the object related to the process, and the action performed by the process on the object. An object refers to the control object of a process, such as a file, a communication address, a process (child process), a device, etc. An action is an operation on an object. For example, when the object is a file, the action is to generate, delete, update, read, etc. It should be noted that the monitoring unit 251 can also collect logs of applications executed on the CPU 221, and process the collected logs according to the above items.
[0058] The logs acquired by the monitoring unit 251 are stored in the log management DB 271. In the log management DB 271, signatures or encryption may be performed for security reasons. Considering the time from the occurrence of an external attack to the detection of an abnormality, logs for a required period may be maintained in the log management DB 271. In order to save resources of the log management DB 271, logs that no longer need to be maintained may be deleted from the log management DB 271. For example, when a file of a firmware in the vehicle 20 is updated, the logs before the current log corresponding to the file may be deleted.
[0059] When the transmission time to the monitoring server 10 arrives, the log transmission unit 253 may transmit the log stored in the log management DB 271 to the monitoring server 10 .
[0060] On the other hand, the monitoring server 10 has a log receiving unit 151, a graph structure generating unit 152, a tracking unit 153, etc. Each of these components can be implemented by a process executed by the CPU 104 by one or more programs installed in the monitoring server 10. The monitoring server 10 can also use databases (storage units) such as the log management DB 171, the graph management DB 172, and the bundle information DB 173. Each of these databases (storage units) can be implemented by using, for example, the auxiliary storage device 102 or a storage device that can be connected to the monitoring server 10 via a network, and can be set in a storage protection area of the auxiliary storage device 102 or a storage device that can be connected via a network.
[0061] The log receiving unit 151 receives the log sent (uploaded) from the vehicle 20 and stores the log in the log management DB 171. The log management DB 171 can be signed or encrypted for security reasons. Similarly, in the monitoring server 10, considering the time from the occurrence of an external attack to the detection of an abnormality, the logs for the required period can be maintained in the log management DB 171. In order to save the resources of the log management DB 171, the logs that no longer need to be maintained can also be deleted from the log management DB 171. For example, when a file of a firmware in the vehicle 20 is updated, the logs before the current log involved in the file can be deleted.
[0062] The graph structure generation unit 152 generates a graph structure representing the association between processes and objects based on the logs stored in the log management DB 171. The graph structure can use a generation algorithm based on graph theory such as a directed acyclic graph, a bipartite graph, etc. The generated graph structure is stored in the graph management DB 172. Signing or encryption for security purposes can also be performed in the graph management DB 172. In order to save resources of the graph management DB 172, the graph structure can be stored in the graph management DB 172 using concise data structures such as LOUDS (Level-Order Unary Degree Sequence). In order to save resources of the graph management DB 172, graph structures that no longer need to be maintained can also be deleted from the graph management DB 172. For example, when a log that no longer needs to be maintained is deleted from the log management DB 171, the graph structure associated with the deleted log can also be deleted from the graph management DB 172.
[0063] Depending on the device that is the monitored object, there may be a situation where some items in the log are insufficient, resulting in the inability to generate a graph structure. For example, in the case where the object is a file, there is a situation where it is not possible to determine which device's process the file is associated with. In addition, there is a situation where the log itself cannot be obtained. For example, there is a situation where the log of the ECU of the communication object cannot be obtained despite CAN communication. In such a case, the association between the object and the process can be managed in advance as bundling information in the bundling information DB273. In the example of a file, the association between the file and the process using the file can be managed in advance in the bundling information DB273. In the example of CAN communication, the association between the object related to the CAN communication and the process of the ECU that is the communication object of the CAN communication can be managed in advance in the bundling information DB273. The graph structure generation unit 152 can complete the association of the graph structure by using the bundling information stored in the bundling information DB273.
[0064] The tracking unit 153 uses the graph structure stored in the graph management DB 172 to determine the process related to the specified object, and then determines the object related to the determined process. As for the timing (timing) of the tracking unit 153 to determine the process and object, it can be the time point when the abnormality detection device (IDS in the vehicle 20, etc.) detects the abnormality, or it can be the time point when the execution trigger of the tracking unit 153 is input manually or by other devices. For example, when an abnormality is detected in a microcomputer 231 in the IDS in the vehicle 20, the tracking unit 153 determines the abnormal process related to the microcomputer 231, and then determines the object related to the determined abnormal process. It should be noted that suspicious processes and objects can be determined even when the abnormality is not detected, so the execution trigger based on manual or other devices can also be performed at a different time from the detection of the abnormality. In this way, the tracking unit 153 can determine the processes and objects related to the specified event (including abnormal detection, suspicion of external attack, etc.), and exclude the processes and objects that are not related to the specified event, thereby determining the impact range of the specified event. In addition, information for searching the path until the occurrence of the specified event can also be provided.
[0065] Figure 4A Although the example in which the monitoring server 10 includes components such as the graph structure generating unit 152 and the tracking unit 153 is shown, a part or all of these functional units may not be included in the vehicle 20 .
[0066] Figure 4B It is a schematic diagram of a functional configuration example of the vehicle 20 in the first embodiment of the present invention. Figure 4BIn the embodiment, the components of the graph structure generation unit 254 and the tracking unit 255 are included in the vehicle 20, and the databases of the graph management DB 272 and the bundled information DB 273 are also included in the vehicle 20. The processing performed by the graph structure generation unit 254 and the tracking unit 255 is the same as that performed by the vehicle 20. Figure 4A The graph structure generation unit 152 and the tracking unit 153 in the vehicle 20 are the same. It should be noted that the graph structure generation unit may be included in the vehicle 20 but the tracking unit may be included in the monitoring server. In addition, the monitoring unit may be included in the monitoring server 10.
[0067] (Example 2)
[0068] In the second embodiment of the present invention, a method for determining an external attack will be described.
[0069] Figure 5A It is a schematic diagram showing an example of the functional configuration of the vehicle 20 and the monitoring server 10 in the second embodiment of the present invention. Figure 5A In addition to the information subsystem 220 of the vehicle 20 Figure 4A In addition to the monitoring unit 251 and the log transmission unit 253 shown, an abnormality determination unit 252 may be provided. The abnormality determination unit 252 may be realized by an IDS of the vehicle 20 or the like. The abnormality determination unit 252 may also be realized by a process executed by the CPU 221 through one or more programs installed in the information subsystem 220.
[0070] The processes of the monitoring unit 251 and the log transmission unit 253 in the vehicle 20 are the same as those of the monitoring unit 251 and the log transmission unit 253 in the first embodiment.
[0071] The abnormality determination unit 252 determines the presence or absence of an abnormality based on the log acquired by the monitoring unit 251. For example, the presence or absence of an abnormality can be determined based on the communication interval between the microcomputers 231, the data value output from the microcomputer 231, etc. In addition, for example, the presence or absence of an abnormality can be determined by inputting the log acquired by the monitoring unit 251 into a trained model (for example, a neural network) that takes the log as an input and the abnormality degree as an output.
[0072] The processing of the log receiving unit 151 and the graph structure generating unit 152 in the monitoring server 10 is the same as that of the log receiving unit 151 and the graph structure generating unit 152 in the first embodiment.
[0073] The tracking unit 153 uses the graph structure stored in the graph management DB 172 to determine the process related to the specified object, and then determines the object related to the determined process. For example, when an abnormality is detected in a microcomputer 231 in the IDS or abnormality determination unit 252 in the vehicle 20, the tracking unit 153 can determine the abnormal process related to the microcomputer 231, and then determine the object related to the determined abnormal process. In this way, the tracking unit 153 can determine the process and object related to the abnormality, and exclude the process and object that are not related to the abnormality, so the impact range of the abnormality can be determined. In addition, information for searching the path until the occurrence of the abnormality can also be provided.
[0074] In the detection of abnormalities, there is a possibility that both external attacks and faults are detected as abnormalities. Basically, most external attacks have an external starting point, while most faults do not have an external starting point. By using this rule of thumb, the tracking unit 153 can determine that there is a possibility of an external attack when it finds that there is an external starting point through the tracking graph structure, that is, when the communication device 210 for connecting to the outside of the vehicle 20 is involved. It should be noted that in the case where an abnormality is detected due to a dealer or the like accessing the communication device 210, it is determined that there is no possibility of an external attack, so the tracking unit 153 can determine whether there is a possibility of an external attack by referring to the blacklist or whitelist pre-set for the communication address of the external starting point.
[0075] In addition, the tracking unit 153 can detect the occurrence of an external attack by comparing a normal graph structure generated in an environment without an external attack and a graph structure generated in an environment where an external attack is possible. In addition, the tracking unit 153 can refer to the graph structure when there is no external attack or when it is normal, thereby determining that there is a possibility of an external attack when a path that cannot exist in the graph structure occurs. In addition, the tracking unit 153 can compare with a graph structure representing a path specified by specifications, etc., and accordingly, when a path that cannot exist in the graph structure occurs, it is determined that there is a possibility of an external attack. In addition, the tracking unit 153 can compare with a graph structure representing a path that cannot exist due to specifications or safety reasons, thereby determining that there is a possibility of an external attack when a path consistent with the graph structure occurs.
[0076] It should be noted that Figure 5A Although the example in which the vehicle 20 includes the abnormality determination unit 252 is shown, the abnormality determination unit 252 may be included in the monitoring server 10 .
[0077] (Example 3)
[0078] In the third embodiment of the present invention, a method for preventing damage (loss) due to an external attack or the like from the perspective of the safety of the vehicle 20 or the like will be described.
[0079] Figure 5B It is a schematic diagram showing an example of the functional configuration of the vehicle 20 and the monitoring server 10 in the third embodiment of the present invention. Figure 5B In addition to Figure 5A In addition to the log receiving unit 151, the graph structure generating unit 152, and the tracking unit 153 shown, there is also an operation prohibiting unit 154. The operation prohibiting unit 154 can also be realized by a process executed by the CPU 104 through one or more programs installed in the monitoring server 10.
[0080] The processes of the monitoring unit 251 , the abnormality determination unit 252 , and the log transmission unit 253 in the vehicle 20 are the same as those of the monitoring unit 251 , the abnormality determination unit 252 , and the log transmission unit 253 in the second embodiment.
[0081] The processes of the log receiving unit 151 , the graph structure generating unit 152 , and the tracking unit 153 in the monitoring server 10 are the same as those of the log receiving unit 151 , the graph structure generating unit 152 , and the tracking unit 153 in the second embodiment.
[0082] The action prohibition unit 154 can prohibit actions on objects within the influence range determined by the tracking unit 153 to prevent the damage from spreading. For example, in the case of a Linux-based system, the action prohibition unit 154 can perform control to prohibit access to the object through AppArmor.
[0083] It should be noted that Figure 5B Although the example in which the monitoring server 10 includes the operation prohibition unit 154 is shown, the operation prohibition unit 154 may be included in the vehicle 20 .
[0084] (Specific example)
[0085] Below Figure 5B In the functional configuration example shown, the processing steps executed by the information subsystem 220 of the vehicle 20 and the monitoring server 10 are described. Figure 6 This is a flowchart for explaining an example of a processing procedure when generating a log.
[0086] First, the monitoring unit 251 of the vehicle 20 obtains a log output from a device to be monitored (S101). For example, the monitoring unit 251 may obtain the log by using SystemTap of Linux or DTrace of BSD at a certain period or at a time when a specific event occurs. The timing of obtaining the log varies depending on the device to be monitored.
[0087] A specific example in which the monitoring unit 251 acquires a log in response to a process executed in the vehicle 20 will be described.
[0088] Fig. 7A and Figure 7B This is a timing chart showing an example of processing executed in normal time. Fig. 7A and Figure 7B In the figure, OTA B. (Over The Air Backend) is one of the service providing servers 30 located outside the vehicle, and has a function of providing updated software to the vehicle 20. TCU (Telematics Control Unit) is a functional part of the information subsystem 220, and has a function for communicating with the service providing server 30. FG (Flashing Gateway) is a functional part of the information subsystem 220 or the control subsystem 230, and has a function of temporarily saving the software received from OTA B. CTL (Controller) corresponds to the gateway 240, and has a function of updating the software received from OTA B. (OTA). UI (User Interface) is an operation panel, etc., and corresponds to the display device 224 and the input device 225 of the information subsystem 220. ECU2 corresponds to the microcomputer 231. It is assumed that the log cannot be obtained from ECU2. It is also assumed that when CAN communication in the control subsystem 230 is performed, CTL uses CAN-ID1 and ECU2 uses CAN-ID2.
[0089] TCU confirms with OTA B. whether the vehicle 20 has firmware to be updated (t1.1) at a certain period or when a specific event occurs. If the vehicle 20 has firmware to be updated, TCU requests OTA B. for an update file of the new firmware (t1.2). If TCU receives the update file, it saves the update file to FG (t1.3).
[0090] CTL checks with FG whether there is firmware to be updated in CTL at a certain period or when a specific event occurs. If there is firmware to be updated, CTL obtains the update file of the new firmware from FG (t2.1). CTL updates the firmware of CTL using the update file (t2.2), and then CTL restarts to make the updated firmware effective (t2.3).
[0091] When the UI receives an operation command from the driver or the like for ECU2, the UI sends a message indicating the operation command to the CTL (t3.1). The CTL assigns CAN-ID1 to the message from the TCU and relays it to the ECU2 (t3.2). The ECU2 confirms the CAN-ID1, which is the ID of the CTL assigned to the message, and performs an action corresponding to the received message.
[0092] The downloading of the update file from t1.1 to t1.3, the updating of the firmware from t2.1 to t2.3, and the operation on the ECU 2 from t3.1 to t3.2 are performed at different timings and are not continuous in time.
[0093] Figure 8 is Fig. 7A and Figure 7B The diagram is a diagram of an example of a log obtained by the monitoring unit 251 in the sequence of . The monitoring unit 251 takes the devices of TCU, CTL and UI as targets, and executes SystemTap of Linux, DTrace of BSD, etc., thereby obtaining logs including date and time, device, process, SRC, DST and action. The date and time is the date and time of execution of the process in the device. The device is the device of the monitoring object, and the process is the process executed in the device of the monitoring object. SRC is the object of the control source of the process, and DST is the object of the control target of the process. The action is the operation performed on the object.
[0094] Figure 8 The first line of the log is Fig. 7A t1.1 in . At the date and time of t1.1, the log is obtained when the action (http: / / ota_ip / info) of confirming whether there is firmware to be updated is executed from the source address (IP:ip1:port1) to the destination address (IP:ota_ip:80) by the TCU process (tcu pid1). Similarly, at the date and time of t1.2, the log is obtained when the TCU executes the action of requesting the update file, and at the date and time of t1.3, the log is obtained when the TCU executes the action of saving the update file to FG. "-" is an item that cannot be obtained in the log.
[0095] Figure 8 The log of line 4 is the same as Fig. 7At2.1 in . At the date and time of t2.1, the log is obtained when CTL performs the action (file: read) of obtaining the update file of the new firmware from the provider of the update file (FG: FirmwareCTL) through the process of the OTA function (ota pid1). Similarly, at the date and time of t2.2, the log is obtained when CTL performs the firmware update action, and at the date and time of t2.3, the log is obtained when CTL performs the action of ending its own process and the log is obtained when CTL performs the action of starting its own process.
[0096] Figure 8 The log on line 8 is the same as Figure 7B t3.1 in . At the date and time of t3.1, the log is obtained when the UI executes the action (CAN) of sending a message of CAN communication to the CTL (CAN: ID1) of the control target through the process of UI (ui pid1). Similarly, at the date and time of t3.2, the log is obtained when the CTL executes the action of sending a message to ECU2.
[0097] Fig.9A and Fig. 9B This is a sequence diagram showing an example of processing executed when an external attack occurs. Fig.9A and Fig. 9B It is a sequence diagram when infected with malware, and Mal CTL represents the gateway 240 infected with malware. C&C (Command and Control) is a server that performs illegal (inappropriate) operations.
[0098] The TCU's browser accesses a fake website, such as a hotspot disguised as a sales store, agency, or gas station (t1.1). Access to the fake website causes the attack script to be sent to the TCU. The attack script exploits the vulnerability (hack) of the TCU to tamper with the browser so that it can execute arbitrary code. The browser requests malware from the fake website (t1.2). When the TCU receives the malware, it saves the malware (t1.3) and executes the malware (t1.4). The malware exploits the vulnerability of the TCU to disable security functions and elevate the malware's permissions. The malware requests a tampered file of the CTL's firmware (t1.5), and when the tampered file is received, it is saved to the FG (t1.6).
[0099] CTL checks with FG whether there is firmware to be updated in CTL at a certain period or when a specific event occurs. If there is firmware to be updated, CTL obtains the update file of the new firmware from FG (t2.1). In this case, a tampered file can be obtained. Then, CTL updates the firmware of CTL using the tampered file (t2.2) and restarts CTL to make the updated firmware effective (t2.3). As a result, CTL is infected with malware and tampered with so that any ID can be assigned to the message from CTL.
[0100] The malware in the TCU requests an illegal command from the C&C (t3.1) and receives the illegal command from the C&C. The TCU sends a message indicating the operation command contained in the illegal command to Mal CTL (t3.2). Since Mal CTL has been tampered with and can assign an arbitrary ID to the message, the illegal ID, CAN-ID2, can be assigned to the message. In order to disguise itself as ECU2, Mal CTL assigns CAN-ID2 to the message from the malware on the TCU and relays it (t3.3). ECU2 confirms the ID assigned to the message, CAN-ID2, and performs actions corresponding to the received message. Here, it is assumed that the IDS detects an abnormality because the sending of the message at t3.3 deviates from the normal sending timing.
[0101] The downloading of the tampered file from t1.1 to t1.6, the updating of the firmware from t2.1 to t2.3, and the operation on the ECU 2 from t3.1 to t3.3 are performed at different time points and are not continuous in time.
[0102] Fig.10 is Fig.9A and Fig. 9B A schematic diagram of an example of a log acquired by the monitoring unit 251 in the sequence of Figure 8 Get the logs in the same way.
[0103] Fig.10 The first line of the log is Fig.9At1.1 in . At the date and time of t1.1, the log is obtained when the TCU executes the action (http: / / ip2 / info) of accessing the destination address (IP:ip2:80) from the source address (IP:ip1:port1) through the browser process (browser pid1). Similarly, at the date and time of t1.2, the log is obtained when the TCU executes the action of requesting malware, at the date and time of t1.3, the log is obtained when the TCU executes the action of saving malware, at the date and time of t1.4, the log is obtained when the TCU executes the action of executing malware, at the date and time of t1.5, the log is obtained when the TCU executes the action of requesting the tampered file, and at the date and time of t1.6, the log is obtained when the TCU executes the action of saving the tampered file to FG.
[0104] Fig.10 The log on line 7 of Fig.9A t2.1 in . At the date and time of t2.1, the log is obtained when CTL performs the action (file: read) of obtaining the update file of the new firmware from the provider of the update file (FG: FirmwareCTL) through the process of the OTA function (ota pid3). Similarly, at the date and time of t2.2, the log is obtained when CT performs the firmware update action, and at the date and time of t2.3, the log is obtained when CTL performs the action of ending its own process and when CTL performs the action of starting its own process.
[0105] Fig.10 The log of line 11 is the same as Fig. 9B t3.1 in the figure. At the date and time of t3.1, the log is obtained when the TCU executes the action (https: / / ip3 / command) of requesting an illegal command from the source address (IP:ip1:port4) to the destination address (IP:ip3:443) through the malware process (malware pid2). Similarly, at the date and time of t3.2, the log is obtained when the TCU executes the action of sending the operation command to the CTL, and at the date and time of t3.3, the log is obtained when the CTL executes the action of sending the message to ECU2.
[0106] It should be noted that, in addition to the anomaly detection based on IDS, the anomaly determination unit 252 can also detect anomalies by confirming the log. The detection of anomalies can use well-known techniques. For example, the anomaly determination unit 252 can determine that it is an anomaly when there is an action from SRC to DST that is impossible to exist and / or when it is not in a state where DST can execute an action. In addition, for example, the anomaly determination unit 252 can also determine that it is an anomaly when it is found that the action is executed at an abnormal time point by confirming the date and time of the log.
[0107] The log is stored in the log management DB 271, and the log sending unit 253 can send the log stored in the log management DB 271 to the monitoring server 10. The log of the date and time t3.3 where the abnormality is detected can be given a flag indicating that it is an abnormality. In addition, the abnormality can also be notified to the monitoring server 10 at a different time point from the log.
[0108] The log receiving unit 151 receives the log and stores the log in the log management DB 171. The log management DB 171 may store that an abnormality has been detected in the message assigned with CAN-ID 2 at the date and time t3.3.
[0109] The graph structure generation unit 152 extracts logs with a relatively close date and time from the logs stored in the log management DB 171, and generates a graph structure representing the relationship between processes and objects (S102). Fig.10 The log shown can use a bipartite graph or the like to represent the relationship between processes and objects.
[0110] Fig.11 is a schematic diagram of an example of a graph structure. In principle, the graph structure generation unit 152 generates a bipartite graph by taking the DST as an object and associating it with the process. Fig.10 The graph structure generation unit 152 generates a graph structure representing the association between the browser process (browser pid1) and the object representing the address of the fake website (IP: ip2:80) based on the log of the date and time of t1.1. Similar to t1.1, the graph structure generation unit 152 generates a graph structure based on the log of the date and time of t1.2 to t1.6. It should be noted that in the case of the action (proc: fork-exec) of the date and time of t1.4, DST (malware pid2) is also treated as a process, and SRC (FILE: malware hash1) is processed as an object, and the object of SRC is associated with the two processes (browser pid1 and malware pid2).
[0111] In addition, the graph structure generation unit 152 generates a graph structure based on the logs of the date and time of t2.1 to t2.3. However, in the case of the action (CAN: update) of the date and time of t2.2, the graph structure generation unit 152 cannot obtain the information of the firmware update file from the log. In this way, in order to cope with the situation where sufficient logs cannot be obtained, the binding information in which the association between the object and the process is known in advance can be managed in the binding information DB 273.
[0112] Fig.12 2 is a schematic diagram of an example of bundle information. The bundle information managed in the bundle information DB273 is the association between objects and processes that are known in advance. For example, since the update file of the firmware of CTL is related to the process of CTL, the association between the object of FG:FirmwareCTL and the process of CTL can be saved in the bundle information DB273. Similarly, since the object of FILE:ctl is related to the process of the OTA function of CTL, these associations can be saved in the bundle DB273. For example, the CAN-ID used by devices such as CTL and ECU for CAN communication is known in advance. In this example, CTL uses CAN:ID1 and ECU2 uses CAN:ID2, so the association between the object of CAN:ID1 and the process of CTL can be saved in the bundle information DB273, and the association between the object of CAN:ID2 and the process of ECU2 can be saved in the bundle information DB273. It should be noted that since the log of ECU2 cannot be obtained, the device name of ECU2 can also be saved in the bundle information DB273 instead of the process of ECU2.
[0113] In the case of the action (proc: update) at the date and time of t2.2, the graph structure generation unit 152 uses the bundle information of the bundle information DB 273 instead of using the log, thereby associating the process of ota pid3 with the object of FILE: ctl. In addition, in the case of the action (proc: start) at the date and time of t2.3, the graph structure generation unit 152 associates the process of CTL (ctl pid5) with the object of SRC (FILE: ctl hash3). In this way, depending on the action of the log, the graph structure generation unit 152 can associate the process and the object using the bundle information DB 273, or can associate SRC with the process as an object.
[0114] In addition, the graph structure generation unit 152 generates a graph structure based on the logs of the date and time from t3.1 to t3.3. At the date and time of t3.3, the graph structure generation unit 152 associates the object (CAN: ID2) of SRC with the process of ECU2 using the bundling information of the bundling information DB273. In this way, when there are objects and processes that can be associated using the bundling information in the bundling information DB273, the graph structure generation unit 152 can complete the graph structure using the bundling information.
[0115] Generate the logs of date and time from t1.1 to t3.3 Fig.11 The bipartite graph shown in Figure 1. The vertices of a bipartite graph are processes or objects, and the edges are the associations between processes and objects. Fig.11 The solid line association in is generated based on the log, and the dotted line association is generated based on the binding information in the binding information DB 273. The generated bipartite graph is stored in the graph management DB 172.
[0116] It should be noted that not only the graph generated based on the actual log, but also the graph structure representing the path that cannot exist due to specifications or security reasons can be registered in the graph management DB172 as a blacklist, and the graph structure representing the path specified by the specifications can be registered in the graph management DB172 as a whitelist.
[0117] When an abnormality is detected in a certain object (S103: Yes), the tracking unit 153 identifies an abnormal process related to the object in which the abnormality is detected, by referring to the graph structure stored in the graph management DB 172. Furthermore, the tracking unit 153 identifies an object related to the identified abnormal process (S104).
[0118] For example, when an abnormality is detected in a message assigned with CAN-ID2, the tracking unit 153 extracts a graph having CAN:ID2 as a vertex from the graph management DB 172, and then extracts a graph having the vertices (malware pid2, ctl pid5, ECU2) of the extracted graph. By the same steps, a graph directly or indirectly connected to CAN:ID2 is extracted, and the extracted graphs are combined.
[0119] Fig.13 is a schematic diagram of an example of graph structure combination. Fig.11 As shown in FIG. 1 , since there are two bipartite graphs with the process (malware pid2) related to the object (CAN: ID2) that detected an abnormality as a vertex, the two bipartite graphs are combined. Similarly, the two bipartite graphs with the process (ctl pid5) related to the object (CAN: ID2) that detected an abnormality as a vertex are also combined. As a result, Fig.13It can be confirmed that the affected range of the object (CAN-ID2) where the abnormality was detected is 5 processes (browser pid1, malware pid2, ota pid3, ctl pid5, ECU2 process) and 6 objects (IP: ip2:80, FILE: malware hash1, FG: FirmwareCTL hash2, FILE: ctl hash3, IP: ip3:443, CAN: ID2).
[0120] It should be noted that the tracking unit 153 can detect anomalies by comparing the graph structure in a normal state with the graph structure when an external attack occurs even when no anomaly is detected. In addition, the tracking unit 153 can also detect anomalies by comparing with the graph structure registered as a blacklist or a whitelist in the graph management DB 172.
[0121] Fig.14A is a graph showing the normal graph structure, Fig. 14B This is a schematic diagram of the graph structure when an external attack occurs. The normal graph structure is based on Figure 8 The logs of the date and time of t1.1 to t2.3 are combined by the bipartite graph generated by the graph structure generation unit 152. The graph structure when an external attack occurs is based on Fig.10 The logs of the dates and times from t1.1 to t2.3 are combined with the bipartite graph generated by the graph structure generation unit 152. By comparing the two graphs, it can be seen that there is a possibility of an external attack because there are processes (malware pid2) and objects (FILE: malware hash1) that do not exist during external attacks or in normal times. When the process (malware pid2) and object (FILE: malware hash1) that are likely to have an external attack are determined, the tracking unit 153 can refer to Fig.13 The impact sphere of the external attack is determined as described above.
[0122] The action prohibition unit 154 prohibits the action on the object within the influence range determined by the tracking unit 153 (S105). Fig.13 As shown, when the bipartite graph is combined to determine six objects within the impact range (IP: ip2:80, FILE: malware hash1, FG: FirmwareCTL hash2, FILE: ctl hash3, IP: ip3:443, CAN: ID2), the action prohibition unit 154 prohibits actions on these six objects.
[0123] Furthermore, a specific example in which the monitoring unit 251 acquires a log in response to a process executed in the vehicle 20 will be described.
[0124] Fig.15 This is a sequence diagram showing an example of processing executed when a failure occurs. Fig.15 Shows the continuation Figure 7B or Fig. 9B The processing is shown in the timing diagram.
[0125] Assume that when a fault occurs in ECU2, the action of ECU2 is switched to other ECUs (t4.1). At this time, ECU2 assigns CAN-ID2 to the message and sends it to other ECUs (t4.2). Here, when IDS detects an abnormality due to inconsistency in the status of other ECUs, deviation of the sending time of the message sent from ECU2 to other ECUs from the normal sending timing, etc., ECU2 sends the fault code together with CAN-ID2 to CTL (t4.3). After receiving the fault code, CTL sends the fault code together with CAN-ID1 to UI (t4.4). After UI receives the fault code, the fault warning light turns on (t4.5).
[0126] Fig.16 is Fig.15 A schematic diagram of an example of a log acquired by the monitoring unit 251 in the sequence of Figure 8 Get the logs in the same way.
[0127] Fig.16 The first line of the log is Fig.15 t4.2 in . It should be noted that since the log cannot be obtained from ECU2, the log corresponding to t4.1 does not exist. At the date and time of t4.2, the log when the action of fault detection of ECU2 (CAN: ID2) is executed by the process of ECU2 is obtained. Similarly, at the date and time of t4.3, the log when CTL executes the action of receiving the fault code is obtained, and at the date and time of t4.4, the log when CTL executes the action of sending the fault code is obtained. It should be noted that in order to distinguish the log of t4.3 from the log of t4.4, although the log of t4.3 is equivalent to the log when ECU2 executes the action of sending the fault code, the CAN: ID2 of the sending source is processed as DST.
[0128] As reference Figure 11 to Figure 13 As described above, the graph structure generation unit 152 may generate a graph structure representing the relationship between processes and objects.
[0129] Fig.17A This is a schematic diagram of the graph structure during a conventional fault. Fig. 17BThis is a diagram of the graph structure when an external attack occurs. The graph structure when a normal failure occurs is when the connection Figure 7B The timing shown occurs Fig.15 The graph structure of the timing shown in the figure is as follows: Fig. 9B The timing shown occurs Fig.15 The graph structure of the timing shown in FIG. By comparing the two graphs, it can be seen that since there are processes (malware pid2) and objects (IP: ip3: 443) that do not exist during external attacks and normal failures, the possibility of external attacks can be detected. It can also be seen that when an external attack occurs, there is an object for connecting to the external environment (IP: ip3: 443), while when a normal failure occurs, there is no object for connecting to the external environment. In this way, when there is an object for connecting to an unknown external environment, the tracking unit 153 can determine that the failure was caused by an external attack.
[0130] It should be noted that in Fig.15 In the example shown, an example of lighting the fault warning light in the UI is shown, but there is also a case where the fault code is sent to a dealer via the TCU. In this case, even when a normal fault occurs, there is an object for connecting to the external environment. The tracking unit 153 can also determine whether the fault is caused by an external attack by referring to a white list or black list preset for the communication address. In addition, the tracking unit 153 can also determine that the attack is caused by an external attack based on the order of the path, for example, when an external address exists on the path at the time before the abnormality is detected.
[0131] Thus, in this embodiment, the association between the process and the object can be represented as a graph structure based on the log. The graph structure can also be used for abnormality detection. When an event is specified (for example, when an abnormality is detected), the scope of influence of the specified event, that is, the process and the objects related to the process, can be determined using the graph structure.
[0132] It should be noted that, in this embodiment, the vehicle 20 is described as an example of a device, but this embodiment can also be applied to other devices with communication functions. For example, this embodiment can be applied to industrial control devices such as robots in factories, sensors arranged at various locations, audio equipment, home appliances, communication terminals (smartphones, tablet terminals, etc.), and devices generally referred to as IoT (Internet of Things) devices.
[0133] As described above, according to the present embodiment, the impact range of the abnormality can be determined by using the graph structure, thereby effectively analyzing the abnormality.
[0134] In addition, by using a graph structure generated based on a log and / or a graph structure registered as a white list or a black list, abnormality detection can be performed.
[0135] Furthermore, by using the graph structure when determining the impact range of the anomaly, it is possible to determine whether the anomaly is caused by an external attack or an internal failure.
[0136] Furthermore, when the influence range of the abnormality can be identified, by prohibiting actions on objects within the range, it is possible to prevent the expansion of damage (loss) due to external attacks.
[0137] It should be noted that in this embodiment, the vehicle 20 is an example of a device. The monitoring server 10 is an example of an information processing device. The graph structure generation unit 152 is an example of a generation unit. The tracking unit 153 is an example of a determination unit. The action prohibition unit 154 is an example of a prohibition unit.
[0138] Although the embodiments of the present invention have been described in detail above, the present invention is not limited to these specific embodiments, and various modifications and changes are possible within the scope of the gist of the present invention described in the claims.
[0139] This international application claims the benefit of priority based on Japanese Patent Application No. 2018-192413, filed on October 11, 2018, the entire contents of which are incorporated herein by reference.
[0140] [Explanation of Reference Numerals]
[0141] 10 Monitoring Servers
[0142] 20 Vehicles
[0143] 30a Service provider server
[0144] 30b Service provider server
[0145] 100 Drive unit
[0146] 101 Recording Media
[0147] 102 Auxiliary storage device
[0148] 103 Storage Device
[0149] 104 CPU
[0150] 105 Interface device
[0151] 151 Log receiving department
[0152] 152 Graph Structure Generation Department
[0153] 153 Tracking Department
[0154] 154 Action Prohibition Department
[0155] 171 Log Management DB
[0156] 172 Graph Management DB
[0157] 173 Bundle Information DB
[0158] 210 Communication devices
[0159] 221 CPU
[0160] 222 Storage Device
[0161] 223 Auxiliary storage device
[0162] 224 Display device
[0163] 225 Input Device
[0164] 220 Information Subsystem
[0165] 230 Control System Subsystem
[0166] 231 Microcomputer
[0167] 240 Gateway
[0168] 251 Surveillance Department
[0169] 252 Abnormality Judgment Department
[0170] 253 Log Sending Department
[0171] 254 Graph Structure Generation Department
[0172] 255 Tracking Department
[0173] 256 Action prohibition unit
[0174] 271 Log Management DB
[0175] 272 Image Management DB
[0176] 273 Bundle Information DB
[0177] B Bus
Claims
1. An information processing device, comprising: a generating unit that generates, based on the log acquired from the device, a graph structure representing an association between a process and an object related to the process, wherein the process is a process executed within the device for the object, and in the graph structure, the process and the object are vertices, and the association is an edge connecting the process and the object; and The specifying unit specifies, when any object of the device is specified, a process related to the specified object based on the generated graph structure, and specifies an object related to the specified process.
2. The information processing device according to claim 1, wherein: When an abnormality is detected in any object of the device, the determination unit determines, based on the generated graph structure, an abnormal process related to the object in which the abnormality is detected, determines an abnormal object related to the abnormal process, determines whether there is an object for connecting to the outside of the device in the abnormal object, and determines, based on the result of the determination, that the abnormality is caused by an external attack.
3. The information processing device according to claim 1 or 2, wherein: The determination unit detects the occurrence of an external attack by comparing a graph structure generated based on a log acquired from the device in an environment without an external attack and a graph structure generated based on a log acquired from the device in an environment with a possibility of an external attack.
4. The information processing device according to claim 1 or 2, wherein: The generating unit uses pre-generated binding information between objects and processes to complete the association of the graph structure.
5. The information processing device according to claim 1 or 2, further comprising: The prohibition unit prohibits actions on the object related to the determined process.
6. A log analysis method, wherein: Executed by the information processing device: a graph structure generating step, generating a graph structure representing an association between a process and an object related to the process according to the log acquired from the device, wherein the process is a process executed within the device for the object, and in the graph structure, the process and the object are vertices, and the association is an edge connecting the process and the object; and The determining step is to determine, when any object of the device is specified, a process related to the specified object based on the generated graph structure, and to determine an object related to the determined process.
7. A program product, comprising a program for causing an information processing device to function as each unit as recited in any one of claims 1 to 5.
