• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2025, Vol. 47 ›› Issue (7): 1215-1225.

• Computer Network and Znformation Security • Previous Articles     Next Articles

A malicious code variant families tracing method based on generative adversarial network

LI Li,ZHANG Qing,KONG Youran,SU Renjia,ZHAO Xin   

  1. (College of Computer and Control Engineering,Northeast Forestry University,Harbin 150040,China)
  • Received:2024-01-15 Revised:2024-04-21 Online:2025-07-25 Published:2025-08-25

Abstract: Aiming at the issues of rapid mutation and difficult traceability of malicious code, this paper proposes a classification method that enhances familial traceability by creating a dataset of malicious code variants. The method visualizes malicious code, employs an improved generative adversarial network (GAN) for classification, and utilizes Ghost modules and Dropout layers to balance the adversarial capabilities of the generator and discriminator. An efficient channel attention mechanism is introduced to help the model focus on critical features, while a combined structure of convolution and upsampling avoids checkerboard artifacts in generated images. During testing, the models familial traceability for malicious code variants is validated using both a malicious code variant dataset and datasets with distinct categorical features. The proposed method achieves stronger feature extraction, lower resource consumption, and faster inference speed, meeting the demands of modern rapidly evolving malicious code for anti-obfuscation capability and high generalization. Additionally, it is suitable for deployment on mobile and embedded devices, ensuring real-time detection of malicious code.

Key words: malicious code variant tracing, generative adversarial network, attention mechanism, code visualization, feature texture