Skip to Content
  • Article
  • Open Access

21 December 2025

16 Pages

Enhancing GNN Explanations for Malware Detection with Dual Subgraph Matching

,
,
and
Canadian Institute for Cybersecurity, University of New Brunswick, Fredericton, NB E3B 5A3, Canada
*
Authors to whom correspondence should be addressed.

Abstract

The increasing sophistication of malware has challenged the effectiveness of conventional detection techniques, motivating the adoption of Graph Neural Networks (GNNs) for their ability to model the structural and semantic information embedded in control flow graphs. While GNNs offer high detection performance, their lack of transparency limits their applicability in security-critical domains. To address this, we present an explainable malware detection framework, which contains a dual explainer. This dual explainer integrates a GNN explainer with a neural subgraph matching approach and the VF2 algorithm. The proposed method identifies and verifies discriminative subgraphs during training, which are later used to explain new predictions through efficient matching. To enhance the generalization of the neural subgraph matcher, we train it using curriculum learning, gradually increasing subgraph complexity to improve matching quality. Experimental evaluations on benchmark datasets demonstrate that the proposed framework retains high classification accuracy while significantly improving interpretability. By unifying explainable graph learning techniques with subgraph matching, the proposed framework enables analysts to gain actionable insights, fostering greater trust in GNN-based malware detectors.

1. Introduction

Malware detection is a vital aspect of cybersecurity, particularly in the face of sophisticated threats that evade traditional detection techniques. Signature-based and heuristic methods often fail against zero-day attacks and obfuscated malware. In response, machine learning models, especially those based on graph representations, have become increasingly popular [1]. Graph structures such as control flow graphs (CFGs), call graphs, and API dependency graphs offer a detailed view of program behavior by capturing both structural and semantic relationships. Graph Neural Networks (GNNs) are particularly well-suited for this task, as they can learn from both the attributes of nodes and their topological context. By modeling how information flows through these graphs, GNNs enable accurate and scalable malware classification [2,3].
Despite their success, GNNs are often criticized for their lack of interpretability. In security applications, where decisions must be justifiable and transparent, explainability is essential. It allows analysts to understand which parts of the input graph most influenced the model’s decision, helps validate predictions in forensic investigations, and supports trust in automated systems. However, explaining GNN decisions is challenging due to their complex message-passing mechanisms and nonlinear transformations over the graph structure. General explainable graph learning methods are often insufficient in this setting, making dedicated GNN-specific explanation techniques necessary.
A variety of explainable GNN methods have been developed to address this challenge. GNNExplainer [4] and PGExplainer [5] are two widely used post hoc approaches that generate instance-specific explanations by learning importance masks over edges and features. GNNExplainer identifies a subgraph and subset of features that preserve the model’s prediction, while PGExplainer trains a parametric model to generalize explanation generation across samples. Other methods such as CFGExplainer [6] are tailored for CFGs and highlight semantically critical edges in malware samples. SubgraphX [7] employs a probabilistic search over possible subgraphs to identify the most influential ones using Shapley value approximations. CaptumExplainer [8], based on PyTorch’s Captum library, integrates gradient-based attribution methods such as Saliency and Integrated Gradients to estimate edge or node importance. Each of these explainers offers different trade-offs between granularity, fidelity, and interpretability. While these explainers highlight important components within a single input graph, they often lack mechanisms for retaining and reusing these explanations across samples. As a result, they do not fully support the identification of recurring malicious patterns that generalize beyond individual instances. This limits their applicability in security scenarios, where understanding consistent and verifiable behavioral structures is crucial for actionable insights.
To address the limitations of existing explainers, we propose a subgraph-based approach that captures and reuses informative patterns throughout the learning pipeline. Rather than discarding the explanatory subgraphs identified during training, we preserve these critical substructures by verifying their relevance and storing them in a dedicated set of verified queries. These verified subgraphs represent characteristic malicious behaviors observed across training samples and are selected based on their contribution to the model’s prediction. During inference, explanation is only performed for test samples that are classified as malware. For these samples, we apply a subgraph matching process to compare their high-importance regions against the verified queries. This enables us to identify and highlight substructures that not only align with the model’s decision but also correspond to those malicious behaviors verified a priori. The result is a new type of explainer, grounded in subgraph matching, that offers high interpretability through structural consistency and semantic alignment, making it especially suitable for security applications.
While classical subgraph matching algorithms such as VF2 [9] and Ullmann [10] offer precise structural comparisons, they are computationally expensive and scale poorly with graph size and complexity. These exact matching methods are often impractical in real-time malware detection scenarios, where rapid inference and large volumes of data are common. In contrast, neural subgraph matching [11] provides a fast and scalable alternative by learning low-dimensional embeddings that capture both structural and semantic characteristics of subgraphs. Although this approach performs approximate rather than exact matching, it significantly reduces computational overhead while still enabling the identification of behaviorally similar substructures.
In this study, we introduce a novel explainable framework for malware detection that integrates dynamic CFG analysis, GNN-based classification, and dual explainer. This contains a GNN explainer, neural subgraph matching, and the VF2 algorithm. The process begins by dynamically extracting CFGs from binary samples, followed by node-level feature embedding and GNN training for binary classification. To enhance interpretability, we apply a state-of-the-art GNN explainer to extract the most influential subgraphs from training samples. These subgraphs are then evaluated to ensure they preserve the model’s original prediction and those are stored as trusted behavioral patterns in a verified query set. During inference, explanation is only performed for samples predicted as malware. These are rapidly and efficiently compared against the verified subgraphs using a high-speed neural subgraph matching model that promptly identifies the presence of behavioral patterns. To improve the robustness and generalization of the neural subgraph matcher, we train it using curriculum learning, starting with simple subgraph pairs and gradually increasing complexity during the training section. For the positively matched queries, an exact matching step using the VF2 algorithm locates the matching region within the target graph. Finally, we assign explanation scores to the nodes based on how frequently they participate in these verified behavioral patterns, resulting in clear and meaningful attributions grounded in both learned representations and structural analysis. The key contributions of this article are as follows:
  • We propose an explainable malware detection framework that combines dynamic CFG extraction, GNN classification, and verified subgraph reuse.
  • We introduce a dual explanation approach that integrates a state-of-the-art GNN explainer, neural subgraph matching, and exact matching (VF2) to provide interpretable and behaviorally consistent explanations.
  • We design a scoring mechanism that ranks nodes based on their alignment with verified malicious substructures, enhancing interpretability and trust in predictions.
