Burning the Adversarial Bridges: Robust Windows Malware Detection Against Binary-level Mutations

Ahmed Abusnaina, Yizhen Wang, Sunpreet S. Arora, Ke Wang, Mihai Christodorescu, David MohaisenarXiv 2023 · DOI

Abstract

Machine learning models for malware detection are increasingly vulnerable to adversarial mutations—binary-level modifications that preserve malicious functionality while evading detection. This paper introduces a robust defense framework that "burns the adversarial bridges" by combining rigorous software pre-processing with a novel Graph Attention Network (GAT). By stripping volatile binary features and analyzing program sections as independent graph nodes, the system maintains high detection accuracy even against sophisticated manipulations like header tampering, junk data padding, and section injection.

Introduction

The cybersecurity landscape faces an onslaught of approximately 1.5 million new malware samples daily. The vast majority of these are not novel threats but "mutations" of existing malware. Attackers exploit the sensitivity of traditional machine learning (ML) models to "concept drift" by altering non-essential file components—such as headers or padding—to shift the file's representation in the feature space without affecting its execution.

Current defenses often rely on frequent model retraining, which fails to scale with the volume of daily mutations. This research addresses the root cause by identifying and removing "volatile" features that attackers use as bridges to bypass detection systems.

Methodology

The proposed system, "Burning the Adversarial Bridges," employs a two-stage pipeline designed for robustness.

1. Robust Pre-processing

The first stage involves "cleaning" the binary to eliminate common attack surfaces. This includes software stripping (removing non-essential headers), excessive length removal (trimming binary padding), and bytes resetting (zeroing out "code caves" used to hide malicious snippets).

Overview of the robust malware detection pipeline, from pre-processing to graph-based classification.

2. Graph-based Malware Detection

To counter "Section Injection," where attackers add entirely new malicious sections, the system treats each binary section (e.g., .text, .data) as a node in a graph.

  • Feature Extraction: N-grams, histograms, and strings are extracted per section.
  • Graph Attention Network (GAT): A GAT aggregates information between these sections. This "component-based" approach ensures that a mutation in one section does not "poison" the features of the entire file.
  • Classification: The final detection is performed using LightGBM, a gradient-boosting framework.
Detailed view of the graph representation where binary sections are treated as nodes for information aggregation.

Experimental Evaluation

The system was evaluated using a dataset of 9,000 malicious Windows binaries (2017–2020) and 8,817 benign samples. To simulate real-world conditions, models were trained on 2017–2019 data and tested on unseen 2020 samples.

Key Results

  • Resilience to Padding: While traditional models like EMBER saw detection rates drop significantly under binary padding attacks, the proposed system maintained an AUC of 88.32%.
  • Resilience to Section Injection: Against a combination of binary manipulation attacks, the graph-based model achieved an AUC of 88.19%, outperforming five industry-standard online engines.
  • Efficiency: The pre-processing steps are computationally lightweight, making the system suitable for deployment on endpoint devices without requiring source code access.

Conclusion

By focusing on non-volatile features and local context through graph-based analysis, this framework provides a formidable defense against adversarial mutations. While "binary packing" remains a challenge for static analysis, future work will explore integrating these robust features with dynamic behavioral analysis to further strengthen malware detection capabilities.

Summary updated

Abstract

Toward robust malware detection, we explore the attack surface of existing malware detection systems. We conduct root-cause analyses of the practical binary-level black-box adversarial malware examples. Additionally, we uncover the sensitivity of volatile features within the detection engines and exhibit their exploitability. Highlighting volatile information channels within the software, we introduce three software pre-processing steps to eliminate the attack surface, namely, padding removal, software stripping, and inter-section information resetting. Further, to counter the emerging section injection attacks, we propose a graph-based section-dependent information extraction scheme for software representation. The proposed scheme leverages aggregated information within various sections in the software to enable robust malware detection and mitigate adversarial settings. Our experimental results show that traditional malware detection models are ineffective against adversarial threats. However, the attack surface can be largely reduced by eliminating the volatile information. Therefore, we propose simple-yet-effective methods to mitigate the impacts of binary manipulation attacks. Overall, our graph-based malware detection scheme can accurately detect malware with an area under the curve score of 88.32\% and a score of 88.19% under a combination of binary manipulation attacks, exhibiting the efficiency of our proposed scheme.
BibTeX
@misc{abusnaina2023burning,
  author = {Ahmed Abusnaina and Yizhen Wang and Sunpreet S. Arora and Ke Wang and Mihai Christodorescu and David Mohaisen},
  title = {{Burning the Adversarial Bridges: Robust Windows Malware Detection Against Binary-level Mutations}},
  year = {2023},
  eprint = {2310.03285},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.03285},
}
Figure