Malicious software hiding behavior detection method, system and equipment and storage medium

Through disassembly building control flow graphs based on data flow-sensitive enforcement methods, the path pattern is generated and malware is enforced, which solves the incomplete and invalid execution problems of malware hidden behavior detection, and realizes multi-platform reuse and More accurate analysis of the effect.

CN118965345APending Publication Date: 2024-11-15RENMIN UNIVERSITY OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410952814.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Existing malware analysis technologies are difficult to effectively detect hidden behavior, especially on multiple platforms, and there are problems of incomplete behavior and invalid execution in enforced analysis.

Method used

Using a data flow-sensitive enforcement method, construct control flow graphs through disassembly, generate path patterns, enforce malware, and record memory access operations, update the graph structure to correct the fixed-reference prediction relationship until the resource bottleneck is reached Output all behaviors.

Benefits of technology

Implements multi-platform reusable malware hidden behavior detection, solves the problems of incomplete behavior and ineffective execution, and can lightly analyze malware on multiple platforms, generating more accurate path patterns to cover unexecuted code areas. and fixed value-reference relationship.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118965345A_ABST
    Figure CN118965345A_ABST
Patent Text Reader

Abstract

The invention relates to a malicious software hiding behavior detection method, system and device and a storage medium, and the method comprises the following steps: disassembling target malicious software, constructing a control flow graph of the target malicious software, and generating a directed graph; analyzing according to the directed graph to obtain a plurality of fixed value-reference prediction relationships, and generating a path mode; forcibly executing the target malicious software according to the generated path mode, and recording behaviors expressed by the target malicious software during the execution; analyzing the memory access operation executed at this time, updating the directed graph, and predicting and correcting a constant value-reference prediction relationship according to the updated directed graph; and judging whether a preset resource bottleneck is reached at present, if not, returning to the mode of continuously generating the path, otherwise, ending, and outputting all detected behaviors. The method can be widely applied to the field of malicious software analysis and research.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the research field of malware analysis, and in particular relates to a malware hidden behavior detection method, system, device and storage medium based on data flow sensitive enforcement. Background Art

[0002] The amount of malware increases year by year and poses a huge threat to individuals, organizations and even countries. Analyzing malware behavior to prevent malware spread has become a key challenge facing the security community today.

[0003] Static analysis is a commonly used malware analysis method. As the name implies, this analysis method does not actually run the malware to be tested, but identifies malicious behavior by extracting static features. Although the static analysis method is relatively efficient, it is easily affected by obfuscation methods such as packing and junk instructions. Another common method is to run the software to be tested in a sandbox (such as a virtual machine) and record its runtime behavior. However, the latest malware often hides its malicious behavior, making it impossible for conventional malware execution to expose its malicious behavior. These malwares achieve the purpose of concealing their malicious behavior by setting harsh context and environmental conditions. Once the virtual machine does not have the environment it needs (such as the server is shut down or a certain library is missing), it will not execute malicious behavior. Some malware even use camouflage technology, such as packaging technology and debugger detection technology, and stop execution immediately once it detects that the program is being monitored.

[0004] To solve this problem, researchers have proposed a technique called forced execution, which uses dynamic instrumentation technology to force branches of certain conditional instructions (we call such a set of forced branches a path pattern) to check the behavior of the software, and continuously generate new path patterns through an incremental path traversal algorithm. This technology can bypass the self-protection mechanism and various trigger conditions of malware to force the execution of malicious branches. Because forced execution may access uninitialized variables and cause exceptions, some previous research works have been devoted to ensuring that there are no crashes at runtime. However, another important component of forced execution technology, the path traversal algorithm, has lacked attention. The incremental path traversal algorithm used in existing forced execution technology simply and crudely generates new path patterns without considering the integrity of the data flow in the program, resulting in incomplete exposure of behavior and invalid execution when using this technology for analysis. Summary of the invention

[0005] In view of the above problems, the purpose of the present invention is to provide a malware hidden behavior detection method, system, device and storage medium based on data flow sensitive forced execution, which can lightweight analyze malware on multiple platforms and expose its hidden behavior, and solve the problems of incomplete behavior recording and invalid execution in existing forced execution analysis work.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] In a first aspect, the present invention provides a method for detecting malware hidden behavior, comprising the following steps:

[0008] (1) Disassemble the target malware and construct its control flow graph to generate a directed graph G;