The structure of the paper is organized as follows: Section 2 provides a review of the relevant background. Section 3 details the proposed framework for explainable malware detection through dynamic CFG analysis and dual explanation techniques. Section 4 presents the experimental results and analysis. Finally, Section 5 concludes the paper.

3. Proposed Method

This section introduces the proposed framework for explainable malware detection and interpretation using dynamic CFGs, GNNs, subgraph matching mechanism, and a dual-stage explainer. The framework is designed to not only detect malicious software with high accuracy and efficiency but also provide meaningful and reusable explanations by retaining and verifying critical substructures observed during training.
The proposed framework dynamically extracts CFGs from binary samples, where each node represents a basic block and edges denote control flow transitions. To enable effective learning, we embed the features of each basic block into fixed-length vectors using a combination of rule-based and learning-based encoding strategies. For classification, we train a GNN model to distinguish between benign and malicious samples. Once the model is trained, we focus on enhancing explainability by applying a state-of-the-art GNN explainer to the malicious training samples. This explainer assigns importance weights to edges based on their contribution to the classification outcome. However, as the explainer output typically lacks original node features, we re-attach the corresponding embeddings. Next, we extract the most influential subgraph from each explained graph using a selection mechanism guided by edge importance scores. These subgraphs are passed again through the trained GNN model to verify that they retain the original classification label. Verified subgraphs from malicious samples are then stored in a dedicated query set for later reuse. This step ensures that explanations collected during the training are not discarded but instead preserved to better explain future predictions.
In the inference phase, each test sample is first passed through the pre-trained GNN for classification. If the sample is predicted as malicious, it is further analyzed using a neural subgraph matching model to determine whether any verified malicious subgraph exists within it. Neural subgraph matching provides fast, approximate similarity checks, while avoiding the scalability issues of traditional isomorphism-based matching methods. For samples with successful neural matches, we apply the VF2 algorithm to precisely identify the matched region, enabling both structural localization and dual verification. Finally, we assign interpretability scores to nodes based on their frequency of appearance in these matches, resulting in the final explanation output.
In the proposed framework, two distinct GNN models are used, each trained independently and serving a different objective in the workflow. The first GNN model is a binary malware classifier trained on full CFGs. Its sole responsibility is to determine whether a program is benign or malicious. The second GNN model is part of the neural subgraph matching system (NeuroMatch). These two GNNs have different architectures, loss functions, training datasets, and outputs. They operate in completely separate stages of the pipeline, ensuring that subgraph matching does not influence malware classification, but is activated only after a malicious prediction is made.
In the remainder of this section, we present the proposed methodology in detail. The proposed framework is composed of multiple stages, as illustrated in Figure 1.
Figure 1. The proposed malware detection framework with dual explanation.
Let F denote the set of programs under analysis. Each program f ∈ F is executed in a controlled environment to dynamically extract its corresponding CFG, denoted by G f = ( V f , E f ) , where V f is the set of nodes representing basic blocks or instructions, and E f ⊆ V f × V f is the set of directed edges that capture control flow transitions between these blocks. The CFG provides a structural and behavioral abstraction of the program’s execution logic, forming the basis for graph-based learning.
Each node in a CFG contains raw low-level information such as assembly instructions, system calls, or block-level metadata. However, GNNs require fixed-size numerical input vectors, which necessitates a preprocessing step to transform heterogeneous node-level information into compact, semantically meaningful embeddings. To achieve this, we employ a hybrid encoding scheme that combines rule-based mappings with a learning-based autoencoder to encode each node into a fixed-length vector. This process ensures that the resulting embeddings retain semantic fidelity, while being compatible with downstream GNN architectures.
After embedding generation, all CFGs are partitioned into training and test datasets. The training set is utilized to train the GNN model for binary classification, apply the GNN explainer on malicious samples, and extract verified subgraphs that capture consistent malicious patterns. In contrast, the test set is reserved exclusively for evaluating classification performance and performing explanation via subgraph matching during inference.
In the malware classification stage, a GNN model is trained on the extracted CFGs to differentiate between benign and malicious programs. The trained GNN learns both local and global structural patterns by iteratively aggregating node features across the graph, ultimately generating a graph-level representation used for binary classification. Once the model is trained, we evaluate its performance on the training set and identify the samples that are correctly classified as malicious. These samples are forwarded to the next stage, where they serve as input to the first-level explanation module for subgraph extraction.
For each correctly classified malicious sample, we apply a GNN-based explanation module (first-level explanation) to determine the most influential nodes and edges responsible for the model’s prediction. This module offers interpretability by assigning importance scores to graph components, thereby highlighting the substructures that played a significant role in the classification decision. The output of the explainer is the original graph augmented with importance weights on its edges and/or nodes, reflecting their relative contribution to the predicted label.
However, most GNN explainers do not preserve the original node feature embeddings in their output graphs. To address this, we reattach the original node embeddings to their corresponding nodes in a process referred to as Node Embedding Mapping. This step is essential for downstream tasks such as subgraph matching, as it ensures that both structural and semantic node information are retained for subsequent analysis.
To identify the most informative and structurally relevant regions of each malicious graph, we adopt the Greedy Edge-wise Composition (GEC) method [27], a subgraph extraction technique aimed at extracting one subgraph that maximize cumulative edge importance scores. The goal of GEC is to construct a strongly connected subgraph that encapsulates the most salient structural patterns as determined by the explainer module.
Following extraction, each subgraph is subjected to a verification step to confirm its fidelity to the original classification outcome. Specifically, the subgraph is passed through the pre-trained GNN model, and its predicted label is compared with that of the full graph. Only those subgraphs for which the prediction remains consistent are retained. These verified subgraphs are then stored in a dedicated query repository, which serves as a trusted source of representative malicious patterns for subsequent matching and interpretability analysis.

