[Paper Review] Heterogeneous Graph Matching Networks
This paper proposes MatchGNet, a heterogeneous graph matching network that learns program behavior representations and similarity metrics simultaneously using graph neural networks to detect unknown malware. By modeling execution behaviors as invariant heterogeneous graphs and employing a Siamese network with hierarchical attention, MatchGNet reduces false positives by 50% compared to state-of-the-art methods while achieving zero false negatives in malware detection.
Information systems have widely been the target of malware attacks. Traditional signature-based malicious program detection algorithms can only detect known malware and are prone to evasion techniques such as binary obfuscation, while behavior-based approaches highly rely on the malware training samples and incur prohibitively high training cost. To address the limitations of existing techniques, we propose MatchGNet, a heterogeneous Graph Matching Network model to learn the graph representation and similarity metric simultaneously based on the invariant graph modeling of the program's execution behaviors. We conduct a systematic evaluation of our model and show that it is accurate in detecting malicious program behavior and can help detect malware attacks with less false positives. MatchGNet outperforms the state-of-the-art algorithms in malware detection by generating 50% less false positives while keeping zero false negatives.
Motivation & Objective
- To address the limitations of signature-based and behavior-based malware detection, particularly their inability to detect unknown or zero-day malware.
- To overcome challenges in detecting unknown programs, including complex heterogeneous dependencies, lack of intrinsic similarity metrics, large event spaces, and program aliases.
- To develop a data-driven model that learns from benign programs only, enabling detection of unknown malicious behavior without requiring malware training samples.
- To minimize false positives while maintaining zero false negatives in detecting malicious program behavior.
- To improve similarity learning between program execution traces using graph representation learning and Siamese networks.
Proposed method
- Construct an invariant heterogeneous graph to model nonlinear, hierarchical dependencies between system entities (e.g., system calls, file operations) in program execution traces.
- Design a hierarchical attentional graph neural encoder to learn contextualized node representations from the heterogeneous graph structure.
- Employ a Siamese network architecture to jointly train the graph encoder and learn a similarity metric between unknown programs and known benign programs.
- Train the model exclusively on benign program execution data, avoiding any malware samples to improve generalization to unknown threats.
- Use contrastive loss during training to optimize similarity scores, enabling the model to distinguish malicious from benign behaviors based on structural and semantic similarities.
- Apply the trained model to detect unknown programs by computing similarity scores against known benign programs and triggering alerts when similarity falls below a threshold.
Experimental results
Research questions
- RQ1Can a graph-based representation learning model effectively capture the complex, heterogeneous dependencies in program execution behaviors for malware detection?
- RQ2How can a similarity metric be learned end-to-end from benign program data to detect unknown malicious programs without requiring labeled malware samples?
- RQ3To what extent can a heterogeneous graph matching network reduce false positives compared to existing state-of-the-art methods in real-world malware detection?
- RQ4Does incorporating hierarchical attention in graph neural networks improve the model’s ability to detect subtle behavioral differences between benign and malicious programs?
- RQ5Can the model generalize to real-world attack scenarios with diverse malware families and complex attack chains?
Key findings
- MatchGNet achieves an AUC of 99% on known malware detection, outperforming all baselines by at least 4 percentage points.
- In detecting unknown programs, MatchGNet achieves an accuracy of 96%, with a 46% higher accuracy than SVM and 14% higher than logistic regression.
- MatchGNet reduces false positives by 50% compared to the state-of-the-art baseline—57 false positives versus 115—while still capturing all 154 real malware alerts in enterprise attack simulations.
- The optimal hyperparameters for MatchGNet are 3 layers and 500 hidden neurons, which maximize AUC and prevent overfitting with minimal resource overhead.
- The model maintains zero false negatives across all evaluation settings, demonstrating strong reliability in identifying malicious behavior.
- The use of hierarchical attention in the graph encoder significantly improves semantic feature learning, leading to more accurate and robust similarity scoring.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.