[0009] (2) According to the directed graph G, several fixed value-reference prediction relationships are obtained and a path pattern p is generated;

[0010] (3) forcibly executing the target malware according to the generated path pattern p, and recording the behavior of the target malware during the execution;

[0011] (4) analyzing the memory access operation executed this time and updating the directed graph G in step (1), and predicting and correcting the fixed value-reference prediction relationship in step (2) based on the updated directed graph G;

[0012] (5) Determine whether the preset resource bottleneck has been reached. If not, return to step (2). Otherwise, terminate and output all detected behaviors.

[0013] Furthermore, in step (1), the target malware is disassembled and its control flow graph is constructed to generate a directed graph G, including:

[0014] (1.1) Use a disassembly tool to analyze the target malware and obtain several program control flow graphs and a program call graph;

[0015] (1.2) The control flow graphs within each program and the program call graph are merged to obtain the inter-program control flow graph of the target malware as a directed graph G.

[0016] Furthermore, in step (2), a number of fixed value-reference prediction relationships are obtained according to the directed graph G analysis, and a path pattern p is generated, including:

[0017] (2.1) Setting the working mode of the path pattern generator P and determining its default working mode;

[0018] (2.2) The different working modes of the path pattern generator P are switched according to the preset switching strategy, and the corresponding path pattern p is generated.

[0019] Furthermore, in the step (2.2), the working modes of the path pattern generator P include two modes, an exploration mode and a guidance mode;

[0020] The exploration mode is: first, randomly select a certain execution path in the past, and traverse each branch statement s in the execution path in turn. If there is an unexecuted statement in the successor statement of s, randomly select a statement succ from it to generate a new path pattern p1=p0+<s,succ> If there is no unexecuted statement in the subsequent statement of s, then traverse the execution path p in sequence o Other branch statements in ;

[0021] The guiding mode is: first, randomly select a certain execution path in the past, traverse each branch statement s in it, and calculate each successor statement succ of s on the directed graph G. i The number of fixed value-reference relationships that can be covered is num i , if s has a total of n successor statements, then there are The probability of selecting the successor sentence succ i And generate a new path pattern p1=p0+ <s,succ i >.

[0022] Further, in the step (2.2), the preset switching strategy includes two switching strategies: a default switching strategy and an inert switching strategy;

[0023] The default switching strategy is to switch when the predicted fixed value-reference relationship reaches a set threshold, switch to the guidance mode when it is higher than the threshold, and switch to the exploration mode otherwise;

[0024] The lazy switching strategy is to switch to the guided mode when the exploration mode cannot cover the new node in the graph G.

[0025] Furthermore, in step (3), the target malware is forcibly executed according to the generated path pattern p, and the behavior of the target malware during the execution is recorded, including:

[0026] (3.1) Pre-initialize various variables in the program so that they will not cause the program to crash even if they are not initialized;

[0027] (3.2) Use PinTool to perform runtime instrumentation on the target malware to achieve forced execution, and characterize the target malware behavior by tracing the system calls or Windows library functions called by the target malware during execution.

[0028] Furthermore, in step (4), the memory access operation executed this time is analyzed and the directed graph G in step (1) is updated, and the fixed value-reference prediction relationship in step (2) is predicted and corrected according to the updated directed graph G, including:

[0029] (4.1) Record the read and write operations of each executed instruction at each execution, and record them in the corresponding node of graph G;

[0030] (4.2) Traverse each instruction inst on G and pass all read operations on its corresponding node to its reachable nodes;

[0031] (4.3) Traverse each instruction inst on G again and calculate the triple<inst0,inst1,mem_addr> , and predict the fixed value-reference relationship;

[0032] (4.4) Traversing historical predictions<inst0,inst1,mem_addr> After that, it searches for a prediction that satisfies the fact that inst0 and inst1 appear in sequence in this execution but do not have a constant-reference relationship, and reduces the confidence of the prediction on the memory address mem_addr.

[0033] In a second aspect, the present invention provides a malware hiding behavior detection system, comprising:

[0034] The disassembly module is used to disassemble the target malware and construct a control flow graph to generate a directed graph G;

[0035] A path pattern generator is used to obtain a number of fixed value-reference prediction relationships according to the directed graph G and generate a path pattern p;

[0036] A mandatory execution engine F, used for mandatory execution of the target malware according to the generated path pattern p, and recording the behavior of the target malware during the execution;