3.1. Neural Subgraph Matching

To enable scalable and approximate identification of malicious patterns during inference, we employ the NeuroMatch [11]. Unlike classical graph matching algorithms such as VF2, which are computationally expensive and unsuitable for large-scale scenarios, NeuroMatch formulates subgraph matching as a learnable problem through neural embedding and metric learning.
NeuroMatch is a neural approach to the subgraph matching problem, which aims to determine whether a query graph G q is isomorphic to a subgraph of a large target graph G t . Instead of performing expensive combinatorial searches, NeuroMatch embeds both graphs using a GNN and performs subgraph matching in the embedding space.
The framework operates in two stages: (1) an embedding stage where G t is decomposed into overlapping k-hop neighborhoods G t ( u ) centered at each node u ∈ V t , and (2) a query stage where the query graph G q is similarly decomposed, and embeddings v q and v u of its anchor node q and each node u ∈ V t are compared.
The core of NeuroMatch is the use of order embeddings, which enforce a partial ordering over subgraphs such that if G q ( q ) ⊆ G t ( u ) , then v q is element-wise less than or equal to v u . This yields the following formal condition:
v q [ d ] ≤ v u [ d ] , ∀ d = 1 , … , D
where D denote the dimensionality of the embedding space. This means that node q should be embedded to the lower-left of node u.
To train the model, a max-margin loss is employed to penalize violations of this order embedding property. Let P be the set of positive pairs ( v q , v u ) , where G q ( q ) ⊆ G t ( u ) , and N be the set of negative pairs. The parameter α is a user-defined margin that controls how strongly the model penalizes negative pairs whose embeddings do not satisfy the ordering constraint. The total loss is:
L = ∑ ( v q , v u ) ∈ P E ( v q , v u ) + ∑ ( v q , v u ) ∈ N max 0 , α − E ( v q , v u )
Here, the violation function E measures the degree to which v q ≰ v u :
E ( v q , v u ) = max 0 , v q − v u 2 2
At query time, to determine whether G q ⊆ G t , the system computes the embeddings and uses the following binary decision function:
f ( v q , v u ) = 1 if E ( v q , v u ) < τ 0 otherwise
To determine if the entire query graph G q is a subgraph of the target G t , NeuroMatch constructs an alignment matrix A ∈ R | V q | × | V t | , where each entry A i j = f ( v q i , v t j ) indicates the predicted match score between node q i ∈ G q and node t j ∈ G t . This matrix encapsulates all potential mappings between query and target node neighborhoods. The geometric intuition behind the order embedding strategy used in NeuroMatch is depicted in Figure 2.
Figure 2. Illustration of order embedding in neural subgraph matching.
The final decision is made by aggregating this matrix, commonly via averaging or voting, across all node pairs. If the aggregated score exceeds a threshold, the model predicts that G q ⊆ G t ; otherwise, it predicts no subgraph match. In the proposed framework, this neural matcher serves as the initial filter for verifying whether any previously extracted and validated malicious subgraph is present in a test-time sample.
To further enhance the learning stability and overcome overfitting [28], we adopt a curriculum learning strategy during the training section. Rather than exposing the model to all training pairs simultaneously, we begin with a simplified task setup by first introducing small positive and negative pairs. As training progresses, we gradually increase the complexity of the input pairs by incorporating larger pairs. This staged exposure allows the model to build robust representations, aligning with the core advantages of curriculum learning. The advantages of applying curriculum learning strategies to miscellaneous real-world scenarios can be mainly summarized as improving the model performance on target tasks and accelerating the training process, which cover the two major requirements in machine learning research [29].

