mlsanityData to 14 Oct 2026

Explainability-Guided Adversarial Attacks on Transformer-Based Malware Detectors Using Control Flow Graphs

arXiv 2604.03843 ↗First posted 4 Apr 2026cs.CR cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformer-based malware detection systems operating on graph modalities such as control flow graphs (CFGs) achieve strong performance by modeling structural relationships in program behavior. However, their robustness to adversarial evasion attacks remains underexplored. This paper examines the vulnerability of a RoBERTa-based malware detector that linearizes CFGs into sequences of function calls, a design choice that enables transformer modeling but may introduce token-level sensitivities and ordering artifacts exploitable by adversaries. By evaluating evasion strategies within this graph-to-sequence framework, we provide insight into the practical robustness of transformer-based malware detectors beyond aggregate detection accuracy. This paper proposes a white-box adversarial evasion attack that leverages explainability mechanisms to identify and perturb most influential graph components. Using token- and word-level attributions derived from integrated gradients, the attack iteratively replaces positively attributed function calls with synthetic external imports, producing adversarial CFG representations without altering overall program structure. Experimental evaluation on small- and large-scale Windows Portable Executable (PE) datasets demonstrates that the proposed method can reliably induce misclassification, even against models trained to high accuracy. Our results highlight that explainability tools, while valuable for interpretability, can also expose critical attack surfaces in transformer-based malware detectors.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 25 references that are in the map. First posted on arXiv 4 Apr 2026.

Builds on

12 of 25 references.

References · 12

  1. 2017Attention Is All You Needcited by 60,361
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  4. 2017Malware Detection by Eating a Whole EXEcited by 115
  5. 2017Generating Adversarial Malware Examples for Black-Box Attacks Based on GANcited by 75
  6. 2018Adversarial Malware Binaries: Evading Deep Learning for Malware Detection in Executablescited by 62
  7. 2021A Survey on Adversarial Attacks for Malware Analysiscited by 16
  8. 2025On the Consistency of GNN Explanations for Malware Detectioncited by 5
  9. 2024SoK: Leveraging Transformers for Malware Analysiscited by 3
  10. 2024Explainability Guided Adversarial Evasion Attacks on Malware Detectorscited by 2
  11. 2024Intra-Section Code Cave Injection for Adversarial Evasion Attacks on Windows PE Malware Filecited by 1
  12. 2024Explainability-Informed Targeted Malware Misclassificationcited by 1

Built on by

Not cited yet.