Introduction
In the rapidly evolving landscape of cybersecurity, antivirus vendors encounter millions of new malware samples annually. While machine learning models are effective at detecting these threats, they suffer from catastrophic forgetting. When updated with new data, models often lose the ability to recognize older malware—a vulnerability attackers exploit through Retrograde Malware Attacks (RMA).
Traditional solutions involve retraining models from scratch on all historical data, which is computationally and storage-intensive. While "Continual Learning" (CL) aims to solve this incrementally, existing methods—primarily designed for image recognition—struggle with the high-dimensional, tabular, and extremely heterogeneous nature of malware data.
Methodology: The MADAR Framework
The authors introduce MADAR (Malware Analysis with Distribution-Aware Replay), a framework that replaces random data retention with a strategic, distribution-aware approach:
- Isolation Forest (IF) Selection: Instead of random sampling, MADAR uses Isolation Forests to analyze the structure of each malware family.
- Representative vs. Anomalous Mix: The system selects a balanced split of "representative" samples (the core of a family) and "anomalous" samples (outliers). This ensures the model retains knowledge of both common traits and unique variations.
- MADAR$θ$: To handle high-dimensional features (common in Android apps), selection is performed in the latent space using hidden layer activations rather than raw input data.
- Budgeting Strategies: The framework supports "Ratio" budgeting (proportional to family size) for binary detection and "Uniform" budgeting (equal samples per family) for multi-class classification.
Data and Heterogeneity
The study evaluates MADAR on two massive scales: the EMBER (2018) benchmark (1 million Windows PE files) and a newly curated AndroZoo (AZ) benchmark spanning nine years of Android data.
Exploratory analysis revealed that malware families are rarely tight clusters; they often form multiple sub-pockets in feature space. Furthermore, a significant portion of malware lacks clear family labels. MADAR treats these "unlabeled" samples as a diverse group, using outlier detection to ensure the most informative ones are retained for replay.
Key Results
MADAR consistently outperformed prior state-of-the-art methods (such as iCaRL, ER, and AGEM) across various scenarios:
- Efficiency: On the Android dataset, MADAR achieved 96.9% average accuracy using a replay budget of only 50k samples, nearly matching the 97.3% accuracy of a model retrained on the full 680k sample history.
- Superiority in Family Identification: In Class-Incremental scenarios on EMBER, MADAR reached 85.8% accuracy with a 20k sample budget, significantly outperforming the next best method (66.8%).
- Task Performance: In identifying specific behaviors (Task-IL), MADAR-U achieved 98.7% accuracy, essentially matching full retraining while using a fraction of the resources.
Conclusion
By intelligently selecting what to remember, MADAR demonstrates that the quality of replay samples is more critical than quantity. While the initial selection process adds some complexity, the framework provides a scalable path for keeping malware classifiers robust against both new threats and retrograde attacks without the prohibitive costs of constant full retraining.
Summary updated