[0037] An update module is used to analyze the memory access operation executed this time and update the directed graph G, and predict and correct the fixed value-reference relationship according to the updated directed graph G;

[0038] The output module is used to determine whether the current constant-reference relationship reaches the preset resource bottleneck. If not, it returns to the path pattern generator, otherwise it outputs all detected behaviors.

[0039] In a third aspect, the present invention provides a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform any method.

[0040] In a fourth aspect, the present invention provides a computing device, comprising: one or more processors and a memory, wherein the memory stores one or more programs and is configured to be executed by the one or more processors, and the one or more programs include instructions for executing any method.

[0041] The present invention adopts the above technical solution, which has the following advantages:

[0042] 1. The present invention implements a multi-platform multiplexed malware hidden behavior detection method based on data flow sensitive forced execution. The present invention can lightweight analyze malware on multiple platforms and expose its hidden behavior, and solves the problems of incomplete behavior recording and invalid execution in existing forced execution analysis work.

[0043] 2. The present invention adopts a path pattern generator P to generate a path pattern. By reasonably designing the working mode and switching mode of the path pattern generator, the path pattern generated by it can cover the code area where the target malware is not executed as much as possible, and cover some specified constant-reference relationships as much as possible, so that the behavior analysis of the target malware is more accurate.

[0044] 3. The present invention adopts the forced execution engine F to enforce the target malware, supports lightweight forced execution of malware on multiple platforms, and pre-initializes various variables in the program so that they will not cause the program to crash even if they are not initialized.

[0045] Therefore, the present invention can be widely applied to the field of malware analysis research. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Throughout the accompanying drawings, the same reference numerals are used to represent the same components. In the accompanying drawings:

[0047] Figure 1 A framework diagram of a malware hidden behavior detection method based on data flow sensitive enforcement, shown as an example embodiment.

[0048] Figure 2 A flow chart of a method for detecting hidden malware behaviors based on data flow sensitive enforcement is shown as an example embodiment.

[0049] Figure 3 FIG. 4 is a flow chart of a path pattern generator P exploring a pattern in one embodiment.

[0050] Figure 4 FIG. 1 is a flow chart of a path pattern generator P guiding pattern in one embodiment.

[0051] Figure 5 FIG. 1 is a flowchart for predicting a value-reference relationship on G in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0053] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0054] In some embodiments of the present invention, a method for detecting hidden behaviors of malware based on data flow sensitive forced execution is involved, which includes: disassembling the malware to be analyzed and constructing a control flow graph to generate a directed graph with basic blocks as units; according to a number of constant value-reference predictions obtained by analysis, a data flow sensitive path pattern generator switches modes under different strategies and generates a path pattern; then the forced execution engine forces the target malware according to the generated path pattern and records the behavior of the malware during the execution; analyzes the memory access information of the execution, predicts and corrects the constant value-reference relationship on the directed graph, and stores the data flow information of this execution in the directed graph; repeatedly generates and executes the path pattern until a preset resource bottleneck is reached, and finally outputs all behaviors of the malware. Compared with the existing malware detection method based on forced execution, the present invention realizes a detection method for hidden behaviors of malware based on data flow sensitive forced execution technology for multi-platform reuse, and solves the problems of incomplete behavior recording and invalid execution in the existing forced execution analysis work.

[0055] Correspondingly, in some other embodiments of the present invention, a malware hidden behavior detection system, device and storage medium based on data flow sensitive enforcement are provided.

[0056] Example 1

[0057] like Figure 1 and Figure 2 As shown, the present invention provides a malware hidden behavior detection method based on data flow sensitive enforcement, which includes the following steps:

[0058] (1) Disassemble the target malware and construct its control flow graph to generate a directed graph G;

[0059] (2) According to the directed graph G, several fixed value-reference prediction relationships are obtained and a path pattern p is generated;

[0060] (3) forcibly executing the target malware according to the generated path pattern p, and recording the behavior of the target malware during the execution;

[0061] (4) analyzing the memory access operation executed this time and updating the directed graph G in step (1), and predicting and correcting the fixed value-reference prediction relationship in step (2) based on the updated directed graph G;

[0062] (5) Determine whether the preset resource bottleneck has been reached. If not, return to step (2). Otherwise, terminate and output all detected behaviors.

[0063] Furthermore, the above step (1) includes the following steps:

