Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Generating Synthetic Malware Samples Using Generative AI

About

Malware attacks have a significant negative impact on organizations of varied scales in the field of cybersecurity. Recently, malware researchers have increasingly turned to machine learning techniques to combat sophisticated obfuscation methods used in malware. However, collecting a diverse set of malware samples with various obfuscation techniques is challenging and often takes years, especially for newly developed malware. This issue is further compounded by a well-known limitation of machine learning models: their poor performance when training data is scarce. In this paper, we propose a new system for generating synthetic malware samples to augment imbalanced malware dataset. Our approach decomposes malware binary samples into mnemonic opcode sequences, leveraging natural language processing to extract contextual meaning behind malware opcode features to aid the learning of generative AI (GenAI) employed in this paper, Generative Adversarial Networks (GAN), Wasserstein Generative Adversarial Networks with Gradient Penalty (WGAN-GP), and a modified Diffusion model. The experiment results show that augmenting training data with Diffusion-based synthetic data significantly improves classification performance for minor classes by up to 60% on average. This enhancement ultimately leads to an overall malware classification performance of 96%, an 8% improvement. These findings demonstrate the high quality and fidelity of the synthetic data, its robustness, and its potential applications in malware analysis. Specifically, synthetic malware data proves effective in improving the classification of minor malware classes and detection rates, even though the size of known malware data is significantly small.

Tiffany Bao, Kylie Trousil, Quang Duy Tran, Fabio Di Troia, Younghee Park• 2026

Related benchmarks

TaskDatasetResultRank
Malware ClassificationMalware Synthetic Real (train test)
F1 Score100
9
Binary ClassificationEnterak A (train)
F1 Score99.2
9
Binary ClassificationEnterak.A (test)
F1 Score98.3
9
Binary ClassificationRenos (train)
F1 Score95.9
9
Binary ClassificationRenos (test)
F1 Score93.7
9
Binary ClassificationVobfus (test)
F1 Score99
9
Binary ClassificationVobfus (train)
F1 Score99.1
9
Binary ClassificationBeebone (train)
F1 Score92.9
9
Binary ClassificationBeebone (test)
F1 Score90.8
9
Malware ClassificationMalware dataset
F1 Score95.1
6
Showing 10 of 10 rows

Other info

Follow for update