Netinfo Security ›› 2025, Vol. 25 ›› Issue (8): 1208-1222.doi: 10.3969/j.issn.1671-1122.2025.08.003

Previous Articles     Next Articles

Deep Attention Network Architecture for Malicious Code Detection

LI Sicong, WANG Fei(), WEI Ziling, CHEN Shuhui   

  1. College of Computer Science, National University of Defense Technology, Changsha 410073, China
  • Received:2025-06-09 Online:2025-08-10 Published:2025-09-09

Abstract:

To address the performance limitations of traditional detection methods caused by the proliferation of malware variants, this paper proposed a Hybrid Multi-Scale Attention Network MSA-ResNet for malware classification. The framework employed a bilinear interpolation algorithm to standardize image sizes while effectively preserving texture features of easily confusable malware families, combined with dynamic data augmentation to optimize input diversity. In the network architecture, a Multi-scale Attention Module was embedded at the end of ResNet50 residual blocks to establish cross-scale feature interaction, reducing feature point correlation distances and improving attention convergence speed. Experimental results demonstrate that the model achieves 99.47% accuracy and 99.46% macro-average F1-score on the Malimg dataset, outperforming the baseline ResNet50 by 1.95% with only a 15% increase in parameters. Compared to state-of-the-art methods, it improves classification accuracy by 0.49% and shows effectiveness in detecting complex variants like Obfuscator.AD.

Key words: malicious code visualization, convolutional neural network, multi-headed attention mechanism, image size normalization algorithm, feature fusion

CLC Number: