Malicious application analysis method, device, equipment and system

By constructing a heterogeneous knowledge graph and combining it with a graph neural network model, the accuracy and interpretability issues of malicious application analysis on the Android platform were solved. This enabled the capture of complex associations in malicious logic and the identification of long-tail families, generating an interpretable security evidence chain.

CN123179382APending Publication Date: 2026-11-27BEIJING UNIV OF POSTS & TELECOMM +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611348440.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies on the Android platform lack sufficient accuracy in analyzing malicious applications, are unable to capture the complex relationships of malicious logic, struggle to identify long-tail families, and have insufficient model interpretability.

Method used

A heterogeneous knowledge graph is constructed, which is linearly weighted through four-dimensional feature data and trained using a graph neural network model to generate high-dimensional embedding vectors. Malicious detection and family classification tasks are performed in parallel to generate an interpretable chain of evidence.

Benefits of technology

It improves the accuracy of malicious application analysis, can identify long-tail families, provides an interpretable security evidence chain, and enhances the transparency and credibility of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179382A_ABST
    Figure CN123179382A_ABST
Patent Text Reader

Abstract

The application provides a malicious application analysis method, device, equipment and system. The method comprises the following steps: acquiring four-dimensional feature data corresponding to each relationship edge in a heterogeneous knowledge graph, wherein the four-dimensional feature data comprises source reliability, time freshness, extraction quality and context consistency, and the heterogeneous knowledge graph is constructed according to an application sample; performing linear weighting processing on the four-dimensional data of each relationship edge according to a confidence quantification model to obtain the confidence weight of each relationship edge, thereby solving the technical problems that the existing technology is insufficient in expressing the behavior correlation of the permissions, components, endpoints and the like of the application, and is easily disturbed by noise relationships; and by retaining different semantics and topological information under a unified knowledge graph, the contributions of different relationships to the analysis result of the application are distinguished, and the analysis accuracy of the malicious application is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cybersecurity technology, and in particular to a method, apparatus, device and system for analyzing malicious applications. Background Technology

[0002] With the widespread adoption of mobile internet, the Android platform has become a major breeding ground for malware. Malicious applications often evade traditional detection mechanisms through dynamic behavior, covert communication, and abuse of permissions, posing a serious threat to user privacy, corporate data security, and even national cybersecurity. Therefore, there is an urgent need for a method to effectively detect malicious applications in order to address the increasingly complex mobile security threats.

[0003] In existing technologies, static analysis tools extract features such as permissions and API calls from decompiling APK files to analyze malicious applications, or they use dynamic tracking systems to record the behavior of applications during runtime to analyze malicious applications.

[0004] However, the above technical solutions can only analyze the planar features of malicious applications and cannot capture the complex relationships of malicious logic, which reduces the accuracy of malicious application analysis. Summary of the Invention

[0005] This application provides a malicious application analysis method, apparatus, device, and system to construct a unified analysis framework around application samples that is oriented towards multiple types of entities and their relationships, thereby achieving accurate analysis of the complex behavior of malicious applications.

[0006] Firstly, this application provides a method for analyzing malicious applications, including:

[0007] Obtain four-dimensional feature data corresponding to each relation edge in the heterogeneous knowledge graph. The four-dimensional feature data includes source reliability, time freshness, extraction quality, and context consistency. The heterogeneous knowledge graph is constructed based on application samples.

[0008] Based on the confidence quantification model, the four-dimensional data of each relation edge are linearly weighted to obtain the confidence weight of each relation edge.

[0009] In one possible implementation, after linearly weighting the four-dimensional data of each relation edge according to a confidence quantification model to obtain the confidence weights of each relation edge, the method further includes:

[0010] The heterogeneous knowledge graph is updated based on the confidence weights of each relation edge within the heterogeneous knowledge graph to obtain the updated heterogeneous knowledge graph.

[0011] The graph neural network model is trained based on the confidence weights to obtain the malicious classification results and family classification results for each application sample.

[0012] In one possible implementation, a graph neural network model is trained based on the confidence weights to obtain the malicious classification result and family classification result for each application sample, including:

[0013] The graph neural network model is trained based on the confidence weights, and the node features of the updated heterogeneous knowledge graph are extracted.

[0014] Based on the shared encoder, the node features are uniformly encoded to obtain the high-dimensional embedding vectors of each application sample.

[0015] Based on the high-dimensional embedding vector, the malicious detection task and the family classification task are executed in parallel to obtain the malicious classification result and the family classification result of each application sample.

[0016] In one possible implementation, the method further includes:

[0017] Based on a lightweight logistic regression model, the family classification results are routed and split to obtain rare family samples.

[0018] The high-dimensional embedding vectors corresponding to the rare family samples are compared with the similarity of the vectors in the preset offline vector library to obtain the long-tail family origin classification results.

[0019] In one possible implementation, the method further includes:

[0020] After fixing the parameters of the graph neural network model after training, target application samples that have completed the malicious detection task and family classification task are selected as samples to be explained.

[0021] Extract the local neighborhood topology of the sample to be explained in the updated heterogeneous knowledge graph;

[0022] The edge weight mask of each relation edge in the local neighborhood topology is learned iteratively to construct a local key subgraph. The edge weight mask is used to characterize the degree of contribution of each relation edge to the model's judgment result.

[0023] The local key subgraph and the updated heterogeneous knowledge graph are mapped to generate an interpretable subgraph with business semantics.

[0024] In one possible implementation, the method further includes:

[0025] Based on a preset multi-dimensional evidence template, a path scan is performed on the interpretable subgraph to generate multiple candidate evidence chains;

[0026] The basic evidence strength, domain security risk strength, and model activation support of the multiple candidate evidence chains are calculated respectively, and the comprehensive score of the candidate evidence chains is obtained by combining the path length penalty term.

[0027] Based on the comprehensive score and the greedy balance rearrangement strategy, the multiple candidate evidence chains are screened and rearranged to output the target evidence chain set.

[0028] In one possible implementation, before obtaining the four-dimensional feature data corresponding to each relation edge in the heterogeneous knowledge graph, the method further includes:

[0029] Collect multi-source static data of application samples;

[0030] The multi-source static data of each application sample is mapped to different types of entities, and the relationship types between the entities are also mapped.

