Skip to main content
QUICK REVIEW

[Paper Review] Adversarial Examples on Discrete Sequences for Beating Whole-Binary Malware Detection.

Felix Kreuk, Assi Barak|arXiv (Cornell University)|Feb 13, 2018
Adversarial Robustness in Machine LearningComputer Science13 references45 citations
TL;DR

This paper proposes a novel adversarial attack on whole-binary malware detectors by appending a carefully crafted byte sequence to malicious binaries, enabling them to evade detection with high confidence while preserving functionality. The method leverages a CNN-based model and achieves near-perfect evasion rates through discrete sequence manipulation in binary files.

ABSTRACT

In recent years, deep learning has shown performance breakthroughs in many applications, such as image detection, image segmentation, pose estimation, and speech recognition. It was also applied successfully to malware detection. However, this comes with a major concern: deep networks have been found to be vulnerable to adversarial examples. So far successful attacks have been proved to be very effective especially in the domains of images and speech, where small perturbations to the input signal do not change how it is perceived by humans but greatly affect the classification of the model under attack. Our goal is to modify a malicious binary so it would be detected as benign while preserving its original functionality. In contrast to images or speech, small modifications to bytes of the binary lead to significant changes in the functionality. We introduce a novel approach to generating adversarial example for attacking a whole-binary malware detector. We append to the binary file a small section, which contains a selected sequence of bytes that steers the prediction of the network from malicious to be benign with high confidence. We applied this approach to a CNN-based malware detection model and showed extremely high rates of success in the attack.

Motivation & Objective

  • To address the vulnerability of deep learning-based whole-binary malware detectors to adversarial examples.
  • To develop a method that modifies malicious binaries in a way that preserves their functionality but evades detection.
  • To generate adversarial examples in the discrete domain of binary files, differing from traditional image or speech-based attacks.
  • To achieve high-confidence misclassification of malicious binaries as benign using minimal, targeted modifications.

Proposed method

  • The attack appends a short, optimized sequence of bytes to the end of a malicious binary file.
  • The appended byte sequence is generated to steer the prediction of a CNN-based malware detector toward benign classification.
  • The method treats the binary as a discrete sequence, enabling the use of sequence-based adversarial generation techniques.
  • The attack operates under the constraint that the modified binary must retain its original malicious functionality.
  • The approach relies on gradient-based optimization to identify the minimal byte sequence that causes misclassification.
  • The attack is evaluated on a trained CNN-based malware detection model, demonstrating high evasion success.

Experimental results

Research questions

  • RQ1Can adversarial examples be effectively generated in the discrete space of binary files to evade whole-binary malware detectors?
  • RQ2How effective is the proposed method in causing a CNN-based malware detector to misclassify malicious binaries as benign?
  • RQ3To what extent can the functionality of the original malicious binary be preserved after adversarial modification?
  • RQ4What is the minimal length of the adversarial byte sequence required to achieve high-confidence evasion?

Key findings

  • The proposed method achieved extremely high success rates in evading a CNN-based whole-binary malware detection model.
  • The attack successfully caused the model to classify malicious binaries as benign with high confidence.
  • The modification involved appending only a small sequence of bytes, maintaining minimal impact on the binary's size and structure.
  • The original functionality of the malicious binary was preserved after the adversarial transformation.
  • The attack demonstrated the feasibility of generating effective adversarial examples in the discrete domain of binary files.
  • The results highlight a critical vulnerability in deep learning-based malware detection systems using whole-binary analysis.

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.