[Paper Review] Adversarial EXEmples: A Survey and Experimental Evaluation of Practical Attacks on Machine Learning for Windows Malware Detection
This paper introduces RAMEN, a unifying framework for generating adversarial Windows PE malware samples that evade machine learning-based detectors through practical, semantics-preserving file manipulations. The authors propose three novel attacks—Full DOS, Extend, and Shift—that modify the PE format without breaking functionality, achieving high evasion rates with minimal perturbations (under 2% of file size), outperforming prior methods in both white-box and black-box settings.
Recent work has shown that adversarial Windows malware samples - referred to as adversarial EXEmples in this paper - can bypass machine learning-based detection relying on static code analysis by perturbing relatively few input bytes. To preserve malicious functionality, previous attacks either add bytes to existing non-functional areas of the file, potentially limiting their effectiveness, or require running computationally-demanding validation steps to discard malware variants that do not correctly execute in sandbox environments. In this work, we overcome these limitations by developing a unifying framework that does not only encompass and generalize previous attacks against machine-learning models, but also includes three novel attacks based on practical, functionality-preserving manipulations to the Windows Portable Executable (PE) file format. These attacks, named Full DOS, Extend and Shift, inject the adversarial payload by respectively manipulating the DOS header, extending it, and shifting the content of the first section. Our experimental results show that these attacks outperform existing ones in both white-box and black-box scenarios, achieving a better trade-off in terms of evasion rate and size of the injected payload, while also enabling evasion of models that have been shown to be robust to previous attacks. To facilitate reproducibility of our findings, we open source our framework and all the corresponding attack implementations as part of the secml-malware Python library. We conclude this work by discussing the limitations of current machine learning-based malware detectors, along with potential mitigation strategies based on embedding domain knowledge coming from subject-matter experts directly into the learning process.
Motivation & Objective
- To address the limitations of existing adversarial attacks on ML-based malware detectors, which either require computationally expensive validation or are restricted to appending bytes at the end of files.
- To develop a unifying framework that generalizes prior attacks and incorporates new, practical manipulations specific to the Windows PE file format.
- To enable effective evasion in both white-box and black-box scenarios without relying on dynamic analysis or complex optimization.
- To improve the robustness of malware detection models by integrating domain knowledge from security experts into the learning process.
Proposed method
- Propose a modular, lightweight formalization called RAMEN to unify adversarial attacks on ML-based PE malware detectors.
- Design three novel, functionality-preserving manipulations: Full DOS (modifying the DOS header), Extend (extending the DOS header), and Shift (shifting the first section's content).
- Integrate all manipulations into an optimization framework with a penalty term to enforce syntactic and semantic invariance.
- Recast existing white-box and black-box attacks within the RAMEN framework to ensure generality and reproducibility.
- Implement the framework in the open-source secml-malware Python library for full reproducibility.
- Use gradient-based and gradient-free optimization to generate adversarial examples under both white-box and black-box assumptions.
Experimental results
Research questions
- RQ1How can adversarial attacks on ML-based PE malware detectors be made more practical and efficient while preserving malware functionality?
- RQ2What novel, semantics-invariant manipulations of the PE format can be used to generate effective adversarial examples without requiring dynamic analysis?
- RQ3To what extent do the proposed attacks outperform existing methods in terms of evasion rate and payload size across white-box and black-box settings?
- RQ4How effective are transfer attacks when using surrogate models to generate adversarial samples for remote classifiers?
- RQ5Can domain knowledge be embedded into the learning process to improve model robustness against such practical manipulations?
Key findings
- The proposed Full DOS, Extend, and Shift attacks achieve higher evasion rates than prior methods, particularly in white-box scenarios, with minimal perturbations (under 2% of file size).
- The Extend and Shift attacks are the most effective in the experimental evaluation, demonstrating superior performance across multiple state-of-the-art deep learning classifiers.
- Transfer attacks succeed in evading remote classifiers using only query access and surrogate models, showing the vulnerability of deployed systems.
- The attacks successfully evade models previously shown to be robust to earlier adversarial techniques, indicating broader applicability.
- The open-source secml-malware library enables full reproducibility and facilitates future research on adversarial robustness in 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 NubintThis review was generated by AI from the original paper. Please check the paper before citing it.