[0031] Based on the different types of entities and the relationship types, a heterogeneous knowledge graph centered on the application sample is constructed.

[0032] Secondly, this application provides a malicious application analysis device, comprising:

[0033] The data acquisition module is used to acquire four-dimensional feature data corresponding to each relation edge in the heterogeneous knowledge graph. The four-dimensional feature data includes source reliability, time freshness, extraction quality, and context consistency. The heterogeneous knowledge graph is constructed based on application samples.

[0034] The confidence weight acquisition module is used to perform linear weighting on the four-dimensional data of each relation edge according to the confidence quantification model to obtain the confidence weight of each relation edge.

[0035] Thirdly, this application provides a malicious application analysis device, including: a memory and a processor;

[0036] The memory stores computer-executed instructions;

[0037] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0038] Fourthly, this application provides a malicious application analysis system, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0039] This application provides a method, apparatus, device, and system for malicious application analysis. The method includes: acquiring four-dimensional feature data corresponding to each relation edge in a heterogeneous knowledge graph, wherein the four-dimensional feature data includes source reliability, time freshness, extraction quality, and contextual consistency, and the heterogeneous knowledge graph is constructed based on application samples; performing linear weighting processing on the four-dimensional data of each relation edge according to a confidence quantification model to obtain the confidence weight of each relation edge, thus solving the technical problems in existing technologies where the expression of application permissions, components, endpoints, and other behavioral associations is insufficient and easily interfered with by noisy relations; and improving the accuracy of malicious application analysis by retaining different semantic and topological information under a unified knowledge graph and distinguishing the contribution of different relations to the application analysis results. Attached Figure Description

[0040] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0041] Figure 1 A flowchart illustrating an embodiment of the malicious application analysis method provided in this application;

[0042] Figure 2 A flowchart illustrating Embodiment 2 of the malicious application analysis method provided in this application;

[0043] Figure 3 A flowchart illustrating Embodiment 3 of the malicious application analysis method provided in this application;

[0044] Figure 4 A flowchart illustrating Embodiment 4 of the malicious application analysis method provided in this application;

[0045] Figure 5 A schematic diagram of the malicious application analysis device provided in this application;

[0046] Figure 6 A schematic diagram of the malicious application analysis device provided in this application.

[0047] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0048] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.

[0049] This application applies to the full lifecycle analysis of malicious applications on the Android platform, including financial security (such as payment fraud detection in banking applications), IoT device protection (such as remote control vulnerability analysis in smart home applications), supply chain security auditing (such as risk verification of third-party SDKs), and judicial evidence collection (such as tracing the malicious application behavior chain). In the mobile terminal security protection system, this system can be deployed on a cloud-based security analysis platform. Through automated processing of massive amounts of APK files, it constructs a heterogeneous knowledge graph covering entities such as permissions, components, and network endpoints. Combined with multi-task graph neural networks and retrieval enhancement mechanisms, it outputs maliciousness determination results and structured evidence chains for security analysts to review or for use as legal evidence.

[0050] Existing technologies for analyzing Android malicious applications have three core problems:

[0051] (1) Limitations of planar feature representation: Traditional methods reduce the application to planar vectors such as permissions and API calls, losing the topological relationship between entities, making it difficult to capture the complex associations of malicious logic (such as permission-capability chain, component-behavior chain).

[0052] (2) Difficulty in identifying long-tail families: In the malware ecosystem, head families account for more than 90% of the samples, while the classification accuracy of tail families (such as 0day variants) is significantly reduced due to the sparse sample size. Furthermore, existing methods do not coordinate the common modeling of malware detection and family classification.

[0053] (3) Insufficient model interpretability: The malicious judgment results output by deep models such as graph neural networks (GNN) lack transparency. Existing interpretation tools (such as GNNExplainer) only provide local subgraph masks and cannot generate a coherent chain of security evidence, which limits the credibility of manual review and judicial evidence collection.

[0054] To address the aforementioned technical challenges, this application constructs a dynamic confidence graph by fusing multi-source heterogeneous data. Combining multi-task joint representation learning with a long-tail retrieval enhancement mechanism, it ultimately achieves interpretable mapping from model prediction to a structured evidence chain. This concept uses a heterogeneous knowledge graph as its core carrier, dynamically optimizing the graph quality through a four-dimensional edge confidence quantification model. It utilizes a multi-task graph neural network (CompGCN) to jointly extract malicious detection and family classification features, introduces an open retrieval routing mechanism for long-tail families, and finally transforms model decisions into a readable and traceable chain of security facts through a templated evidence chain generation algorithm. This technical approach covers the entire process of malicious application analysis, solving three core problems in existing technologies: limitations in malicious application feature expression, difficulties in long-tail identification, and model uninterpretability.

[0055] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0056] Figure 1 This is a flowchart illustrating an embodiment of the malicious application analysis method provided in this application. Figure 1 As shown, it includes:

[0057] S101. Collect multi-source static data of application samples to obtain the entity type and relationship type of each application sample.

[0058] In this application, the application sample can be the APK (Android Application Package) file to be analyzed. The multi-source static data is obtained by static parsing the APK file, including but not limited to the application package name, version information, permission declaration, declaration of the four major components, Intent filter, interface call characteristics, network endpoint and certificate information.

[0059] Secondly, the collected multi-source static data can be organized into a sample-level static feature set, and the correlation mapping relationship between the feature set and the corresponding application samples can be saved, providing the original data source for subsequent map construction.

[0060] Application samples serve as the central nodes for subsequent graph construction, carrying their own attributes and the various entity relationships derived from them, making it easier to organize the internal information and external related information of the application samples in the same structure.

[0061] Entity types can include application sample entities, permission entities, component entities, interface call entities, network endpoint entities, and certificate entities, where the certificate entity is used to represent the signature certificate and its fingerprint information.

[0062] Relationship types are used to describe the connections between different entities. For example, there is an "application" relationship between the application sample entity and the permission entity, an "inclusion" relationship between the application sample entity and the component entity, a "call" relationship between the component entity and the interface call entity, an "access" relationship between the application sample entity and the network endpoint entity, and a "signature" relationship between the application sample entity and the certificate entity.

[0063] Specifically, this step performs normalization mapping on the parsed entity types and relation types, and stores the mapping results as triples or tuples data structures for easy subsequent graph database storage and graph query calls.

[0064] S102. Based on the entity type and relation type of each application sample, construct a heterogeneous knowledge graph centered on the application sample.

[0065] The heterogeneous knowledge graph includes the entity types of each application sample and the relationship types between entities. The heterogeneous knowledge graph is used to organize application samples and their related entities and relationships into a unified graph structure to preserve the topological relationships and semantic associations between entities, and to serve as the basic data carrier for subsequent relation edge weighting and graph processing.

[0066] In this application, the "heterogeneous" characteristic of the heterogeneous knowledge graph is reflected in the fact that the graph contains multiple entity types and multiple relationship types at the same time. Different types of nodes and edges jointly express the internal composition information, behavioral association information and connection information with external targets of the application sample in the same graph structure.

[0067] Specifically, this step can be executed by an analysis server deployed in a mobile security analysis platform, a graph construction module in a cloud detection platform, or by a computing device with graph processing capabilities. After receiving the application samples to be analyzed, the platform can perform necessary parsing and preprocessing, and extract entity and relationship information for graph construction. Subsequently, in the graph mapping stage, each application sample is established as a central node, and multiple types of entity nodes corresponding to that sample are generated around this central node. Based on the parsing results, the types of relationships between the application samples and each entity, as well as between each entity, are established, thus forming a data structure oriented towards graph computation.

[0068] In one possible implementation, the graph construction can adopt a "sample-center expansion" organizational approach. This involves using a single application sample as the root node, connecting the root node to the corresponding entity nodes, and expanding outwards to generate other entity nodes associated with that root node as needed. This construction method not only records the objects contained in the application sample but also completely preserves the connection methods and association paths between objects.

[0069] For multiple application samples, the platform can organize all samples in a unified graph structure, so that different application samples can form cross-sample associations through common entities. After the above processing, a heterogeneous knowledge graph centered on the application samples is formed. The nodes in the graph carry node identifiers and node types, and the relationship edges carry edge types and connection directions.

[0070] This step maps multidimensional information from application samples to a heterogeneous knowledge graph, enabling complex malicious logic to be expressed as multiple entities, multiple relationships, and multiple hop paths, rather than as planar discrete features. This provides a structural foundation for subsequent credibility assessment of relationship edges.

[0071] S103. Based on the confidence quantification model, graph enhancement processing is performed on the heterogeneous knowledge graph to obtain the confidence weights of each relation edge in the heterogeneous knowledge graph.

[0072] The confidence quantification model is used to evaluate the confidence of relation edges in heterogeneous knowledge graphs and to perform weighting or adjustment processing on relation edges based on the quantification results, so that different relation edges can participate in graph computation according to different confidence levels in subsequent analysis.

[0073] Graph enhancement does not change the application sample access and parsing process, but rather adds a relation quality characterization layer to the already constructed heterogeneous knowledge graph, transforming the original relation structure from undifferentiated connections to a weighted connection structure.

[0074] In practice, after obtaining the heterogeneous knowledge graph, the raw data related to the confidence evaluation of relation edges can be extracted from the graph, and after format normalization, it can be input into the confidence quantification model to obtain the confidence weight corresponding to each relation edge.

[0075] Based on the obtained confidence weights, enhancement processing is performed on the heterogeneous knowledge graph. In one specific implementation, the confidence weights of each relation edge are written into the edge attribute field to form a weighted heterogeneous knowledge graph. Subsequent graph traversal, message passing, or feature aggregation processes can read these weights to participate in the calculation.

[0076] In an optional implementation, the graph enhancement process also includes relation correction operations. For relation edges in the original graph with inaccurate semantic attribution, the edge attributes can be adjusted under the combined effect of confidence quantification results and graph context to optimize the semantic accuracy of the relation edges. After all relation edges have been weighted and adjusted, a heterogeneous knowledge graph with confidence weights is output for subsequent malicious detection, family identification, and decision interpretation stages.

[0077] In another implementation, the four-dimensional data of each relation edge in the heterogeneous knowledge graph can be linearly weighted according to the confidence quantification model to obtain the confidence weight of each relation edge.

[0078] The four-dimensional feature data includes source reliability, time freshness, extraction quality, and contextual consistency. Source reliability characterizes the credibility of the evidence source corresponding to the relation edge; time freshness characterizes the temporal validity of the information upon which the relation edge is based; extraction quality characterizes the accuracy with which the relation edge is extracted from the original application sample and mapped to the graph relation; and contextual consistency characterizes the degree of matching between the relation edge and its adjacent entities, relation types, and local semantics of the graph. All four-dimensional feature data are represented as normalized continuous values ​​and correspond to the confidence representation of the same relation edge in different dimensions.

[0079] In practical implementation, for each relation edge in the heterogeneous knowledge graph, the corresponding four-dimensional feature value is first extracted from the sample source record, parsing timestamp, extraction result verification information and graph neighborhood semantics, and then the four-dimensional feature data is input into the confidence quantification model.

[0080] The confidence quantification model can be represented as a linear combination of four feature dimensions and their corresponding weight coefficients. The weight coefficients are determined based on pre-set confidence calibration results and can be fixed during model training or deployment. The confidence weights output by the model are written into the graph storage structure as the edge weights of the relation edges and used in subsequent graph enhancement to strengthen high-confidence relation edges and weaken low-confidence relation edges.

[0081] This confidence quantification method uses four-dimensional features to uniformly express the confidence of relation edges, enabling relation edges from different sources, times, and semantic states in the same heterogeneous knowledge graph to have weight values ​​that can be compared horizontally. After differentiated weighting, high-confidence relation edges play a dominant role in the graph propagation and association analysis process, suppressing the interference of low-confidence noise edges on the analysis results, and improving the stability and traceability of heterogeneous knowledge graphs when used for malicious application modeling.

[0082] For example, for any relation edge in the graph The calculated range of values ​​is The overall confidence scalar It is a four-dimensional linear weighted combination, and the calculation formula is as follows:

[0083]

[0084] Where e represents the relation edge to be calculated; u is the source node of the relation edge; r is the relation type of the relation edge; and v is the target node of the relation edge. The overall confidence level of the relation edges.

[0085] These are the weighting coefficients for source reliability, time freshness, extraction quality, and context consistency, respectively.

[0086] It indicates the reliability of the source and is assigned a value based on the objective existence of the relationship (e.g., a high value is taken for a signature with high encryption authentication; a low value is taken for heuristic inference).

