Functionality-preserving Black-box Optimization of Adversarial Windows Malware

Luca Demetrio, Battista Biggio, Giovanni Lagorio, Fabio Roli, Alessandro Armando
3/30/2020
207 citations
cs.CR

Official code: pralab/secml_malware (253 stars, Python, MIT, last commit 2025-11-27).

Abstract

Windows malware detectors based on machine learning are vulnerable to adversarial examples, even if the attacker is only given black-box query access to the model. The main drawback of these attacks is that: (i) they are query-inefficient, as they rely on iteratively applying random transformations to the input malware; and (ii) they may also require executing the adversarial malware in a sandbox at each iteration of the optimization process, to ensure that its intrusive functionality is preserved.

Show full abstract

In this paper, we overcome these issues by presenting a novel family of black-box attacks that are both query-efficient and functionality-preserving, as they rely on the injection of benign content - which will never be executed - either at the end of the malicious file, or within some newly-created sections. Our attacks are formalized as a constrained minimization problem which also enables optimizing the trade-off between the probability of evading detection and the size of the injected payload. We empirically investigate this trade-off on two popular static Windows malware detectors, and show that our black-box attacks can bypass them with only few queries and small payloads, even when they only return the predicted labels. We also evaluate whether our attacks transfer to other commercial antivirus solutions, and surprisingly find that they can evade, on average, more than 12 commercial antivirus engines. We conclude by discussing the limitations of our approach, and its possible future extensions to target malware classifiers based on dynamic analysis.

View on arXivView PDF

Code Implementations(1)

MIT

Create adversarial attacks against machine learning Windows malware detectors

25355Python, Jupyter NotebookDec 19, 20191 years agoMIT
adversarial-machine-learningattackinfosecmachine-learningpython+1 more

Similar Papers

Cite this paper

@article{demetrio2020functionalitypreserving,
  title  = {Functionality-preserving Black-box Optimization of Adversarial Windows Malware},
  author = {Luca Demetrio and Battista Biggio and Giovanni Lagorio and Fabio Roli and Alessandro Armando},
  year   = {2020},
  eprint = {2003.13526},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.13526}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2003.13526.svg)](https://codeofpaper.com/paper/2003.13526)

Discussion