arXiv:2410.09401cs.CRcs.AI2024-10被引 5

用图像和指令序列融合提升恶意代码检测准确率

A Novel Approach to Malicious Code Detection Using CNN-BiLSTM and Feature Fusion

  • 将二进制文件转为图像,结合纹理与指令特征
  • 在多个数据集上准确率超传统方法,对变形样本更稳定
  • 适合安全研究者和工业界反病毒系统优化参考

随着互联网技术快速发展,恶意软件对计算机系统和网络安全的威胁日益加剧。传统静态检测难以应对变种和打包恶意代码,动态检测则成本高、风险大。本文提出一种新型检测方法:先用minhash算法将恶意软件二进制文件转换为灰度图像,再通过GIST和LBP算法提取全局与局部纹理特征;同时使用IDA Pro反汇编提取操作码序列,结合N-gram与tf-idf进行向量化。将图像特征与操作码特征融合后,采用CNN-BiLSTM模型联合处理,提升分类性能。在多个公开数据集上的实验表明,该方法在准确率、召回率和F1值上均显著优于传统技术,尤其在检测变种及混淆恶意代码时表现出更强稳定性。研究验证了特征与模型融合的有效性,具有广阔应用前景。

原文摘要 · Abstract (English)

With the rapid advancement of Internet technology, the threat of malware to computer systems and network security has intensified. Malware affects individual privacy and security and poses risks to critical infrastructures of enterprises and nations. The increasing quantity and complexity of malware, along with its concealment and diversity, challenge traditional detection techniques. Static detection methods struggle against variants and packed malware, while dynamic methods face high costs and risks that limit their application. Consequently, there is an urgent need for novel and efficient malware detection techniques to improve accuracy and robustness. This study first employs the minhash algorithm to convert binary files of malware into grayscale images, followed by the extraction of global and local texture features using GIST and LBP algorithms. Additionally, the study utilizes IDA Pro to decompile and extract opcode sequences, applying N-gram and tf-idf algorithms for feature vectorization. The fusion of these features enables the model to comprehensively capture the behavioral characteristics of malware. In terms of model construction, a CNN-BiLSTM fusion model is designed to simultaneously process image features and opcode sequences, enhancing classification performance. Experimental validation on multiple public datasets demonstrates that the proposed method significantly outperforms traditional detection techniques in terms of accuracy, recall, and F1 score, particularly in detecting variants and obfuscated malware with greater stability. The research presented in this paper offers new insights into the development of malware detection technologies, validating the effectiveness of feature and model fusion, and holds promising application prospects.

恶意代码检测特征融合深度学习CNN-BiLSTM

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