[0087] The term "time freshness" refers to the decay of network endpoints and certificates using a half-life model, as shown in the following formula:

[0088]

[0089] in, This is the lower limit threshold for time freshness; The time difference since the most recent observation. The preset half-life.

[0090] This indicates the extraction quality and is used to measure the error and warning rate of the parsing engine when decompiling the file.

[0091] This represents context consistency statistics, which are logarithmically smoothed and penalized based on the global reuse rate of nodes.

[0092] For external endpoints, context consistency introduces a malicious sample percentage sub-item, as shown in the following formula:

[0093]

[0094] in, For context consistency of external endpoints; The number of malicious samples associated with target node v; This represents the total number of all samples associated with the target node v.

[0095] The confidence weights output in this step are used for two purposes: firstly, to adjust the gating of the graph convolution process in the graph neural network, and secondly, to determine the credibility of the subsequent evidence chain generation process.

[0096] The malicious application analysis method provided in this application constructs a heterogeneous knowledge graph centered on the application sample through static analysis of the application sample. It fully preserves the multi-dimensional topological and semantic relationships inside and outside the application sample. At the same time, it introduces a confidence quantification model with linear weighting of four-dimensional features to differentiate the weights of graph relationship edges, distinguishing between high-confidence business relationships and noisy relationships. This not only overcomes the shortcomings of traditional solutions that lose multi-hop association information by using planar features, but also suppresses the interference of analysis noise and derivation noise on subsequent analysis processes, providing a highly reliable graph structure input for subsequent model training, malicious judgment, and evidence analysis.

[0097] Figure 2This is a flowchart illustrating an embodiment of the malicious application analysis method provided in this application. Figure 2 As shown, this embodiment, based on the heterogeneous knowledge graph with confidence weights constructed in Embodiment 1, completes graph updating, adaptive training of graph neural networks, unified feature encoding, and parallel reasoning for both malicious detection and family classification tasks. This achieves end-to-end output from structured graph data to high-dimensional semantic representations of application samples and coarse-grained and fine-grained dual-judgment results. The method includes:

[0098] S201. Update the heterogeneous knowledge graph according to the confidence weight of each relation edge in the heterogeneous knowledge graph to obtain the updated heterogeneous knowledge graph.

[0099] After obtaining the confidence weights of all relation edges in the graph using a four-dimensional confidence quantification model, this step performs structured updates and quality optimization on the original heterogeneous knowledge graph. Unlike traditional graph modeling methods that apply fixed, equal weights to all relation edges without distinguishing between true and false relationships or their reliability, this application fully incorporates the normalized confidence weights calculated for each relation edge into the graph edge attribute structure, permanently storing them as inherent graph attributes.

[0100] Specifically, for high-confidence, genuine business relationships, their topological connectivity contribution is strengthened through weight assignment; for low-confidence, noisy relationships caused by parsing errors, redundant matching, or heuristic mismatches, their structural influence is weakened through low weight. Furthermore, this step performs adaptive graph denoising based on confidence weights, suppressing invalid and noisy edges with confidence levels below a preset threshold, while retaining valid topological links with genuine business semantics.

[0101] The updated heterogeneous knowledge graph carries quantifiable prior information on credibility for each topological connection, realizing a three-dimensional graph representation of "structural topology + semantic type + credibility weight". This provides a reliable and noise-free graph structure input for subsequent differentiated message passing and precise neighborhood aggregation in graph neural networks.

[0102] S202. Train the graph neural network model based on the confidence weights and extract and update the node features of the heterogeneous knowledge graph.

[0103] This step employs a composite relational graph convolutional network as the basic feature extraction method to update node features of heterogeneous knowledge graphs, adapting to the heterogeneous graph scenario with multiple entities, multiple relations, and trusted weights as described in this application. Compared to the shortcomings of ordinary graph neural networks and graph attention networks, which only focus on node features, ignore relational semantics, and cannot introduce external prior weights, this model can simultaneously jointly model node features, relational semantics, and edge confidence priors.

[0104] During the model training phase, neighborhood aggregation learning is performed entirely based on the updated weighted heterogeneous knowledge graph, without relying on manual feature engineering. Instead of equally aggregating all neighborhood information during training, the model adaptively adjusts the message propagation intensity according to the confidence weight of each relation edge: high-confidence relations participate in more feature updates, while low-confidence relations significantly reduce their contribution, thus suppressing noisy features from entering node representations at the training source.

[0105] During the multi-layer graph convolution iteration process, the model aggregates one-hop, two-hop, and even multi-hop neighborhood topology information layer by layer, automatically learns deep association logic such as permissions-behaviors, components-calls, samples-external networks, and samples-certificates, and finally outputs refined topological and semantic features corresponding to various entity nodes, realizing automatic mapping from the original graph structure to the high-dimensional node feature space.

[0106] S203. Based on the shared encoder, the node features are uniformly encoded to obtain the high-dimensional embedding vectors of each application sample.

[0107] Since heterogeneous knowledge graphs contain various types of entities, and the original feature dimensions, semantic spaces, and representation distributions of different entities differ, they cannot be directly used for unified task reasoning. Therefore, this step sets up a shared encoder to perform cross-type unified alignment and deep semantic compression on the features of all nodes.

[0108] In this step, a shared encoder is used for processing. The shared encoder consists of multiple layers of linear projection layers, normalization layers and nonlinear activation layers stacked together. It can uniformly map the features of entity nodes with different dimensions and semantic spaces to the same fixed-dimensional high-dimensional embedding space, thereby achieving homogenization of the feature space of the entire graph.

[0109] First, a dedicated linear projection layer is set up for different types of nodes to map the features of heterogeneous nodes to a unified hidden space, as shown in the formula:

[0110]

[0111] in, The initial hidden layer feature vector after the projection of node i is completed; This is the dedicated projection weight matrix for the corresponding node type t; Let be the original feature vector of node i of type t.

[0112] Then, edge composite encoding is performed for the edges. Construct a four-tuple structured representation that includes node indexes, relation types, and confidence weights, using the following formula: It fully preserves topological connection information, relational semantic information, and prior information of credibility, while automatically constructing reverse edges to realize bidirectional information flow in the graph and ensure complete context representation.

