Activity trace extraction device, activity trace extraction method, and activity trace extraction program

The activity trace extraction device addresses the issue of time and environment dependence in malware detection by analyzing traces across varied conditions to generate effective IOCs, improving detection accuracy and efficiency.

JP7568056B2Active Publication Date: 2024-10-16NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2023506459
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-16
Publication Date
2024-10-16
Estimated Expiration
2041-03-16

AI Technical Summary

Technical Problem

Conventional methods for extracting activity traces for malware detection do not account for time dependence and environmental dependence, leading to ineffective IOCs due to differences in temporal and environmental information between analysis and actual attack environments.

Method used

An activity trace extraction device and method that collects and analyzes malware activity traces in multiple environments, identifying and removing time-dependent and environment-dependent traces to generate IOCs that are independent of these factors.

Benefits of technology

Selectively extracts effective activity traces for malware detection, reducing false positives and the number of IOCs needed, thereby enhancing detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568056000001
    Figure 0007568056000001
  • Figure 0007568056000002
    Figure 0007568056000002
  • Figure 0007568056000003
    Figure 0007568056000003
Patent Text Reader

Abstract

An activity trace extraction apparatus (100) collects, by executing malware, an analysis log which includes a plurality of activity traces of the malware, executes again the malware, and collects an environment change analysis log including a plurality of activity traces that are of the malware and that are assumed when execution environment for a system and a device used during execution of the malware and information specific to application software are changed. The activity trace extraction apparatus (100) updates the analysis log by removing, from the analysis log, an activity trace different from the activity trace of the environment change analysis log, from among the plurality of activity traces included in the analysis log, on the basis of the analysis log and the environment change analysis log. The activity trace extraction apparatus (100) generates trace information of the malware that does not depend on the execution environment, on the basis of the updated analysis log.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an activity trace extraction device, an activity trace extraction method, and an activity trace extraction program that are useful for detecting malware. [Background technology]

[0002] As malware becomes more sophisticated, the number of malware that is difficult to detect with conventional antivirus software that detects based on signatures is increasing. In addition, detection by dynamic analysis sandboxes, which run sent and received files in an isolated analysis environment and detect malware based on the maliciousness of observed behavior, has come to be evaded by detecting that the environment is for analysis by looking at the degree of deviation from a general user environment.

[0003] Against this background, anti-malware technology called EDR (Endpoint Detection and Response) has come into use. EDR is not an environment prepared for analysis, but an agent installed on the user's terminal, which continuously monitors the terminal's behavior. It detects malware using IOCs (Indicators of Compromise), which are prepared in advance and are like behavioral signatures for detecting traces left by malware when it is active. Specifically, EDR compares the behavior observed on the terminal with the IOCs, and if they match, it detects the terminal as suspected of being infected with malware.

[0004] Therefore, whether or not EDR can detect malware depends on whether it has IOCs that are useful for detecting a certain piece of malware. On the other hand, if an IOC matches not only malware but also traces of legitimate software activity, there is a problem that it can lead to false positives. Therefore, rather than simply randomly turning malware traces into IOCs and increasing the number of them, it is necessary to selectively extract traces that are useful for detection and turn them into IOCs.

[0005] Also, from the perspective of IOCs that EDR can match at once, it becomes necessary to selectively extract traces that are useful for detection and turn them into IOCs. In other words, since the more IOCs an EDR has, it generally takes longer to match them, it is desirable to have a combination of IOCs that can detect more types of malware with fewer IOCs. In this case, if IOCs are generated from activity traces that are not useful for detection, it will lead to unnecessary time being spent on matching.

[0006] Nowadays, new malware is created every day, and the corresponding IOCs are also constantly changing. Therefore, in order to continuously respond to them, it is necessary to automatically analyze malware, extract traces of activity, and generate IOCs. IOCs are generated based on the traces of activity obtained by analyzing malware. In general, IOCs are generated by collecting traces obtained by executing malware while monitoring its behavior, normalizing them, and selecting combinations suitable for detection.

[0007] For these reasons, there is a demand for a technology that can selectively and automatically extract activity traces that are useful for detecting malware. For example, there are non-patent documents 1 and 2 that are technologies for extracting activity traces.

[0008] Non-Patent Document 1 proposes a method of extracting patterns of traces that are repeatedly observed among multiple pieces of malware and using them as IOCs.

