TL;DR
Machine learning models for Android malware detection degrade over time as malware evolves—a phenomenon known as concept drift. To help researchers study and solve this, the authors introduce LAMDA, a massive, longitudinally structured dataset of over 1 million Android apps spanning 12 years. LAMDA provides a highly realistic, challenging benchmark that proves current state-of-the-art drift adaptation methods are insufficient for long-term malware detection.
What Problem Does This Paper Address?
Machine learning (ML) is highly effective at detecting Android malware by analyzing static features of application packages (APKs). However, malware authors actively adapt. They obfuscate code, inject alternative API calls, and exploit new Android services to evade detection. Meanwhile, benign apps also evolve as developer practices and Android APIs change.
This continuous evolution causes concept drift—the underlying data distribution shifts over time, causing previously trained ML models to lose accuracy and misclassify new threats. To build models that can adapt to this drift, researchers need large, temporally diverse datasets. Unfortunately, existing Android malware datasets are often outdated, too small, or lack the long-term temporal structure required to properly study how malware behavior shifts over a decade.
Methods
To build a better benchmark, the authors constructed a massive dataset and evaluated how standard ML models hold up over time:
- Data Collection & Labeling: The authors pulled APKs from the AndroZoo repository. They used VirusTotal detection counts to label apps (0 = benign, $\ge$ 4 = malware) and used the AVClass2 tool to group malware into specific families.
- Feature Extraction: They statically decompiled the APKs to extract "Drebin-style" features, including requested permissions, hardware components, intent filters, and suspicious API calls. These were vectorized into a bag-of-tokens format and reduced using variance thresholding.
- Temporal Evaluation: They evaluated standard classifiers (LightGBM, XGBoost, SVM, MLP, detectBERT, ViT) using an "AnoShift-style" temporal split. Models were trained on data from 2013–2014 and tested on an In-Distribution (IID) set, a NEAR future set (2016–2017), and a FAR future set (2018–2025).
- Drift Analysis: The team used Jeffreys divergence and t-SNE to visualize feature shifts, and SHAP to track how the importance of specific features changed over time.
Datasets
- LAMDA (Introduced): The Longitudinal Android Malware Benchmark for Concept Drift Analysis. It contains 1,008,381 samples (~37% malware, 63% benign) spanning 2013 to 2025 (excluding 2015). It covers 1,380 distinct malware families and over 150,000 singleton samples.
- APIGraph (Baseline): An older, widely used dataset (2012–2018) containing ~322,000 samples. The authors use APIGraph to demonstrate that LAMDA exhibits much stronger, more realistic concept drift.
Key Insights and Ideas
- Drift is severe and inevitable: Models trained on older data fail spectacularly on newer data. The false negative rate skyrockets as the temporal gap widens, proving that static models cannot be deployed long-term without continuous adaptation.
- The "Why" behind the drift: SHAP analysis revealed that the actual logic the models rely on fluctuates wildly over the years. Features highly predictive of malware in 2014 might be completely irrelevant by 2018.
- Current adaptation methods are failing: State-of-the-art Concept Drift Adaptation (CDA) techniques that look great on older datasets completely fail to generalize on LAMDA.
- The ground truth changes: The authors found that VirusTotal labels change over time, complicating how we define "ground truth" in longitudinal studies.
Key Results
Comparison of model F1 scores over time on LAMDA versus the older APIGraph dataset. Source, p. 4
- Massive Performance Drops: On LAMDA, a LightGBM model's F1-score plummeted from 97.49% on the IID test set to 59.48% in the NEAR split, and down to 47.24% in the FAR split.
- Surging False Negatives: The False Negative Rate for LightGBM jumped from a mere 1.47% (IID) to 64.10% (FAR), meaning the majority of modern malware easily bypassed the older model.
- SOTA CDA Methods Fall Short: When applying a top-tier active learning drift adaptation method with a labeling budget of 400 samples, it achieved a ~92% F1-score on the older APIGraph dataset, but only a 43% F1-score on LAMDA.
Limitations and Future Work
Limitations: * LAMDA relies entirely on static features. It does not capture dynamic runtime behaviors or complex control-flow graphs, which are increasingly necessary to catch heavily obfuscated malware. * The dataset attempts to maintain a balanced ratio of malware to benign apps. In the real world, the ratio is heavily skewed toward benign apps.
Future Work: The authors plan to extend LAMDA by incorporating multi-modal features, including dynamic sandbox behaviors and threat-intelligence feeds. They also suggest the community use LAMDA to develop better continual learning and semi-supervised models that can handle both feature drift and label drift simultaneously.
Summary updated