[0113] in, Relational embedding vectors for mapping discrete semantic types , This is the edge confidence scalar calculated by physics.

[0114] Next, this application designs a message passing mechanism with dual modulation of confidence level and relation gating to achieve trust-aware feature aggregation, as shown in the following formula:

[0115]

[0116] The core innovation lies in the modulation coefficient. Design:

[0117]

[0118] The modulation coefficients integrate the global importance of relationships learned by the model itself with the true confidence level calculated beforehand in the graph, achieving dual regulation of "model adaptive learning + business prior constraints," making the message transmission process more closely aligned with real-world security business logic. It is a Fourier cyclic correlation operator that enables deep interaction and fusion of node features and relationship features, enhancing the model's ability to capture complex malicious association links.

[0119] This step ultimately outputs a global high-dimensional embedding vector centered on application sample nodes through multi-layer iterative aggregation and encoding compression. This vector fully integrates sample static attributes, multi-entity topological associations, relationship credibility, and deep behavioral semantics, serving as a unified basic representation for subsequent classification, retrieval, and interpretable analysis.

[0120] S204. Based on high-dimensional embedding vectors, perform malicious detection and family classification tasks in parallel to obtain malicious classification results and family classification results for each application sample.

[0121] This application adopts a multi-task learning architecture with shared hard parameters, and performs coarse and fine-level judgment tasks in parallel based on the same set of high-dimensional embedding vectors, avoiding feature redundancy and representation inconsistency caused by independent encoding of multiple tasks.

[0122] Among them, the malicious detection task is a coarse-grained binary classification task, which relies on fully connected layers and the Sigmoid activation function to determine whether the current application sample is a benign application or a malicious application, thereby achieving basic security screening; the family classification task is a fine-grained multi-classification task, which is used to accurately determine the family to which a malicious sample belongs, thereby achieving malicious source tracing.

[0123] To address the training bias caused by the extremely uneven distribution of real malicious samples, the abundance of samples from head families, and the scarcity of samples from tail families, this step introduces a virtual rare class folding strategy and a logarithmic prior correction mechanism. First, the frequency of all family samples in the training set is statistically analyzed. Niche, rare, and novel families with frequencies below a preset frequency threshold are uniformly folded into virtual rare classes to reduce training oscillations caused by the sparsity of long-tail samples.

[0124] Based on this, a logarithmic prior correction formula is introduced to suppress the problem of top families monopolizing the decision space. The formula is as follows:

[0125]

[0126] in, τ is the original output Logit of the model, π is the prior probability distribution of the training set, and τ is the temperature coefficient.

[0127] By applying adaptive penalties to high-frequency categories, the differences in category distribution are leveled out, and sufficient decision boundaries and representation space are reserved for low-frequency rare families, which greatly improves the ability to identify rare malicious families.

[0128] Meanwhile, this application constructs a joint supervision mechanism that integrates multiple losses, combining the BCE malicious detection loss, cross-entropy family classification loss, and delayed-start supervised contrastive loss. The malicious detection task focuses on learning global abnormal behavior features, while the family classification task focuses on learning local homogeneous topological features. The two tasks constrain and regularize each other, effectively suppressing overfitting of a single task and improving the overall generalization ability and adaptability of the model to complex samples.

[0129] This embodiment relies on enhanced heterogeneous graphs with confidence weights to train graph neural networks, achieving differentiated feature aggregation based on relation credibility, effectively avoiding the shortcomings of traditional models that treat noisy relations and valid relations equally; it achieves unified representation of multi-type heterogeneous information through a shared encoder, and relies on multi-task learning and logarithmic prior correction mechanisms to simultaneously consider the accuracy of malicious detection and the ability to identify rare families, solving the technical problems of single static feature expression, loss of topological association, and failure of long-tail family identification in existing technologies, providing high-quality and robust unified embedded representation of samples for subsequent rare family diversion retrieval and interpretable evidence generation.

[0130] Figure 3 This is a flowchart illustrating Embodiment 3 of the malicious application analysis method provided in this application. Figure 3 As shown, this embodiment, based on the family classification results and high-dimensional embedding vectors output in Embodiment 2, achieves accurate tracing of long-tail rare families through intelligent traffic splitting using a lightweight routing model combined with offline vector library similarity retrieval. The steps include:

[0131] S301. Based on a lightweight logistic regression model, the family classification results are routed and split to obtain rare family samples.

[0132] This step constructs a lightweight, low-computing-power logistic regression routing model (Rare Router), specifically designed to perform secondary screening of the rare class prediction results output by the model, eliminating pseudo-rare samples generated by misclassification of ordinary samples, and accurately screening real long-tail family samples.

[0133] Unlike the crude screening method that relies solely on classification probability for simple threshold truncation, this application constructs a five-dimensional fusion routing feature, which comprehensively characterizes the rarity attribute of samples from multiple dimensions, including rarity probability, class confidence difference, global discrimination certainty, and vector similarity matching degree. The structure of the five-dimensional feature vector is as follows:

[0134]

[0135] in, It is the rare class probability of the main model. This represents the difference in predicted probabilities of the top families, reflecting the stability of the top family discrimination. It represents the difference between the global optimal and suboptimal class probabilities, and is used to measure the overall confidence of the model's discrimination. The maximum similarity and the mean similarity of the top five samples in the sample embedding and the offline rare family library are respectively used to help determine whether a sample has long-tail family characteristics from the perspective of representation matching.

[0136] This lightweight logistic regression model is trained offline with parameters solidified using a large number of validation samples. During the inference phase, it only performs linear weighted operations, resulting in extremely low computational overhead and fast response speed. When the model outputs a routing score greater than a preset routing threshold, the sample is determined to be a true rare family sample and enters the retrieval and source tracing branch; otherwise, it is determined to be a normal family sample, and the basic classification result is directly adopted to complete accurate routing.

[0137] This step implements a two-layer discrimination mechanism of "closed set coarse classification + intelligent routing fine screening", which effectively solves the problem of rare class labels mixed with real and fake samples, and avoids the waste of computing power and the risk of mistracing caused by invalid retrieval.

[0138] S302. Compare the high-dimensional embedding vectors corresponding to rare family samples with the preset offline vector library to obtain the long-tail family origin classification results.