[0009] In addition, Non-Patent Document 2 proposes a method for automatically generating IOCs that are easy for humans to understand by extracting a set of traces that co-occur between malware of the same family and preventing the IOCs from becoming too complex by using a set optimization technique.

[0010] According to the techniques described in Non-Patent Documents 1 and 2, it is possible to automatically extract IOCs that can contribute to malware detection from execution trace logs. Here, execution tracing refers to tracking the execution status of a program by sequentially recording behavior from various perspectives during execution. In addition, a program equipped with a function to monitor and record behavior in order to achieve this is called a tracer. For example, a sequential recording of executed APIs (Application Programming Interfaces) is called an API trace, and a program for achieving this is called an API tracer. [Prior art documents] [Non-patent literature]

[0011] [Non-Patent Document 1] Christian Doll et al. "Automated Pattern Inference Based on Repeatedly Observed Malware Artifacts." Proceedings of the 14th International Conference on Availability, Reliability and Security. 2019. [Non-Patent Document 2] Yuma Kurogome et al. "EIGER: Automated IOC Generation for Accurate and Interpretable Endpoint Malware Detection." Proceedings of the 35th Annual Computer Security Applications Conference. 2019. Summary of the Invention [Problem to be solved by the invention]

[0012] However, the above-mentioned conventional techniques (Non-Patent Documents 1 and 2) do not take into account the time dependency or environment dependency of activity traces, and therefore have the problem that activity traces that are not effective for detection may be detected as IOCs.

[0013] Here, the time dependency of activity traces refers to the property that activity traces change depending on the temporal information at the time of malware execution. Temporal information includes the time of day and the elapsed time from startup. Time-dependent activity traces cannot be used as IOCs because the temporal information in the analysis environment where they were collected is generally different from that in the actual environment where an attack occurred.

[0014] In addition, the environmental dependency of activity traces is a characteristic in which the activity traces change depending on the environmental information at the time of malware execution. Environmental information includes various configuration information of systems and devices. For example, activity traces may change based on the UUID of a system disk. Time-dependent activity traces cannot be used as IOCs due to differences in environmental information between the analysis environment in which they were collected and the environment in which the attack actually occurred.

[0015] In other words, determining whether the collected activity traces have time dependency or environment dependency is important in selectively extracting activity traces that are effective for detection and generating IOCs.

[0016] The present invention has been made in consideration of the above, and aims to provide an activity trace extraction device, an activity trace extraction method, and an activity trace extraction program that can selectively extract activity traces that are effective for detection and generate effective IOCs. [Means for solving the problem]

[0017] In order to solve the above-mentioned problems and achieve the object, the activity trace extraction device of the present invention comprises a collection unit that executes malware to collect an analysis log including multiple activity traces of the malware, and executes the malware again to collect an environment change analysis log including multiple activity traces of the malware that are expected when the execution environment of the system and device used when executing the malware and the specific information of the application software are changed; an update unit that updates the analysis log based on the analysis log and the environment change analysis log by removing from the analysis log activity traces that differ from the activity traces in the environment change analysis log among the multiple activity traces included in the analysis log; and a generation unit that generates trace information of the malware that is not dependent on the execution environment based on the updated analysis log. Effect of the Invention

[0018] By detecting the time and environment dependencies of activity traces, it is possible to selectively extract activity traces that are effective for detection and generate effective IOCs. [Brief description of the drawings]

[0019] [Figure 1] FIG. 1 is a diagram for explaining the process of the activity trace extraction device according to the present embodiment. [Diagram 2] FIG. 2 is a functional block diagram showing the configuration of the activity trace extraction device according to the present embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of a data structure of the history DB. [Figure 4] FIG. 4 is a diagram showing an example of the analysis log and activity traces. [Diagram 5] FIG. 5 is a diagram showing an example of a time-dependent activity trace. [Figure 6] FIG. 6 is a diagram showing an example of an activity trace having an environment dependency. [Figure 7] FIG. 7 is a diagram illustrating an example of a comparison of analysis logs. [Figure 8] FIG. 8 is a flowchart illustrating a processing procedure of the activity trace extraction device according to the present embodiment. [Figure 9] FIG. 9 is a flowchart showing a process for identifying traces of dependent activities by comparing analysis logs. [Figure 10] FIG. 10 is a flowchart showing a processing procedure for changing the environmental information of a system using an API hook. [Figure 11] FIG. 11 is a flowchart showing a processing procedure for changing the environmental information of the system by changing the analysis environment. [Figure 12] FIG. 12 is a diagram illustrating an example of a computer that executes an activity trace extraction program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0020] Hereinafter, an embodiment of an activity trace extraction device, an activity trace extraction method, and an activity trace extraction program disclosed in the present application will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to the embodiment. EXAMPLES

