Skip to content
Preprint

Malformer: A Multi-Modal Malware Detector Using Transformers

Aug 2026 · 0 citations · 34 references
Computer Science

TL;DR

It is demonstrated that multimodal transformer fusion can enhance the performance of Windows malware detectors over that of unimodal and bimodal detectors, and provides a promising foundation for countering the growing scale of malware threats, equipping defenders with generalized and resilient detection capabilities.

Abstract

Traditional malware detection systems that rely on a single representation of malware often fail to identify novel threats. These representations of malware binaries, also known as modalities, do not provide the models with sufficient information to discriminate among all samples. Additionally, individual representations introduce new failure modes, with some modality extraction being dependent upon the success of disassembling. Past works have integrated either additional modalities or more discriminative representations for classification. In this work, we present Malformer, a quadrimodal malware detection model that incorporates text, image, graph, and audio representations of Windows executables. We demonstrate that multimodal transformer fusion can enhance the performance of Windows malware detectors over that of unimodal and bimodal detectors. Malformer employs a combination of two RoBERTa encoders paired with a modified Vision Transformer for image data, WavLM for audio data, and an adaptive loss-weighting scheme to fuse modality-specific representations. Evaluated on a dataset of 201,549 binary samples, Malformer achieved 98.3% accuracy and an F1 score of 0.9833, outperforming both unimodal baselines and bimodal detectors by 4.6-17.6 percentage points. Malformer demonstrates that multimodal fusion provides a promising foundation for countering the growing scale of malware threats, equipping defenders with generalized and resilient detection capabilities.

View source

Similar papers

Conference Aug 2026

Hybrid Representation Learning for Robust Multiclass Malware Classification Under Class Imbalance

The increasing sophistication of modern malware, particularly in the form of polymorphic and packed variants, poses significant challenges to traditional detection systems. While machine learning-based approaches have shown promise, many existing methods rely on single feature representations and are evaluated using me...

Akshaya Mogili, G. Lishita, R. N · 0 citations
Open access 2026

MalBERT-Temporal: Transformer-Based Zero-Day Malware Detection in Windows Executable Binaries Under Strict Temporal Isolation

A Transformer-based malware detection approach named MalBERT-Temporal that reshapes the 2,381-dimensional BODMAS PE feature vector into 16 contiguous feature-group tokens and then processes these tokens with Transformer encoder layers employing multi-head self-attention to model interactions among all tokens is introdu...

Manar Alanazi, Israa Alsiyat · 0 citations
Sep 2026

Image-Based Malware Detection Using Deep Convolutional Autoencoder and Random Forest

Image-based analysis has been extensively used for malware classification by converting binary files into grayscale images to extract structural and behavioral patterns. However, common deep learning approaches generally suffer from problems such as non-interpretability, class imbalance, and computational overhead....

Shajjia Mazhar, Sadia Fatima, Irfanud Din et al. · 0 citations
#machine learning Preprint Aug 2026

Enhancing Multiclass Malware Classification in Resource-Constrained Environments

A robust, lightweight machine learning model featuring LightGBM classifier with SMOTE oversampling and SOM-US undersampling techniques for data balancing, as well as well-engineered feature selection through Genetic Algorithm is proposed, demonstrating a significant enhancement in terms of accuracy from the current sta...

Abdul Khalek Alve, A. Rahman, Saadman Zaman et al. · 0 citations
Open access Sep 2026

Visualization based malware classification under extreme class imbalance: a transfer learning approach with systematic ablation

Malware detection and classification continues to be a major concern of cybersecurity since threat attackers are refining to come up with more advanced and elusive malicious code. Visualization-based solutions that transform raw binary executables into grayscale images and the use of convolutional neural networks t...

G. P. Raghudathesh, M. Pavan Kumar, Thimmaraja Yadava G et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.