3.2. Localization and Scoring

Samples positively matched via NeuroMatch are further passed to the VF2 algorithm for precise localization and dual verification. While NeuroMatch efficiently determines whether a query subgraph is present in a sample, it does not specify the exact location of the match within the target graph. To address this, we employ the VF2 algorithm, a classical graph isomorphism-based technique, which searches for exact subgraph matches by recursively mapping nodes between the query and the target graphs while preserving topological and attribute consistency. The output of VF2 is a set of node-to-node mappings that identify where the verified query subgraph is embedded within the matched sample.
Upon successful localization, we assign interpretability scores to nodes in the target (malicious) graph using a frequency-based scoring scheme called Node Risk Scoring. This process aggregates the number of times each node appears in a verified match across all queries stored in the query box. Intuitively, nodes that repeatedly participate in subgraph matches are more likely to be associated with malicious behavior and are therefore assigned higher risk scores.
Let G t = ( V t , E t ) be a malicious sample graph, and let Q denote the repository of verified malicious query subgraphs accumulated during the training phase. From this set, define Q match ⊆ Q as the subset of queries for which a positive match with G t is identified by the NeuroMatch module. Each query G q ∈ Q match is then passed to the VF2 algorithm, which yields a node-level mapping ϕ q : V q → V t identifying the localized match of the query within the sample graph.
We define the node risk score function R : V t → N as:
R ( v ) = ∑ G q ∈ Q match 1 [ v ∈ Im ( ϕ q ) ] ,
where 1 [ · ] is the indicator function and Im ( ϕ q ) denotes the set of nodes in G t that were matched with nodes in G q . This scoring strategy assigns a higher risk score to nodes that are repeatedly involved in matched subgraphs, thereby highlighting their potential importance in the model’s malicious classification decision. Figure 3 shows the process of the proposed explanation method for malware samples.
Figure 3. Malware explanation via neural subgraph matching, localization, and scoring.
The complete end to end workflow of the proposed detection and explanation framework is summarized in Algorithm 1, which outlines the main training and inference steps, from CFG extraction and classification to subgraph matching and node risk scoring.
Algorithm 1: Proposed detection and dual stage explanation workflow.
Make 08 00002 i001

4. Results and Analysis

