Malware Variant Detection via Large Language Models and Conditional Generative Adversarial Networks
摘要
[目的]实现恶意软件变种的精准检测,有助于增强安全情报系统对复杂威胁态势的感知与预判能力,为精准溯源、固定违法证据及法律追责提供智能支撑.[方法]提出一种融合大模型与条件生成对抗网络的恶意软件变种检测模型 CGANB-GA.首先,基于条件生成对抗网络(CGAN),在家族标签控制下建模真实恶意软件的结构特征分布,生成具备判别力的结构向量;随后,通过 Sentence-BERT 模型对结构信息进行模板化自然语言转换与语义嵌入编码,实现从结构空间向语义空间的跨域映射.进一步地,设计门控注意力机制对结构与语义双通道向量进行融合建模,实现对样本真实性与家族属性的联合判别与优化训练.[结果/结论]CGANB-GA 模型在准确率、F1 值等指标上领先其他基线模型,表现出对恶意软件变种的优越检测能力.模型性能提升源自结构特征级数据增强缓解小样本瓶颈、语义建模弥补特征表达空白、注意力机制强化跨模态交互以及对抗训练优化表征能力的协同贡献.
[Purpose]The accurate detection of malware variants serves to enhance the perception and predictive capabili-ties of security intelligence systems with respect to complex threat landscapes,while furnishing intelligent support for pre-cise provenance tracing,the preservation of illegal evidence,and legal prosecution.[Method]A malware variant detec-tion model,designated as CGANB-GA,which integrates large-scale models with conditional generative adversarial net-works,is proposed herein.Initially,leveraging the Conditional Generative Adversarial Network(CGAN),the structural feature distribution of authentic malware is modeled under the constraint of family labels,yielding discriminative structural vectors.Subsequently,the Sentence-BERT model is employed to execute templated natural language conversion and se-mantic embedding encoding on structural information,thereby enabling cross-domain mapping from the structural space to the semantic space.Furthermore,a gated attention mechanism is devised to conduct fusion modeling on dual-channel vectors encompassing structural and semantic information,facilitating the joint discrimination and optimized training of sample authenticity and family attributes.[Result/Conclusion]The CGANB-GA model outperforms other baseline models in metrics such as accuracy and F1-score,demonstrating superior detection capability for malware variants.The enhancement of model performance arises from the synergistic contributions of structural feature-level data augmentation in mitigating the small-sample bottleneck,semantic modeling in compensating for gaps in feature expression,attention mechanisms in strengthening cross-modal interactions,and adversarial training in optimizing representational capabilities.