[Paper Review] Task-Aware Meta Learning-based Siamese Neural Network for Classifying Obfuscated Malware
This paper proposes a task-aware meta-learning-based Siamese neural network that improves classification of control-flow-obfuscated malware by fusing entropy features with VGG-16-based image features through a dynamic weight generator. The model achieves >91% accuracy in few-shot learning settings, outperforming baseline SNNs by reducing false positives and enhancing feature clustering via a hybrid loss function.
Malware authors apply different techniques of control flow obfuscation, in order to create new malware variants to avoid detection. Existing Siamese neural network (SNN)-based malware detection methods fail to correctly classify different malware families when such obfuscated malware samples are present in the training dataset, resulting in high false-positive rates. To address this issue, we propose a novel task-aware few-shot-learning-based Siamese Neural Network that is resilient against the presence of malware variants affected by such control flow obfuscation techniques. Using the average entropy features of each malware family as inputs, in addition to the image features, our model generates the parameters for the feature layers, to more accurately adjust the feature embedding for different malware families, each of which has obfuscated malware variants. In addition, our proposed method can classify malware classes, even if there are only one or a few training samples available. Our model utilizes few-shot learning with the extracted features of a pre-trained network (e.g., VGG-16), to avoid the bias typically associated with a model trained with a limited number of training samples. Our proposed approach is highly effective in recognizing unique malware signatures, thus correctly classifying malware samples that belong to the same malware family, even in the presence of obfuscated malware variants. Our experimental results, validated by N-way on N-shot learning, show that our model is highly effective in classification accuracy, exceeding a rate extgreater 91\%, compared to other similar methods.
Motivation & Objective
- To address the high false-positive rates in existing Siamese neural network (SNN)-based malware detection when obfuscated malware variants are present in training data.
- To improve malware family classification under few-shot learning conditions, where only one or a few training samples per family are available.
- To reduce model bias caused by limited training data by leveraging meta-learning with pre-trained features from VGG-16.
- To enhance feature embedding discrimination by combining entropy-based attributes with deep image features for better clustering of obfuscated variants.
- To develop a robust, generalizable model capable of detecting unique malware signatures despite code obfuscation techniques.
Proposed method
- Introduces a task-aware meta-learner network that generates task-specific weights for feature layers using entropy features derived from malware binary code.
- Fuses image features from a pre-trained VGG-16 network with entropy features to form a hybrid input for the Siamese network.
- Employs a hybrid loss function combining contrastive loss and center loss to minimize intra-class variance and maximize inter-class separation in feature space.
- Uses few-shot learning with N-way, N-shot evaluation protocols to train and validate the model on limited data, simulating real-world malware detection scenarios.
- Applies a distance threshold learned from the metric space to compute similarity scores between malware samples, improving classification robustness.
- Utilizes AUC-ROC curves and TPR/FPR analysis to evaluate model performance across one-shot and five-shot learning settings on 5-way, 10-way, and 15-way classification tasks.
Experimental results
Research questions
- RQ1Can a meta-learning-based Siamese network effectively classify malware families when training data includes control-flow-obfuscated variants?
- RQ2How does combining entropy features with deep image features improve classification accuracy in few-shot malware detection?
- RQ3To what extent does the hybrid loss function (contrastive + center loss) enhance clustering of positive and negative pairs in the feature space?
- RQ4How does the model’s performance scale with increasing N-way classification under one-shot and five-shot learning conditions?
- RQ5Does the task-aware meta-learner reduce bias and improve generalization when training data is severely limited?
Key findings
- The proposed model achieved an AUC-ROC of 0.92, 0.91, and 0.80 on 5-way, 10-way, and 15-way one-shot learning tasks, respectively, outperforming generic SNN baselines.
- In five-shot learning, the model achieved 95.6%, 90.7%, and 86.8% accuracy on 5-way, 10-way, and 15-way classification tasks, respectively, demonstrating strong generalization under limited data.
- The hybrid loss function significantly reduced intra-class distances and increased inter-class margins, leading to better-separated feature clusters.
- The task-aware meta-learner effectively adjusted feature embeddings using entropy features, improving classification robustness against obfuscation.
- The model maintained high performance even as N-way increased, indicating scalability and resilience to higher intra-class variance.
- The AUC-ROC curves confirmed that the model’s predictions were consistently more accurate than baseline SNNs, with larger area under the curve across all settings.
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.