从字节到威胁:面向恶意软件检测的字节序列Transformer Bytes to Threats: Byte-Sequence Transformer For Malware Detection 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-13
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
现有恶意软件检测依赖人工设计的特征,需要专业知识和耗时分析,难以应对日益复杂的恶意软件。本研究提出MalwareFormer,直接以可执行文件的原始字节序列为输入,用Transformer自动学习长距离依赖关系,无需领域知识或特征工程。在检测任务上达到98.35%的准确率、98.32%的平衡准确率和宏F1值,误报率仅1.94%,全面优于基线方法,说明Transformer为字节级恶意软件检测提供了强大且可扩展的新途径。
领域网络安全 / 恶意软件检测
适合谁读需要一定专业背景(了解深度学习与网络安全基础)
核心贡献1. 提出MalwareFormer,直接对可执行文件原始字节序列建模,完全免去人工特征提取和领域知识依赖;2. 利用Transformer捕捉字节间的长距离依赖,克服传统静态方法和CNN在此类任务上的局限。
关键数据准确率98.35%,平衡准确率98.32%,宏F1值98.32%,误报率1.94%,在所有阈值相关分类指标上均优于基线。
推荐理由想摆脱繁琐特征工程、用原始字节直接做恶意软件检测?这篇用Transformer把准确率刷到98%以上、误报不到2%,值得一读。
关键词["恶意软件检测", "字节序列", "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.