MalCL: Leveraging GAN-Based Generative Replay to Combat Catastrophic Forgetting in Malware Classification

Jimin Park, AHyun Ji, Minji Park, Mohammad Saidur Rahman, Se Eun Oh
1/2/2025
cs.CRcs.AI

Official code: MalwareReplayGAN/MalCL (12 stars, MIT, last commit 2025-06-10).

Abstract

Continual Learning (CL) for malware classification tackles the rapidly evolving nature of malware threats and the frequent emergence of new types. Generative Replay (GR)-based CL systems utilize a generative model to produce synthetic versions of past data, which are then combined with new data to retrain the primary model. Traditional machine learning techniques in this domain often struggle with catastrophic forgetting, where a model's performance on old data degrades over time. In this paper, we introduce a GR-based CL system that employs Generative Adversarial Networks (GANs) with feature matching loss to generate high-quality malware samples. Additionally, we implement innovative selection schemes for replay samples based on the model's hidden representations. Our comprehensive evaluation across Windows and Android malware datasets in a class-incremental learning scenario -- where new classes are introduced continuously over multiple tasks -- demonstrates substantial performance improvements over previous methods. For example, our system achieves an average accuracy of 55% on Windows malware samples, significantly outperforming other GR-based models by 28%. This study provides practical insights for advancing GR-based malware classification systems. The implementation is available at \url {https://github.com/MalwareReplayGAN/MalCL}\footnote{The code will be made public upon the presentation of the paper}.

View on arXivView PDF

Code Implementations(1)

MIT

Code and Datasets to reproduce the results of the paper ``MalCL: Leveraging GAN-Based Generative Replay to Combat Catastrophic Forgetting in Malware Classification", accepted to be published at the The 39th Annual AAAI Conference on Artificial Intelligence (AAAI) 2025.

125PythonFeb 11, 20241 years agoMIT
aicontinual-learningmalware-researchsecurity

Similar Papers

Cite this paper

@article{park2025malcl,
  title  = {MalCL: Leveraging GAN-Based Generative Replay to Combat Catastrophic Forgetting in Malware Classification},
  author = {Jimin Park and AHyun Ji and Minji Park and Mohammad Saidur Rahman and Se Eun Oh},
  year   = {2025},
  eprint = {2501.01110},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.01110v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.01110.svg)](https://codeofpaper.com/paper/2501.01110)

Discussion