Skip to main content
QUICK REVIEW

[Paper Review] Optimization-Guided Binary Diversification to Mislead Neural Networks for Malware Detection

Mahmood Sharif, Keane Lucas|arXiv (Cornell University)|Dec 19, 2019
Advanced Malware Detection TechniquesComputer Science84 references14 citations
TL;DR

This paper proposes an optimization-guided binary diversification attack that manipulates functional instructions in malware binaries to evade deep neural network (DNN)-based malware detectors while preserving functionality. The method achieves near-100% evasion success in white-box and black-box settings and fools commercial antivirus software in 85% of tested cases, highlighting critical vulnerabilities in DNN-based detection systems.

ABSTRACT

Motivated by the transformative impact of deep neural networks (DNNs) on different areas (e.g., image and speech recognition), researchers and anti-virus vendors are proposing end-to-end DNNs for malware detection from raw bytes that do not require manual feature engineering. Given the security sensitivity of the task that these DNNs aim to solve, it is important to assess their susceptibility to evasion. In this work, we propose an attack that guides binary-diversification tools via optimization to mislead DNNs for malware detection while preserving the functionality of binaries. Unlike previous attacks on such DNNs, ours manipulates instructions that are a functional part of the binary, which makes it particularly challenging to defend against. We evaluated our attack against three DNNs in white-box and black-box settings, and found that it can often achieve success rates near 100%. Moreover, we found that our attack can fool some commercial anti-viruses, in certain cases with a success rate of 85%. We explored several defenses, both new and old, and identified some that can successfully prevent over 80% of our evasion attempts. However, these defenses may still be susceptible to evasion by adaptive attackers, and so we advocate for augmenting malware-detection systems with methods that do not rely on machine learning.

Motivation & Objective

  • To investigate the vulnerability of deep neural network (DNN)-based malware detectors to evasion attacks that preserve binary functionality.
  • To develop an attack that manipulates functional instructions—rather than benign or non-essential code—thereby evading detection while maintaining program behavior.
  • To evaluate the effectiveness of the attack under both white-box and black-box settings, including real-world commercial antivirus systems.
  • To assess the resilience of existing and novel defenses against the proposed attack and identify limitations in current defense strategies.
  • To advocate for reducing reliance on machine learning in malware detection systems due to inherent susceptibility to adaptive adversarial attacks.

Proposed method

  • Leverages a differentiable binary representation to model instruction-level modifications in machine code, enabling gradient-based optimization.
  • Uses a gradient-guided optimization process to generate binary modifications that maximize DNN misclassification while preserving functional correctness.
  • Applies a functional equivalence checker to validate that modified binaries retain original behavior across test cases.
  • Employs a loss function that combines adversarial loss (to mislead the DNN) and functional similarity loss (to maintain program behavior).
  • Integrates a binary diversification engine that applies optimized instruction-level transformations (e.g., instruction reordering, replacement with semantically equivalent opcodes).
  • Evaluates the attack in both white-box (full model access) and black-box (query-based) settings using three distinct DNN architectures for malware detection.

Experimental results

Research questions

  • RQ1Can functional instruction-level modifications evade DNN-based malware detectors without altering program behavior?
  • RQ2How effective is the proposed optimization-guided attack in white-box and black-box settings compared to prior evasion techniques?
  • RQ3To what extent can the attack bypass commercial antivirus solutions trained on DNN or signature-based detection?
  • RQ4Which existing and novel defenses are effective against this type of instruction-level adversarial perturbation?
  • RQ5What are the limitations of current defense mechanisms when faced with adaptive, functional instruction-based attacks?

Key findings

  • The proposed attack achieved evasion success rates near 100% in both white-box and black-box evaluations across three DNN models.
  • The attack successfully evaded commercial antivirus software in 85% of tested cases, demonstrating real-world practicality.
  • Defenses that rely on input transformation or anomaly detection were able to block over 80% of evasion attempts, but remained vulnerable to adaptive attackers.
  • The attack's success stems from modifying only functional instructions, making it difficult to detect using traditional static analysis or heuristic-based defenses.
  • Even with strong defenses, the attack's high success rate suggests that machine learning-based malware detection systems remain inherently susceptible to sophisticated adversarial manipulation.
  • The results underscore the need to reconsider the reliance on machine learning in security-critical systems like malware detection.

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.