Beyond the Efficiency-Efficacy Dilemma: A Critical Analysis of Transferability in Adversarial Malware Detection

Veysel Alevcan, Mohammad Furqan Ali, Teresa Sousa, Luís Miguel Campos, Christoforos NtantogianarXiv 2026

TL;DR

In adversarial machine learning, conventional wisdom says that slow, multi-step optimization attacks are deadlier than fast, single-step approximations. When stress-testing malware detectors, this paper finds the exact opposite: a crude, single-step attack fools a black-box target far more reliably than a complex iterative one. For engineers tasked with auditing AI security—especially under incoming regulations like the EU AI Act—this means fast, lightweight tests aren't just cheaper; they are actually better at exposing real-world vulnerabilities.

What Problem Does This Paper Address?

Critical infrastructure, like modern energy grids, relies heavily on machine learning to spot malware before it disrupts physical operations. However, ML models have a notorious blind spot: adversarial examples—inputs subtly tweaked to trick a classifier into seeing something benign while preserving malicious behavior.

In realistic scenarios, attackers don't have access to the internal wiring of a deployed security model (a "black-box" setting), which is often a non-differentiable, tree-based ensemble like a Random Forest. Instead, attackers use transfer attacks: they train a local neural network (a surrogate) to mimic the target, craft adversarial examples using the surrogate's gradients, and throw those examples at the real target, hoping the deception transfers across architectures.

Until now, security researchers largely assumed that stronger, iterative white-box attacks would naturally transfer better. Meanwhile, the industry lacks standardized, automated pipelines to systematically stress-test these defenses for compliance with emerging AI governance standards.

Methods

The authors introduce the Adversarial AI Engine (AAIE), a modular, end-to-end framework that automates adversarial stress-testing, complete with provenance logging for regulatory audits.

Figure 1. Surrogate based transfer attack pipeline implemented in the AAIE Transfer Module. A differentiable surrogate model is trained to approximate the black-box target; adversarial examples are crafted on the surrogate using white-box methods and transferred to the target.

To test black-box transferability, the authors set up a classic architectural mismatch:

  • The Target: A production-style Random Forest classifier (200 trees), treated as an opaque black box.
  • The Surrogate: A compact, two-layer neural network trained via pseudo-labeling—meaning it learns by observing the inputs and final predictions of the Random Forest, trying to approximate its decision boundaries.

Once the surrogate is trained, AAIE generates adversarial perturbations using two standard gradient-based algorithms:

  1. FGSM (Fast Gradient Sign Method): A quick, linear approximation that takes a single step in the direction that maximizes model error.
  2. PGD (Projected Gradient Descent): A heavy-duty, 10-step iterative method that carefully climbs the surrogate's loss landscape while staying within a strict perturbation budget ($\varepsilon$).

To connect math to governance, the authors introduce a holistic Resilience Index (RI)—a 0-to-100 composite score weighing accuracy preservation, attack resistance, and stealth against a secondary One-Class SVM anomaly detector.

Datasets

The authors evaluate their pipeline using a stratified, class-balanced subset of EMBER2018, an open benchmark dataset for static Windows Portable Executable (PE) malware detection (9,693 training samples and 1,195 test samples, split 50/50 benign and malicious). From each file, they statically extract and standardize a 30-dimensional feature vector capturing byte histograms, entropy statistics, string traits, metadata, and PE header structures. No new datasets are introduced.

Key Insights and Ideas

  • Surrogate Overfitting is Real: Why did the "weaker" attack win? PGD's iterative steps meticulously trace the local, non-linear quirks and curves of the neural network surrogate. When transferred to a Random Forest—which carves up space using rigid, step-like decision trees—those hyper-specialized perturbations fall flat.
  • Crude Directions Generalize Better: FGSM takes one blunt step along the dominant gradient direction. While less effective at fooling the neural network itself, this broad linear direction captures fundamental feature vulnerabilities shared by both architectures.
Transferability gap showing how PGD overfits the surrogate compared to FGSM.
  • Efficiency Meets Efficacy: Practitioners don't have to trade compute speed for testing rigor. Lightweight, single-step attacks are actually preferable for scalable, real-time auditing of black-box security classifiers.
  • Out-of-the-Box ML Fails Governance Checks: Even with constrained perturbations, cross-architecture transferability is alarmingly high, suggesting unhardened ML malware detectors will struggle to pass mandates like the EU AI Act or NIST AI RMF.

Key Results

Across every tested perturbation budget ($\varepsilon$ from $0.01$ to $0.20$), single-step FGSM consistently outperformed 10-step PGD when attacking the Random Forest target:

Attack Success Rate across perturbation budgets, showing FGSM consistently outperforming PGD.
  • Attack Success Rate (ASR): FGSM peaked at 52.9% ($\varepsilon = 0.15$), whereas PGD topped out at 45.2% ($\varepsilon = 0.20$). Paired t-tests confirmed statistical significance ($p = 0.00112$, Cohen's $d = 0.742$).
  • Transferability Score (Target ASR / Surrogate ASR): FGSM achieved an average improvement of 19.4% over PGD, peaking at 0.802—meaning over 80% of the attacks that fooled the neural network also fooled the Random Forest.
  • Stealth and Resilience: At $\varepsilon = 0.15$, target accuracy plunged from a clean baseline of 88.2% down to 47.1% under FGSM (vs. 56.3% under PGD). Curiously, the secondary anomaly detector flagged fewer adversarial samples (22.72%) than clean samples (34.06%), yielding a Detection Evasion Ratio of -33.31% and overall Resilience Index scores in the moderate bucket (54.99 for FGSM, 49.76 for PGD).
  • Runtime: The entire automated AAIE pipeline runs in under 15 minutes on a single consumer-grade T4 GPU.

Limitations and Future Work

The biggest caveat is that perturbations were applied in feature space—tweaking standardized numbers in a vector rather than modifying actual Windows executable files. Because these perturbed vectors aren't mapped back into valid, runnable PE binaries ("problem-space" attacks), the results represent an upper bound on transferability. In future work, the authors plan to tackle strict binary-preserving manipulations (like section padding or import table edits) and expand AAIE to test other model families—such as SVMs, gradient boosting, and deep networks—across IoT and industrial control datasets.

Summary updated

BibTeX
@misc{alevcan2026beyond,
  author = {Veysel Alevcan and Mohammad Furqan Ali and Teresa Sousa and Luís Miguel Campos and Christoforos Ntantogian},
  title = {{Beyond the Efficiency-Efficacy Dilemma: A Critical Analysis of Transferability in Adversarial Malware Detection}},
  year = {2026},
  eprint = {2611.33243},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33243},
}
Figure