Skip to main content
QUICK REVIEW

[Paper Review] Virus-MNIST: A Benchmark Malware Dataset

David Noever, Samantha E. Miller Noever|arXiv (Cornell University)|Feb 28, 2021
Advanced Malware Detection TechniquesComputer Science9 references22 citations
TL;DR

This paper introduces Virus-MNIST, a benchmark malware dataset that converts the first 1024 bytes of Portable Executable (PE) files into 28x28 grayscale images, enabling direct application of image classification models like MobileNetV2 to malware detection. It achieves 87% accuracy in classifying virus families after initial malware detection, demonstrating the viability of CNNs on byte-level representations of malware for automated classification.

ABSTRACT

The short note presents an image classification dataset consisting of 10 executable code varieties and approximately 50,000 virus examples. The malicious classes include 9 families of computer viruses and one benign set. The image formatting for the first 1024 bytes of the Portable Executable (PE) mirrors the familiar MNIST handwriting dataset, such that most of the previously explored algorithmic methods can transfer with minor modifications. The designation of 9 virus families for malware derives from unsupervised learning of class labels; we discover the families with KMeans clustering that excludes the non-malicious examples. As a benchmark using deep learning methods (MobileNetV2), we find an overall 80% accuracy for virus identification by families when beneware is included. We also find that once a positive malware detection occurs (by signature or heuristics), the projection of the first 1024 bytes into a thumbnail image can classify with 87% accuracy the type of virus. The work generalizes what other malware investigators have demonstrated as promising convolutional neural networks originally developed to solve image problems but applied to a new abstract domain in pixel bytes from executable files. The dataset is available on Kaggle and Github.

Motivation & Objective

  • To create a standardized benchmark dataset for malware classification using deep learning techniques.
  • To explore the feasibility of applying image-based deep learning models to binary executable files by converting byte sequences into visual representations.
  • To evaluate the performance of convolutional neural networks on malware classification using a novel image-formatted malware dataset.
  • To identify and validate distinct virus families using unsupervised clustering on PE file features.
  • To demonstrate transferability of image classification models to the domain of malware analysis through a new data representation.

Proposed method

  • The first 1024 bytes of each Portable Executable (PE) file are converted into a 28x28 grayscale image, mimicking the MNIST dataset format.
  • Unsupervised KMeans clustering is applied to the byte-level representations of malicious files to discover 9 distinct virus families, excluding benign samples.
  • A deep learning model, specifically MobileNetV2, is fine-tuned on the image-formatted malware dataset for classification tasks.
  • The model is trained to classify malware into 10 classes: 9 virus families and one benign class.
  • After initial detection, the image representation of the first 1024 bytes is used to classify the specific virus family with high accuracy.
  • The dataset is made publicly available on Kaggle and GitHub for reproducibility and community use.

Experimental results

Research questions

  • RQ1Can image classification models trained on MNIST-like data be effectively adapted to classify malware based on the visual representation of executable file headers?
  • RQ2How accurately can convolutional neural networks identify specific virus families when given a thumbnail image of the first 1024 bytes of a PE file?
  • RQ3To what extent can unsupervised clustering of byte-level features reveal meaningful malware family groupings without prior labeling?
  • RQ4What is the performance of deep learning models on a standardized, image-formatted malware benchmark dataset?
  • RQ5Can the image-based representation of PE headers serve as a viable alternative or complement to traditional signature or heuristic-based malware detection?

Key findings

  • The Virus-MNIST dataset achieves an overall classification accuracy of 80% when identifying malware families, including the benign class.
  • Once a malware sample is detected via signature or heuristic methods, the image representation of its first 1024 bytes enables 87% accurate classification into specific virus families.
  • The use of KMeans clustering on byte-level features successfully identifies 9 distinct virus families without prior labeling, validating the dataset's underlying structure.
  • The transferability of image-based deep learning models—originally designed for handwritten digits—to the domain of malware analysis is empirically demonstrated.
  • The dataset enables direct application of established computer vision techniques to malware analysis, reducing the need for custom feature engineering.
  • The public availability of the dataset on Kaggle and GitHub facilitates reproducibility and broader adoption in cybersecurity research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.