Journal of Computer Applications ›› 2023, Vol. 43 ›› Issue (7): 2217-2225.DOI: 10.11772/j.issn.1001-9081.2022060931

• Cyber security • Previous Articles    

Malicious code classification method based on improved MobileNetV2

Bona XUAN, Jin LI(), Yafei SONG, Zexuan MA   

  1. Air and Missile Defense College,Air Force Engineering University,Xi’an Shaanxi 710051,China
  • Received:2022-06-28 Revised:2022-08-27 Accepted:2022-09-05 Online:2022-11-25 Published:2023-07-10
  • Contact: Jin LI
  • About author:XUAN Bona, born in 1991, M. S. candidate. Her research interests include network security and defense, malware code classification.
    LI Jin, born in 1971, Ph. D., associate professor. His research interests include network security of ground to air missile command control system.
    SONG Yafei, born in 1987, Ph. D., associate professor. His research interests include intelligent information processing.
    MA Zexuan, born in 1998, M. S. candidate. His research interests include network intrusion detection.
  • Supported by:
    National Natural Science Foundation of China(61876189)

基于改进MobileNetV2的恶意代码分类方法

轩勃娜, 李进(), 宋亚飞, 马泽煊   

  1. 空军工程大学 防空反导学院,西安 710051
  • 通讯作者: 李进
  • 作者简介:轩勃娜(1991—),女,陕西咸阳人,硕士研究生,主要研究方向:网络安全防御、恶意代码分类;
    李进(1971—),男,陕西西安人,副教授,博士,主要研究方向:地空导弹指挥控制系统网络安全;
    宋亚飞(1987—),男,河南汝州人,副教授,博士,主要研究方向:智能信息处理;
    马泽煊(1998—),男,河北保定人,硕士研究生,主要研究方向:网络入侵检测。
  • 基金资助:
    国家自然科学基金资助项目(61876189)

Abstract:

Aiming at the problems of insufficient accuracy, high prediction time cost and weak ability against obfuscation of the traditional malicious code classification methods, a malicious code classification method based on improved MobileNetV2 was proposed. Firstly, aiming at the problems of malicious code encryption and obfuscation, the Coordinate Attention (CA) method was used to introduce a wider range of spatial locations to enhance malicious code image features. Then, aiming at the problem of high training cost caused by training from scratch, the Transfer Learning (TL) was used to improve the MobileNetV2 learning method to increase the ability against obfuscation. Finally, aiming at the large computational load and slow convergence of traditional deep learning networks, the MobileNetV2 lightweight convolutional network model was used, and Ranger21 was combined to improve the training method to promote rapid convergence. Experimental results show that the above-mentioned method has the accuracy achieved 99.26% and 96.98% for Malimg dataset and DataCon dataset. The method has the accuracy increased by 1.49% and the detection efficiency increased by 45.31% on the Malimg dataset compared with the AlexNet method, and has the accuracy increased by 1.14% on the DataCon dataset compared with the ensemble learning method. It can be seen that the improved MobileNetV2 based malicious code classification method can improve the generalization ability, ability against obfuscation and classification efficiency of the model.

Key words: network security, malicious code classification, Transfer Learning (TL), MobileNetV2, Coordinate Attention (CA), Ranger21 optimization algorithm

摘要:

针对传统恶意代码分类方法存在的精度不足、预测时间成本高和抗混淆能力弱等问题,提出一种基于改进MobileNetV2的恶意代码分类方法。首先,针对恶意代码加密和混淆等问题,使用坐标注意力(CA)方法引入更大范围的空间位置来增强恶意代码图像的特征;然后,针对从头开始训练导致的训练成本过高的问题,使用迁移学习(TL)来改进MobileNetV2的学习方式以提升抗混淆能力;最后,针对传统深度学习网络计算量大和收敛慢的问题,使用MobileNetV2轻量化卷积网络模型,并结合Ranger21改进训练方式以促进网络迅速收敛。实验结果表明:上述方法对Malimg数据集和DataCon数据集的准确率分别达到了99.26%和96.98%。在malimg数据集相较于AlexNet方法在准确率上平均提升了1.49%,检测效率上平均提升了45.31%;在DataCon数据集相较于集成学习方法准确率平均提升了1.14%。可见,基于改进MobileNetV2的恶意代码分类方法可以提升模型的泛化能力、抗混淆能力与分类效率。

关键词: 网络安全, 恶意代码分类, 迁移学习, MobileNetV2, 坐标注意力, Ranger21优化算法

CLC Number: