[Paper Review] Continuous Learning for Android Malware Detection
This paper proposes a continuous learning framework for Android malware detection that combines hierarchical contrastive learning with active learning using pseudo loss-based uncertainty sampling. By leveraging contrastive embeddings to improve similarity modeling and selecting high-uncertainty samples for labeling, the method reduces the false negative rate from 14% (baseline) to 9% and maintains stable performance over seven years, outperforming prior active learning approaches in concept drift scenarios.
Machine learning methods can detect Android malware with very high accuracy. However, these classifiers have an Achilles heel, concept drift: they rapidly become out of date and ineffective, due to the evolution of malware apps and benign apps. Our research finds that, after training an Android malware classifier on one year's worth of data, the F1 score quickly dropped from 0.99 to 0.76 after 6 months of deployment on new test samples. In this paper, we propose new methods to combat the concept drift problem of Android malware classifiers. Since machine learning technique needs to be continuously deployed, we use active learning: we select new samples for analysts to label, and then add the labeled samples to the training set to retrain the classifier. Our key idea is, similarity-based uncertainty is more robust against concept drift. Therefore, we combine contrastive learning with active learning. We propose a new hierarchical contrastive learning scheme, and a new sample selection technique to continuously train the Android malware classifier. Our evaluation shows that this leads to significant improvements, compared to previously published methods for active learning. Our approach reduces the false negative rate from 14% (for the best baseline) to 9%, while also reducing the false positive rate (from 0.86% to 0.48%). Also, our approach maintains more consistent performance across a seven-year time period than past methods.
Motivation & Objective
- To address concept drift in Android malware detection, where classifiers degrade rapidly over time due to evolving malware and benign app updates.
- To reduce the reliance on human analysts by improving the efficiency of active learning in selecting the most informative samples for labeling.
- To enhance model robustness against both gradual and sudden concept drift by leveraging hierarchical contrastive learning for better similarity modeling.
- To maintain high detection performance over long time periods (e.g., seven years) with minimal labeling effort.
- To improve false negative rate reduction while minimizing false positives in real-world deployment scenarios.
Proposed method
- Proposes a hierarchical contrastive learning framework that models similarity between malware samples at multiple levels: same family (high similarity), different families (weak similarity), and benign samples (dissimilar).
- Introduces a pseudo loss-based uncertainty scoring method that uses contrastive embeddings to identify samples that are far from known clusters, indicating high uncertainty and need for labeling.
- Employs active learning with a fixed labeling budget (e.g., 50 samples/month) to iteratively retrain the classifier using newly labeled samples, enabling continuous adaptation.
- Uses a contrastive loss function that encourages close clustering of similar samples (e.g., same malware family) and separation of dissimilar ones, improving generalization under distribution shift.
- Applies end-to-end training of the contrastive encoder and classifier, allowing uncertainty estimates to be derived directly from the embedding space.
- Validates the method on a seven-year Android app dataset, comparing performance under concept drift with state-of-the-art baselines.
Experimental results
Research questions
- RQ1Can hierarchical contrastive learning improve the detection of new malware families under severe class imbalance?
- RQ2Does uncertainty estimation based on contrastive embeddings lead to better sample selection in active learning for malware detection?
- RQ3How does the proposed method maintain classifier performance over long-term deployment under concept drift compared to prior active learning approaches?
- RQ4Can the method reduce false negative rates significantly while minimizing labeling effort?
- RQ5To what extent does contrastive learning enhance robustness to both gradual and sudden concept drift in Android malware detection?
Key findings
- The proposed method reduces the average false negative rate from 14% (best prior baseline) to 9% over a seven-year period, representing a 35% relative improvement.
- The F1 score remains stable at around 0.94 after recovery from concept drift events, compared to prolonged degradation in the baseline SVM with uncertainty sampling.
- After six months of deployment, the F1 score of a fixed classifier drops from 0.99 to 0.76, highlighting the critical need for continuous learning.
- The method successfully identifies and recovers from the Mecor ransomware family outbreak in 2014 by selecting and labeling Mecor samples in June and July, restoring F1 to 0.94.
- With a labeling budget of 50 samples per month (1% of monthly apps), the method achieves an F1 score of 89%, outperforming existing active learning methods on this benchmark.
- The model maintains consistent performance across time, avoiding the high false negative spikes seen in prior methods, especially during new threat emergence.
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.