[0021] 1 is a diagram for explaining the process of the activity trace extraction device according to the present embodiment. As shown in FIG.

[0022] The storage unit 140 is realized by a semiconductor memory element such as a random access memory (RAM) or a flash memory, or a storage device such as a hard disk or an optical disk. The storage unit 140 has a target database (DB) 141 and a history DB 142.

[0023] The target DB 141 holds data on a plurality of pieces of malware used to extract activity traces. The history DB 142 holds information on analysis logs when malware is executed.

[0024] The control unit 150 is realized by using a CPU (Central Processing Unit) or the like. The control unit 150 executes an agent 50a, an API tracer 50b, and an API hook module 50d in the virtual environment 30. The agent 50a reads malware from the target DB 141, and a malware process 50c is executed. The control unit 150 executes a fake server 40a and a fake server 40b in the virtual environment 30. For convenience of explanation, the virtual environment 30 is described as being outside the control unit 150 in FIG. 1, but the virtual environment 30 is executed inside the control unit 150. In addition, the control unit 150 has a collection unit 151, an update unit 152, and a generation unit 153 as described in FIG. 2. For example, the process to be executed in the virtual environment 30 is executed by the collection unit 151.

[0025] For example, the fake server 40a is a fake server that responds as a Domain Name System (DNS) server when it receives an access from the malware process 50c. The fake server 40b is a fake server that responds as a Hyper Text Transfer Protocol (HTTP) server when it receives an access from the malware process 50c. The fake servers 40a and 40b may be fake servers that execute the processes of other servers. Also, instead of using fake servers, an appropriately prepared real environment may be used.

[0026] The control unit 150 executes a process for extracting an activity trace, a process for extracting time dependency, a process for extracting environment dependency, and a process for generating an IOC.

[0027] The "process of extracting traces of activity" will now be described. The control unit 150 executes the malware process 50c using the API tracer 50b, collects traces of activity from the analysis log traced by the API tracer 50b, and registers information on the traces of activity in the history DB 142.

[0028] The control unit 150 traces the system API if the malware for which an IOC is to be generated is an executable file type, and traces the script API if the malware is a script type. The malware process 50c accesses the fake servers 40a, 40b, etc., and executes various processes (other network communications, file operations, registry operations, process generation, etc.).

[0029] The API tracer 50b monitors the operation of the malware process 50c and acquires an analysis log. The API tracer 50b outputs the acquired analysis log to the agent 50a. For example, the generating unit 153 described later predefines what kind of activity trace (for example, network communication, file operation, registry operation, process generation, etc.) will generate an IOC from based on the information acquired by the API tracer 50b, and defines APIs having functions corresponding to such activity traces, and collects activity traces of the malware process 50c by searching for those APIs and arguments from the analysis log.

[0030] Generally, in order for a malware process 50c to perform malicious behavior, it is necessary to call an API and communicate with a system (for example, an operating system, each device connected to the activity trace extraction device, and other external devices connected via a network). This is no exception to the behavior that leaves activity traces, so the generation unit 153 can collect activity traces of the targeted malware process 50c without missing them by monitoring the API using the API tracer 50b.

[0031] The environment for extracting the above activity traces is realized by API hooks in order to detect time dependency and environment dependency, which will be described later. For example, the API hook module 50d has a function of setting an API hook and modifying the execution result of the API.

[0032] The "process of extracting time dependency" will be described. The control unit 150 compares the analysis logs traced by the API tracer 50b in the first environment and the second environment at different times, and identifies the activity trace having time dependency among the multiple activity traces included in the analysis log.

[0033] The first environment and the second environment differ in that the time information of the environment in which the malware process 50c executes the process is different. For example, the control unit 150 executes the malware process 50c at a first time, acquires a plurality of activity traces collected by the API tracer 50b as a first analysis log in the first environment, and registers the acquired log in the history DB 142.

