Skip to main content
QUICK REVIEW

[Paper Review] Explaining Vulnerabilities of Deep Learning to Adversarial Malware Binaries

Luca Demetrio, Battista Biggio|arXiv (Cornell University)|Jan 11, 2019
Adversarial Robustness in Machine LearningComputer Science58 citations
TL;DR

The paper uses integrated gradients to explain MalConv's decisions on PE binaries and shows it relies on header bytes rather than data/text sections, then demonstrates an efficient header-based adversarial attack that evades MalConv by modifying only a few header bytes.

ABSTRACT

Recent work has shown that deep-learning algorithms for malware detection are also susceptible to adversarial examples, i.e., carefully-crafted perturbations to input malware that enable misleading classification. Although this has questioned their suitability for this task, it is not yet clear why such algorithms are easily fooled also in this particular application domain. In this work, we take a first step to tackle this issue by leveraging explainable machine-learning algorithms developed to interpret the black-box decisions of deep neural networks. In particular, we use an explainable technique known as feature attribution to identify the most influential input features contributing to each decision, and adapt it to provide meaningful explanations to the classification of malware binaries. In this case, we find that a recently-proposed convolutional neural network does not learn any meaningful characteristic for malware detection from the data and text sections of executable files, but rather tends to learn to discriminate between benign and malware samples based on the characteristics found in the file header. Based on this finding, we propose a novel attack algorithm that generates adversarial malware binaries by only changing few tens of bytes in the file header. With respect to the other state-of-the-art attack algorithms, our attack does not require injecting any padding bytes at the end of the file, and it is much more efficient, as it requires manipulating much fewer bytes.

Motivation & Objective

  • Understand why deep learning-based malware detectors are vulnerable to adversarial examples.
  • Apply explainable ML techniques to interpret a malware detector trained on raw bytes.
  • Identify which parts of PE files drive MalConv's decisions.
  • Demonstrate a practical, efficient header-based adversarial attack against MalConv.

Proposed method

  • Apply the integrated gradients attribution method to MalConv to identify influential input features.
  • Adapt integrated gradients to aggregate feature attributions at a higher semantic level (sections of the PE file).
  • Use a simplified MalConv model trained on 1 MB inputs to analyze byte-level decisions.
  • Visualize attributions for PE file components (DOS header, COFF header, Optional header, .text, etc.).
  • Develop an attack algorithm that perturbs only header bytes to evade MalConv without injecting padding.
  • Evaluate attack effectiveness on a set of malware samples to show evasion capability.

Experimental results

Research questions

  • RQ1What input features does MalConv rely on when classifying PE binaries as malware or benign?
  • RQ2Can feature attribution reveal spurious correlations learned by MalConv, such as header-centric decisions?
  • RQ3Is it possible to craft adversarial malware by perturbing only a small portion of the header, while preserving malicious functionality?
  • RQ4How does header-focused manipulation compare in efficiency to existing end-of-file padding attacks?

Key findings

  • MalConv mainly uses file header characteristics to distinguish malware from benign samples, often ignoring data/text sections where malicious content resides.
  • Integrated gradients reveal that important attributions concentrate in the DOS and COFF header regions rather than the .text or data sections.
  • An adversarial attack modifying only dozens of header bytes can evade MalConv with high probability (52 out of 60 tested samples).
  • The header-based attack is more efficient than end-of-file padding attacks because it alters far fewer bytes and does not require adding padding at the end.
  • The findings indicate MalConv learns potentially meaningless correlations tied to header structure, highlighting vulnerability to targeted perturbations.

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.