Skip to main content
QUICK REVIEW

[Paper Review] Static Malware Detection & Subterfuge: Quantifying the Robustness of Machine Learning and Current Anti-Virus

William Fleshman, Edward Raff|arXiv (Cornell University)|Jun 12, 2018
Advanced Malware Detection TechniquesComputer Science9 references7 citations
TL;DR

This paper proposes a novel black-box adversarial testing methodology to quantitatively evaluate the robustness of machine learning (ML) and traditional anti-virus (AV) systems against evasion attacks on static malware detectors. By applying non-destructive binary modifications, packing, obfuscation, and code injection, the authors demonstrate that ML-based models (n-gram and MalConv) are significantly more robust than AV products to evasion, due to their ability to generalize from dispersed features across the binary, though they remain vulnerable to sophisticated obfuscation and novel attack types.

ABSTRACT

As machine-learning (ML) based systems for malware detection become more prevalent, it becomes necessary to quantify the benefits compared to the more traditional anti-virus (AV) systems widely used today. It is not practical to build an agreed upon test set to benchmark malware detection systems on pure classification performance. Instead we tackle the problem by creating a new testing methodology, where we evaluate the change in performance on a set of known benign & malicious files as adversarial modifications are performed. The change in performance combined with the evasion techniques then quantifies a system's robustness against that approach. Through these experiments we are able to show in a quantifiable way how purely ML based systems can be more robust than AV products at detecting malware that attempts evasion through modification, but may be slower to adapt in the face of significantly novel attacks.

Motivation & Objective

  • To address the lack of standardized benchmarks for comparing malware detection systems by proposing a new evaluation methodology.
  • To quantify the robustness of ML-based malware detectors versus commercial AV products against known evasion techniques.
  • To investigate whether ML models generalize better than signature-based AV systems when faced with adversarial modifications to malware binaries.
  • To explore the limitations of current evasion techniques and assess the generalization capability of ML models in detecting novel or obfuscated malware.

Proposed method

  • Develops a black-box adversarial testing framework based on Biggio et al.'s adversary model, defining goals, knowledge, and capabilities.
  • Applies four evasion techniques: non-destructive binary modification, adversarial occlusion (random byte masking), packing with UPX, and ROP injection.
  • Uses two ML models: a simple n-gram model and a deep learning model (MalConv) trained on raw byte sequences.
  • Employs a test protocol where models are evaluated on known benign and malicious files before and after adversarial modifications to measure performance degradation.
  • Measures robustness via performance drop under each evasion technique, comparing ML models and AV products across multiple attack types.
  • Uses byte-level occlusion to probe feature importance and infer why ML models are more robust—attributing it to distributed feature usage across the binary.

Experimental results

Research questions

  • RQ1How do ML-based malware detectors compare to commercial AV products in resisting non-destructive binary modifications?
  • RQ2To what extent do adversarial occlusion attacks reveal differences in feature reliance between ML models and AV systems?
  • RQ3Can packing and code injection techniques like ROP injection successfully evade ML-based and AV-based detectors, and how do they compare?
  • RQ4Does the robustness of ML models stem from distributed feature usage across the binary, as suggested by occlusion testing?
  • RQ5Can evasion techniques used to test robustness be repurposed for data augmentation in malware detection training?

Key findings

  • ML-based models (n-gram and MalConv) demonstrated significantly higher robustness than commercial AV products when subjected to non-destructive binary modifications, with minimal performance degradation.
  • The adversarial occlusion test revealed that ML models rely on features dispersed throughout the binary, making them less susceptible to localized changes compared to AVs, which depend on specific, localized signatures.
  • Commercial AV products were easily evaded by simple modifications such as changing a few bytes or importing random functions, indicating brittle decision boundaries.
  • Packing with UPX and ROP injection posed persistent challenges for all systems, but ML models showed better resilience than AVs, particularly in detecting injected malicious code.
  • The study found that training on adversarial examples (e.g., ROP-injected binaries) may improve detection of those specific attacks but could compromise generalization to truly novel malware variants.
  • The proposed black-box adversarial testing framework is domain-agnostic and can be adapted to other file formats (e.g., PDFs) or operating systems (e.g., Linux, iOS), enabling broader evaluation of static analysis systems.

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.