[0034] The control unit 150 executes the malware process 50c at a second time that is a predetermined time after the first time, acquires multiple activity traces collected by the API tracer 50b as a second analysis log in the second environment, and registers them in the history DB 142.

[0035] The control unit 150 compares the first analysis log and the second analysis log collected in the two execution environments, and if there is a difference between the activity traces, detects that the different activity trace has time dependency.

[0036] The control unit 150 creates a snapshot of the first environment (holding information at the first time) immediately before executing and obtaining the malware process 50c in the first environment, and when a certain amount of time has passed since the snapshot, it is possible to collect a second analysis log in the second environment by executing the malware process 50c again.

[0037] The control unit 150 may use an API hook to hook an API that obtains the time or the elapsed time since startup, and modify it to return a value different from the actual value, thereby achieving a difference in time information between the first environment and the second environment.

[0038] The "process of extracting environmental dependency" will be described. The control unit 150 compares the analysis logs traced by the API tracer 50b in two different environments, a first environment and a third environment, such as a system or device, assigned to the malware process 50c, to identify an activity trace having environment dependency among a plurality of activity traces included in the analysis log.

[0039] The first environment and the third environment differ from each other in that the information on the system and device in the environment in which the malware process 50c executes processing is different.

[0040] The control unit 150 identifies whether or not there is a call to an API for acquiring system or device information described in a list of APIs (APIs for acquiring system or device information) in the first analysis log. If there is no call to an API for acquiring system or device information in the first analysis log, the control unit 150 determines that there is no trace of activity having environment dependency in the first analysis log.

[0041] On the other hand, if the first analysis log contains an API call for obtaining system or device information, the control unit 150 determines that any of the activity traces contained in the first analysis log may have environment dependency.

[0042] In this case, the control unit 150 executes the malware process 50c in the third environment by allocating to the virtual environment 30 a system or device that is a substitute for (different from) the information acquired by the API (API for acquiring information on the system or device) called by the malware process 50c in the first environment. The control unit 150 registers in the history DB 142 a third analysis log traced by the API tracer 50b in the third environment.

[0043] The control unit 150 may use an API hook to hook an API that acquires system or device information, and modify the API to return a value different from the actual value, thereby realizing a difference between the system or device information in the first environment and the third environment. The control unit 150 may also hook an API that acquires information specific to a specific application software (hereinafter, application) (for example, setting information of a specific application), and further modify the API to return a value different from the actual value, thereby realizing a difference between the information specific to an application in the first environment and the third environment.

[0044] The control unit 150 compares the first analysis log and the third analysis log collected in the two execution environments, and if there is a difference in the activity traces, detects that the difference in the activity trace has environment dependency.

[0045] For example, if the malware process 50c calls an API to obtain disk UUID information (system information), the control unit 150 changes the disk UUID information of the operating system through the agent 50a. Also, if the malware process calls an API to obtain CPU core count information (device information), the control unit 150 changes the number of cores assigned to the virtual machine. The control unit 150 may achieve this by using an API hook to hook an API that obtains system or device information and modifying it so that a value different from the actual value is returned.

[0046] The "process of generating an IOC" will be described. The control unit 150 updates the first analysis log by removing time-dependent activity traces and environment-dependent activity traces from the activity traces of the first analysis log stored in the history DB 142. The control unit 150 generates an IOC based on the updated first analysis log. The control unit 150 may generate an IOC using the techniques described in Non-Patent Documents 1 and 2.

[0047] Next, an example of the configuration of an activity trace extraction device that executes the process described in Fig. 1 will be described. Fig. 2 is a functional block diagram showing the configuration of an activity trace extraction device according to this embodiment. As shown in Fig. 2, this activity trace extraction device 100 has a communication unit 110, an input unit 120, a display unit 130, a storage unit 140, and a control unit 150.

[0048] The communication unit 110 is a communication interface that transmits and receives various information to and from an external device connected via a network, etc. The communication unit 110 is realized by a NIC (Network Interface Card) or the like, and performs communication between the external device and the control unit 150 via an electric communication line such as a LAN (Local Area Network) or the Internet.

[0049] The input unit 120 is an input interface that accepts various operations from an operator of the activity trace extraction device 100. For example, it is configured with input devices such as a keyboard and a mouse.