[0139] For the real rare family samples obtained through routing screening, this step completes the accurate tracing of families based on the open set retrieval concept, breaking through the technical bottleneck of traditional closed set classification being unable to identify unknown, mutated, and niche families.

[0140] This application pre-constructs an offline long-tail family vector library. The library is based on historical manually annotated and rare, long-tail, and novel variant malicious family samples collected by security vendors. It uniformly uses the shared encoder trained in this application to generate standardized high-dimensional embedding vectors and establishes an index for storage according to family categories, forming a structured and fast-searchable family prototype library.

[0141] During the retrieval process, the high-dimensional embedding vectors of the samples obtained from the model inference in Example 2 are directly reused, eliminating the need for secondary feature extraction and ensuring uniformity of the feature space and consistency of representation. First, L2 normalization is performed on the sample embedding vectors to eliminate modulus interference, and then batch cosine similarity calculation is performed with all prototype vectors in the offline image library.

[0142] The system retrieves Top-K highly similar neighbor samples, aggregates their scores by family category, and uses a comprehensive vote to determine the source attribution of the samples. If the highest aggregated similarity score is greater than a preset safe similarity threshold, the sample is assigned to the corresponding long-tail malicious family. If all matching scores are lower than the threshold, the sample is identified as a new, unknown variant, and an unknown alert is issued, prompting manual review and assessment.

[0143] For example, in step S301 This is the maximum inner product of the offline support library and the average of the Top-5 values. If the logical judgment score... If the result is positive, the sample is intercepted and imported into the retrieval channel; otherwise, the main classification result is directly accepted.

[0144] High-dimensional graph representations are a similarity metric for intercepted Rare samples. The system directly reuses the high-dimensional graph representation vectors output by CompGCN. After L2 normalization, a batch inner product (cosine similarity) is calculated with the offline-constructed rare family reference set (Gallery, containing the embedding vectors of all tail family representative samples). The Top-K (e.g., K=10) nearest neighbors are extracted and their scores are aggregated according to their specific family affiliation. If the highest aggregated score is greater than the safe distance threshold... If the result is positive, it will be traced back to the corresponding long-tail family; otherwise, an alarm signal will be output to remind manual intervention.

[0145] This step fully utilizes the topological homology features of graph embedding vectors, which can accurately capture the subtle topological similarities between rare variant samples and known long-tail families, enabling effective source tracing and identification of novel variants, niche families, and low-sample families.

[0146] This embodiment achieves intelligent identification of true and false rare samples through a lightweight routing model, avoiding the computational redundancy and misjudgment problems caused by full sample retrieval; by reusing the model to uniformly embed features and combining them with an offline family vector library to complete open set homology retrieval, it overcomes the shortcomings of traditional closed classification models that cannot identify long-tail, mutated, and new malicious families, and significantly improves the panoramic identification capability of malicious families with extremely low inference overhead, achieving full coverage detection effect of accurate classification of head families and effective source tracing of tail families.

[0147] Figure 4 This is a flowchart illustrating Embodiment 4 of the malicious application analysis method provided in this application. Figure 4 As shown, this embodiment, based on the results of prior detection, classification, and source tracing, completes model decision attribution, key subgraph extraction, structured evidence chain generation, and intelligent ranking, achieving a complete closed loop from "result output" to "explainable evidence output," specifically including:

[0148] S401. After fixing the parameters of the graph neural network model after training, generate an interpretable subgraph with business semantics.

[0149] This step belongs to the attribution and explanation stage after model inference. All weight parameters of the trained graph neural network are frozen throughout the process, and no parameter updates are performed. Adaptive mask learning and key topology mining are only performed on a single sample to be explained.

[0150] First, a target application sample that has completed malicious detection and family classification is selected as the sample to be explained. The complete updated heterogeneous knowledge graph corresponding to the sample is retrieved, and the local neighborhood topology structure centered on the sample is extracted, including all associated permissions, components, interfaces, network endpoints, certificate entities and mutual relationship edges.

[0151] For this local topology, the edge weight mask corresponding to each relation edge is learned iteratively. The edge weight mask is used to quantify the contribution of a single topological relation to the model's malicious judgment result. The higher the contribution, the larger the mask value, indicating that the relation is the core basis for the model's malicious judgment; the lower the contribution, the smaller the mask value, indicating that the relation is an irrelevant and redundant connection.

[0152] By maximizing the mutual information between the original model predictions and the masked subgraph predictions, and combining this with sparse penalty constraints, the mask is forced to retain only a small number of high-contribution key relationship edges, eliminating a large number of redundant, noisy, and invalid topological connections, ultimately resulting in a simplified local key decision subgraph.

[0153] Furthermore, the tensor index, internal node number, and abstract topology of the model's computation space are accurately mapped back to the real business entities and real semantic relationships of the global heterogeneous knowledge graph, completing the conversion of the model's abstract computation results into secure business semantics, and finally generating an interpretable subgraph with readable business meaning and direct traceability and judgment.

[0154] S402. Based on the preset multi-dimensional evidence template, perform path scanning on the interpretable subgraph to generate multiple candidate evidence chains.

[0155] Among them, the preset multi-dimensional evidence template is used to constrain the path scanning range, relationship combination method and evidence organization form of the interpretable subgraph, so that the scanning results can form a structured candidate evidence chain.

[0156] The nodes in the interpretable subgraph correspond to entities related to the application sample, and the edges correspond to the business semantic relationships between entities. During path scanning, matching is performed along the start and end entity types, connectable relationship types, and hop count range defined in the template, and path segments that meet the constraints are spliced ​​together to form a candidate evidence chain.

[0157] This application pre-constructs a multi-dimensional standardized evidence template system adapted to Android malicious application analysis scenarios. The templates cover various malicious behavior path paradigms such as permission abuse, malicious component loading, dangerous interface calls, high-risk network external connections, illegal certificate signing, and family-based homogeneous association.

[0158] The template clearly defines the starting entity type, ending entity type, allowed relationship types, maximum number of path jumps, and legal association combination rules for the evidence path, ensuring that the evidence path generated by the scan conforms to the network security assessment logic and avoiding meaningless and risk-free invalid path output.

[0159] Based on the interpretable subgraph, a full path traversal and matching scan is performed according to the preset evidence template. For topological paths that meet the template constraints and have malicious risk semantics, fragment splicing and semantic integration are performed to generate multiple structured and standardized candidate evidence chains in batches, which correspond to the malicious behavior characteristics, risk capability characteristics, family homology characteristics and other multi-dimensional judgment criteria of the samples.