[0064] (1.1) Use disassembly tools to analyze the target malware and obtain several control flow graphs (CFGs) and a call graph (CG).

[0065] (1.2) The control flow graph (CFG) within each program and the program call graph (CG) are merged to obtain the inter-program control flow graph of the target malware, i.e., the directed graph G.

[0066] Furthermore, in the above step (2), the path pattern p is generated by the path pattern generator P, which specifically includes the following steps:

[0067] (2.1) Setting the working mode of the path pattern generator P and determining its default working mode;

[0068] (2.2) The different working modes of the path pattern generator P are switched according to the preset switching strategy, and the corresponding path pattern p is generated.

[0069] In this embodiment, the path pattern p specifies the branches that need to be enforced and the results of their enforcement, which can be composed of several binary groups:<inst_addr,target_addr> It means that the jump target of the branch instruction at inst_addr is forced to be set to target_addr.

[0070] Furthermore, in the above step (2.1), this embodiment sets the path pattern generator P to two different working modes: exploration mode and guidance mode, wherein the exploration mode covers as much as possible the code area of ​​the target malware that has not been executed, while the guidance mode covers as much as possible some specified constant-reference relationships.

[0071] like Figure 3 When using the exploration mode to generate a path pattern, first, randomly select a certain execution path in the past (recorded as path pattern p0), and traverse each branch statement s in the execution path in turn. If there is an unexecuted statement in the successor statement of s, randomly select a statement succ from it to generate a new path pattern p1=p0+<s,succ> , if there is no unexecuted statement in the successor statement of s, then traverse the other branch statements in the execution path p0 in sequence.

[0072] like Figure 4 As shown in the figure, it is a flowchart of the guided mode. When using the guided mode to generate the path mode, first, a certain execution path in the past is randomly selected (recorded as path mode p0), each branch statement s is traversed, and each successor statement succ of s is calculated on the directed graph G. i The number of fixed value-reference relationships that can be covered is num i , if s has a total of n successor statements, then there are The probability of selecting the successor sentence succ i And generate a new path pattern p1=p0+ <s,succ i >.

[0073] Furthermore, in the above step (2.2), the preset switching strategy includes two switching strategies: the default switching strategy and the lazy switching strategy. The default switching strategy is to switch when the predicted fixed value-reference relationship reaches a set threshold, and switch to the guidance mode when it is higher than the threshold, otherwise switch to the exploration mode; the lazy switching strategy is to switch to the guidance mode when the exploration mode cannot cover the new node in the graph G.

[0074] Furthermore, in the above step (3), the enforcement engine F supports lightweight enforcement of malware on multiple platforms. Specifically, the following steps are included:

[0075] (3.1) Pre-initialize various variables in the program so that they will not cause the program to crash even if they are not initialized;

[0076] (3.2) Use PinTool to perform runtime instrumentation on the target malware to achieve forced execution, and characterize the target malware behavior by tracing the system calls (Unix platform) or Windows library functions (Windows platform) called by the target malware during execution.

[0077] In this embodiment, in order to record these function call information, the mandatory execution engine F sets a hook function for the system call and Windows library function to perform tracking.

[0078] Furthermore, in the above step (4), if Figure 5 As shown, it is a flowchart for predicting the fixed value-reference relationship on the graph G, which includes the following steps:

[0079] (4.1) Record the read operation (reference) and write operation (fixed value) of each executed instruction at each execution, and record them in the corresponding node of graph G;

[0080] (4.2) Traverse each instruction inst on G and pass all read operations on its corresponding node to its reachable nodes, that is, pass the read operation of each node to all its successor nodes;

[0081] (4.3) Traverse each instruction inst on G again and calculate the triple<inst0,inst1,mem_addr> , and predict the fixed value-reference relationship;

[0082] Specifically, traverse each node, if there are read and write operations on the same address mem_addr at the same time, a set of fixed value-reference relationships is predicted accordingly<inst0,inst1,mem_addr> , indicating that instruction inst0 is writing to the memory address mem_addr, and then instruction inst1 reads the value in the memory address mem_addr;

[0083] (4.4) Traversing historical predictions<inst0,inst1,mem_addr> After that, it searches for a prediction that satisfies the fact that inst0 and inst1 appear in sequence in this execution but do not have a constant-reference relationship, and reduces the confidence of the prediction on the memory address mem_addr.

[0084] When recording the read and write operations during this execution, the constant value-reference relationship during this execution can be collected. If the instructions inst0 and inst1 of a pair of predicted constant value-reference relationships are executed sequentially, but the constant value-reference relationship is not collected, then it is considered that the constant value reference relationship on the memory address mem_addr is likely to be wrong, and the confidence of the prediction on mem_addr is reduced (which will affect the calculation of the number of constant value-reference relationships that may be covered in the guidance mode in step 2).

[0085] Furthermore, in the above step (5), the preset resource bottleneck can be set according to actual needs, mainly including analysis time limit, memory limit, etc.

[0086] Each module of the above detection method can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor of a computer device in the form of hardware, or can be stored in a memory of a computer device in the form of software.

[0087] Example 2

[0088] The above-mentioned embodiment 1 provides a malware hidden behavior detection method based on data flow sensitive enforcement, and correspondingly, this embodiment provides a malware hidden behavior detection system based on data flow sensitive enforcement. The system provided in this embodiment can implement the malware hidden behavior detection method based on data flow sensitive enforcement of embodiment 1, and the system can be implemented by software, hardware, or a combination of software and hardware. For example, the system may include integrated or separate functional modules or functional units to execute the corresponding steps in each method of embodiment 1. Since the system of this embodiment is basically similar to the method embodiment, the process described in this embodiment is relatively simple, and the relevant parts can refer to the partial description of embodiment 1. The embodiment of the system provided in this embodiment is only illustrative.

[0089] The malware hidden behavior detection system based on data flow sensitive enforcement provided in this embodiment includes:

[0090] The disassembly module is used to disassemble the target malware and construct a control flow graph to generate a directed graph G;

[0091] A path pattern generator is used to obtain a number of fixed value-reference prediction relationships according to the directed graph G and generate a path pattern p;

[0092] A mandatory execution engine F, used for mandatory execution of the target malware according to the generated path pattern p, and recording the behavior of the target malware during the execution;

[0093] An update module is used to analyze the memory access operation executed this time and update the directed graph G, and predict and correct the fixed value-reference relationship according to the updated directed graph G;

[0094] The output module is used to determine whether the current constant-reference relationship reaches the preset resource bottleneck. If not, it returns to the path pattern generator, otherwise it outputs all detected behaviors.

[0095] Example 3

[0096] This embodiment provides a processing device corresponding to the malware hidden behavior detection method based on data flow sensitive enforcement provided in this embodiment 1. The processing device can be a processing device for a client, such as a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the method of embodiment 1.

[0097] The processing device includes a processor, a memory, a communication interface and a bus, and the processor, the memory and the communication interface are connected through the bus to complete mutual communication. The memory stores a computer program that can be run on the processor, and the processor executes the malware hidden behavior detection method based on data flow sensitive enforcement provided in this embodiment 1 when running the computer program.

[0098] Preferably, the memory may be a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.

[0099] Preferably, the processor may be a central processing unit (CPU), a digital signal processor (DSP) or other general-purpose processors of various types, which are not limited here.

[0100] Example 4

[0101] The malware hidden behavior detection method based on data flow sensitive enforcement of this embodiment 1 can be specifically implemented as a computer program product, which may include a computer-readable storage medium carrying computer-readable program instructions for executing the malware hidden behavior detection method based on data flow sensitive enforcement described in this embodiment 1.

[0102] Computer readable storage media can be tangible devices that hold and store instructions used by instruction execution devices. Computer readable storage media can be, for example, but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any combination thereof.

[0103] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0104] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0105] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A malware hidden behavior detection method, It is characterized in that The following steps are involved: (1) Disassemble the target malware and construct its control flow graph to generate a directed graph G; (2) According to the directed graph G, several fixed value-reference prediction relationships are obtained and a path pattern p is generated; (3) forcibly executing the target malware according to the generated path pattern p, and recording the behavior of the target malware during the execution; (4) analyzing the memory access operation executed this time and updating the directed graph G in step (1), and predicting and correcting the fixed value-reference prediction relationship in step (2) based on the updated directed graph G; (5) Determine whether the preset resource bottleneck has been reached. If not, return to step (2). Otherwise, terminate and output all detected behaviors.

2. A method for detecting hidden malware behavior according to claim 1, It is characterized in that In the step (1), the target malware is disassembled and its control flow graph is constructed to generate a directed graph G, including: (1.1) Use a disassembly tool to analyze the target malware and obtain several program control flow graphs and a program call graph; (1.2) The control flow graphs within each program and the program call graph are merged to obtain the inter-program control flow graph of the target malware as a directed graph G.

3. A method for detecting hidden malware behavior according to claim 1, It is characterized in that In the step (2), a plurality of fixed value-reference prediction relationships are obtained according to the directed graph G analysis, and a path pattern p is generated, including: (2.1) Setting the working mode of the path pattern generator P and determining its default working mode; (2.2) The different working modes of the path pattern generator P are switched according to the preset switching strategy, and the corresponding path pattern p is generated.

4. A method for detecting malware hiding behavior as claimed in claim 3, It is characterized in that In the step (2.2), the working modes of the path pattern generator P include two modes: exploration mode and guidance mode; The exploration mode is as follows: first, randomly select a certain execution path in the past, and traverse each branch statement s in the execution path in turn. If there is an unexecuted statement in the successor statement of s, randomly select a statement succ from it to generate a new path pattern p 1 =p 0 +<s,succ> If there is no unexecuted statement in the subsequent statement of s, then traverse the execution path p in sequence 0 Other branch statements in ; The guiding mode is: first, randomly select a certain execution path in the past, traverse each branch statement s in it, and calculate each successor statement succ of s on the directed graph G. i The number of fixed value-reference relationships that can be covered is num i , if s has a total of n successor statements, then there are The probability of selecting the successor sentence succ i And generate a new path pattern p 1 =p 0 + <s,succ i >.

5. A method for detecting hidden malware behavior according to claim 4, It is characterized in that In the step (2.2), the preset switching strategy includes two switching strategies: a default switching strategy and an inert switching strategy; The default switching strategy is to switch when the predicted fixed value-reference relationship reaches a set threshold, switch to the guidance mode when it is higher than the threshold, and switch to the exploration mode otherwise; The lazy switching strategy is to switch to the guided mode when the exploration mode cannot cover the new node in the graph G.

6. A method for detecting hidden malware behavior according to claim 1, It is characterized in that In step (3), the target malware is forcibly executed according to the generated path pattern p, and the behavior of the target malware during the execution is recorded, including: (3.1) Pre-initialize various variables in the program so that they will not cause the program to crash even if they are not initialized; (3.2) Use PinTool to perform runtime instrumentation on the target malware to achieve forced execution, and characterize the target malware behavior by tracing the system calls or Windows library functions called by the target malware during execution.

7. A method for detecting hidden malware behavior according to claim 1, It is characterized in that In the step (4), the memory access operation executed this time is analyzed and the directed graph G in the step (1) is updated, and the fixed value-reference prediction relationship in the step (2) is predicted and corrected according to the updated directed graph G, including: (4.1) Record the read and write operations of each executed instruction at each execution, and record them in the corresponding node of graph G; (4.2) Traverse each instruction inst on G and pass all read operations on its corresponding node to its reachable nodes; (4.3) Traverse each instruction inst on G again and calculate the triple <inst 0 , inst 1 , mem_addr>, and predict the constant value-reference relationship; (4.4) Traverse historical predictions < inst 0 , inst 1 , mem_addr>, if it finds a satisfying inst 0 With inst 1 If predictions that appear sequentially in this execution but do not have a constant-reference relationship occur, the confidence of the prediction on the memory address mem_addr is reduced.

8. A malware hidden behavior detection system, It is characterized in that include: The disassembly module is used to disassemble the target malware and construct a control flow graph to generate a directed graph G; A path pattern generator is used to obtain a number of fixed value-reference prediction relationships according to the directed graph G and generate a path pattern p; A mandatory execution engine F, used for mandatory execution of the target malware according to the generated path pattern p, and recording the behavior of the target malware during the execution; An update module is used to analyze the memory access operation executed this time and update the directed graph G, and predict and correct the fixed value-reference relationship according to the updated directed graph G; The output module is used to determine whether the current constant-reference relationship reaches the preset resource bottleneck. If not, it returns to the path pattern generator, otherwise it outputs all detected behaviors.

9. A computer-readable storage medium storing one or more programs, It is characterized in that The one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform any one of the methods of claims 1 to 7.

10. A computing device, It is characterized in that include: One or more processors and a memory, wherein the memory stores one or more programs and is configured to be executed by the one or more processors, wherein the one or more programs include instructions for executing any one of the methods described in claims 1 to 7.