[0050] The display unit 130 is an output device that outputs information acquired from the control unit 150, and is realized by a display device such as a liquid crystal display, a printing device such as a printer, or the like.

[0051] The storage unit 140 has a target DB 141 and a history DB 142. The storage unit 140 corresponds to the storage unit 140 described in FIG. 1. The target DB 141 holds data of a plurality of pieces of malware used to extract activity traces. The malware may be executable file type malware or script type malware.

[0052] The history DB 142 holds information on the analysis logs executed in each environment. Fig. 3 is a diagram showing an example of the data structure of the history DB. As shown in Fig. 3, the history DB 143 holds malware identification information, a first analysis log, a second analysis log, and a third analysis log.

[0053] The malware identification information is information for identifying the malware. The first analysis log is an analysis log collected by executing the corresponding malware in a first environment. The second analysis log is an analysis log collected by executing the corresponding malware in a second environment. The third analysis log is an analysis log collected by executing the corresponding malware in a third environment.

[0054] FIG. 4 is a diagram showing an example of an analysis log and activity traces. In FIG. 4, "prev" in area 10a indicates before API execution, and "post" indicates after API execution. "IN" in area 10b indicates input, and "OUT" indicates output. A string in area 10c indicates a DLL name. A string in area 10d indicates an API name. A string in area 10e indicates a type. A string in area 10f corresponds to a variable name. A string and a number in area 10g correspond to arguments. "val" in area 10h indicates that a value obtained by dereferencing a pointer is recorded. Area 10i includes activity traces. In the example shown in FIG. 4, it is shown that the lpCommandLine argument of CreateProcess is an activity trace related to a process in this malware.

[0055] The control unit 150 executes a process of extracting an activity trace, a process of extracting time dependency, a process of extracting environment dependency, and a process of generating an IOC. The control unit 150 corresponds to the control unit 150 described in FIG. 1. For example, the control unit 150 includes a collection unit 151, an update unit 152, and a generation unit 153.

[0056] The collection unit 151 reads out malware from the target DB 141 and executes the malware in each environment to collect analysis logs in each environment.

[0057] For example, the collection unit 151 executes the agent 50a, the API tracer 50b, and the fake servers 40a and 40b in the virtual environment 30 described in Fig. 1. The collection unit 151 reads and executes malware from the target DB 141 to operate the malware process 50c. The collection unit 151 executes the malware process 50c and collects an analysis log traced by the API tracer 50b.

[0058] The collection unit 151 collects a first analysis log by executing the malware process 50c in the first environment. When collecting the first analysis log, the collection unit 151 obtains information (snapshot) of the first time when the malware process 50c is executed by using an API hook or the like.

[0059] The collection unit 151 collects a second analysis log by executing the malware process 50c again in a second environment after a certain time has elapsed from the first time.

[0060] The collection unit 151 scans the first analysis log, and if there is a call to an API for acquiring system or device information, it determines that any of the activity traces included in the first analysis log has environment dependency.

[0061] The collection unit 151 executes the malware process 50c in the third environment by changing the system information to be different from the system information in the first environment. The collection unit 151 collects a third analysis log traced by the API tracer 50b in the third environment.

[0062] If there is no call to an API for acquiring system or device information in the first analysis log, the collection unit 151 determines that there is no trace of activity having environment dependency in the first analysis log.

[0063] The collection unit 151 registers the collected first analysis log, second analysis log, and third analysis log in the history DB 142 in association with the malware identification information.

[0064] The collection unit 151 also executes the above process for other malware registered in the target DB 141, and repeatedly executes the process of collecting the first analysis log, the second analysis log, and the third analysis log and registering them in the history DB 142.

[0065] The update unit 152 is a processing unit that updates the first analysis log by removing time-dependent activity traces and environment-dependent activity traces from the first analysis log. For example, the update unit 152 removes, from the activity traces in the first analysis log, activity traces that do not match the activity traces in the second analysis log as time-dependent activity traces.

[0066] The update unit 152 removes, from among the activity traces in the first analysis log, any activity trace that does not match any activity trace in the third analysis log, as an activity trace having environment dependency.

[0067] The update unit 152 repeatedly executes the above process for each of the first analysis logs registered in the history DB 142.

