Static information identification method and device, equipment and storage medium
By acquiring and analyzing the static information and picture data sets of application files and generating identification features, the problems of low recognition accuracy and fake file disguise in the prior art are solved, and accurate identification and fake identification of application files are achieved.
Patent Information
- Application Number
- CN202310620092.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2024-11-29
AI Technical Summary
The prior art has low accuracy in identifying application files, and the fake file disguise causes the recognition features to be blurred and cannot truly reflect the characteristics of application files.
By obtaining the initial static information and picture data set of the application file, determining the target static information, and generating application file identification characteristics, using static information analysis strategies and decompilation analysis strategies for identification, combining text content and initial static information for summary. Write to the database for classification and extraction, and generate multi-category static information to improve identification accuracy.
It effectively improves the accuracy of identification of application files, can truly reflect file characteristics, and determines whether the file is fake through identification features, improving the ability to identify counterfeit files.
Smart Images

Figure CN119046936A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of security detection technology, and in particular to a static information recognition method, device, equipment and storage medium. Background Art
[0002] The static information of application files is usually obtained by compression, extraction, decompilation, etc., and the static information identified by the above methods is relatively fixed and single. In addition, some counterfeit application files are maliciously disguised by unscrupulous businesses during development, resulting in blurred static information identified, which cannot truly reflect the identification characteristics of the application files, resulting in low accuracy in the final identification of the application files.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a static information identification method, device, equipment and storage medium, aiming to solve the technical problem of low accuracy in identifying application files in the prior art.
[0005] To achieve the above object, the present invention provides a static information recognition method, which comprises the following steps:
[0006] Get the initial static information and image data set of the application file;
[0007] Determine target static information according to the initial static information and the image data set;
[0008] An application file identification feature is generated according to the target static information, and the application file identification feature is identified.
[0009] Optionally, determining the target static information according to the initial static information and the picture data set includes:
[0010] Identify the image data set using a target content identification strategy to obtain images containing text content and images without text content;
[0011] Filtering the pictures without text content;
[0012] Obtaining the text content of the picture containing text content;
[0013] The text content and the initial static information are aggregated to obtain target static information.
[0014] Optionally, generating an application file identification feature according to the target static information and identifying the application file identification feature includes:
[0015] Writing the target static information into a target database for storing application static information;
[0016] Extracting static information from the target database;
[0017] Classify the extracted static information to obtain multi-category static information;
[0018] generating application file identification features according to the multiple categories of static information;
[0019] The application file identification feature is identified.
[0020] Optionally, after identifying the application file identification feature, the method further includes:
[0021] Determine whether the application file is a preset application file according to the recognition result;
[0022] If so, marking the application file by a preset pseudo-label;
[0023] Categorize the marked application files.
[0024] Optionally, downloading the application file includes:
[0025] Get the download network address of the application file;
[0026] The application file is crawled according to the download network address.
[0027] Optionally, obtaining a download network address of the application file includes:
[0028] Obtain file download information from application markets, web pages, and third-party channels;
[0029] When there is download information of the application file in the file download information of the application market, there is download information of the application file in the file download information of the webpage, or there is download information of the application file in the file download information of the third-party channel, searching the file download information where the download information of the application file exists to obtain the download information of the application file;
[0030] The application file download information is identified to obtain a download network address of the application file.
[0031] Optionally, the static information identification strategy includes a static information resource analysis strategy and a static information decompilation analysis strategy;
[0032] Analyzing the application file according to the static information analysis strategy includes:
[0033] Performing resource analysis on the application file according to the static information resource analysis strategy;
[0034] Decompile and analyze the application file according to the static information decompile and analyze strategy.
[0035] Optionally, after analyzing the application file according to the static information analysis strategy, the method further includes:
[0036] Get the icon MD5 of the application file;
[0037] The icon MD5 is added to the analysis data of the application file to obtain the analysis result.
[0038] Optionally, determining the initial static information and image data set of the application file according to the analysis result includes:
[0039] Extract information from the analysis results to obtain initial static information of the application file;
[0040] Extract images from the analysis results to obtain icon images and resource information images;
[0041] Generate a picture data set according to the icon picture and the resource information picture.
[0042] In addition, to achieve the above-mentioned purpose, the present invention further proposes a static information recognition device, the static information recognition device comprising:
[0043] An acquisition module, used to obtain initial static information and image data sets of application files;
[0044] A determination module, configured to determine target static information according to the initial static information and the image data set;
[0045] The identification module is used to generate application file identification features according to the target static information and identify the application file identification features.
[0046] Optionally, the acquisition module is further used to download an application file; analyze the application file according to a static information analysis strategy; and determine initial static information and a picture data set of the application file according to the analysis result.
[0047] Optionally, the acquisition module is further used to acquire a download network address of the application file; and crawl the application file according to the download network address.
[0048] Optionally, the acquisition module is also used to obtain file download information from an application market, file download information from a web page, and file download information from a third-party channel; when there is download information of an application file in the file download information of the application market, or there is download information of an application file in the file download information of a web page, or there is download information of an application file in the file download information of a third-party channel, the file download information for which the download information of the application file exists is searched to obtain the application file download information; the application file download information is identified to obtain a download network address of the application file.
[0049] Optionally, the acquisition module is further used to extract information from the analysis results to obtain initial static information of the application file; extract images from the analysis results to obtain icon images and resource information images; and generate an image data set based on the icon images and resource information images.
[0050] Optionally, the determination module is also used to identify the image data set through a target content identification strategy to obtain images containing text content and images without text content; filter the images without text content; obtain the text content of the images containing text content; and summarize the text content and initial static information to obtain target static information.
[0051] Optionally, the identification module is also used to write the target static information into a target database for storing application static information; extract the static information in the target database; classify the extracted static information to obtain multi-category static information; generate application file identification features based on the multi-category static information; and identify the application file identification features.
[0052] Optionally, the identification module is further configured to determine whether the application file is a preset application file according to the identification result; if so, mark the application file with a preset pseudo label.
[0053] In addition, to achieve the above-mentioned purpose, the present invention also proposes a static information identification device, which includes: a memory, a processor, and a static information identification program stored in the memory and executable on the processor, and the static information identification program is configured to implement the static information identification method described above.
[0054] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a static information recognition program is stored, and when the static information recognition program is executed by a processor, the static information recognition method as described above is implemented.
[0055] The static information identification method proposed in the present invention obtains the initial static information and image data set of the application file; determines the target static information based on the initial static information and image data set; generates the application file identification feature based on the target static information, and identifies the application file identification feature; in the above manner, the target static information is determined based on the initial static information and image data set of the application file, and the target static information can truly reflect the application file identification feature, and then the application file identification feature is generated based on the target static information, and finally the application file is determined whether it is counterfeit through the identification result of the application file identification feature, thereby effectively improving the accuracy of identifying the application file. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 It is a structural diagram of a static information identification device of a hardware operating environment involved in an embodiment of the present invention;
[0057] Figure 2 It is a flowchart of the first embodiment of the static information identification method of the present invention;
[0058] Figure 3 It is a schematic diagram of the overall process of an embodiment of a static information identification method of the present invention;
[0059] Figure 4 It is a flowchart of the second embodiment of the static information identification method of the present invention;
[0060] Figure 5 It is a flowchart of a third embodiment of a static information identification method of the present invention;
[0061] Figure 6 It is a functional module diagram of the first embodiment of the static information recognition device of the present invention.
[0062] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0063] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0064] Reference Figure 1 , Figure 1 It is a schematic diagram of the structure of a static information recognition device in a hardware operating environment involved in an embodiment of the present invention.
[0065] like Figure 1As shown, the static information recognition device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0066] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the static information recognition device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0067] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a static information recognition program.
[0068] exist Figure 1 In the static information identification device shown, the network interface 1004 is mainly used for data communication with the network integration platform workstation; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the static information identification device of the present invention can be set in the static information identification device, and the static information identification device calls the static information identification program stored in the memory 1005 through the processor 1001, and executes the static information identification method provided by the embodiment of the present invention.
[0069] Based on the above hardware structure, an embodiment of the static information recognition method of the present invention is proposed.
[0070] Reference Figure 2 , Figure 2 Schematic diagram of the flow of the first embodiment of the static information identification method of the present invention.
[0071] In a first embodiment, the static information identification method comprises the following steps:
[0072] Step S10, obtaining initial static information and image data set of the application file.
[0073] It should be noted that the executor of this embodiment is a static information identification device, and may also be other devices that can achieve the same or similar functions, such as an information identification controller, etc. This embodiment does not limit this. In this embodiment, the information identification controller is taken as an example for explanation.
[0074] It should be understood that the initial static information refers to the regular, fixed static information of the identified application file, which includes but is not limited to file size, package name, version number, certificate information, etc. The application file can be an AndroidPackage (APK) file.
[0075] It can be understood that the image data set refers to a data set consisting of icon images of application files and images under the target resource directory, and the target resource directory can be the res resource directory. It should be noted that the res resource directory refers to a directory used to store resource files, and the res resource directory can be / res / values / xx.
[0076] Step S20: determining target static information according to the initial static information and the picture data set.
[0077] It can be understood that the target static information refers to the static information corresponding to the image data set added to the initial static information, that is, the target static information includes the initial static information and the static information corresponding to the image data set.
[0078] Step S30, generating an application file identification feature according to the target static information, and identifying the application file identification feature.
[0079] It should be understood that the application file identification feature refers to an identification feature for accurately identifying whether the application file is a preset application file, and the application file identification feature can be obtained by identifying target static information.
[0080] Further, step S30 includes: writing the target static information into a target database for storing application static information; extracting the static information in the target database; classifying the extracted static information to obtain multi-category static information; generating application file identification features based on the multi-category static information; and identifying the application file identification features.
[0081] It can be understood that after the text content and the initial static information are aggregated into the target static information, the target static information is written to the target database, which refers to the database used to store the static information of the application file. After the writing is completed, the target database has stored all the static information of the application file, and then the subsequent feature generation, identification and analysis business process is performed based on the static information in the target database, specifically: the static information in the target database is extracted, and then the extracted static information is classified. The multi-category static information includes general static information and resource static information. Then, feature recognition is performed on the multi-category static information respectively to obtain general identification features and resource identification features. Then, application file identification features are generated based on the general identification features and resource identification features, and the application file identification features are identified through the application file identification engine.
[0082] Furthermore, after identifying the identification features of the application file, the method further includes: determining whether the application file is a preset application file according to the identification result; if so, marking the application file with a preset pseudo-label; and classifying the marked application file.
[0083] It should be understood that the preset pseudo-label refers to a label used to mark counterfeit application files. After obtaining the recognition result, it is determined whether the application file is a preset application file based on the recognition result. If so, it indicates that the application file is counterfeit. At this time, the preset pseudo-label is used to mark the application file, and then the marked application file is classified.
[0084] Understandably, reference Figure 3 , Figure 3The figure is a schematic diagram of the overall process, which is as follows: determining the download network address of the application file through the file download information of the application market, the file download information of the web page, and the file download information of the third-party channel, then crawling out the application file through the download network address, and then performing resource analysis and decompilation analysis on the application file respectively, and then extracting the initial static information and the image data set from the analysis results respectively, the image data set includes the icon image of the application file and the loading image under the target resource directory, identifying the image data set through the target content recognition strategy to obtain images with text content and images without text content, and filtering the images without text content, and then summarizing the text content of the images with text content as supplementary static information with the initial static information to obtain the target static information, and then writing the target static information into the target database for storing application static information, and determining the APK file recognition feature according to the static information in the target database, and then using the APK file recognition strategy to recognize the APK file recognition feature, and determining whether the application file is counterfeit according to the recognition result.
[0085] This embodiment obtains initial static information and a picture data set of an application file; determines target static information based on the initial static information and the picture data set; generates application file identification features based on the target static information, and identifies the application file identification features; in the above manner, the target static information is determined based on the initial static information and the picture data set of the application file, and the target static information can truly reflect the application file identification features, and then the application file identification features are generated based on the target static information, and finally, whether the application file is counterfeit is determined based on the identification result of the application file identification features, thereby effectively improving the accuracy of identifying application files.
[0086] In one embodiment, if Figure 4 Based on the first embodiment, a second embodiment of the static information identification method of the present invention is proposed, wherein step S10 comprises:
[0087] Step S101, downloading application files.
[0088] It should be understood that before analyzing the application file, it is necessary to first download the application file, that is, crawl out the application file using the download network address.
[0089] Furthermore, step S101 includes: obtaining a download network address of an application file; and crawling the application file according to the download network address.
[0090] It can be understood that the download network address refers to a network address used to download application files. After obtaining the download network address of the application file, the application file is crawled out using the download network address.
[0091] Furthermore, obtaining the download network address of the application file includes: obtaining file download information from an application market, file download information from a web page, and file download information from a third-party channel; when there is download information of the application file in the file download information from the application market, or there is download information of the application file in the file download information from a web page, or there is download information of the application file in the file download information from a third-party channel, searching for the file download information where the download information of the application file exists to obtain the application file download information; and identifying the application file download information to obtain the download network address of the application file.
[0092] It should be understood that the file download information of the application market refers to the information of downloading program files using the application market, and the file download information includes the information of all applications that have been downloaded from the application market. Similarly, the file download information of the web page refers to the information of downloading application files using the web page, and the third-party channel refers to other channels except the application market and the web page. After obtaining the download information of the application file, it is determined whether there is download information of the application file in the file download information of the application market, whether there is download information of the application file in the file download information of the web page, and whether there is download information of the application file in the file download information of the third-party channel. If any of the above conditions is met, the network address corresponding to the download information of the application file is used as the download network address of the application file.
[0093] Step S102: Analyze the application file according to the static information analysis strategy.
[0094] It can be understood that the static information identification strategy refers to a strategy for identifying static information. After the application files are crawled out, the static information identification strategy is used to identify the application files to obtain the static information of the application files.
[0095] Furthermore, step S102 includes: performing resource analysis on the application file according to the static information resource analysis strategy; performing decompile analysis on the application file according to the static information decompile analysis strategy.
[0096] It should be understood that the analysis of application files using static information analysis strategies is divided into two dimensions, namely resource analysis and decompilation analysis. Specifically, resource analysis of application files is performed according to static information resource analysis strategies, and decompilation analysis of application files is performed according to static information decompilation analysis strategies.
[0097] Furthermore, after step S102, the method further includes: obtaining an icon MD5 of the application file; and adding the icon MD5 to the analysis data of the application file to obtain an analysis result.
[0098] It should be noted that the icon MD5 refers to the MD5 of the icon of the application file. After the application file is analyzed and the corresponding analysis data is obtained, the icon MD5 is added to the analysis data of the application file to form the analysis result of the application file.
[0099] Step S103: determining the initial static information and image data set of the application file according to the analysis result.
[0100] Furthermore, step S103 includes: extracting information from the analysis results to obtain initial static information of the application file; extracting images from the analysis results to obtain icon images and resource information images; and generating an image data set based on the icon images and resource information images.
[0101] It can be understood that after obtaining the analysis results of the application file, information extraction is performed on the analysis results to obtain the initial static information of the program file, which includes but is not limited to file size, package name, version number, certificate information, name, download network address, icon fuzzy hash and file fuzzy hash, etc., and image extraction is performed on the analysis results to obtain icon images and resource information images. The icon image is for the application file, and the resource information image refers to the image under the target resource directory.
[0102] This embodiment downloads an application file; analyzes the application file according to a static information analysis strategy; determines the initial static information and image data set of the application file according to the analysis result; through the above method, after successfully downloading the application file, the application file is analyzed using the static information analysis strategy, and then the initial static information and image data set of the application file are respectively extracted from the analysis result, thereby effectively improving the accuracy and efficiency of obtaining the initial static information and image data set.
[0103] In one embodiment, if Figure 5 Based on the first embodiment, a third embodiment of the static information identification method of the present invention is proposed, wherein step S20 includes:
[0104] Step S201 , identifying the image data set through a target content identification strategy to obtain images containing text content and images without text content.
[0105] It can be understood that the target content recognition strategy refers to a strategy for identifying content. The target content recognition strategy can be an OCR content recognition strategy. After obtaining the image data set, the target content recognition strategy is used to identify the image data set to obtain images containing text content and images without text content.
[0106] Step S202: filtering the pictures without text content.
[0107] It should be understood that after obtaining pictures with text content and pictures without text content, the pictures without text content are filtered out, and only pictures with text content remain.
[0108] Step S203, obtaining the text content of the picture containing text content.
[0109] Step S204: Aggregate the text content and the initial static information to obtain target static information.
[0110] It is understandable that after obtaining the text content of the image containing text content, the text content can be used as supplementary static information of the application file, and then the supplementary static information is added to the initial static information to summarize the target static information, that is, the target static information is multiple static information.
[0111] This embodiment identifies the image data set through a target content recognition strategy to obtain images with text content and images without text content; filters the images without text content; obtains the text content of the images with text content; summarizes the text content and initial static information to obtain target static information; in the above manner, after obtaining the image data set, identifies images with text content and images without text content through a target content recognition strategy, and then after filtering out images without text content, adds the text content as supplementary static information to the initial static information to summarize the target static information, thereby effectively improving the diversity and accuracy of the target static information.
[0112] In addition, an embodiment of the present invention further provides a storage medium, on which a static information recognition program is stored. When the static information recognition program is executed by a processor, the steps of the static information recognition method described above are implemented.
[0113] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0114] In addition, refer to Figure 6 The embodiment of the present invention further provides a static information identification device, the static information identification device comprising:
[0115] The acquisition module 10 is used to acquire initial static information and image data sets of the application program file.
[0116] The determination module 20 is used to determine target static information according to the initial static information and the image data set.
[0117] The identification module 30 is used to generate an application file identification feature according to the target static information and identify the application file identification feature.
[0118] This embodiment obtains initial static information and a picture data set of an application file; determines target static information based on the initial static information and the picture data set; generates application file identification features based on the target static information, and identifies the application file identification features; in the above manner, the target static information is determined based on the initial static information and the picture data set of the application file, and the target static information can truly reflect the application file identification features, and then the application file identification features are generated based on the target static information, and finally, whether the application file is counterfeit is determined based on the identification result of the application file identification features, thereby effectively improving the accuracy of identifying application files.
[0119] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0120] In addition, for technical details that are not described in detail in this embodiment, reference can be made to the static information identification method provided in any embodiment of the present invention, and will not be repeated here.
[0121] Furthermore, the acquisition module 10 is also used to download the application file; analyze the application file according to the static information analysis strategy; and determine the initial static information and image data set of the application file according to the analysis result.
[0122] Furthermore, the acquisition module 10 is also used to acquire a download network address of the application file; and crawl the application file according to the download network address.
[0123] Furthermore, the acquisition module 10 is also used to obtain file download information from an application market, file download information from a web page, and file download information from a third-party channel; when there is download information of an application file in the file download information from the application market, or there is download information of an application file in the file download information from a web page, or there is download information of an application file in the file download information from a third-party channel, the file download information containing the download information of the application file is searched to obtain the application file download information; the application file download information is identified to obtain a download network address of the application file.
[0124] Furthermore, the acquisition module 10 is further configured to perform resource analysis on the application file according to the static information resource analysis strategy; and perform decompilation analysis on the application file according to the static information decompilation analysis strategy.
[0125] Furthermore, the acquisition module 10 is further used to acquire the icon MD5 of the application file; and add the icon MD5 to the analysis data of the application file to obtain the analysis result.
[0126] Furthermore, the acquisition module 10 is also used to extract information from the analysis results to obtain initial static information of the application file; extract images from the analysis results to obtain icon images and resource information images; and generate an image data set based on the icon images and resource information images.
[0127] Furthermore, the determination module 20 is also used to identify the image data set through a target content recognition strategy to obtain images containing text content and images without text content; filter the images without text content; obtain the text content of the images containing text content; and summarize the text content and initial static information to obtain target static information.
[0128] Furthermore, the identification module 30 is also used to write the target static information into a target database for storing application static information; extract the static information in the target database; classify the extracted static information to obtain multi-category static information; generate application file identification features based on the multi-category static information; and identify the application file identification features.
[0129] Furthermore, the identification module 30 is further used to determine whether the application file is a preset application file according to the identification result; if so, mark the application file with a preset pseudo-label; and classify the marked application file.
[0130] Other embodiments or implementation methods of the static information identification device of the present invention can refer to the above-mentioned method embodiments, which will not be repeated here.
[0131] The present invention discloses A1, a static information recognition method, the static information recognition method comprising the following steps:
[0132] Get the initial static information and image data set of the application file;
[0133] Determine target static information according to the initial static information and the image data set;
[0134] An application file identification feature is generated according to the target static information, and the application file identification feature is identified.
[0135] A2. The static information recognition method as described in A1, wherein determining the target static information according to the initial static information and the image data set comprises:
[0136] Identify the image data set using a target content identification strategy to obtain images containing text content and images without text content;
[0137] Filtering the pictures without text content;
[0138] Obtaining the text content of the picture containing text content;
[0139] The text content and the initial static information are aggregated to obtain target static information.
[0140] A3. The static information identification method as described in A1, wherein generating an application file identification feature according to the target static information and identifying the application file identification feature comprises:
[0141] Writing the target static information into a target database for storing application static information;
[0142] Extracting static information from the target database;
[0143] Classify the extracted static information to obtain multi-category static information;
[0144] generating application file identification features according to the multiple categories of static information;
[0145] The application file identification feature is identified.
[0146] A4. The static information identification method as described in A3, after identifying the identification features of the application file, further comprising:
[0147] Determine whether the application file is a preset application file according to the recognition result;
[0148] If yes, marking the application file by a preset pseudo-label;
[0149] Categorize the marked application files.
[0150] A5. The static information identification method as described in A1, wherein the step of obtaining the initial static information and image data set of the application file comprises:
[0151] Download the application file;
[0152] Analyzing the application file according to a static information analysis strategy;
[0153] The initial static information and image data set of the application file are determined based on the analysis results.
[0154] A6. The static information identification method as described in A5, wherein the downloading of the application file comprises:
[0155] Get the download network address of the application file;
[0156] The application file is crawled according to the download network address.
[0157] A7. The static information identification method as described in A6, wherein obtaining the download network address of the application file comprises:
[0158] Obtain file download information from application markets, web pages, and third-party channels;
[0159] When there is download information of the application file in the file download information of the application market, there is download information of the application file in the file download information of the webpage, or there is download information of the application file in the file download information of the third-party channel, searching the file download information where the download information of the application file exists to obtain the download information of the application file;
[0160] The application file download information is identified to obtain a download network address of the application file.
[0161] A8. The static information identification method as described in A5, wherein the static information identification strategy includes a static information resource analysis strategy and a static information decompilation analysis strategy;
[0162] Analyzing the application file according to the static information analysis strategy includes:
[0163] Performing resource analysis on the application file according to the static information resource analysis strategy;
[0164] Decompile and analyze the application file according to the static information decompile and analyze strategy.
[0165] A9. The static information identification method as described in A5, after analyzing the application file according to the static information analysis strategy, further comprising:
[0166] Get the icon MD5 of the application file;
[0167] The icon MD5 is added to the analysis data of the application file to obtain the analysis result.
[0168] A10. The static information identification method as described in A5, wherein determining the initial static information and image data set of the application file according to the analysis result comprises:
[0169] Extract information from the analysis results to obtain initial static information of the application file;
[0170] Extract images from the analysis results to obtain icon images and resource information images;
[0171] Generate a picture data set according to the icon picture and the resource information picture.
[0172] The present invention also discloses B11, a static information identification device, the static information identification device comprising:
[0173] An acquisition module, used to obtain initial static information and image data sets of application files;
[0174] A determination module, configured to determine target static information according to the initial static information and the image data set;
[0175] The identification module is used to generate application file identification features according to the target static information and identify the application file identification features.
[0176] B12. In the static information identification device as described in B11, the acquisition module is further used to download application files; analyze the application files according to the static information analysis strategy; and determine the initial static information and image data set of the application files according to the analysis results.
[0177] B13. In the static information identification device as described in B12, the acquisition module is further used to obtain a download network address of the application file; and crawl the application file according to the download network address.
[0178] B14. In the static information identification device as described in B13, the acquisition module is further used to obtain file download information from an application market, file download information from a web page, and file download information from a third-party channel; when there is download information of an application file in the file download information of the application market, or there is download information of an application file in the file download information of a web page, or there is download information of an application file in the file download information of a third-party channel, the file download information containing the download information of the application file is searched to obtain the application file download information; the application file download information is identified to obtain a download network address of the application file.
[0179] B15. In the static information identification device as described in B12, the acquisition module is further used to extract information from the analysis results to obtain initial static information of the application file; extract images from the analysis results to obtain icon images and resource information images; and generate an image data set based on the icon images and resource information images.
[0180] B16. In the static information identification device as described in B11, the determination module is further used to identify the image data set through a target content identification strategy to obtain images containing text content and images without text content; filter the images without text content; obtain the text content of the images containing text content; and summarize the text content and the initial static information to obtain the target static information.
[0181] B17. In the static information identification device as described in B12, the identification module is further used to write the target static information into a target database for storing application static information; extract the static information in the target database; classify the extracted static information to obtain multi-category static information; generate application file identification features based on the multi-category static information; and identify the application file identification features.
[0182] B18. In the static information identification device as described in B17, the identification module is further used to determine whether the application file is a preset application file based on the identification result; if so, the application file is marked with a preset pseudo-label.
[0183] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0184] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0185] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, an integrated platform workstation, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0186] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A static information recognition method, characterized in that: The static information identification method comprises the following steps: Get the initial static information and image data set of the application file; Determine target static information according to the initial static information and the image data set; An application file identification feature is generated according to the target static information, and the application file identification feature is identified.
2. The static information recognition method according to claim 1, characterized in that: The determining the target static information according to the initial static information and the picture data set includes: Identify the image data set using a target content identification strategy to obtain images containing text content and images without text content; Filtering the pictures without text content; Obtaining the text content of the picture containing text content; The text content and the initial static information are aggregated to obtain target static information.
3. The static information recognition method according to claim 1, characterized in that: The step of generating an application file identification feature according to the target static information and identifying the application file identification feature includes: Writing the target static information into a target database for storing application static information; Extracting static information from the target database; Classify the extracted static information to obtain multi-category static information; generating application file identification features according to the multiple categories of static information; The application file identification feature is identified.
4. The static information recognition method according to claim 3, characterized in that: After identifying the application file identification feature, the method further includes: Determine whether the application file is a preset application file according to the recognition result; If yes, marking the application file by a preset pseudo-label; Categorize the marked application files.
5. The static information recognition method according to claim 1, characterized in that: The obtaining of initial static information and image data set of the application file includes: Download the application file; Analyzing the application file according to a static information analysis strategy; The initial static information and image data set of the application file are determined based on the analysis results.
6. The static information recognition method according to claim 5, characterized in that: The static information identification strategy includes a static information resource analysis strategy and a static information decompilation analysis strategy; Analyzing the application file according to the static information analysis strategy includes: Performing resource analysis on the application file according to the static information resource analysis strategy; Decompile and analyze the application file according to the static information decompile and analyze strategy.
7. The static information recognition method according to claim 5, characterized in that: The determining of the initial static information and image data set of the application file according to the analysis result includes: Extract information from the analysis results to obtain initial static information of the application file; Extract images from the analysis results to obtain icon images and resource information images; Generate a picture data set according to the icon picture and the resource information picture.
8. A static information recognition device, characterized in that: The static information recognition device comprises: An acquisition module, used to obtain initial static information and image data sets of application files; A determination module, configured to determine target static information according to the initial static information and the image data set; The identification module is used to generate application file identification features according to the target static information and identify the application file identification features.
9. A static information recognition device, characterized in that: The static information recognition device comprises: a memory, a processor, and a static information recognition program stored in the memory and executable on the processor, wherein the static information recognition program is configured to implement the static information recognition method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a static information recognition program, and when the static information recognition program is executed by the processor, the static information recognition method according to any one of claims 1 to 7 is implemented.
