A method and device for identifying disguised applications based on artificial intelligence
Through deep learning and automated detection technology, the functional characteristics of the application are analyzed, which solves the problem of low manual review efficiency and misjudgment, improves the accuracy of application review and user security, and prevents fake APPs from circulating in the market.
Patent Information
- Application Number
- CN202410659154.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-27
AI Technical Summary
Existing technology cannot deeply understand the details of applications, resulting in low efficiency of manual review and prone to misjudgment and misjudgment, leading to the circulation of fake APPs in the market, bringing hidden dangers to information security and property security.
A program based on deep learning is used for automated detection, and the functional features of the APP are extracted through natural language processing and image processing. It is combined with decompilation technology and graph neural network for functional analysis to determine whether the APP has disguised behavior.
It improves the efficiency and accuracy of application review, reduces the possibility of malware and fake APPs passing review, effectively protects users from fraud, detects and prevents infringements early, and improves the level of user protection and the healthy development of the application ecosystem.
Smart Images

Figure CN118245982B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for identifying disguised applications based on artificial intelligence. Background Art
[0002] There are a large number of fake apps (applications) emerging in the market. Although there are dedicated auditors, they cannot understand the details of each product in depth, so it is difficult for them to visually determine whether an app is fake through the UI. Due to the low efficiency of manual audits and the possibility of misjudgment and misjudgment, fake apps are able to circulate in the market, posing a hidden danger to the information security and property security of users. Summary of the invention
[0003] In view of the shortcomings of the prior art, a method and device for identifying disguised applications based on artificial intelligence are provided. The present invention aims to deeply analyze the actual functions of the APP through program automation detection technology based on deep learning, and determine whether there is disguised behavior, so as to solve the problem that manual review cannot deeply understand each APP, and improve the quality and security of the entire application ecosystem.
[0004] The technical means adopted by the present invention are as follows:
[0005] A method for identifying disguised applications based on artificial intelligence, comprising:
[0006] Obtaining a function description document submitted by the APP to be identified during the review process, performing feature extraction based on natural language processing and image processing on the function description document, and constructing a first APP function introduction list;
[0007] Decompiling the executable file of the APP to be identified to generate assembly code, processing the assembly code segment based on the pre-trained code-function model to generate a second APP function introduction list, including inputting the code instructions related to the function into the trained BERT language model to extract the high-level semantic embedding features of the instructions, inputting the sliced high-level semantic embedding features and structural features into the function extraction model based on the graph neural network, performing function semantic inference, extracting the function representation with high-level semantic information, and thus generating the second APP function introduction list;
[0008] The consistency between the first APP function introduction list and the second APP function introduction list is determined through similarity analysis, and whether the APP is disguised is determined based on the consistency determination result.
[0009] Furthermore, feature extraction based on natural language processing and image processing is performed on the function description document to construct a first APP function introduction list, including:
[0010] Acquire text modal information and image modal information based on the function description document;
[0011] Preprocessing the text modal information, and performing semantic analysis on the preprocessed text modal information based on a pretrained language model to obtain semantic features;
[0012] Extracting features of the image modality information based on a pre-trained image feature extraction model to obtain image features;
[0013] The semantic features and image features are fused, and keyword extraction and topic modeling are performed on the function description document to form a first APP function introduction list with high-level semantic features.
[0014] Furthermore, the executable file of the APP to be identified is decompiled to generate assembly code, including:
[0015] Use static code analysis technology to delete code segments in the assembly code that are not related to the main function, including using control flow and data flow analysis to retain function-related code.
[0016] Furthermore, the BERT language model is pre-trained, including:
[0017] Preprocess the instruction data through instruction normalization, and use the normalized assembly instructions to build a training text library;
[0018] The MLM pre-training task is used to pre-train the BERT language model so that it can learn the characteristics of assembly instructions.
[0019] The present invention also discloses a device for identifying disguised applications based on artificial intelligence, which is used to execute the above method, including:
[0020] A description function list acquisition unit, which is used to obtain a function description document submitted by the APP to be identified during the review process, perform feature extraction based on natural language processing and image processing on the function description document, and construct a first APP function introduction list;
[0021] An actual function list acquisition unit, which is used to decompile the executable file of the APP to be identified, thereby generating an assembly code, and process the assembly code segment based on a pre-trained code-function model to generate a second APP function introduction list;
[0022] The comparison unit is used to determine the consistency between the first APP function introduction list and the second APP function introduction list through similarity analysis, and determine whether the APP is disguised based on the consistency determination result.
[0023] Compared with the prior art, the present invention has the following advantages:
[0024] 1. The present invention improves the traditional application auditing method by introducing binary code analysis technology, improves the efficiency and accuracy of the audit, and reduces the possibility of malware and disguised apps passing the audit.
[0025] 2. The present invention effectively protects users from fraudulent behavior of disguised APPs. By accurately judging the actual functions of APPs, the risk of being deceived is reduced.
[0026] 3. The present invention can detect and prevent some potential infringements early through system function detection. For example, in the case of introducing a picture processing software that actually provides a video playback function, the system can detect and take measures in time, thereby safeguarding the rights and interests of the video production company and reducing the economic losses faced by the native application.
[0027] 4. By improving the application review method, enhancing the level of user protection, and preventing infringement, the present invention is expected to bring multiple effective benefits to the application store, thereby promoting the healthy development of the entire application ecosystem. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0029] Figure 1 The present invention is a flow chart of a method for identifying disguised applications based on artificial intelligence.
[0030] Figure 2 This is a diagram of the representation model architecture based on multimodal feature fusion in an embodiment of the present invention.
[0031] Figure 3 This is a flow chart of function control flow in an embodiment of the present invention.
[0032] Figure 4 This is a diagram of the architecture of a function representation model based on GCN in an embodiment of the present invention.
[0033] Figure 5 This is an example diagram of decompilation of an executable file in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] like Figure 1 As shown, the present invention provides a method for identifying disguised applications based on artificial intelligence, comprising:
[0037] S1. Obtain a function description document submitted by the APP to be identified during the review process, perform feature extraction on the function description document based on natural language processing and image processing, and construct a first APP function introduction list.
[0038] When conducting content review, APPs usually provide function introduction documents. Through the comprehensive method of natural language processing and image processing, we can comprehensively analyze and obtain the information of the introduction documents to identify and form a list of the introduction functions of the APP. Specifically, it mainly includes:
[0039] S101, document data acquisition: through the APP function introduction document, obtain multimodal information including text description, image, etc. The text description is extracted as text data, and the image is extracted as image data.
[0040] S102, Feature Extraction: Clean the text data, perform preprocessing such as word segmentation, etc. Use pre-trained natural language processing models (such as BERT, GPT) to learn semantic representations of text data and convert text data into high-dimensional semantic vector representations.
[0041] First, the text data is cleaned to remove noise and useless information, such as punctuation marks, stop words, etc. Then, the text is processed by word segmentation and other processing to convert the text data into a sequence of vocabulary units. Through a word embedding model (such as w2v), each vocabulary unit is mapped to a low-dimensional continuous vector space. Then, the word-embedded vocabulary sequence is input into the BERT model, and the feature vector of the text is obtained through the output of the BERT model. Through the above natural language processing technology, text data can be converted into high-dimensional semantic vector representations, which can capture the semantic information and contextual relationships of the text.
[0042] Use pre-trained convolutional neural network models (such as VGG16, ResNet) to extract features from image data and convert the image data into a high-dimensional image feature vector representation.
[0043] First, load a convolutional neural network model that has been trained on large-scale image data, such as VGG16 or ResNet. The weights of these models have been trained on a large amount of image data and are able to extract rich semantic features of the image. Before feeding the image into the model, we need to preprocess the image. This includes scaling, cropping, or padding the image to fit the input size of the model. At the same time, the image needs to be normalized to convert the pixel values to the range required by the model. The preprocessed image data is input into the convolutional neural network model, and the extracted feature representation is converted into a high-dimensional image feature vector. The feature map can be flattened or the size of the feature map can be reduced in the spatial dimension using a global pooling operation to obtain a fixed-dimensional feature vector. Through the above steps, we can convert the image data into a high-dimensional image feature vector representation. These feature vectors can capture the visual information of the image, including features such as edges, textures, and shapes.
[0044] Comprehensively consider text and image information to improve the overall understanding of the introduction document.
[0045] S103, function list extraction: construct a representation model based on multimodal feature fusion, such as Figure 2 As shown in the figure, a cross-modal feature enhancement module based on self-attention is designed to calculate the attention weight of one modality to another modality, and perform attention-weighted summation on multi-modal features to obtain a fused feature vector. The fused feature vector is connected to multiple fully connected layers to output the probability distribution of each functional category.
[0046] The input layer receives the text feature vector T and the image feature vector I as input. For the text T, it is input into the Bert model, and the hidden state of the last layer in the BERT model is used as the text feature, represented as H = BERT(T), as the input of the subsequent cross-modal feature enhancement module. For the image I, it is input into the VGG16 model, and the output of the last convolutional layer in the VGG16 model is used to represent the image feature. In order to project the image features into the same space as the text features, a linear transformation function is used to map the image features G = W*VGG(I) to the d-dimensional space. In the cross-modal feature enhancement module, the self-attention mechanism is used to calculate the degree of association between the text and the image. The hidden state H of the target text is regarded as the query (Q), and the image feature G is regarded as the key (K) and the value (V). The attention mechanism only assigns higher attention weights to the image area related to the target, so as to effectively capture the semantic association between the text and the image. Specifically, the form of the k-th head target attention is as follows:
[0047]
[0048] in, The linear transformation parameter matrices represent the query, key, and value of the i-th head attention respectively. The attention score matrix is normalized by the softmax function to obtain the attention weight matrix, and then the normalized attention weight matrix is used for weighted summation to obtain the output of the self-attention mechanism. The outputs of the k attention mechanisms are concatenated, and then the target image features based on attention enhancement are obtained by linear transformation:
[0049]
[0050] in, Represents splicing, Represents the parameters of the linear transformation. Next, a feedforward neural network and two layers of normalization and residual connection are used to obtain the final image features:
[0051]
[0052] in, The representative layer is normalized. represents a multilayer perceptron, is the output of the previous layer. Similarly, the same transformation process is applied to the text features to obtain the final text feature representation. Finally, the fused text feature vector and image feature vector are connected to multiple fully connected layers to output the probability distribution of each functional category.
[0053] In the training phase, the model is trained end-to-end using a labeled training dataset. In the inference phase, the document descriptions and images of unknown applications are inferred using the trained multimodal feature representation model to generate corresponding feature list predictions.
[0054] S2. Decompile the executable file of the APP to be identified to generate assembly code, and perform the following processing on the assembly code segment to generate a second APP function introduction list. Specifically, it mainly includes:
[0055] S201. Decompile: Decompile the executable file into assembly instruction level code using reverse engineering tools (e.g., IDA Pro, Ghidra), and extract the assembly instructions, data flow, control flow and other original feature data of all functions in the executable file.
[0056] S202, preprocessing: Use static code analysis technology to delete irrelevant or redundant code segments in the code to simplify the program structure. Specifically, use control flow to analyze the execution path of the code. To determine which code segments may never be executed, or may be executed under certain conditions. Use data flow to analyze parameter passing and use, and track the definition, assignment, and use of variables to determine code segments that are not related to the variables. Specifically, when the tracked variable is neither defined, assigned, or used in the code segment, it can be considered that the code segment is unrelated to the variable. Finally, after preprocessing, the original data is obtained to obtain a function control flow graph, in which the nodes in the graph represent basic blocks of code, and the edges represent control flow relationships and data flow relationships, such as Figure 3 shown.
[0057] S203, pre-training assembly instruction model: first define the instruction normalization strategy, classify according to the operand type, where registers are classified by bit number; special types of registers such as stack pointer and instruction pointer remain unchanged; numerical immediate values are replaced by immval, address offsets are replaced by offset, and memory references are replaced by dispbss; pointer expressions retain the original format. Secondly, obtain binutils, coreutils, findutils, inetutils and basic SDK of the application from the open source website, and compile and decompile them to extract the assembly instruction code, and generate a standardized instruction corpus according to the above normalization rules for assembly instruction model pre-training. Use MLM and other pre-training tasks to pre-train the BERT-based assembly language model. Make it understand the contextual semantics and grammatical characteristics of binary code, and generate appropriate word embedding vectors for assembly instructions. Using the pre-trained assembly language model, the instruction feature sequence after slice preprocessing is used as input, mapped into a numerical vector, and the high-level semantic embedding of the instruction is obtained.
[0058] S204, function extraction: Build a function extraction model based on graph neural networks (such as GCN, GGNN), use this model to perform function semantic inference on unlabeled executable files, and extract function representations with high-level semantic information. Specifically, the model aggregates the neighborhood node vectors in the graph structure into an embedding vector through the neighbor aggregation strategy of the message passing graph neural network to obtain the local relevant representation of the node. After stacking multiple layers of message passing layers, the node-level representation is aggregated to obtain the graph-level representation. Through the above process, the function can be converted into a low-dimensional vector representation. Figure 4 Shown is the GCN model architecture.
[0059] Prepare a labeled app dataset, including labeled app samples and corresponding labels. Use the prepared dataset to train the function extraction model and optimize the model parameters by minimizing the loss function between the model prediction and the true label. Preprocess the unlabeled executable file to extract its features such as instruction embedding and control flow graph. Input the extracted features into the trained function extraction model, use the model to make predictions, and output the classification probability of the unknown app. The classification result refers to the category label or probability distribution obtained after functional classification of the unknown app, which represents the model's prediction result that the app belongs to different functional categories. The classification results can be used to determine which functional categories the unknown app belongs to, such as social media, games, video tools, etc. Based on the classification probability, a function list of the unknown app is generated.
[0060] S3. Determine the consistency between the first APP function introduction list and the second APP function introduction list through similarity analysis, and determine whether the APP is disguised based on the consistency determination result.
[0061] Compare the first function list obtained by natural language processing in the first step with the second function list obtained in the second step. Through similarity analysis, such as the Jaccard similarity coefficient, the consistency between the two function lists is quantitatively determined. Based on the comparison results, a final test report is generated to indicate whether there is any inconsistency and determine whether the APP is a fake APP.
[0062] The scheme and effect of the present invention are further described below through specific application examples.
[0063] This embodiment provides an APP that claims to provide a digital maze game. The function description of the APP is as follows:
[0064] We need to rescue people who have fallen into the maze of numbers.
[0065] Only by passing the mathematical test of the digital maze can the
[0066] levels of the maze be continuously cracked.
[0067] Let's see who can crack the maze of numbers with the most levels andwho
[0068] Can rescue the most people. This is a simple, fun but mathematically
[0069] thoughtful app.Everyone is welcome to download and experience it
[0070] Based on the functional description provided by the system, through the processing of S1 of this application, that is, using natural language processing, we can quickly conclude that this is a digital maze game APP.
[0071] Next, by executing S2 of the method of the present invention, the executable file is functionally analyzed (based on the reverse engineering of the ida tool): Figure 5 This shows a brief code example of the above digital maze game APP after decompilation, where the green text is the function name contained in the code. Through this file, we can analyze that this APP has a large number of video playback and download functions, and most of the functions of the code are video-related rather than user interaction types (game software should have more click / touch code blocks).
[0072] Conclusion: This app is more about processing videos rather than gaming software, so it can be determined to be a disguised app.
[0073] The present invention also discloses a device for identifying disguised applications based on artificial intelligence, which is used to execute the above method, including:
[0074] A description function list acquisition unit, which is used to obtain a function description document submitted by the APP to be identified during the review process, perform feature extraction based on natural language processing and image processing on the function description document, and construct a first APP function introduction list;
[0075] An actual function list acquisition unit, which is used to decompile the executable file of the APP to be identified, thereby generating an assembly code, and process the assembly code segment based on a pre-trained code-function model to generate a second APP function introduction list;
[0076] The comparison unit is used to determine the consistency between the first APP function introduction list and the second APP function introduction list through similarity analysis, and determine whether the APP is disguised based on the consistency determination result.
[0077] As for the embodiments of the present invention, since they correspond to the embodiments above, the description is relatively simple. For the relevant similarities, please refer to the description of the above embodiments, which will not be described in detail here.
[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for identifying disguised applications based on artificial intelligence, characterized in that: include: Obtain the function description document submitted by the APP to be identified during the review process, perform feature extraction based on natural language processing and image processing on the function description document, and construct a first APP function introduction list, including: Acquire text modal information and image modal information based on the function description document; Preprocessing the text modal information, and performing semantic analysis on the preprocessed text modal information based on a pretrained language model to obtain semantic features; Extracting features of the image modality information based on a pre-trained image feature extraction model to obtain image features; Performing feature fusion on the semantic features and the image features, performing keyword extraction and topic modeling on the function description document, and forming a first APP function introduction list with high-level semantic features; Decompiling the executable file of the APP to be identified to generate assembly code, processing the assembly code based on the pre-trained code-function model to generate a second APP function introduction list, including inputting the code instructions related to the function into the trained BERT language model to extract the high-level semantic embedding features of the instructions, inputting the sliced high-level semantic embedding features and structural features into the function extraction model based on the graph neural network, performing function semantic inference, extracting function representations with high-level semantic information, and thus generating the second APP function introduction list; The consistency between the first APP function introduction list and the second APP function introduction list is determined through similarity analysis, and whether the APP is disguised is determined based on the consistency determination result.
2. The method for identifying disguised applications based on artificial intelligence according to claim 1, characterized in that: Decompile the executable file of the APP to be identified to generate assembly code, including: Use static code analysis technology to delete code segments in the assembly code that are not related to the main function, including using control flow and data flow analysis to retain function-related code.
3. The method for identifying disguised applications based on artificial intelligence according to claim 1, characterized in that: Pre-training the BERT language model includes: The instruction data is preprocessed by instruction normalization, and a training text library is constructed using the normalized assembly instructions; The MLM pre-training task is used to pre-train the BERT language model so that it can learn the characteristics of assembly instructions.
4. A device for identifying disguised applications based on artificial intelligence, used to execute the method according to claim 1, characterized in that: include: A description function list acquisition unit is used to obtain a function description document submitted by the APP to be identified during the review process, perform feature extraction based on natural language processing and image processing on the function description document, and construct a first APP function introduction list, including: Acquire text modal information and image modal information based on the function description document; Preprocessing the text modal information, and performing semantic analysis on the preprocessed text modal information based on a pretrained language model to obtain semantic features; Extracting features of the image modality information based on a pre-trained image feature extraction model to obtain image features; Performing feature fusion on the semantic features and the image features, performing keyword extraction and topic modeling on the function description document, and forming a first APP function introduction list with high-level semantic features; an actual function list acquisition unit, which is used to decompile the executable file of the APP to be identified, thereby generating an assembly code, extracting features from the assembly code based on a pre-trained code-function model, and generating a second APP function introduction list; The comparison unit is used to determine the consistency between the first APP function introduction list and the second APP function introduction list through similarity analysis, and determine whether the APP is disguised based on the consistency determination result.
Citation Information
Patent Citations
API (Application Program Interface) comparison based mobile application identification method
CN105446741A
Malicious program recognition method and device based on icon representation and software behavior consistency analysis
CN109871686A
Application security detection method and device, computer equipment and storage medium
CN116451225A
Malicious code detection method, device and system based on semantic analysis
CN117909977A
Semantic segmentation model training method and apparatus, and electronic device and storage medium
WO2024012251A1