[0068] The generating unit 153 generates an IOC based on the first analysis log updated by the updating unit 152. The generating unit 153 may generate an IOC using the techniques described in Non-Patent Documents 1 and 2. The generating unit 153 may store the generated IOC in the storage unit 140, or may notify an external device of the generated IOC.

[0069] FIG. 5 is a diagram showing an example of a time-dependent activity trace. In FIG. 5, "GetLocalTime" is a system API that acquires time information, and the time information is the system time. It is assumed that there is a data dependency between "lpSystemTime", which is the output value of "GetLocalTime" and stores the system time, and the activity trace of the process name. In other words, it is assumed that the process name is determined based on the value of "lpSystemTime".

[0070] For example, the analysis log 11a corresponds to the first analysis log, and the analysis log 11b corresponds to the second analysis log. If there is a difference between the system time of the analysis log 11a and the system time of the analysis log 11b, the activity traces will differ accordingly. This is time dependency.

[0071] FIG. 6 is a diagram showing an example of an activity trace having an environment dependency. In FIG. 6, "GetVolumeInformationA" is a system API that acquires environmental information related to a volume. It is assumed that there is a data dependency between lpVolumeSerialNumber, which is the output value of "GetVolumeInformationA" and stores the serial number of the volume, and the activity trace of the process name. In other words, it is assumed that the process name is determined based on the value of the serial number of the volume.

[0072] For example, the analysis log 12a corresponds to the first analysis log, and the analysis log 12b corresponds to the third analysis log. If there is a difference between the serial number of the analysis log 12a and the serial number of the analysis log 11b, the activity trace will also differ accordingly. This is environment dependency.

[0073] FIG. 7 is a diagram showing an example of a comparison of analysis logs. FIG. 7 shows an analysis log 13a and an analysis log 13b. The update unit 152 associates the API calls in the two analysis logs 13a and 13b with each other. This association is performed, for example, by extracting the longest common part, but is not limited to this. The update unit 152 compares the activity traces of the corresponding API calls and identifies whether they match or do not match. In the example shown in FIG. 7, the character string in the area 13a-1 matches the character string in the area 13b-1, but the character string in the area 13a-2 does not match the character string in the area 13b-2. For example, the update unit 152 removes the character string in the area 13a-2 and the character string in the area 13b-2 that are not matched.

[0074] Next, an example of a processing procedure of the activity trace extraction device 100 according to the present embodiment will be described. Fig. 8 is a flowchart showing the processing procedure of the activity trace extraction device according to the present embodiment. The collection unit 151 of the activity trace extraction device 100 executes a malware process 50c in a first environment and collects a first analysis log using the API tracer 50b (step S101).

[0075] After a certain period of time has elapsed, the collection unit 151 executes the malware process 50c in the second environment and collects a second analysis log using the API tracer 50b (step S102). The update unit 152 of the activity trace extraction device 100 compares the first analysis log with the second analysis log to identify activity traces having time dependency (step S103).

[0076] The collection unit 151 identifies the read environment of the API that acquires the information of the system or device based on the first analysis log (step S104). The collection unit 151 changes the read environment in the virtual environment, executes the malware process 50c, and collects the third analysis log using the API tracer 50b (step S105).

[0077] The update unit 152 compares the first analysis log with the third analysis log to identify an activity trace having environment dependency (step S106). The update unit 152 updates the first analysis log by removing the activity trace having time dependency and the activity trace having environment dependency from the first analysis log (step S107).

[0078] The generating unit 153 generates an IOC based on the updated first analysis log (step S108), and registers the IOC in the storage unit 140 (step S109).

[0079] 9 is a flowchart showing a process for identifying a trace of activity having dependencies by comparing analysis logs. The process in FIG. 9 corresponds to the process in steps S103 and S106 in FIG.

[0080] 9, the control unit 150 of the information processing device 100 receives two different analysis logs as input (step S201). The control unit 150 detects matching between lines of the two analysis logs using a predetermined method (step S202). For example, the control unit 150 executes the process of step S202 by extracting the longest common part.

[0081] The control unit 150 extracts the common first line of the analysis log (step S203). If the output values ​​match (step S204, Yes), the control unit 150 proceeds to step S206. On the other hand, if the output values ​​do not match (step S204, No), the control unit 150 adds the mismatched output values ​​to a list of dependent activity trajectories (step S205).

