ViPER: Vision-based Packing-Aware Encoder for Robust Malware Detection

Fatima Qaiser, Bisma Tahir, Muhammad Abid Mughal, Nauman Shamim
6/11/2026
cs.CRcs.CV

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Visualization-based malware detection maps raw binary bytes to grayscale images and applies learned visual classifiers, providing an evasion-resistant and disassembly-free alternative to conventional analysis pipelines. However, executable packing remains a critical failure mode: packed binaries produce high-entropy images that obscure the structural patterns these models rely on. Because packing is also prevalent in benign software (e.g., for compression or copy protection), packing state alone is not a reliable indicator of maliciousness, and existing approaches do not address this challenge within a unified supervised framework. We present ViPER, a Vision-based Packing-Aware Encoder for Robust malware detection. ViPER builds on a LoRA-adapted ViT-B/14 backbone with a dual-head architecture that jointly learns malware classification and packing detection. A packing-aware gating mechanism conditions malware predictions on the inferred packing state, enabling distinct decision boundaries for packed and unpacked inputs. To address packing label skew during training, we employ frequency-weighted losses with stratified sampling over joint class-packing strata. Evaluated on 200,000 Windows PE byteplot images, ViPER achieves a balanced accuracy of 0.8521, ROC-AUC of 0.9260, and AUPR of 0.9279, outperforming representative state-of-the-art baselines across all primary metrics, while attaining a packing detection AUC of 0.9949.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{qaiser2026viper,
  title  = {ViPER: Vision-based Packing-Aware Encoder for Robust Malware Detection},
  author = {Fatima Qaiser and Bisma Tahir and Muhammad Abid Mughal and Nauman Shamim},
  year   = {2026},
  eprint = {2606.12949},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.12949v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.12949.svg)](https://codeofpaper.com/paper/2606.12949)

Discussion