For our experiments, we utilized malicious samples from the BODMAS [30] and PMML [31] datasets, alongside benign samples drawn from the DikeDataset [32]. A summary of the characteristics of these datasets is presented in Table 2.
Table 2. Characteristics of the evaluated datasets.
To obtain CFGs, we used the angr library (version 9.2) [33,34,35], a Python-based analysis framework that integrates symbolic execution and constraint solving for recovering execution level control flows. All binaries were analyzed on a 64 bit Linux environment (Ubuntu 22.04) using the default VEX lifter for x86 64 architectures. In this study, the term “dynamic CFG” refers to the use of angr’s symbolic execution driven analysis rather than real runtime execution in a sandbox. Specifically, we employed the CFGEmulated component, which explores feasible paths through selective symbolic execution and resolves control transfers via constraint solving. Although this procedure does not reproduce full system execution, it is a widely used technique for approximating runtime behavior in binary analysis. The dynamically generated CFGs used in our experiments are publicly available. (Available at http://cicresearch.ca/CICDataset/CIC-DGG-2025/Dataset/, accessed on 2 May 2025).
To embed node features, we adopted the approach introduced in [27], utilizing a symmetrical autoencoder to reduce the original 439-dimensional feature vectors to a 64-dimensional latent representation. The encoder consists of three fully connected layers with dimensions 439→256→128→64, each followed by a ReLU activation. The decoder mirrors this structure in reverse, reconstructing the input as 64→128→256→439. The model was trained for 500 epochs using the Adam optimizer (learning rate = 0.0001) to minimize the mean squared error between the input and the reconstructed output. The resulting 64-dimensional embeddings were used as input features for downstream graph learning.
For graph classification, we experimented with several GNN architectures, including GCN, GAT, GraphSAGE, and GIN. All models share the same architecture consisting of three graph convolution layers with 64 hidden units and ReLU activations. A global mean pooling layer aggregates node embeddings into a graph-level representation, followed by a dropout layer (rate = 0.2) and a fully connected layer for binary classification. The model was trained using the Adam optimizer (learning rate = 0.0001, and weight decay = 0.0005) and cross-entropy loss over 50 epochs, with a 50/50 train–test split.
Table 3 reports the class specific precision, recall, and F1 score for benign and malicious samples, together with the overall accuracy achieved by each model. Among the evaluated architectures, GCN attained the strongest performance, reaching an accuracy of 96.02 percent, with F1 scores of 0.8927 for the benign class and 0.9756 for the malicious class. Figure 4 presents the corresponding ROC curves, offering further evidence of the comparative detection behaviour of the models. Owing to its consistently superior results, GCN was adopted as the backbone for the subsequent explanation stage.
Table 3. Evaluation metrics of GNN models for the malware detection task.
Figure 4. ROC curves for GNN models.
For the first level explanation module, we evaluate several state of the art post hoc explainability techniques, including GNNExplainer, PGExplainer, and the CaptumExplainer framework, which is applied using three attribution methods: Integrated Gradients (IG), Guided Backpropagation (GBP), and Saliency (SAL). To assess the quality of the explanations, we adopt the characterization score introduced in [40], defined as the harmonic mean of F i d e l i t y + and one minus F i d e l i t y − . This metric provides a balanced measure of how faithfully an explainer identifies both influential and non influential components of the graph. Figure 5 presents the characterization profiles of the five explainers across varying sparsity levels. A high Characterization score indicates that the explanation subgraph is simultaneously indispensable and self-sufficient in determining the model’s prediction, thus providing a more comprehensive measure of explainability quality. According to these results, IG achieves the highest characterization score consistently, and is therefore selected as the primary GNN explainer for the subsequent analysis.
Figure 5. Characterization scores of the five explainers across sparsity levels.
To facilitate efficient training of the NeuroMatch model and to enhance generalization across varying graph sizes, we adopt a curriculum learning. Specifically, we begin training with smaller target subgraphs and gradually scale up their size across curriculum levels. At each level, the maximum number of nodes in target graphs is increased by powers of two, ranging from 8 to 512 nodes, while the minimum number of nodes in each query is fixed at 3. In order to enforce the target size constraints required by the curriculum plan, we employ a two-step preprocessing approach. First, we pass each full target graph through a first-level explanation module (IG). Next, we apply the GEC algorithm to extract a subgraph of the desired size.
We train the NeuroMatch model using a GraphSAGE architecture with 8 graph convolution layers, each consisting of 64 hidden units. A batch size of 128 is used with an equal number of positive and negative target–query pairs. To construct the training data, we generate both positive and negative pairs, where each pair consists of a target and a query graph. A positive pair indicates that the query is a subgraph of the target, while a negative pair denotes the absence of such a relationship. To ensure the correctness of these labels, we employ the VF2 algorithm for deterministic verification, thereby avoiding reliance on synthetic approximations and preserving label fidelity during training. For lower curriculum levels (with maximum target sizes between 8 and 64), we use 10,000 training batches. For higher levels, we reduce this to 100–1000 batches due to the computational overhead associated with generating and verifying large graph examples. Overall, the trained NeuroMatch model achieves an accuracy of 90.46%, demonstrating its effectiveness in distinguishing subgraph relationships.
Figure 6 presents the results of applying the proposed explanation algorithm to two representative samples. Nodes highlighted in red indicate regions that matched verified query subgraphs. Larger red circles correspond to nodes with higher match frequency across multiple queries, reflecting their elevated relevance.
Figure 6. Highlighted nodes matched with verified queries for two malware samples: (a) sample 1; (b) sample 2.
To compare the scalability of NeuralMatch with traditional subgraph matching algorithms, we evaluated the average runtime of our method against VF2 and VF3 [41]. As shown in Table 4, NeuralMatch significantly outperforms both classical algorithms in terms of computational efficiency, even though its reported time includes both the embedding process and the decision-making phase. For VF2 and VF3, a timeout threshold of 50 s was enforced, and test cases that exceeded this duration were excluded from the reported results. This highlights the practicality of NeuralMatch for large-scale subgraph matching tasks, where traditional methods may become prohibitively slow.
Table 4. Average subgraph matching time (in seconds) for NeuralMatch, VF2, and VF3 across all matching pairs.

5. Conclusions

In this work, we introduced an explainable malware detection framework that integrates dynamic CFG analysis, GNNs, and a dual explanation mechanism. By extracting CFGs from binary samples at runtime, our approach captures rich behavioral patterns essential for accurate malware classification. The GNN model is trained on embedded node features to distinguish between benign and malicious graphs with high accuracy. To enhance interpretability, we proposed a dual explanation strategy combining a GNN explainer, neural subgraph matching, and the VF2 algorithm. The neural subgraph matching component enables extremely fast and scalable comparison between predicted malware samples and a set of pre-verified malicious subgraphs. This rapid filtering step significantly reduces the computational burden before applying the VF2 algorithm for exact localization. Additionally, our node scoring mechanism highlights influential regions in the graph based on their alignment with trusted behavioral patterns, offering transparent and behaviorally grounded explanations. Experimental evaluations on benchmark datasets demonstrated promising results, confirming the practical effectiveness of the proposed framework.
As future work, we aim to extend the framework to support multi-class malware classification and adapt it to evolving malware variants. Incorporating temporal analysis of dynamic CFGs may further enhance the detection of sophisticated attack behaviors. We also plan to explore adaptive subgraph learning techniques to continually update the verified query set based on new threats, further strengthening the framework’s robustness, scalability, and practical relevance in real-world cybersecurity environments.

Author Contributions

Conceptualization, R.R.-F.; methodology, H.S. and R.R.-F.; software, G.H.; validation, G.H.; formal analysis, H.S.; investigation, H.S.; resources, G.H.; data curation, G.H.; writing—original draft preparation, H.S.; writing—review and editing, R.R.-F. and A.A.G.; visualization, H.S.; supervision, R.R.-F. and A.A.G.; project administration, A.A.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The study did not involve the creation of new datasets. All datasets used in this research are publicly available and have been referenced in the manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Shokouhinejad, H.; Razavi-Far, R.; Mohammadian, H.; Rabbani, M.; Ansong, S.; Higgins, G.; Ghorbani, A.A. Recent Advances in Malware Detection: Graph Learning and Explainability. arXiv 2025, arXiv:2502.10556. [Google Scholar] [CrossRef] [Scilit]
  2. Shokouhinejad, H.; Razavi-Far, R.; Higgins, G.; Ghorbani, A.A. Node-Centric Pruning: A Novel Graph Reduction Approach. Mach. Learn. Knowl. Extr. 2024, 6, 2722–2737. [Google Scholar] [CrossRef] [Scilit]
  3. Shokouhinejad, H.; Razavi-Far, R.; Higgins, G.; Ghorbani, A.A. Explainable Attention-Guided Stacked Graph Neural Networks for Malware Detection. arXiv 2025, arXiv:2508.09801. [Google Scholar] [CrossRef] [Scilit]
  4. Ying, Z.; Bourgeois, D.; You, J.; Zitnik, M.; Leskovec, J. GNNExplainer: Generating explanations for graph neural networks. Adv. Neural Inf. Process. Syst. (NIPS) 2019, 32, 1–12. [Google Scholar]
  5. Luo, D.; Cheng, W.; Xu, D.; Yu, W.; Zong, B.; Chen, H.; Zhang, X. Parameterized explainer for graph neural network. In Proceedings of the Proceedings of the 34th International Conference on Neural Information Processing Systems, Vancouver, BC, Canada, 16–20 December 2020. [Google Scholar]
  6. Herath, J.D.; Wakodikar, P.P.; Yang, P.; Yan, G. CFGExplainer: Explaining Graph Neural Network-Based Malware Classification from Control Flow Graphs. In Proceedings of the 2022 52nd Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN), Baltimore, MD, USA, 27–30 June 2022; pp. 172–184. [Google Scholar]
  7. Yuan, H.; Yu, H.; Wang, J.; Li, K.; Ji, S. On explainability of graph neural networks via subgraph explorations. In Proceedings of the PMLR International Conference on Machine Learning, Virtual Conference, 18–24 July 2021; pp. 12241–12252. [Google Scholar]
  8. Baldassarre, F.; Azizpour, H. Explainability Techniques for Graph Convolutional Networks. In Proceedings of the International Conference on Machine Learning (ICML), Workshop on Learning and Reasoning with Graph-Structured Representations, Long Beach, CA, USA, 9–15 June 2019. [Google Scholar]
  9. Cordella, L.P.; Foggia, P.; Sansone, C.; Vento, M. A (sub) graph isomorphism algorithm for matching large graphs. IEEE Trans. Pattern Anal. Mach. Intell. (TPAMI) 2004, 28, 1367–1372. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Ullmann, J.R. An Algorithm for Subgraph Isomorphism. J. ACM 1976, 23, 31–42. [Google Scholar] [CrossRef] [Scilit]
  11. Ying, R.; Lou, Z.; You, J.; Wen, C.; Canedo, A.; Leskovec, J. Neural Subgraph Matching. arXiv 2020, arXiv:2007.03092. [Google Scholar] [CrossRef] [Scilit]
  12. Peng, H.; Yang, J.; Zhao, D.; Xu, X.; Pu, Y.; Han, J.; Yang, X.; Zhong, M.; Ji, S. MalGNE: Enhancing the Performance and Efficiency of CFG-Based Malware Detector by Graph Node Embedding in Low Dimension Space. IEEE Trans. Inf. Forensics Secur. 2024, 19, 4881–4896. [Google Scholar] [CrossRef] [Scilit]
  13. Gu, J.; Zhu, H.; Han, Z.; Li, X.; Zhao, J. GSEDroid: GNN-based Android malware detection framework using lightweight semantic embedding. Comput. Secur. 2024, 140, 103807. [Google Scholar] [CrossRef] [Scilit]
  14. Li, Q.; Zhang, B.; Tian, D.; Jia, X.; Hu, C. MDGraph: A novel malware detection method based on memory dump and graph neural network. Expert Syst. Appl. 2024, 255, 124776. [Google Scholar] [CrossRef] [Scilit]
  15. Alani, M.M.; Mashatan, A.; Miri, A. XMal: A lightweight memory-based explainable obfuscated-malware detector. Comput. Secur. 2023, 133, 103409. [Google Scholar] [CrossRef] [Scilit]
  16. Li, C.; Cheng, Z.; Zhu, H.; Wang, L.; Lv, Q.; Wang, Y.; Li, N.; Sun, D. DMalNet: Dynamic malware analysis based on API feature engineering and graph learning. Comput. Secur. 2022, 122, 102872. [Google Scholar] [CrossRef] [Scilit]
  17. He, Y.; Liu, Y.; Wu, L.; Yang, Z.; Ren, K.; Qin, Z. MsDroid: Identifying Malicious Snippets for Android Malware Detection. IEEE Trans. Dependable Secur. Comput. 2023, 20, 2025–2039. [Google Scholar] [CrossRef] [Scilit]
  18. Chen, S.; Lang, B.; Liu, H.; Chen, Y.; Song, Y. Android malware detection method based on graph attention networks and deep fusion of multimodal features. Expert Syst. Appl. 2024, 237, 121617. [Google Scholar] [CrossRef] [Scilit]
  19. Alani, M.M.; Awad, A.I. Paired: An explainable lightweight android malware detection system. IEEE Access 2022, 10, 73214–73228. [Google Scholar] [CrossRef] [Scilit]
  20. Soi, D.; Sanna, A.; Maiorca, D.; Giacinto, G. Enhancing android malware detection explainability through function call graph APIs. J. Inf. Secur. Appl. 2024, 80, 103691. [Google Scholar] [CrossRef] [Scilit]
  21. Wang, Z.; Zhang, K.; Yang, S.; He, D.; Chan, S. Enhancing Android malware detection via knowledge distillation on homogenized function call graphs. Knowl. Based Syst. 2025, 323, 113687. [Google Scholar] [CrossRef] [Scilit]
  22. Wang, Z.; Zeng, K.; Wang, J.; Li, D. FAGnet: Family-aware-based android malware analysis using graph neural network. Knowl. Based Syst. 2024, 289, 111531. [Google Scholar] [CrossRef] [Scilit]
  23. Amjath, M.; Henna, S.; Rathnayake, U. Graph representation federated learning for malware detection in Internet of health things. Results Eng. 2025, 25, 103651. [Google Scholar] [CrossRef] [Scilit]
  24. Bu, S.J.; Cho, S.B. Triplet-trained graph transformer with control flow graph for few-shot malware classification. Inf. Sci. 2023, 649, 119598. [Google Scholar]
  25. Feng, P.; Gai, L.; Yang, L.; Wang, Q.; Li, T.; Xi, N.; Ma, J. DawnGNN: Documentation augmented windows malware detection using graph neural network. Comput. Secur. 2024, 140, 103788. [Google Scholar] [CrossRef] [Scilit]
  26. Shokouhinejad, H.; Razavi-Far, R.; Higgins, G.; Ghorbani, A.A. Dual Explanations via Subgraph Matching for Malware Detection. arXiv 2025, arXiv:2504.20904. [Google Scholar] [CrossRef] [Scilit]
  27. Shokouhinejad, H.; Higgins, G.; Razavi-Far, R.; Mohammadian, H.; Ghorbani, A.A. On the consistency of GNN explanations for malware detection. Inf. Sci. 2025, 721, 122603. [Google Scholar] [CrossRef] [Scilit]
  28. Li, X.; Fan, Z.; Huang, F.; Hu, X.; Deng, Y.; Wang, L.; Zhao, X. Graph Neural Network with curriculum learning for imbalanced node classification. Neurocomputing 2024, 574, 127229. [Google Scholar] [CrossRef] [Scilit]
  29. Wang, X.; Chen, Y.; Zhu, W. A Survey on Curriculum Learning. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 44, 4555–4576. [Google Scholar] [CrossRef] [Scilit]
  30. Yang, L.; Ciptadi, A.; Laziuk, I.; Ahmadzadeh, A.; Wang, G. BODMAS: An open dataset for learning based temporal analysis of PE malware. In Proceedings of the 2021 IEEE Security and Privacy Workshops (SPW), San Francisco, CA, USA, 27 May 2021; pp. 78–84. [Google Scholar]
  31. Practical Security Analytics LLC. PE Malware Machine Learning Dataset. 2024. Available online: https://practicalsecurityanalytics.com/pe-malware-machine-learning-dataset/ (accessed on 8 June 2024).
  32. Iosif, G. DikeDataset. 2021. Available online: https://github.com/iosifache/DikeDataset (accessed on 27 February 2024).
  33. Shoshitaishvili, Y.; Wang, R.; Salls, C.; Stephens, N.; Polino, M.; Dutcher, A.; Grosen, J.; Feng, S.; Hauser, C.; Kruegel, C.; et al. SoK: (State of) The Art of War: Offensive Techniques in Binary Analysis; IEEE: San Jose, CA, USA, 2016. [Google Scholar]
  34. Stephens, N.; Grosen, J.; Salls, C.; Dutcher, A.; Wang, R.; Corbetta, J.; Shoshitaishvili, Y.; Kruegel, C.; Vigna, G. Driller: Augmenting Fuzzing Through Selective Symbolic Execution; IEEE: San Jose, CA, USA, 2016. [Google Scholar]
  35. Shoshitaishvili, Y.; Wang, R.; Hauser, C.; Kruegel, C.; Vigna, G. Firmalice—Automatic Detection of Authentication Bypass Vulnerabilities in Binary Firmware; Internet Society: San Diego, CA, USA, 2015. [Google Scholar]
  36. Kipf, T.N.; Welling, M. Semi-Supervised Classification with Graph Convolutional Networks. In Proceedings of the International Conference on Learning Representations (ICLR), Toulon, France, 24–26 April 2017. [Google Scholar]
  37. Xu, K.; Hu, W.; Leskovec, J.; Jegelka, S. How Powerful Are Graph Neural Networks? In Proceedings of the International Conference on Learning Representations (ICLR), New Orleans, LA, USA, 6–9 May 2019. [Google Scholar]
  38. Hamilton, W.L.; Ying, R.; Leskovec, J. Inductive representation learning on large graphs. In Proceedings of the 31st International Conference on Neural Information Processing Systems (NIPS), Long Beach, CA, USA, 4–9 December 2017; pp. 1025–1035. [Google Scholar]
  39. Veličković, P.; Cucurull, G.; Casanova, A.; Romero, A.; Liò, P.; Bengio, Y. Graph Attention Networks. In Proceedings of the International Conference on Learning Representations (ICLR), Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
  40. Amara, K.; Ying, Z.; Zhang, Z.; Han, Z.; Zhao, Y.; Shan, Y.; Brandes, U.; Schemm, S.; Zhang, C. GraphFramEx: Towards Systematic Evaluation of Explainability Methods for Graph Neural Networks. In Proceedings of the The First Learning on Graphs Conference, Amsterdam, The Netherlands, 24–26 October 2022. [Google Scholar]
  41. Carletti, V.; Foggia, P.; Saggese, A.; Vento, M. Challenging the Time Complexity of Exact Subgraph Isomorphism for Huge and Dense Graphs with VF3. IEEE Trans. Pattern Anal. Mach. Intell. 2018, 40, 804–818. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.