[0082] If the control unit 150 has not extracted all the lines of the analysis logs (step S206, No), it extracts the next common line of the analysis log (step S207) and proceeds to step S204. On the other hand, if the control unit 150 has extracted all the lines of the analysis logs (step S206, Yes), it outputs a list of dependent activity traces (step S208).

[0083] Fig. 10 is a flowchart showing a processing procedure for changing the system environment information using an API hook. As shown in Fig. 10, the control unit 150 of the information processing device 100 generates a list in which a plurality of output values ​​are defined in advance for each API (step S301). The collection unit 151 receives the system information that has been accessed (step S302).

[0084] The control unit 150 hooks an API corresponding to the system information (step S303). The control unit 150 causes an output value that is different from the original output value among the output values ​​defined in the list to be returned (step S304).

[0085] Fig. 11 is a flowchart showing a processing procedure for changing the environmental information of the system by changing the analysis environment. As shown in Fig. 11, the control unit 150 creates a list in which a plurality of configurations and settings are defined in advance (step S401). The control unit 150 receives the accessed system information (step S402). If the system information does not include information on the hardware configuration (step S403, No), the control unit 150 proceeds to step S405.

[0086] If the system information includes information on the hardware configuration (Yes at step S403), the control unit 150 operates the virtual environment 30 to change the device configuration (step S404).

[0087] If the system information does not include information related to the system settings (step S405, No), the control unit 150 ends the process.

[0088] On the other hand, if the system information includes information related to the system settings (Yes at step S405), the control unit 150 changes the system settings via the agent 50a (step S406).

[0089] Next, a description will be given of the effects of the activity trace extraction device 100 according to this embodiment. The activity trace extraction device 100 can selectively extract activity traces that are effective for detection and generate effective IOCs by detecting the time dependency and environment dependency of activity traces.

[0090] For example, the activity trace extraction device 100 collects a first analysis log by executing malware in a first environment. The activity trace extraction device 100 collects a second analysis log by executing malware in a second environment after a predetermined time has elapsed from the first environment. The activity trace extraction device 100 identifies a time-dependent activity trace based on the first analysis log and the second analysis log.

[0091] The activity trace extraction device 100 also collects a third analysis log by executing the malware in a third environment in which the environment of the system or device used by the malware in the first environment is changed. The activity trace extraction device 100 identifies an activity trace having environment dependency based on the first analysis log and the third analysis log.

[0092] The activity trace extraction device 100 updates the first analysis log by removing time-dependent activity traces and environment-dependent activity traces from the first analysis log, and generates IOCs based on the updated first analysis log. Since the IOCs generated by the activity trace extraction device 100 are generated based on activity traces that are not time-dependent or environment-dependent, it becomes possible to detect malware without increasing the number of IOCs.

[0093] In addition, when switching to the third environment, the activity trace extraction device 100 virtually changes the system and device APIs assigned to the malware process 50c, but this is not limited to this, and the malware process 50c may be operated by changing the actually available APIs.

[0094] 12 is a diagram showing an example of a computer that executes an activity trace extraction program. The computer 1000 includes, for example, a memory 1010, a CPU 1020, a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected by a bus 1080.

[0095] The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM 1012. The ROM 1011 stores, for example, a boot program such as a BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to a hard disk drive 1031. The disk drive interface 1040 is connected to a disk drive 1041. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1041. The serial port interface 1050 is connected to, for example, a mouse 1051 and a keyboard 1052. The video adapter 1060 is connected to, for example, a display 1061.

[0096] Here, the hard disk drive 1031 stores, for example, an OS 1091, an application program 1092, a program module 1093, and program data 1094. Each piece of information described in the above embodiments is stored in the hard disk drive 1031 or memory 1010, for example.

[0097] Moreover, the activity trace extraction program is stored in the hard disk drive 1031, for example, as a program module 1093 in which instructions to be executed by the computer 1000 are written. Specifically, the program module 1093 in which each process executed by the activity trace extraction device 100 described in the above embodiment is written is stored in the hard disk drive 1031.

[0098] Furthermore, data used in information processing by the activity trace extraction program is stored as program data 1094, for example, in the hard disk drive 1031. Then, the CPU 1020 reads out the program module 1093 and the program data 1094 stored in the hard disk drive 1031 into the RAM 1012 as necessary, and executes each of the above-mentioned procedures.