[0160] S403. Calculate the basic evidence strength, domain security risk strength, and model activation support for multiple candidate evidence chains, and combine them with the path length penalty term to obtain the comprehensive score of the candidate evidence chains.

[0161] To achieve quantitative evaluation and intelligent screening of the evidence chain, this application constructs a four-dimensional quantitative evaluation system, which comprehensively scores the evidence based on four dimensions: objectivity and authenticity, business risk and harm, model decision dependence, and path simplicity and effectiveness.

[0162] Among them, the basic evidence strength is evaluated by aggregated evaluation based on the confidence weights of the relation edges calculated in the previous steps. The higher the proportion of high-confidence relations in the path, the stronger the objectivity and authenticity of the evidence, effectively avoiding interference from low-confidence noise paths; the domain security risk strength is based on the risk rating of permissions, components, and network behaviors in the security knowledge base, quantifying the malicious harm level corresponding to the path; the model activation support characterizes the degree of matching between the evidence path and the core decision activation region of the model, reflecting the strength of the evidence's support for the model's judgment result; the path length penalty term reduces the score of excessively long, redundant, and complex paths, avoiding complex and invalid paths from dominating the evaluation results.

[0163] Through multi-dimensional weighted fusion calculation, a unique comprehensive score is obtained for each candidate evidence chain, enabling the quantification, comparison, and ranking of evidence chains of different types and dimensions.

[0164] S404. Based on the comprehensive score and the greedy balance rearrangement strategy, filter and rearrange multiple candidate evidence chains, and output the target evidence chain set.

[0165] Traditional single-score ranking is prone to evidence homogenization, meaning that all output evidence represents the same type of permission risk or network risk, failing to comprehensively reflect the multidimensional malicious characteristics of the samples. This step employs a greedy balancing re-ranking strategy, adding a constraint of evidence type diversity to the comprehensive score.

[0166] While screening high-scoring evidence, we ensure that the final output evidence chain collection covers multiple dimensions, including evidence of behavioral facts, evidence of authority risks, evidence of external network connections, evidence of certificate origination, and evidence of family patterns, avoiding the defects of single or one-sided evidence. Finally, we select and output the optimal evidence chain collection that is diversified, highly credible, high-risk, and strongly correlated, forming a complete, verifiable, and verifiable basis for malicious intent assessment.

[0167] This application's embodiments accurately mine key topological subgraphs that the model's decision-making depends on through mask learning, transforming the abstract computational logic of the black-box model into a readable and traceable business topology structure; it generates multi-dimensional candidate evidence chains through multi-template path scanning, and combines multi-dimensional quantitative scoring and balancing rearrangement mechanisms to output a diversified and highly credible set of structured evidence, completely solving the technical pain points of existing graph neural network malicious detection models such as poor interpretability, lack of judgment basis, and inability to support evidence collection and tracing, and significantly improving the reliability, transparency, and engineering practical value of malicious application analysis results.

[0168] Figure 5 A schematic diagram of the malicious application analysis device provided in this application is shown below. Figure 5 As shown, the malicious application analysis device 50 provided in this embodiment includes:

[0169] The data acquisition module 501 is used to acquire the four-dimensional feature data corresponding to each relation edge in the heterogeneous knowledge graph. The four-dimensional feature data includes source reliability, time freshness, extraction quality and context consistency. The heterogeneous knowledge graph is constructed based on application samples.

[0170] The confidence weight acquisition module 502 is used to perform linear weighting on the four-dimensional data of each relation edge according to the confidence quantification model to obtain the confidence weight of each relation edge.

[0171] In one possible implementation, the confidence weight acquisition module 502 is further specifically used for:

[0172] The heterogeneous knowledge graph is updated based on the confidence weights of each relation edge within the heterogeneous knowledge graph, resulting in the updated heterogeneous knowledge graph.

[0173] The graph neural network model is trained based on the confidence weights to obtain the malicious classification results and family classification results for each application sample.

[0174] In one possible implementation, the confidence weight acquisition module 502 is further specifically used for:

[0175] The graph neural network model is trained based on the confidence weights, and the node features of the heterogeneous knowledge graph are extracted and updated.

[0176] Based on the shared encoder, node features are uniformly encoded to obtain high-dimensional embedding vectors for each application sample.

[0177] Based on high-dimensional embedding vectors, the malicious detection task and family classification task are executed in parallel to obtain the malicious classification results and family classification results of each application sample.

[0178] In one possible implementation, the device is also specifically used for:

[0179] Based on a lightweight logistic regression model, the family classification results are routed and split to obtain rare family samples.

[0180] The high-dimensional embedding vectors corresponding to rare family samples are compared with the similarity of the pre-set offline vector library to obtain the long-tail family origin classification results.

[0181] In one possible implementation, the device is also specifically used for:

[0182] After fixing the parameters of the graph neural network model after training, target application samples that have completed the malicious detection task and family classification task are selected as samples to be explained.

[0183] Extract the local neighborhood topology of the sample to be explained in the updated heterogeneous knowledge graph;

[0184] Iteratively learn the edge weight mask of each relation edge in the local neighborhood topology to construct a local key subgraph. The edge weight mask is used to characterize the contribution of each relation edge to the model's judgment result.

[0185] Mapping is performed on local key subgraphs and updated heterogeneous knowledge graphs to generate interpretable subgraphs with business semantics.

[0186] In one possible implementation, the device is also specifically used for:

[0187] Based on a pre-set multi-dimensional evidence template, a path scan is performed on the interpretable subgraph to generate multiple candidate evidence chains;

[0188] The basic evidence strength, domain security risk strength, and model activation support of multiple candidate evidence chains are calculated separately, and the comprehensive score of the candidate evidence chains is obtained by combining the path length penalty term.

[0189] Based on the comprehensive score and the greedy balance rearrangement strategy, multiple candidate evidence chains are screened and rearranged to output the target evidence chain set.

[0190] In one possible implementation, the data acquisition module 501 is further specifically used for:

[0191] Collect multi-source static data of application samples;

[0192] Map the multi-source static data of each application sample to different types of entities and the relationship types between these entities;

