arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.18787cs.CRcs.AI
收藏

从字节到威胁:用于恶意软件检测的字节序列Transformer

Bytes to Threats: Byte-Sequence Transformer For Malware Detection

University of Rhode Island(罗德岛大学)

Abdelrahman Yassin Eljamal, Abdeltawab Hendawi

AI总结:

本文提出基于Transformer的字节级恶意软件检测框架MalwareFormer,无需领域知识或特征提取,在恶意软件检测的多项指标上优于基线方法,为字节级恶意软件检测提供了强大可扩展方案。

摘要:

现有恶意软件检测方法严重依赖从可执行文件的静态或动态分析中提取的手工特征,这些方法需要专业领域知识、专用分析工具且分析过程耗时,在现代恶意软件日益复杂多样的情况下,其可扩展性和鲁棒性受到限制。因此,人们对直接处理原始字节的方法越来越感兴趣,原始字节包含丰富的语义和结构信息。然而,传统的静态方法和基于CNN的方法难以捕获可执行文件内的长程依赖关系。本文提出了MalwareFormer,一种基于Transformer的字节级恶意软件检测框架,可直接处理原始字节,无需领域知识或特征提取。MalwareFormer的准确率达98.35%,平衡准确率达98.32%,宏F1值达98.32%,误报率为1.94%,在所有依赖阈值的分类指标上均优于基线方法,证明Transformer为字节级恶意软件检测提供了强大且可扩展的方法。

英文摘要:

Existing malware detection approaches heavily rely on handcrafted features derived from static or dynamic analysis of the executable files. These methods require specialized domain expertise, dedicated analysis tools, and time-consuming analysis, which limits their scalability and robustness in the face of the increasing complexity and diversity of modern malware. Consequently, there is a growing interest in approaches that operate directly on raw bytes, which contain rich semantic and structural information. However, capturing long-range dependencies within executable files remains challenging for conventional static and CNN-based methods. This paper presents MalwareFormer, a transformer-based, byte-level malware detection framework that operates directly on raw bytes, without requiring domain knowledge or feature extraction. MalwareFormer achieves an accuracy of 98.35%, a balanced accuracy of 98.32%, a macro-F1 of 98.32%, and a false positive rate of 1.94%, outperforming both baselines across all threshold-dependent classification metrics and demonstrating that transformers provide a powerful and scalable approach for byte-level malware detection.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