Configuration information extraction method and related equipment
By performing static extraction and verification on the target software, the problem of not being able to fully extract high-value information in existing technologies has been solved, and comprehensive information acquisition of the target software has been achieved.
Patent Information
- Application Number
- CN202310583197.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2024-11-22
AI Technical Summary
Existing technologies cannot extract all high-value information from target software, especially when facing malware that is anti-debugging, anti-virtual machine, or has insufficient execution time.
By statically extracting the target software, we obtain the identification rule code. Based on the identification rule code, we extract the configuration features and verify the configuration features to obtain high-value information.
It achieves complete extraction of all necessary configuration information from the target software, improving the accuracy and efficiency of feature extraction.
Smart Images

Figure CN119004458A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer and communication technology, and in particular to a configuration information extraction method and related equipment. Background Art
[0002] In recent years, cybersecurity threats have continued to increase, and malware-as-a-service (MaaS) has become a common cybersecurity threat. MaaS allows anyone (even without technical knowledge) to purchase or rent target software through the Internet, which makes it easy for hackers and criminal gangs to use target software to attack. The target software generated by MaaS services generally has similar structures and processes. In order to quickly identify and detect target software, we can use sandbox analysis to analyze the target software, but some target software cannot extract all high-value information from the target software due to anti-debugging, anti-virtual machine or insufficient execution time. Summary of the invention
[0003] The embodiments of the present application provide a configuration information extraction method and related devices, thereby at least to a certain extent solving the problem that the prior art cannot extract all the high-value information in the target software.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a configuration information extraction method is provided, the configuration information extraction method comprising: statically extracting the target software to obtain an identification rule code; extracting configuration features based on the identification rule code; and verifying the configuration features to obtain configuration information.
[0006] In one embodiment of the present application, extracting configuration features according to the identification rule code specifically includes: determining malicious family information according to the identification rule code; and extracting configuration features according to the malicious family information.
[0007] In one embodiment of the present application, extracting configuration features according to the malicious family information specifically includes: calling a corresponding extraction module based on the malicious family information; inputting the identification rule code into the corresponding extraction module to obtain configuration features.
[0008] In one embodiment of the present application, the configuration features include plaintext features and decryption features, and the extracting of configuration features based on the malicious family information specifically includes: obtaining class features and decryption methods based on the malicious family information, the class features including plaintext features and encryption features; performing reflection processing on the encryption features to locate the corresponding decryption method; and decrypting the encryption features according to the decryption method to obtain decryption features.
[0009] In one embodiment of the present application, the configuration features include plaintext features and decryption features, and extracting the configuration features according to the identification rule code specifically includes: obtaining the plaintext features and the decryption method according to the identification rule code; and obtaining the decryption features according to the decryption method.
[0010] In one embodiment of the present application, obtaining the decryption feature according to the decryption method specifically includes: parsing the decryption method to obtain the offset value, feature name and key corresponding to the decryption method; locating the encryption feature according to the offset value and feature name; decrypting the encryption feature according to the key to obtain the decryption feature.
[0011] In one embodiment of the present application, the plaintext features and decryption method are obtained according to the identification rule code, specifically including: disassembling the target software according to the identification rule code to obtain static positioning features; and locating according to the static features to obtain the decryption method.
[0012] In one embodiment of the present application, the decryption feature is obtained according to the decryption method, which specifically includes: performing cross-application analysis on the decryption method to obtain a target code fragment, wherein the target code fragment is a code fragment that calls the decryption method; inputting the target code fragment into a binary simulator to obtain a return result; and performing alignment and deduplication processing on the return result to obtain the decryption feature.
[0013] In one embodiment of the present application, verifying the configuration feature to obtain the configuration information specifically includes: verifying the configuration feature to obtain a verification result; and determining the configuration information according to the verification result.
[0014] According to one aspect of an embodiment of the present application, a configuration information extraction device is provided, which includes: a code extraction module, used to statically extract the target software to obtain an identification rule code; a feature extraction module, used to extract configuration features based on the identification rule code; an information verification module, used to verify the configuration features to obtain configuration information.
[0015] In one embodiment of the present application, the feature extraction module specifically includes: an information determination submodule, used to determine malicious family information according to the identification rule code; and a feature extraction submodule, used to extract configuration features according to the malicious family information.
[0016] In one embodiment of the present application, the feature extraction submodule specifically includes: a calling unit, used for the malicious family information to call a corresponding extraction module; an input unit, used to input the identification rule code into the corresponding extraction module to obtain a configuration feature.
[0017] In one embodiment of the present application, the configuration features include plaintext features and decryption features, and the feature extraction submodule specifically includes: a class feature unit, used to obtain class features and decryption methods based on malicious family information, the class features including plaintext features and encrypted features; a reflection unit, used to perform reflection processing on the encrypted features and locate the corresponding decryption method; a decryption unit, used to decrypt the encrypted features according to the decryption method to obtain decrypted features.
[0018] In one embodiment of the present application, the configuration features include plaintext features and decryption features, and the feature extraction module specifically includes: a feature method submodule, used to obtain the plaintext features and decryption methods according to the identification rule code; and a feature decryption submodule, used to obtain the decryption features according to the decryption method.
[0019] In one embodiment of the present application, the feature decryption submodule specifically includes: a method parsing unit, used to parse the decryption method to obtain the offset value, feature name and key corresponding to the decryption method; a feature positioning unit, used to locate the encryption feature according to the offset value and feature name; a key decryption unit, used to decrypt the encryption feature according to the key to obtain the decryption feature.
[0020] In one embodiment of the present application, the feature method submodule specifically includes: a disassembly unit, used to disassemble the target software according to the identification rule code to obtain a static positioning feature; and a method positioning unit, used to locate according to the static feature to obtain a decryption method.
[0021] In one embodiment of the present application, the feature decryption submodule specifically includes: a cross-application unit, used to perform cross-application analysis on the decryption method to obtain a target code fragment, wherein the target code fragment is a code fragment that calls the decryption method; a binary simulation unit, used to input the target code fragment into a binary simulator to obtain a return result; and an alignment and deduplication unit, used to perform alignment and deduplication processing on the return result to obtain the decryption feature.
[0022] In one embodiment of the present application, the information verification module specifically includes: a verification submodule, used to verify the configuration features to obtain a verification result; and a determination submodule, used to determine the configuration information according to the verification result.
[0023] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the configuration information extraction method as described in the above embodiment is implemented.
[0024] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the configuration information extraction method as described in the above embodiments.
[0025] In the technical solutions provided in some embodiments of the present application, the target software is statically extracted to obtain the identification rule code, and then the required configuration features are extracted from the target software according to the identification rule code. Finally, the required configuration features are verified, so that all the required configuration information can be obtained, which solves the problem that the prior art cannot extract all the high-value information in the target software.
[0026] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0028] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;
[0029] Figure 2 A flow chart of a configuration information extraction method provided in an embodiment of the present application is shown.
[0030] Figure 3 Shown according to Figure 2 A specific implementation flow chart of step S200 in the configuration information extraction method shown in the corresponding embodiment.
[0031] Figure 4 Shown according to Figure 2A specific implementation flow chart of step S200 in the configuration information extraction method shown in the corresponding embodiment.
[0032] Figure 5 A schematic diagram of the structure of a configuration information extraction device provided in an embodiment of the present application.
[0033] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0035] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0036] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0037] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0038] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied is shown.
[0039] like Figure 1 As shown, the system architecture may include terminal devices (such as Figure 1The embodiment of the present invention is a schematic diagram of a mobile phone 101, a tablet computer 102, a portable computer 103, a desktop computer, etc., a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal device and the server 105. The network 104 may include various connection types, such as a wired communication link, a wireless communication link, etc.
[0040] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.
[0041] The user can use the terminal device to interact with the server 105 through the network 104 to receive or send messages, etc. The server 105 can be a server that provides various services. For example, the user uses the terminal device 103 (or the terminal device 101 or 102) to upload the target software to the server 105, and the server 105 can statically extract the target software to obtain the identification rule code; extract the configuration feature according to the identification rule code; and verify the configuration feature to obtain the configuration information.
[0042] It should be noted that the configuration information extraction method provided in the embodiment of the present application is generally executed by the server 105, and accordingly, the configuration information extraction device is generally arranged in the server 105. However, in other embodiments of the present application, the terminal device may also have similar functions as the server, so as to execute the configuration information extraction scheme provided in the embodiment of the present application.
[0043] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0044] Figure 2 A flowchart of a configuration information extraction method according to an embodiment of the present application is shown. The configuration information extraction method can be executed by a server, which can be Figure 1 Refer to the server shown in . Figure 2 As shown, the configuration information extraction method at least includes:
[0045] Step S100, statically extract the target software to obtain the identification rule code.
[0046] Step S200: extracting configuration features according to the identification rule code.
[0047] Step S300, verifying the configuration features to obtain configuration information.
[0048] In an embodiment of the present application, the target software is first statically extracted to obtain the identification rule code related to feature extraction therein, and then the configuration features are extracted based on the identification rule code, and finally the configuration features are verified to obtain the configuration information. By statically extracting the target software to obtain the identification rule code, and then extracting the required configuration features from the target software based on the identification rule code, and finally the required configuration features are verified, all the required configuration information can be obtained, which solves the problem that the prior art cannot extract all the high-value information in the target software.
[0049] In step S100, the identification rule code is a code related to feature extraction in the target software. According to the identification rule code, a rule for extracting configuration features can be established.
[0050] The specific method of static extraction is to extract the code that meets the extraction rule from the target software code according to the predetermined extraction rule as the identification rule code.
[0051] In other embodiments, after the target software is converted into the target software code, the target software code is input into the code extraction model, and the code extraction model outputs the corresponding recognition rule code.
[0052] Among them, the training method of the code extraction model specifically includes:
[0053] A target software code sample set is obtained, wherein the target software code sample set includes multiple target software code samples, and each target software code sample is marked with a corresponding identification rule code label; the target software code sample is parsed to obtain a corresponding identification rule code result; according to the sample identification rule code result and the identification rule code label, the parameters of the code extraction model are adjusted until the training end condition is met, so as to obtain a trained code extraction model.
[0054] Specifically, in some embodiments, the training end condition may be that if, in the target software code sample set, only no more than a predetermined proportion of the target software code samples are input into the code extraction model, the sample recognition rule code results obtained are consistent with the recognition rule code label, the code extraction model is adjusted in parameters; if, in the target software code sample set, more than a predetermined proportion of the target software code samples are input into the code extraction model, the sample recognition rule code results obtained are consistent with the recognition rule code label, the training ends and a trained code extraction model is obtained.
[0055] In some other embodiments, the training end condition may be that the loss function converges or is less than a predetermined loss threshold. Specifically, the loss function is determined based on the sample recognition rule code result and the recognition rule code label, and the parameters of the code extraction model are adjusted according to the loss function until the training end condition is met, thereby obtaining a trained code extraction model.
[0056] In step S200, according to the recognition rule code, a rule for extracting configuration features can be established, and according to the corresponding rule, the configuration features of the payload of the target software are extracted. The configuration features include command control features, site features, and proxy features.
[0057] Specifically, in some embodiments, the specific implementation of step S200 can be found in Figure 3 . Figure 3 is based on Figure 2 The detailed description of step S200 in the configuration information extraction method shown in the corresponding embodiment, in the configuration information extraction method, step S200 may include the following steps:
[0058] Step S210, determining malicious family information according to the identification rule code.
[0059] Step S220: extracting configuration features according to the malicious family information.
[0060] In the embodiment of the present application, the malicious family information of the target software is first determined according to the identification rule code. If it corresponds to any malicious family information, it is proved that the target software is malicious software, and the configuration features are extracted according to the corresponding family information. If there is no malicious family information that can correspond to it, it cannot be determined that the target software is malicious software, and there is no need to extract the configuration features to form the configuration information.
[0061] In step S210, the identification rule code is identified by matching and comparing. If the identification rule code can correspond to the characteristics of any malicious family, it belongs to the malicious family, and its malicious family information is the malicious family.
[0062] If the identification rule code does not correspond to any malicious family, then the malicious family information is a non-malicious family. At this time, the target software corresponding to the identification rule code can be skipped, and the target software cannot be determined as malware.
[0063] In step S220, after obtaining the malicious family information, corresponding configuration features such as version information may be extracted according to the malicious family information.
[0064] Specifically, in some embodiments, the specific implementation of step S220 can refer to the following embodiments. Figure 3 The detailed description of step S220 in the configuration information extraction method shown in the corresponding embodiment, in the configuration information extraction method, step S220 may include the following steps:
[0065] The malicious family information calls the corresponding extraction module.
[0066] The identification rule code is input into the corresponding extraction module to obtain the configuration feature.
[0067] In an embodiment of the present application, features of malware are extracted through different extraction modules. Specifically, different extraction modules correspond to different malicious families, and one extraction module corresponds to extracting malware under one malicious family. Therefore, according to the malicious family information determined in step S210, the corresponding extraction module can be called, and then the identification rule code obtained in step S210 is input into the extraction module. The extraction module establishes extraction rules according to the identification rule code and extracts configuration features in the target software. By extracting features of malware of different malicious families through different extraction modules, the extraction of malware can be made more targeted, and the accuracy of feature extraction can be improved.
[0068] Specifically, in other embodiments, the specific implementation of step S220 can refer to the following embodiments. Figure 3 The detailed description of step S220 in the configuration information extraction method shown in the corresponding embodiment, in the configuration information extraction method, the configuration feature includes a plaintext feature and a decrypted feature, and step S220 may include the following steps:
[0069] According to the malicious family information, class features and decryption methods are obtained, wherein the class features include plaintext features and encrypted features.
[0070] The encryption feature is reflected and the corresponding decryption method is located.
[0071] According to the decryption method, the encrypted feature is decrypted to obtain the decrypted feature.
[0072] In the embodiment of the present application, for NET-type malware, the malware's own decryption configuration process and / or reference configuration process can be analyzed based on its malicious family information, and the corresponding decryption method and class features can be obtained. The class features are the features of the class where the decryption configuration and / or reference configuration are located, which include plaintext features and encrypted features. For plaintext features, they can be directly obtained, and for encrypted features, their corresponding decryption methods can be located by reflection enumeration, that is, by reflection enumeration matching, it is determined whether there are any decryption methods that meet the decryption conditions. If there are decryption methods that meet the decryption conditions, the above-mentioned encrypted features are decrypted according to the decryption method to obtain the decryption features, which means that all configuration features in this class are obtained, and they are all displayed in plaintext.
[0073] Specifically, in some other embodiments, the specific implementation of step S200 can be found in Figure 4 . Figure 4 is based on Figure 2 The detailed description of step S200 in the configuration information extraction method shown in the corresponding embodiment, in the configuration information extraction method, the configuration feature includes a plaintext feature and a decrypted feature, and step S200 may include the following steps:
[0074] Step S240, obtaining the plaintext features and decryption method according to the identification rule code.
[0075] Step S250: obtaining the decryption feature according to the decryption method.
[0076] In an embodiment of the present application, a corresponding feature recognition and extraction rule is first generated according to the recognition rule code, and then based on the feature recognition and extraction rule, the corresponding configuration feature and decryption method are extracted from the malware. For the encrypted feature, it can be decrypted based on the decryption method to turn it into a decrypted feature expressed in plain text.
[0077] In step S240, the plaintext features and decryption methods are first located according to the recognition rule code.
[0078] Specifically, plain text information in the form of global constants can be directly obtained through string matching or keyword recognition.
[0079] For the plaintext features stored in the resource segment or resource file, different methods such as brute force enumeration or feature location can be used for comprehensive processing according to different implementation methods of the malware author. For example, in some embodiments, some malware will simply write configuration information into the resource segment or resource file. For this part of malware, it is only necessary to use brute force enumeration to perform XOR operation on its data and then verify it.
[0080] Specifically, in some embodiments, the specific implementation of step S250 can refer to the following embodiments. Figure 4 The detailed description of step S240 in the configuration information extraction method shown in the corresponding embodiment, in the configuration information extraction method, step S240 may include the following steps:
[0081] Disassembling the target software according to the identification rule code to obtain static positioning features;
[0082] Positioning is performed according to the static features to obtain a decryption method.
[0083] In this embodiment, for non-NET type malware, the malware can be disassembled using a disassembly tool (such as IDA, Radare2, Ghidra, etc.) to obtain static positioning features, which are then combined with the static features to locate the decryption method.
[0084] In step S250, the encrypted features are located and decrypted according to the decryption method to obtain the decrypted features expressed in plain text.
[0085] Specifically, in some embodiments, the specific implementation of step S250 can refer to the following embodiments. Figure 4 The detailed description of step S250 in the configuration information extraction method shown in the corresponding embodiment, in the configuration information extraction method, step S250 may include the following steps:
[0086] Performing cross-application analysis on the decryption method to obtain a target code segment, wherein the target code segment is a code segment that calls the decryption method;
[0087] Input the target code fragment into a binary simulator to obtain a return result;
[0088] The returned results are aligned and deduplicated to obtain the decryption features.
[0089] In this embodiment, for non-NET type malware, after locating the decryption method, cross-reference analysis is performed to obtain all target code fragments. The target code fragment is the code fragment that calls the decryption method. Then, the starting and ending addresses of the code fragment are passed to the binary simulator for processing in turn, and the returned data is aligned and deduplicated before being classified.
[0090] Specifically, in other embodiments, the specific implementation of step S250 can refer to the following embodiments. Figure 4The detailed description of step S250 in the configuration information extraction method shown in the corresponding embodiment, in the configuration information extraction method, step S250 may include the following steps:
[0091] The decryption method is parsed to obtain an offset value, a feature name, and a key corresponding to the decryption method.
[0092] The encrypted feature is located according to the offset value and the feature name.
[0093] The encrypted feature is decrypted according to the key to obtain the decrypted feature.
[0094] In this embodiment, for the encryption feature, the corresponding decryption method can be parsed first to obtain the offset value, feature name, key and other information related to the encryption feature, and then locate the location of the encryption feature based on the offset value, and extract the corresponding encryption feature based on the feature name matching, and then decrypt the encryption feature based on the key to obtain the corresponding decryption feature.
[0095] For malware configuration information stored encrypted in the form of global constants, it is generally necessary to locate the decryption key and the data to be decrypted through the decryption method code snippet. The positioning method can use Yara or regular matching to match the machine code offset value and calculate the corresponding data physical offset.
[0096] For configuration information stored in resource segments or resource files, some complex malware may use more complex encryption methods such as symmetric algorithms (such as AES, DES, RC4, etc.), asymmetric algorithms (such as RSA, ECC, etc.) or custom encryption algorithms to encrypt the configuration information and write it into the resource data.
[0097] At this time, it is also necessary to extract the encryption algorithm and key information. Specifically, the information extraction method can generally include the following steps: first, locate the decryption method function by analyzing the malware information, then identify the encryption algorithm and extract the code features according to the decryption method function; add the code features to the malicious configuration extraction strategy of the malicious configuration extractor, and the malicious configuration extractor analyzes and extracts the offset value and feature name of the hit feature from the code features, thereby knowing the encryption algorithm used by the target sample to be analyzed and extracting the decryption key, thereby achieving decryption of the encrypted features.
[0098] In step S300, various configuration features are checked to determine whether the format is incorrect and whether they are required configuration features, and corresponding screening, discarding, credibility setting and other processing are performed to obtain final configuration information.
[0099] Specifically, in some embodiments, the specific implementation of step S300 can refer to the following embodiments. Figure 2 The detailed description of step S300 in the configuration information extraction method shown in the corresponding embodiment, in the configuration information extraction method, step S300 may include the following steps:
[0100] The configuration feature is verified to obtain a verification result.
[0101] The configuration information is determined according to the verification result.
[0102] In this embodiment, the configuration features are first verified to obtain corresponding verification results, and the configuration features are screened according to the verification results to obtain final configuration information.
[0103] Specifically, configuration features include command control features, site features, and proxy features. The specific verification method is to use the results of dynamic sandbox execution in a sandbox environment for verification. The verified data content mainly includes command control lists, versions, and whether the configuration data format meets the characteristics of specific malicious families. If there is no sandbox dynamic network information, only the data format in the command control list is verified to be correct. If the data is not in the correct format, it can be discarded or its credibility can be reduced according to the configuration information.
[0104] The final configuration information includes the malware command control list, target site, reverse proxy, traffic encryption method, key information, etc. By extracting the above configuration information of the malware, the quality of the IOC produced can be further improved, and the noise links used by the samples can be removed; and the extracted traffic encryption information can be further applied to traffic decryption; combined with the sandbox analysis process, it can be further analyzed to know the malware released, downloaded, and implanted by each malicious family, which has certain value for threat situation analysis.
[0105] The following describes an apparatus embodiment of the present application, which can be used to execute the configuration information extraction method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned embodiment of the configuration information extraction method of the present application.
[0106] Figure 5 A block diagram of a configuration information extraction device according to an embodiment of the present application is shown.
[0107] Reference Figure 5 As shown, according to an embodiment of the present application, a configuration information extraction device 500 includes:
[0108] The code extraction module 510 is used to perform static extraction on the target software to obtain the recognition rule code;
[0109] A feature extraction module 520, for extracting configuration features according to the identification rule code;
[0110] The information verification module 530 is used to verify the configuration features to obtain configuration information.
[0111] In one embodiment of the present application, the feature extraction module specifically includes: an information determination submodule, used to determine malicious family information according to the identification rule code; and a feature extraction submodule, used to extract configuration features according to the malicious family information.
[0112] In one embodiment of the present application, the feature extraction submodule specifically includes: a calling unit, used for the malicious family information to call a corresponding extraction module; an input unit, used to input the identification rule code into the corresponding extraction module to obtain a configuration feature.
[0113] In one embodiment of the present application, the configuration features include plaintext features and decryption features, and the feature extraction submodule specifically includes: a class feature unit, used to obtain class features and decryption methods based on malicious family information, the class features including plaintext features and encrypted features; a reflection unit, used to perform reflection processing on the encrypted features and locate the corresponding decryption method; a decryption unit, used to decrypt the encrypted features according to the decryption method to obtain decrypted features.
[0114] In one embodiment of the present application, the configuration features include plaintext features and decryption features, and the feature extraction module specifically includes: a feature method submodule, used to obtain the plaintext features and decryption methods according to the identification rule code; and a feature decryption submodule, used to obtain the decryption features according to the decryption method.
[0115] In one embodiment of the present application, the feature decryption submodule specifically includes: a method parsing unit, used to parse the decryption method to obtain the offset value, feature name and key corresponding to the decryption method; a feature positioning unit, used to locate the encryption feature according to the offset value and feature name; a key decryption unit, used to decrypt the encryption feature according to the key to obtain the decryption feature.
[0116] In one embodiment of the present application, the feature method submodule specifically includes: a disassembly unit, used to disassemble the target software according to the identification rule code to obtain a static positioning feature; and a method positioning unit, used to locate according to the static feature to obtain a decryption method.
[0117] In one embodiment of the present application, the feature decryption submodule specifically includes: a cross-application unit, used to perform cross-application analysis on the decryption method to obtain a target code fragment, wherein the target code fragment is a code fragment that calls the decryption method; a binary simulation unit, used to input the target code fragment into a binary simulator to obtain a return result; and an alignment and deduplication unit, used to perform alignment and deduplication processing on the return result to obtain the decryption feature.
[0118] In one embodiment of the present application, the information verification module specifically includes: a verification submodule, used to verify the configuration features to obtain a verification result; and a determination submodule, used to determine the configuration information according to the verification result.
[0119] In an embodiment of the present application, the target software is first statically extracted to obtain the identification rule code related to feature extraction therein, and then the configuration features are extracted based on the identification rule code, and finally the configuration features are verified to obtain the configuration information. By statically extracting the target software to obtain the identification rule code, and then extracting the required configuration features from the target software based on the identification rule code, and finally the required configuration features are verified, all the required configuration information can be obtained, which solves the problem that the prior art cannot extract all the high-value information in the target software.
[0120] Figure 6 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0121] It should be noted that Figure 6 The computer system of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0122] like Figure 6 As shown, the computer system includes a central processing unit (CPU) 1801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1802 or the program loaded from the storage part 1808 to the random access memory (RAM) 1803, such as executing the method described in the above embodiment. In RAM 1803, various programs and data required for system operation are also stored. CPU 1801, ROM 1802 and RAM 1803 are connected to each other through bus 1804. Input / output (I / O) interface 1805 is also connected to bus 1804.
[0123] The following components are connected to the I / O interface 1805: an input section 1806 including a keyboard, a mouse, etc.; an output section 1807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the I / O interface 1805 as needed. A removable medium 1811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1810 as needed so that a computer program read therefrom is installed into the storage section 1808 as needed.
[0124] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1809, and / or installed from a removable medium 1811. When the computer program is executed by a central processing unit (CPU) 1801, various functions defined in the system of the present application are executed.
[0125] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0126] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0127] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0128] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0129] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0130] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0131] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0132] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A configuration information extraction method, characterized in that: The configuration information extraction method comprises: Perform static extraction on the target software to obtain the identification rule code; Extracting configuration features according to the identification rule code; The configuration feature is verified to obtain configuration information.
2. The configuration information extraction method according to claim 1, characterized in that: The extracting of configuration features according to the identification rule code specifically includes: Determining malicious family information according to the identification rule code; Configuration features are extracted based on the malicious family information.
3. The configuration information extraction method according to claim 2, characterized in that: According to the malicious family information, configuration features are extracted, including: The malicious family information calls the corresponding extraction module; The identification rule code is input into the corresponding extraction module to obtain the configuration feature.
4. The configuration information extraction method according to claim 2, characterized in that: The configuration features include plaintext features and decrypted features. The extracting of configuration features according to the malicious family information specifically includes: According to the malicious family information, class features and decryption methods are obtained, wherein the class features include plaintext features and encrypted features; Performing reflection processing on the encryption feature to locate the corresponding decryption method; According to the decryption method, the encrypted feature is decrypted to obtain the decrypted feature.
5. The configuration information extraction method according to claim 1, characterized in that: The configuration features include plain text features and decrypted features, and the extracting of configuration features according to the identification rule code specifically includes: According to the identification rule code, the plaintext feature and the decryption method are obtained; According to the decryption method, the decryption feature is obtained.
6. The configuration information extraction method according to claim 5, characterized in that: The obtaining of the decryption feature according to the decryption method specifically includes: Parsing the decryption method to obtain an offset value, a feature name, and a key corresponding to the decryption method; Locating the encrypted feature according to the offset value and the feature name; The encrypted feature is decrypted according to the key to obtain the decrypted feature.
7. The configuration information extraction method according to claim 5, characterized in that: The obtaining of the plaintext feature and the decryption method according to the identification rule code specifically includes: Disassembling the target software according to the identification rule code to obtain static positioning features; Positioning is performed according to the static features to obtain a decryption method.
8. A configuration information extraction device, characterized in that: The configuration information extraction device comprises: The code extraction module is used to perform static extraction on the target software to obtain the recognition rule code; A feature extraction module, used to extract configuration features according to the identification rule code; The information verification module is used to verify the configuration features to obtain configuration information.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the configuration information extraction method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: one or more processors; A storage device, used to store one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the configuration information extraction method as described in any one of claims 1 to 7.
