Abstract
Machine learning models for Android malware detection frequently degrade due to concept drift, where the statistical properties of malicious and benign applications change over time. This paper proposes a drift-analysis framework using a novel metric, T-stability, to identify specific features contributing to performance decay. We introduce SVM-CB, a time-aware classifier that constrains the weights of these unstable features. Evaluation on a large-scale Android dataset from AndroZoo (2014–2016) demonstrates that SVM-CB maintains significantly higher recall over time compared to state-of-the-art baselines like Drebin, offering a more robust solution for long-term deployment.
Introduction
In Android security, models trained on current data often become obsolete within a year. This phenomenon, known as concept drift, occurs as attackers evolve their tactics to evade detection and legitimate developers adopt new APIs. While most research focuses on detecting drift or frequent retraining, these are reactive measures. This work aims to understand the root causes of performance decay to build classifiers that are inherently robust to temporal changes.
Methodology
The proposed framework introduces two key components to combat drift:
T-stability (Temporal Feature Stability)
T-stability quantifies a feature's contribution to model degradation. It is defined as the product of the classifier's weight for a feature and its temporal slope (change in frequency over time). Features with high weights and high temporal volatility are identified as "unstable" and primary drivers of drift.
SVM-CB (SVM with Custom Bounds)
To mitigate the impact of unstable features, the authors developed SVM-CB. Unlike standard SVMs, this model uses constrained optimization to "clip" the weights of features identified as unstable by the T-stability metric. By limiting reliance on volatile characteristics, the model achieves greater longevity.
Experimental Setup
The study utilized a dataset of 116,993 legitimate and 12,735 malicious Android applications from the AndroZoo repository, spanning January 2014 to December 2016. A "time-aware" split was employed: training on 2014 data and testing on 2015–2016 data to simulate real-world deployment. The baseline for comparison was Drebin, a prominent linear malware detector.
Key Insights and Results
Analysis revealed that drift is primarily driven by two factors: malware authors mimicking benign software (e.g., injecting legitimate URLs) and the deprecation of older, easily detectable malicious techniques. Notably, the "Pareto Principle of Decay" applies: approximately 100 features out of hundreds of thousands account for most of the performance drop.
The results highlight a trade-off between peak initial performance and stability. While a standard SVM may start with higher accuracy, its recall plummeted from ~76% to 28.8% over 16 months. In contrast, SVM-CB maintained a stable recall between 50-60%. Furthermore, by the 10th month of deployment, the time-aware SVM-CB consistently outperformed the baseline in terms of Area Under the ROC Curve (AUC) at a 5% False Positive Rate.
Conclusion
This research demonstrates that understanding the temporal stability of features is crucial for building sustainable malware detectors. By bounding the influence of volatile features, SVM-CB provides a robust alternative to frequent retraining. Future work will explore extending this framework to non-linear models and incorporating continual learning techniques.
Summary updated