Skip to main content
QUICK REVIEW

[Paper Review] Deep Neural Network Based Malware Detection Using Two Dimensional Binary Program Features

Joshua Saxe, Konstantin Berlin|arXiv (Cornell University)|Aug 13, 2015
Advanced Malware Detection TechniquesComputer Science24 references65 citations
TL;DR

This paper proposes a deep neural network (DNN)-based malware detection system that uses two-dimensional binary program features—specifically, 1024-byte sliding windows to compute byte-entropy histograms—without manual filtering or unpacking. The method achieves 95% detection rate at 0.1% false positive rate on over 400,000 real-world binaries, demonstrating high accuracy and low false positives on commodity hardware, with deployment in a live enterprise environment.

ABSTRACT

Malware remains a serious problem for corporations, government agencies, and individuals, as attackers continue to use it as a tool to effect frequent and costly network intrusions. Machine learning holds the promise of automating the work required to detect newly discovered malware families, and could potentially learn generalizations about malware and benign software that support the detection of entirely new, unknown malware families. Unfortunately, few proposed machine learning based malware detection methods have achieved the low false positive rates required to deliver deployable detectors. In this paper we a deep neural network malware classifier that achieves a usable detection rate at an extremely low false positive rate and scales to real world training example volumes on commodity hardware. Specifically, we show that our system achieves a 95% detection rate at 0.1% false positive rate (FPR), based on more than 400,000 software binaries sourced directly from our customers and internal malware databases. We achieve these results by directly learning on all binaries, without any filtering, unpacking, or manually separating binary files into categories. Further, we confirm our false positive rates directly on a live stream of files coming in from Invincea's deployed endpoint solution, provide an estimate of how many new binary files we expected to see a day on an enterprise network, and describe how that relates to the false positive rate and translates into an intuitive threat score. Our results demonstrate that it is now feasible to quickly train and deploy a low resource, highly accurate machine learning classification model, with false positive rates that approach traditional labor intensive signature based methods, while also detecting previously unseen malware.

Motivation & Objective

  • To develop a scalable, low-resource malware detection system that achieves high detection rates with minimal false positives.
  • To eliminate the need for manual preprocessing, such as unpacking or filtering binaries by packer type.
  • To enable deployment of machine learning models in real enterprise environments with live file streams.
  • To validate the model’s performance on real-world data, including live traffic from customer endpoints.
  • To demonstrate that deep learning can match or exceed traditional signature-based methods in accuracy while detecting previously unseen malware.

Proposed method

  • Extracts two-dimensional byte-entropy histograms by sliding a 1024-byte window over binaries with a 256-byte step size.
  • Computes base-2 entropy and byte frequency for each window, then creates a 16×16 histogram over entropy (0–8) and byte (0–255) values.
  • Concatenates histogram rows into a fixed-length feature vector for input to a deep neural network with two hidden layers.
  • Trains a deep neural network classifier on raw binaries without prior separation by packer, obfuscation, or other binary characteristics.
  • Applies Bayesian calibration to convert raw neural network outputs into interpretable threat scores approximating malware probability.
  • Uses incremental training and compact model weights to support real-time deployment and efficient inference on low-end hardware.

Experimental results

Research questions

  • RQ1Can a deep neural network trained directly on raw binaries achieve high detection accuracy with low false positive rates?
  • RQ2Can two-dimensional binary features derived from sliding windows capture discriminative patterns for malware detection without manual feature engineering?
  • RQ3How does the model perform on real-world, unlabeled file streams from enterprise endpoints?
  • RQ4Can the system scale to large-scale training on commodity hardware while maintaining low false positive rates?
  • RQ5To what extent can the model generalize to previously unseen malware families without retraining?

Key findings

  • The system achieves a 95% detection rate at a 0.1% false positive rate on over 400,000 real-world software binaries collected from customer and internal malware databases.
  • The false positive rate was validated directly on a live stream of files from Invincea’s deployed endpoint solution, confirming real-world reliability.
  • The model was trained and deployed using only a single GPU, demonstrating scalability on commodity hardware.
  • The approach requires no manual preprocessing, such as unpacking or filtering by packer type, enabling direct training on all binaries.
  • The system has been successfully integrated into Invincea’s cloud security analytics platform and is actively used to detect malware across thousands of customer endpoints.
  • The Bayesian-calibrated threat scores provide an intuitive, probability-like interpretation of malware likelihood, enhancing operational usability.

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.