Skip to main content
QUICK REVIEW

[Paper Review] Binary Black-box Evasion Attacks Against Deep Learning-based Static Malware Detectors with Adversarial Byte-Level Language Model

Mohammadreza Ebrahimi, Ning Zhang|arXiv (Cornell University)|Dec 14, 2020
Adversarial Robustness in Machine LearningComputer Science30 references19 citations
TL;DR

This paper proposes MalRNN, a black-box adversarial attack framework that generates evasive malware variants using a sequence-to-sequence RNN to learn a byte-level language model on binary executables. Without requiring model gradients, confidence scores, or dynamic analysis, MalRNN successfully evades three deep learning-based malware detectors across eight malware categories, achieving up to 54.28% evasion rate on backdoor samples.

ABSTRACT

Anti-malware engines are the first line of defense against malicious software. While widely used, feature engineering-based anti-malware engines are vulnerable to unseen (zero-day) attacks. Recently, deep learning-based static anti-malware detectors have achieved success in identifying unseen attacks without requiring feature engineering and dynamic analysis. However, these detectors are susceptible to malware variants with slight perturbations, known as adversarial examples. Generating effective adversarial examples is useful to reveal the vulnerabilities of such systems. Current methods for launching such attacks require accessing either the specifications of the targeted anti-malware model, the confidence score of the anti-malware response, or dynamic malware analysis, which are either unrealistic or expensive. We propose MalRNN, a novel deep learning-based approach to automatically generate evasive malware variants without any of these restrictions. Our approach features an adversarial example generation process, which learns a language model via a generative sequence-to-sequence recurrent neural network to augment malware binaries. MalRNN effectively evades three recent deep learning-based malware detectors and outperforms current benchmark methods. Findings from applying our MalRNN on a real dataset with eight malware categories are discussed.

Motivation & Objective

  • To develop an automated, black-box evasion attack against deep learning-based static malware detectors without requiring model-specific knowledge.
  • To overcome the limitations of existing adversarial example generation methods that rely on gradient information, confidence scores, or dynamic analysis.
  • To enable large-scale, scalable generation of evasive malware variants using a generative RNN trained on raw binary sequences.
  • To evaluate the vulnerability of state-of-the-art DL-based malware detectors to additive (append) adversarial attacks in realistic, black-box settings.
  • To provide a reproducible, open-source tool for probing and improving the robustness of deep learning-based anti-malware systems.

Proposed method

  • MalRNN employs a sequence-to-sequence recurrent neural network (RNN) to learn a byte-level language model directly from raw malware binary data.
  • The model is trained to generate benign-looking byte sequences that can be appended to original malware binaries to create adversarial variants.
  • The attack is purely black-box: it does not require access to the targeted detector’s architecture, parameters, or confidence scores.
  • The method leverages the RNN’s generative capability to produce perturbations that preserve functionality while evading detection.
  • MalRNN is evaluated using a real-world dataset with eight malware categories, and evasion success is measured via detection rates on three state-of-the-art DL-based detectors.
  • The approach avoids dynamic analysis by relying solely on static binary representation and sequence modeling.

Experimental results

Research questions

  • RQ1Can a deep generative model learn to produce effective adversarial byte sequences for malware evasion without access to the target model’s internal parameters or confidence scores?
  • RQ2How effective is a sequence-to-sequence RNN-based language model in generating evasive malware variants across diverse malware families?
  • RQ3What is the relative vulnerability of different malware types (e.g., ransomware, backdoor, dropper) to black-box append-based adversarial attacks?
  • RQ4Can MalRNN outperform existing benchmark methods in evasion rate while maintaining low perturbation cost (i.e., minimal appended bytes)?
  • RQ5To what extent can this approach be generalized across multiple deep learning-based malware detectors without retraining?

Key findings

  • MalRNN successfully evades three state-of-the-art deep learning-based malware detectors across all eight malware categories without requiring model-specific information.
  • The highest evasion rate was observed for backdoor malware (54.28%), suggesting that such malware types are more susceptible to adversarial append attacks due to their high proportion of benign-like code.
  • Ransomware and botnet malware showed the lowest evasion rates (29.33% and 23.57%, respectively), likely due to their distinctive, malicious code structures that are easily detectable by deep learning models.
  • MalRNN outperforms existing benchmark methods in evasion effectiveness, demonstrating the superiority of a learned, generative approach over heuristic or brute-force methods.
  • The method achieves high evasion rates with minimal perturbations, indicating that the generated byte sequences are both effective and stealthy.
  • The results confirm that deep learning-based malware detectors are vulnerable to black-box adversarial attacks, even when the attacker has no access to model internals or confidence scores.

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.