arXiv:2604.22084cs.LG2026-04被引 8

用生成式AI合成恶意软件样本,解决数据少导致的检测难题。

Generating Synthetic Malware Samples Using Generative AI

  • 将二进制拆解为指令序列,用NLP提取上下文特征辅助生成
  • 基于扩散模型生成的数据使小类分类准确率平均提升60%
  • 适合缺乏数据的恶意软件研究者使用,尤其提升罕见样本识别能力

恶意软件攻击对各类组织造成重大负面影响。近年来,研究人员越来越多地采用机器学习应对复杂的代码混淆技术,但收集涵盖多种混淆方式的恶意软件样本极为困难,尤其对于新出现的恶意软件,往往需要数年时间。这一问题进一步加剧了机器学习模型在训练数据稀缺时表现不佳的固有缺陷。本文提出一种新系统,通过生成合成恶意软件样本以扩充不平衡数据集。方法将恶意软件二进制分解为助记符操作码序列,利用自然语言处理提取操作码特征背后的上下文语义,辅助生成式AI(包括GAN、WGAN-GP和改进的扩散模型)进行生成。实验结果表明,使用扩散模型生成的合成数据可使少数类别分类性能平均提升60%,整体恶意软件分类准确率达到96%,较之前提升8%。这些结果证明合成数据质量高、保真度强且具有鲁棒性,适用于恶意软件分析。特别是,在已知恶意软件数据量极小时,合成数据仍能有效提升少数类别分类与检测率。

原文摘要 · Abstract (English)

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.

恶意软件生成生成式AI数据增强

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。