[0193] Based on different types of entities and relationships, construct a heterogeneous knowledge graph centered on application samples.

[0194] The malicious application analysis device provided in this embodiment organizes application samples, permissions, components, interface calls, network endpoints, and other objects into a unified graph structure through a heterogeneous knowledge graph construction module. This preserves the semantic hierarchy, connection paths, and topological relationships of multiple types of entities, thus avoiding the compression of complex malicious behaviors into planar discrete features. The confidence weight acquisition module further quantifies the confidence of each relation edge and performs graph enhancement processing accordingly. This highlights high-confidence relations in subsequent analysis and suppresses low-confidence relations, thereby reducing the interference of noisy edges on malicious judgment and family attribution. Therefore, this device can more stably identify multi-hop combination behaviors such as permission abuse, component linkage, and covert external connections, making rare family analysis less likely to be biased towards common categories, and providing traceable structured association evidence for detection results.

[0195] Figure 6 A schematic diagram of the malicious application analysis device provided in this application. Figure 6As shown, the malicious application analysis device 60 provided in this embodiment includes at least one processor 601 and a memory 602. Optionally, the malicious application analysis device 60 further includes a communication component 603. The processor 601, memory 602, and communication component 603 are connected via a bus 604.

[0196] In the specific implementation process, at least one processor 601 executes computer execution instructions stored in memory 602, causing at least one processor 601 to execute the aforementioned malicious application analysis method.

[0197] The specific implementation process of processor 601 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0198] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0199] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0200] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0201] This application also provides a malicious application analysis system, including a computer program that, when executed by a processor, implements the malicious application analysis method described above.

[0202] This system uses a computer program as its methodology. After being invoked by a processor, it completes sample access, APK parsing, graph construction, relationship confidence quantification, graph enhancement, detection classification, and result output. This allows existing security analysis platforms to directly support malicious application-oriented correlation analysis capabilities within their existing workflows. It integrates multiple entities, including permissions, components, and endpoints, and their relationships into a unified processing chain, strengthening high-confidence relationships and suppressing low-confidence relationships. This improves the accuracy of identification in scenarios involving complex malicious logic, multi-hop behavior correlations, and covert external connections. Therefore, even when there are few rare family samples, it can reduce the model's bias towards head categories and form a traceable, structured analytical basis around samples, entities, and relationships, making detection results easier to verify, trace, and audit.

[0203] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the aforementioned malicious application analysis method.

[0204] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0205] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0206] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0207] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0208] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0209] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0210] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0211] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope.

Claims

1. A method for analyzing malicious applications, characterized in that, include: Obtain four-dimensional feature data corresponding to each relation edge in the heterogeneous knowledge graph. The four-dimensional feature data includes source reliability, time freshness, extraction quality, and context consistency. The heterogeneous knowledge graph is constructed based on application samples. Based on the confidence quantification model, the four-dimensional data of each relation edge are linearly weighted to obtain the confidence weight of each relation edge.

2. The malicious application analysis method according to claim 1, characterized in that, Based on the confidence quantification model, after linearly weighting the four-dimensional data of each relation edge to obtain the confidence weight of each relation edge, the method further includes: The heterogeneous knowledge graph is updated based on the confidence weights of each relation edge within the heterogeneous knowledge graph to obtain the updated heterogeneous knowledge graph. The graph neural network model is trained based on the confidence weights to obtain the malicious classification results and family classification results for each application sample.

3. The malicious application analysis method according to claim 2, characterized in that, The graph neural network model is trained based on the confidence weights to obtain the malicious classification results and family classification results for each application sample, including: The graph neural network model is trained based on the confidence weights, and the node features of the updated heterogeneous knowledge graph are extracted. Based on the shared encoder, the node features are uniformly encoded to obtain the high-dimensional embedding vectors of each application sample. Based on the high-dimensional embedding vector, the malicious detection task and the family classification task are executed in parallel to obtain the malicious classification result and the family classification result of each application sample.

4. The malicious application analysis method according to claim 2, characterized in that, The method further includes: Based on a lightweight logistic regression model, the family classification results are routed and split to obtain rare family samples. The high-dimensional embedding vectors corresponding to the rare family samples are compared with the similarity of the vectors in the preset offline vector library to obtain the long-tail family origin classification results.

5. The malicious application analysis method according to claim 4, characterized in that, The method further includes: After fixing the parameters of the graph neural network model after training, target application samples that have completed the malicious detection task and family classification task are selected as samples to be explained. Extract the local neighborhood topology of the sample to be explained in the updated heterogeneous knowledge graph; The edge weight mask of each relation edge in the local neighborhood topology is learned iteratively to construct a local key subgraph. The edge weight mask is used to characterize the degree of contribution of each relation edge to the model's judgment result. The local key subgraph and the updated heterogeneous knowledge graph are mapped to generate an interpretable subgraph with business semantics.

6. The malicious application analysis method according to claim 5, characterized in that, The method further includes: Based on a preset multi-dimensional evidence template, a path scan is performed on the interpretable subgraph to generate multiple candidate evidence chains; The basic evidence strength, domain security risk strength, and model activation support of the multiple candidate evidence chains are calculated respectively, and the comprehensive score of the candidate evidence chains is obtained by combining the path length penalty term. Based on the comprehensive score and the greedy balance rearrangement strategy, the multiple candidate evidence chains are screened and rearranged to output the target evidence chain set.

7. The malicious application analysis method according to claim 1, characterized in that, Before obtaining the four-dimensional feature data corresponding to each relation edge in the heterogeneous knowledge graph, the method further includes: Collect multi-source static data of application samples; The multi-source static data of each application sample is mapped to different types of entities, and the relationship types between the entities are also mapped. Based on the different types of entities and the relationship types, a heterogeneous knowledge graph centered on the application sample is constructed.

8. A malicious application analysis device, characterized in that, include: The data acquisition module is used to acquire four-dimensional feature data corresponding to each relation edge in the heterogeneous knowledge graph. The four-dimensional feature data includes source reliability, time freshness, extraction quality, and context consistency. The heterogeneous knowledge graph is constructed based on application samples. The confidence weight acquisition module is used to perform linear weighting on the four-dimensional data of each relation edge according to the confidence quantification model to obtain the confidence weight of each relation edge.

9. A malicious application analysis device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.

10. A malicious application analysis system, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-7.