[0099] The program module 1093 and program data 1094 relating to the activity trace extraction program are not limited to being stored in the hard disk drive 1031, and may be stored in a removable storage medium, for example, and read by the CPU 1020 via the disk drive 1041, etc. Alternatively, the program module 1093 and program data 1094 relating to the activity trace extraction program may be stored in another computer connected via a network, such as a LAN or a WAN (Wide Area Network), and read by the CPU 1020 via the network interface 1070.

[0100] Although the embodiment to which the invention made by the present inventor is applied has been described above, the present invention is not limited by the description and drawings which form a part of the disclosure of the present invention according to the present embodiment. In other words, other embodiments, examples, operation techniques, etc. made by those skilled in the art based on the present embodiment are all included in the scope of the present invention. [Explanation of symbols]

[0101] 100 Activity trace extraction device 110 Communications Department 120 Input section 130 Display section 140 Storage section 141 Target DB 142 History DB 150 Control section 151 Collection Department 152 Update section 153 Generation part

Claims

1. a collection unit that executes malware to collect an analysis log including a plurality of activity traces of the malware, and that executes the malware again to collect an environment change analysis log including a plurality of activity traces of the malware that are assumed when changing the execution environment of a system and a device used when executing the malware, and information specific to application software; an update unit that determines whether or not a plurality of activity traces included in the analysis log are included that are different from the activity traces in the environment change analysis log based on the analysis log and the environment change analysis log, and updates the analysis log by removing the different activity traces from the analysis log when the activity traces are included that are different from the activity traces in the environment change analysis log; a generation unit that generates trace information of the malware that is independent of the execution environment based on the updated analysis log; An activity trace extraction device comprising:

2. The activity trace extraction device of claim 1, characterized in that the collection unit further performs a process of collecting a time change analysis log including multiple activity traces of the malware by re-executing the malware in an environment indicating time information different from the time information when the malware was executed, and the update unit updates the analysis log by removing from the analysis log activity traces that are different from the activity traces in the time change analysis log and the activity traces in the environment change analysis log among the multiple activity traces included in the analysis log.

3. The activity trace extraction device described in claim 1, characterized in that the collection unit acquires the execution environment of the system and device used when the malware is executed, and information specific to the application software, and further performs a process of making changes to the acquired execution environment.

4. 2. The activity trace extraction device according to claim 1, wherein the generation unit generates an Indicator of Compromise (IOC) based on the updated analysis log.

5. a collection step of collecting an analysis log including a plurality of activity traces of the malware by executing the malware, and collecting an environment change analysis log including a plurality of activity traces of the malware, which is assumed when changing the execution environment of the system and device used when executing the malware, and information specific to application software, by executing the malware again; an updating step of determining whether or not a plurality of activity traces included in the analysis log are included that are different from the activity traces in the environment change analysis log based on the analysis log and the environment change analysis log, and updating the analysis log by removing the different activity traces from the analysis log when the activity traces are included that are different from the activity traces in the environment change analysis log; A generating step of generating trace information of the malware that is independent of the execution environment based on the updated analysis log; A method for extracting activity traces, comprising:

6. a collection step of collecting an analysis log including a plurality of activity traces of the malware by executing the malware, and collecting an environment change analysis log including a plurality of activity traces of the malware, which is assumed when changing the execution environment of the system and device used when executing the malware and the information specific to the application software, by executing the malware again; an updating step of determining whether or not a plurality of activity traces included in the analysis log are included that are different from the activity traces in the environment change analysis log based on the analysis log and the environment change analysis log, and updating the analysis log by removing the different activity traces from the analysis log when the activity traces are included that are different from the activity traces in the environment change analysis log; A generating step of generating trace information of the malware that is independent of the execution environment based on the updated analysis log; An activity trace extraction program for causing a computer to execute the above.

Citation Information

Patent Citations

  • Computer virus checking equipment and method, computer program, and mail gateway system

    JP2004038273A

  • Efficient technique for dynamic analysis of malware

    JP2010262609A

  • Generating behavioral signatures using clustering

    JP2013529335A

  • Method for estimating malware operation environment, and device and system therefor

    JP2017033286A

  • Cybersecurity Systems and Technologies

    JP2019505943A