GENERATION APPARATUS, GENERATION METHOD, AND GENERATION PROGRAM
The system improves malware detection by executing malware on monitored terminals to identify environment-dependent traces, generating tailored IoCs that reduce over-detection and enhance matching speed and accuracy.
Patent Information
- Application Number
- JP2023526811
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-06-11
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-06-11
AI Technical Summary
Existing malware detection systems using Endpoint Detection and Response (EDR) face challenges in creating accurate and efficient Indicator of Compromise (IoC) due to over-detection caused by abstracting activity traces with regular expressions, leading to prolonged matching times and reduced accuracy.
A generation device and method that executes malware multiple times on monitored terminals, rewriting API and system call values to identify environment-dependent activity traces, and generates a dedicated IoC by reproducing the processing related to these traces using malware's program code.
This approach creates IoCs tailored to each monitored terminal, reducing over-detection and enabling high-speed matching by ensuring activity traces are uniquely determined by the execution environment, thus avoiding false positives and negatives.
Smart Images

Figure 0007563596000001 
Figure 0007563596000002 
Figure 0007563596000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a generating device, a generating method, and a generating program. [Background technology]
[0002] As cyber attacks become more sophisticated and sophisticated, it is becoming increasingly difficult to detect malware infections using traditional antivirus software based on file hash values and signatures.Similarly, it is becoming increasingly difficult to detect malware infections using traditional network monitoring based on known malicious communication destinations and communication contents.
[0003] For this reason, EDR (Endpoint Detection and Response), which monitors program behavior, is becoming more widespread. EDR has the function of detecting malware infection by comparing the behavior of the monitored program with indicators of compromise (IoCs) that indicate a high degree of certainty that a program has been infected with malware. With this function, even if the malware has an unknown file hash value or communicates with a legitimate site, EDR can determine that the program is malware if there are characteristic traces of program activity, such as the path of the file created or the command line arguments of the process launched, that match the IoCs.
[0004] The coverage and accuracy of IoCs affect the detection capability of EDR. For this reason, when creating IoCs, it is necessary to create IoCs that can capture as many malware as possible within the limited computational resources available for matching, while paying attention not to detect legitimate software. Non-Patent Documents 1 and 2 have been proposed as technologies for automatically generating IoCs from malware activity traces observed on an analysis system. These technologies cluster the observed activity traces and aggregate them using regular expressions to generate general-purpose IoCs that capture activity traces within the cluster. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] Roberto Paleari, Lorenzo Martignoni, Emanuele Passerini, Drew Davidson, Matt Fredrikson, Jon Giffin, and Somesh Jha, "Automatic Generation of Remediation Procedures for Malware Infections", In Proceedings of the 19th USENIX Conference on Security, 2010 [Non-Patent Document 2] Yuma Kurogome, Yuto Otsuki, Yuhei Kawakoya, Makoto Iwamura, Syogo Hayashi, Tatsuya Mori, and Koushik Sen, "EIGER: Automated IOC Generation for Accurate and Interpretable Endpoint Malware Detection", In Proceedings of the 35th Annual Computer Security Applications Conference, 2019 Summary of the Invention [Problem to be solved by the invention]
[0006] Malware activity traces can be classified into those that are uniquely determined depending on the execution environment, and those that are not uniquely determined depending on the execution environment. For the former, it is possible to create a simple IoC using only a minimum number of regular expressions by creating it for each monitored terminal. However, since non-patent literature does not take into account the characteristics of activity traces, there are problems such as false positives due to abstraction using regular expressions even for activity traces that are uniquely determined depending on the execution environment, and matching takes a long time.
[0007] In order to create IoCs for each monitored device that detect activity traces that are uniquely determined depending on the execution environment, it is necessary to first identify that the malware activity traces are uniquely determined depending on the execution environment, and then investigate the activity traces observed when the process that generates the activity traces is performed on the monitored device, without infecting the monitored device.
[0008] The present invention has been made in consideration of the above, and aims to provide a generation device, a generation method, and a generation program that can improve the accuracy of extraction of review materials that are the basis for creating specifications. [Means for solving the problem]
[0009] In order to solve the above-mentioned problems and achieve the objective, the generation device of the present invention comprises an extraction unit that extracts activity traces from the malware that are uniquely determined depending on the execution environment by executing the malware multiple times while rewriting values returned by the malware's instructions that obtain information from the execution environment, a creation unit that uses program code of the malware to create program code that reproduces the processing involved in generating the activity traces extracted by the extraction unit, and a generation unit that generates trace information of a monitored terminal by executing the program code. Effect of the Invention
[0010] It is possible to create IoCs dedicated to monitored devices that detect activity traces that are uniquely determined depending on the execution environment. As long as the unique activity traces do not overlap with activity traces of legitimate software, it is possible to perform high-speed matching while eliminating oversights and false positives at the matching stage. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a diagram illustrating an example of a trace information generating system according to the present embodiment. [Diagram 2] FIG. 2 is a functional block diagram showing the configuration of the trace information generating device according to the present embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of a data structure of the malware DB. [Figure 4] FIG. 4 is a diagram illustrating an example of a data structure of a management table of the analysis log DB. [Diagram 5] FIG. 5 is a diagram illustrating an example of the data structure of a log table in the analysis log DB. [Figure 6] FIG. 6 is a diagram showing an example of the data structure of the environment dependency trace DB. [Figure 7] FIG. 7 is a flowchart (1) showing the processing procedure of the analysis unit. [Figure 8] FIG. 8 is a flowchart (2) showing the processing procedure of the analysis unit. [Figure 9] FIG. 9 is a flowchart (1) showing the processing procedure of the extraction unit. [Figure 10] FIG. 10 is a flowchart (2) showing the processing procedure of the extraction unit. [Figure 11] FIG. 11 is a flowchart showing the processing procedure of the creation unit. [Figure 12] FIG. 12 is a flowchart showing the processing steps of the generation unit of the trace information generation device and the agent of the monitored terminal. [Figure 13] FIG. 13 is a diagram illustrating an example of an IoC generated by the generating unit. [Figure 14]FIG. 14 is a flowchart illustrating a processing procedure of the trace information generating device according to the present embodiment. [Figure 15] FIG. 15 is a diagram illustrating an example of a computer that executes a trace information generating program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, embodiments of the generating device, generating method, and generating 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 these embodiments. EXAMPLES
[0013] Fig. 1 is a diagram showing an example of a trace information generating system according to the present embodiment. As shown in Fig. 1, the trace information generating system includes a trace information generating device 100 and monitored terminals 50a, 50b, and 50c. The trace information generating device 100 and the monitored terminals 50a, 50b, and 50c are connected to each other via a network 30. The trace information generating device 100 is an example of a generating device.
[0014] In this embodiment, the monitored terminals 50a, 50b, and 50c are shown as an example, but the trace information generating system may include other monitored terminals. The monitored terminals 50a to 50c are collectively referred to as monitored terminals 50.
[0015] The trace information generating device 100 executes the malware multiple times while rewriting values returned by APIs (Application Programming Interfaces) and system calls that acquire information on the execution environment, thereby identifying that the activity traces of the malware are uniquely determined depending on the execution environment, and then generates program code that reproduces only the processing related to the generation of the activity traces, using the program code of the malware.The trace information generating device 100 executes the generated program code on the monitored terminal 50, thereby revealing in advance the activity traces when the monitored terminal 50 is infected with malware, and generates an IoC dedicated to the monitored terminal 50.
[0016] An example of the configuration of the trace information generating device 100 shown in Fig. 1 will be described. Fig. 2 is a functional block diagram showing the configuration of the trace information generating device according to the present embodiment. As shown in Fig. 2, the trace information generating device 100 has a communication unit 110, an input unit 120, a display unit 130, a storage unit 140, and a control unit 150.
[0017] The communication unit 110 is a communication interface for transmitting and receiving various information to and from the monitored terminal 50 connected via the network 30 or the like. The communication unit 110 is realized by a NIC (Network Interface Card) or the like, and performs communication between the monitored terminal 50 and the control unit 150 via a telecommunication line such as a LAN (Local Area Network) or the Internet.
[0018] The input unit 120 is an input interface that accepts various operations from the operator of the trace information generation device 100. For example, it is configured with input devices such as a keyboard and a mouse.
[0019] 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.
[0020] The storage unit 140 includes a malware DB 141, an analysis log DB 142, an environment-dependent trace DB 143, and a generation program DB 144. 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.
[0021] The malware DB 141 is a DB that records information about malware. Fig. 3 is a diagram showing an example of a data structure of the malware DB. As shown in Fig. 3, the malware DB 141 has a malware ID, a program code, a file type, and an analyzed flag.
[0022] The malware ID is an identifier that identifies the malware to be analyzed. The program code is the malware's program code body. The file type indicates the file type of the malware's program code. The analyzed flag is a flag value that indicates whether the malware has been analyzed or not. If it has been analyzed, "on" is set, and if it has not been analyzed, "off" is set.
[0023] The analysis log DB 142 is a DB for recording the results of emulating and analyzing malware, and includes a management table 142a and a log table 142b.
[0024] Fig. 4 is a diagram showing an example of a data structure of a management table of the analysis log DB. As shown in Fig. 4, this management table 142a has an analysis ID, a malware ID, and a setting file. The analysis ID is an identifier of an analysis task. The malware ID is an identifier of a malware corresponding to the malware ID set in the malware DB 141. The setting file indicates a setting file used for analysis.
[0025] Fig. 5 is a diagram showing an example of the data structure of a log table in the analysis log DB. As shown in Fig. 5, the log table 142b has an analysis ID, a log ID, a PID, a TID, a command type, an operation type, an address, a command, a register (ID, value), and a memory (address, size, value).
[0026] The analysis ID is an identifier of the analysis task. The log ID is an identifier of the log in the analysis task. The PID is an identifier of the process. The TID is an identifier of the thread. The instruction type is information indicating either an assembly instruction, an API, or a system call.
[0027] The operation type is information that indicates whether a read or write was performed on a register or memory. The address indicates the execution address. The instruction is the result of disassembly if it is an assembly instruction, or the API name if it is an API.
[0028] If the instruction is related to a register operation, the ID that identifies the register and the value are recorded. If the instruction is related to a memory operation, the memory address, size, and value are recorded.
[0029] The environment-dependent trace DB 143 is a DB that records information on malware activity traces that are uniquely determined depending on the execution environment. Fig. 6 is a diagram showing an example of the data structure of the environment-dependent trace DB. As shown in Fig. 6, the environment-dependent trace DB 143 has a trace ID, a malware ID, an analysis ID, a log ID, a trace type, an environment-dependent trace, and a dependency command. The dependency command includes a log ID, a type, a command name, an argument, and a type.
[0030] The trace ID is an identifier of the extracted trace of activity. The malware ID is an identifier of the malware. The analysis ID is an identifier of the analysis task. The log ID is an identifier of the log in the analysis task. For example, the log ID is set to a log ID that identifies the first log among the logs corresponding to the trace of activity. The environment-dependent trace is a specific value of the trace of activity extracted from the analysis log.
[0031] Here, the dependency command includes a log ID, type, command name, arguments, and model. The log ID included in the dependency command is an identifier for the log in the analysis task, and indicates the log ID where the corresponding command was executed. The type indicates the type of command, such as an API or system call. The command name indicates the name of the command, and in the case of an API, the API name is set. The arguments indicate which argument holds the return value that affects the activity trace. The type indicates type information for the argument.
[0032] For example, in the environment-dependent trace DB 143 of FIG. 6, the trace type of the activity trace with the trace ID "E1" is "file path," and it is shown that the value changes depending on the data pointed to by the "4th" argument of the command name "GetVolumeInformationW."
[0033] The generation program DB 144 is a DB that records an activity trace generation program. The activity trace generation program is a program created by the creation unit 153, which will be described later.
[0034] Returning to the explanation of Fig. 2, the control unit 150 includes an analysis unit 151, an extraction unit 152, a creation unit 153, and a generation unit 154. The control unit 150 is realized using a CPU (Central Processing Unit) or the like.
[0035] The analysis unit 151 dynamically analyzes malware recorded in the malware DB 141, and records the analysis results in the analysis log DB 142. The analysis unit 151 performs virtualization on a process basis, and performs analysis while emulating functions provided by an OS (Operating System) and hardware. The processing of the analysis unit 151 will be described with reference to Figs. 7 and 8.
[0036] 7 and 8 are flowcharts showing the processing procedure of the analysis unit. As shown in Fig. 7, the analysis unit 151 of the trace information generation device 100 initializes the virtual environment according to the configuration file (step S101). In the initialization performed by the analysis unit 151, malware is deployed to a predetermined address of the virtual memory, and initial values of the virtual CPU, such as setting an instruction pointer, are set, and virtual objects, such as files to be placed in the virtual file system and processes to be present on the virtual OS, are initialized.
[0037] The analysis unit 151 sets an execution start position of the program code (step S102).The analysis unit 151 fetches an instruction from the address indicated by the instruction pointer (step S103).
[0038] The analysis unit 151 determines whether or not the fetched instruction is a valid instruction (step S104). If the fetched instruction is not a valid instruction (step S104, No), the analysis unit 151 proceeds to step S113 in FIG.
[0039] On the other hand, if the fetched instruction is a valid instruction (step S104, Yes), the analysis unit 151 determines whether the instruction is a system call (step S105). If the instruction is not a system call (step S105, No), the analysis unit 151 proceeds to step S110.
[0040] On the other hand, if the command is a system call (step S105, Yes), the analysis unit 151 emulates the system call and reflects the result in the virtual environment (step S106). The analysis unit 151 records the read / write result as a log in the analysis log DB 142 (step S107).
[0041] The analysis unit 151 determines whether or not the system call is one that ends execution (step S108). If the system call is one that does not end execution (step S108, No), the analysis unit 151 proceeds to step S112.
[0042] On the other hand, in the case of a system call that ends execution (step S108, Yes), the analysis unit 151 determines whether or not there are other processes / threads (step S109). If there are no other processes / threads (step S109, No), the analysis unit 151 ends the processing. If there are other processes / threads (step S109, Yes), the analysis unit 151 proceeds to step S112.
[0043] The process of step S110 will be described. The analysis unit 151 emulates the command in the virtual CPU and reflects the result in the virtual environment (step S110). The analysis unit 151 records the read / write result as a log in the analysis log DB 142 (step S111). The analysis unit 151 sets the next execution position to the next command of the caller (step S112) and proceeds to step S103.
[0044] 8. The analysis unit 151 determines whether the execution position is the start position of the API (step S113). If the execution position is not the start position of the API (step S113, No), the analysis unit 151 ends the process.
[0045] If the execution position is the start position of the API (Yes at step S113), the analysis unit 151 emulates the API and reflects the result in the virtual environment (step S114).
[0046] The analysis unit 151 records the read and written logs in the analysis log DB 142 (step S115). The analysis unit 151 determines whether or not the API is one that terminates execution (step S116). If the API is one that terminates execution (step S116, Yes), the analysis unit 151 proceeds to step S109 in Fig. 7. If the API is not one that terminates execution (step S116, No), the analysis unit 151 proceeds to step S112 in Fig. 7.
[0047] Here, in steps S106, S110, and S114, when the analysis unit 151 emulates a system call, a command other than a system call, or an API, the analysis unit 151 performs processing based on the state of the virtual environment at the start of the emulation and the contents of the configuration file (the configuration file of the management table 142a).
[0048] For example, when the analysis unit 151 emulates a "system call," "assembly command," or "API," and an attempt is made to read the value of virtual register A when the virtual register A contains a value of 10, the analysis unit 151 returns the value of 10. When a setting file specifies that file A should be placed at file path A in the virtual file system, the analysis unit 151 opens the file if it has not been deleted. When the analysis unit 151 emulates an API, it returns the handle of the file, and if the file has already been deleted, it returns a handle to a new file.
[0049] When the analysis unit 151 records a log in the analysis log DB in steps S107, S111, and S115, it assigns a log ID and registers the PID, TID, command type, operation type, address, command, register, and memory information in the log table 142b of the analysis log DB 142.
[0050] Although not shown in the figure, the analysis unit 151 registers information on the trace of activity in the analysis log DB 142 in association with the log ID. Here, the "trace of activity" refers to changes made to the virtual environment during analysis by executing malware. For example, the trace of activity may be the file path of a written file, the registry path of a created registry, or the process command line of a started process.
[0051] Next, the extraction unit 152 will be described. The extraction unit 152 acquires the analysis log of the malware recorded in the analysis log DB 142, acquires the activity trace from the log, and determines whether the activity trace is an environment-dependent activity trace by executing the processes shown in Fig. 9 and Fig. 10. For the environment-dependent activity trace, the extraction unit 152 records the log containing the corresponding activity trace and the logs of commands / APIs / system calls in a dependent relationship in the environment-dependent trace DB 143.
[0052] 9 and 10 are flowcharts showing the processing procedure of the extraction unit. As shown in Fig. 9, the extraction unit 152 of the trace information generation device 100 acquires an analysis log of one piece of malware from the analysis log DB 142 (step S201). The extraction unit 152 acquires an activity trace from the analysis log (step S202).
[0053] The extraction unit 152 determines whether or not one or more activity traces exist (Step S203). If one or more activity traces do not exist (No at Step S203), the extraction unit 152 ends the process.
[0054] On the other hand, if there is one or more activity traces (step S203, Yes), the extraction unit 152 determines whether or not there is an unprocessed activity trace (step S204). If there is no unprocessed activity trace (step S204, No), the extraction unit 152 ends the process.
[0055] On the other hand, if there are unprocessed activity traces (Yes at step S204), the extracting unit 152 selects one of the unprocessed activity traces (step S205). The extracting unit 152 sets the log containing the activity trace as the starting point of a retroactive search (step S206).
[0056] The extraction unit 152 determines whether there is still a log that can be traced back (Step S207). If there is no log that can be traced back (No at Step S207), the extraction unit 152 proceeds to Step S204.
[0057] On the other hand, if there is still a log that can be traced back (Yes at step S207), the extraction unit 152 proceeds to step S208 in FIG.
[0058] 9. The extraction unit 152 retrieves the previous log (step S208). The extraction unit 152 determines whether the retrieved log is a log of a command / API / system call for retrieving environmental information (step S209). If the retrieved log is not a log of a command / API / system call for retrieving environmental information (step S209, No), the extraction unit 152 proceeds to step S207 in FIG.
[0059] On the other hand, if the acquired log is a log of a command / API / system call that acquires environmental information (step S209, Yes), the extraction unit 152 restores the state of the virtual environment immediately before the emulation in which the log was recorded (step S210).
[0060] The extraction unit 152 executes each of the cases "when the value to be returned as the result of emulation is changed" and "when the value to be returned as the result of emulation is not changed" once (a total of two or more times), and executes the malware's program code up to the location where the activity trace was observed (step S211).
[0061] The extraction unit 152 determines whether or not the activity trace can be executed up to the position where the activity trace is observed (step S212). If the activity trace cannot be executed up to the position where the activity trace is observed (step S212, No), the extraction unit 152 proceeds to step S207 in FIG.
[0062] On the other hand, if the extraction unit 152 has been able to execute up to the position where the activity trace was observed (step S212, Yes), it determines whether or not a change has been observed in the activity trace only when the return value has been changed (step S213). If no change has been observed in the activity trace only when the return value has been changed (step S213, No), the extraction unit 152 proceeds to step S207 in FIG.
[0063] If a change is found in the activity trace only when the return value is changed (Yes at step S213), the extraction unit 152 identifies the selected activity trace as an environment-dependent activity trace (step S214). For the activity trace that is found to be environment-dependent, the extraction unit 152 records a log containing the activity trace in the environment-dependent trace DB (step S215), and proceeds to step S207 in FIG.
[0064] 9 and 10, the extraction unit 152 traces the activity traces back one log at a time starting from the log from which the activity traces were obtained, and when it reaches a log of an instruction, API, or system call that obtains information from the execution environment, it checks whether the value of the activity traces changes depending on the instruction, API, or system call. To check, it restores the state of the virtual environment immediately before emulating the instruction, API, or system call from the information in the analysis log, and executes the program code of the malware up to the position where the activity traces were observed.
[0065] In order to determine whether or not the activity trace is environment-dependent, the extraction unit 152 executes N times each of the cases where the command, API, and value returned by the system call to be checked is changed and where it is not changed. The extraction unit 152 needs to execute at least once each of the cases where the command, API, and value returned by the system call to be checked is changed and where it is not changed (a total of two times).
[0066] If there is no change in the observed activity trace when the returned value is not changed, and there is a change in the observed activity trace when the returned value is changed, the extraction unit 152 determines that the corresponding activity trace is an environment-dependent activity trace and that the activity trace depends on the command, API, or system call in question.
[0067] The extraction unit 152 records information on the activity trace that depends on the environment in the environment-dependent trace DB 143. For example, the extraction unit 152 records information on the trace ID, the malware ID, the analysis ID, the log ID (the log ID of the first log among the logs corresponding to the activity trace), the trace type, the environment-dependent trace, and the dependency command in the environment-dependent trace DB 143.
[0068] Next, a description will be given of the creation unit 153. The creation unit 153 creates program code for generating environment-dependent activity traces based on the malware DB 141, the analysis log DB 142, and the environment-dependent trace DB 143.
[0069] Fig. 11 is a flowchart showing the processing procedure of the creating unit 153 of the trace information generating device 100. As shown in Fig. 11, the creating unit 153 of the trace information generating device 100 acquires an entry related to information on environment-dependent activity traces from the environment-dependent trace DB 143 (step S301).
[0070] The creation unit 153 acquires an analysis log related to the acquired entry from the analysis log DB 142 (step S302). The creation unit 153 acquires malware related to the acquired entry from the malware DB 141 (step S303).
[0071] The creation unit 153 performs backward program slicing starting from the log containing the activity trace, and extracts only the code related to the generation of the activity trace (step S304). The creation unit 153 symbolizes the command / API / system call that is known to change the activity trace by changing the return value, and executes the symbolic execution up to the same position as the log where the activity trace was observed (step S305).
[0072] The creation unit 153 restores the states of the virtual memory and virtual CPU at the execution start point of the sliced result (step S306). The creation unit 153 changes code that is not included in the path leading to the position where the activity trace was observed and is not included in the sliced result to a no-op instruction (NOP) (step S307). The creation unit 153 records the states of the virtual memory and virtual CPU in the generation program DB 144 as an activity trace generation program (step S308).
[0073] Next, the generation unit 154 will be described. The generation unit 154 transmits the activity trace generation program recorded in the generation program DB 144 to the monitored terminal 50, and causes the agent of the monitored terminal 50 to execute the activity trace generation program. The generation unit 154 collects activity traces generated as a result of the agent executing the activity trace generation program, and generates an IoC.
[0074] Fig. 12 is a flowchart showing the processing procedure of the generation unit of the trace information generation device and the agent of the monitored terminal. In the example shown in Fig. 12, the agent of the monitored terminal 50a is used for explanation. As shown in Fig. 12, the generation unit 154 of the trace information generation device 100 acquires an activity trace generation program from the generation program DB 144 (step S401).
[0075] The generating unit 154 transmits the activity trace generating program to the agent of the monitored terminal 50a (step S402). The agent of the monitored terminal 50a receives the activity trace generating program (step S403).
[0076] The agent of the monitored terminal 50a deploys the activity trace generating program on the virtual environment (step S404), and executes the activity trace generating program (step S405).
[0077] The agent of the monitored terminal 50a transmits an activity trace, which is a result of executing the activity trace generating program, to the generating unit 154 (step S406). The generating unit 154 receives the activity trace (step S407). The generating unit 154 generates an IoC (step S408).
[0078] When the agent on the monitored terminal 50a executes the activity trace generation program, for commands / APIs / system calls that obtain information from the virtual OS or virtual hardware, it reads the actual data on the monitored terminal 50a, but when writing to the memory unit of the monitored terminal, it executes processing that is closed within the virtual environment.
[0079] In the process described in FIG. 12, the generation unit 154 has been described using the agent of the monitored terminal 50a, but in a similar manner, the IoC is generated using the agent of the monitored terminal 50b and the agent of the monitored terminal 50c.
[0080] 13 is a diagram showing an example of an IoC generated by the generation unit. IoC-a is an IoC generated based on the result of having the agent of the monitored terminal 50a execute an activity trace generation program. IoC-b is an IoC generated based on the result of having the agent of the monitored terminal 50b execute an activity trace generation program. IoC-c is an IoC generated based on the result of having the agent of the monitored terminal 50c execute an activity trace generation program.
[0081] 13 shows an example of identifying activity traces when malware is executed on the monitored terminal 50 and outputting them as IoCs conforming to the OpenIOC format. The IndicatorItem condition tag indicates the comparison method during the inspection, and the Content tag indicates the specific conditions used for the inspection.
[0082] In the above description, the generation unit 154 transmits the activity trace generation program to the agent of the monitored terminal 50 and acquires activity traces from the monitored terminal 50, but this is not limited to the above. The generation unit 154 may execute the activity trace generation program on the trace information generating device 100 to pseudo-acquire activity traces of the monitored terminal 50. In this case, the activity trace generation program is not transmitted to the terminal target device 50.
[0083] As described above, the activity trace generation program (program code) is executed on the monitored terminal 50 because it is not known what results the commands (including APIs and system calls) for acquiring environmental information contained in the activity trace generation program will return on each monitored terminal 50. For this reason, if it is known in advance what results the monitored terminal 50 will return, it is not necessary to distribute the activity trace generation program to the monitored terminal 50. In this case, this can be substituted by having the generation unit 154 execute the activity trace generation program and return information that is expected to be returned by the monitored terminal 50.
[0084] Specific examples of information expected to be returned by the monitored terminal 50 include APIs and system calls for acquiring the MAC address of a NIC and the GUID of a HDD. Since this is uniquely determined for each monitored terminal 50 (for each piece of hardware provided in the monitored terminal 50), if the activity trace generation program created by the creation unit 153 includes only APIs and system calls for acquiring this information and has a DB of which values should be returned for which APIs for each monitored terminal 50, the activity trace generation program can be completed by the creation unit 154, without being executed by the monitored terminal 50.
[0085] Next, an example of the processing procedure of the trace information generation device 100 according to this embodiment will be described. Fig. 14 is a flowchart showing the processing procedure of the trace information generation device according to this embodiment. As shown in Fig. 14, the analysis unit 151 of the trace information generation device 100 dynamically analyzes malware recorded in the malware DB (step S501). The specific processing procedure of step S501 corresponds to the processing procedure described in Figs. 7 and 8.
[0086] The extraction unit 152 of the trace information generation device 100 extracts environment-dependent activity traces based on the malware analysis log (step S502). The specific processing procedure of step S502 corresponds to the processing procedure described with reference to Figs.
[0087] The generating unit 153 of the trace information generating device 100 generates an activity trace generating program for generating an environment-dependent activity trace (step S503). The specific processing procedure of step S503 corresponds to the processing procedure described with reference to FIG.
[0088] The generation unit 154 of the trace information generation device 100 executes the activity trace generation program on the monitored terminal to generate an IoC (step S504). The specific processing procedure of step S504 corresponds to the processing procedure described with reference to FIG.
[0089] Next, the effect of the trace information generating device 100 according to the present embodiment will be described. The trace information generating device 100 executes malware multiple times while rewriting values returned by APIs and system calls that acquire information on the execution environment, and identifies that the activity trace of the malware is a trace that is uniquely determined depending on the execution environment. Then, the trace information generating device 100 uses the program code of the malware to generate a program code that reproduces only the process related to the generation of the activity trace. The trace information generating device 100 executes the generated program code on the monitored terminal 50 to clarify the activity trace when the monitored terminal 50 is infected with malware in advance, and generates an IoC dedicated to the monitored terminal 50. This makes it possible to create an IoC dedicated to the monitored terminal that detects the activity trace that is uniquely determined depending on the execution environment, so that if the unique activity trace does not overlap with the activity trace of legitimate software, high-speed matching can be performed while eliminating oversights and overdetections at the matching stage.
[0090] The trace information generating device 100 can extract environment-dependent activity traces by executing malware multiple times and extracting, from among multiple activity traces related to the malware, activity traces that do not change when the returned value is not changed and that change when the returned value is changed.
[0091] The trace information generating device 100 reflects the results of emulating the malware's instructions (instructions / APIs / system calls) in the virtual environment, records a log of data reads and writes associated with the emulation, and based on the recorded log, restores the state of the virtual environment immediately before emulating the malware's instructions, and executes the malware up to the position where the activity trace was observed. This makes it possible to identify activity traces that do not change when the return value is not changed even when the malware is executed multiple times, and that change when the return value is changed, and to extract the identified activity traces.
[0092] 15 is a diagram showing an example of a computer that executes a trace information generation program. The computer 1000 has, 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.
[0093] 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.
[0094] 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.
[0095] Furthermore, the trace information generation 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 hard disk drive 1031 stores the program module 1093 in which each process executed by the trace information generation device 100 described in the above embodiment is written.
[0096] Furthermore, data used in information processing by the trace information generating 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.
[0097] Note that the program module 1093 and program data 1094 related to the trace information generation 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 related to the trace information generation 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.
[0098] 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]
[0099] 100 Trace information generation device 140 Storage section 141 Malware DB 142 Analysis log DB 143 Environment-dependent trace DB 144 Generation Program DB 150 Control section 151 Analysis Department 152 Extraction part 153 Creation Department 154 Generation part
Claims
1. an extracting unit that extracts from the malware an activity trace that is uniquely determined depending on the execution environment by executing the malware multiple times while rewriting a value returned by an instruction of the malware that acquires information from the execution environment; a creation unit that creates a program code that reproduces a process related to generation of the activity trace extracted by the extraction unit, using a program code of the malware; A generating unit that generates trace information of a monitored terminal by executing the program code; A generating device comprising:
2. The generation device according to claim 1, characterized in that the extraction unit extracts the activity traces by executing the malware multiple times while rewriting values returned by an API (Application Programming Interface) that obtains an execution environment, a system call, or an instruction other than the system call.
3. The generation device described in claim 1, characterized in that the extraction unit executes the malware multiple times and extracts, from among multiple activity traces related to the malware, activity traces that do not change when the value is not changed and that change when the value is changed.
4. The generation device described in claim 3, further comprising an analysis unit that sets up a virtual environment, reflects the results of emulating the malware's instructions in the virtual environment, and records a log of data reading and writing associated with the emulation, and the extraction unit restores the state of the virtual environment immediately before emulating the malware's instructions based on the log, and executes the malware up to the point where traces of activity were observed.
5. an extraction step of extracting from the malware an activity trace that is uniquely determined depending on the execution environment by executing the malware multiple times while rewriting a value returned by an instruction of the malware that acquires information from the execution environment; a creating step of creating a program code that reproduces a process related to the generation of the activity trace extracted in the extracting step by using the program code of the malware; A generating step of generating trace information of a terminal to be monitored by executing the program code; The generating method is characterized in that the generating method is executed by a computer.
6. an extraction step of extracting from the malware an activity trace that is uniquely determined depending on the execution environment by executing the malware multiple times while rewriting a value returned by an instruction of the malware that acquires information from the execution environment; A creating step of creating a program code that reproduces a process related to generation of the activity trace extracted in the extracting step by using the program code of the malware; A generating step of generating trace information of a terminal to be monitored by executing the program code; A generating program for causing a computer to execute the above.
Citation Information
Patent Citations
Malware analyzer and malware analysis method
JP2016192139A
Deactivating evasive malware
US20190108339A1
Program analysis device, program analysis method, and program analysis system
WO2015186483A1
