Bytes to Threats: Byte-Sequence Transformer For Malware Detection
Abdelrahman Yassin Eljamal, Abdeltawab Hendawi
Abstract
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.
Create a lesson
Related papers
AegisAsync: Symbolic Async-Event Simulation for Risks in Python Asynchronous Programs
Baihong Chen, Wen Li
ARACDE: Retrofitting Databases with ABAC using External Authorization Engines
Karthikeya S M Yelisetty, Shamik Sural, Santosh Nagarakatte
Nudge the Judge: Uncovering Program Decision Hijacking in Real-World Jev Applications
Yang Luo, Tiantian Ji, Zifeng Kang et al.
DPOison-VL: Clean Preference Poisoning in Vision-Language Direct Preference Optimization
Chengtao Jian, Kai Yang
Autonomous Cyber Operations Gym for Training and Evaluating AI Models for Defence
Tobias Hürten, Johannes F. Loevenich, Florian Spelter et al.
X.js: A Live Benchmark for Node.js Taint-Style Vulnerabilities
José Afonso, João Madeira Pereira, Ronghao Ni et al.