← Lab /Security & privacy

Perturbing function call graphs enables up to 100% evasion of malware detectors

PhantomCall can evade graph-based and raw-byte Windows malware detectors by injecting dummy functions

Security & privacy arXiv 1 Sep 2026 Attack Prototype evidence

Published as “PhantomCall: Evading ML Malware Detectors via Function Call Graph Perturbation”

Why it matters

The work shows that current static ML malware detectors can be bypassed by modest binary-level graph perturbations, highlighting the need for defenses that consider function-call-graph integrity.

Summary

PhantomCall evades three static Windows malware detectors with 85-100% attack success rate, improving over the prior best by up to 14.78 percentage points on MalGraph and 95.5 points on SAFE+GNN. The attack works by injecting fully executable dummy functions to perturb the function call graph while preserving semantics, and succeeds with a single call-site modification for most samples, preserving malicious behavior in 86-97% of cases. Evidence comes from a 2025-collected malware corpus evaluated on three classifiers at two false-positive rates, with comparisons to two prior attacks. However, adversarial finetuning of the detectors cuts the success rate on SAFE+GNN to 26.3%, and simple structural heuristics can flag many variants, showing the attack is not unbreakable.

What they found 2

  1. PhantomCall achieves 85-100% attack success rate across all configurations.

    “the best PhantomCall variant achieves 85-100% attack success rate across all configurations”

  2. 86-97% of evasive variants preserve the original malicious behavior in sandbox testing.

    “86-97% of evaluated evasive variants preserve the original malicious behavior in sandbox-based semantic testing across all configurations”

Caveats 2

  • For SAFE+GNN, finetuning produces the largest ASR reduction of 58.7 pp (85.0%→26.3%).
  • Structural heuristic Hleaf achieves 99.9% true-positive detection on the default leaf injection with only 0.1% false-positive rate, though the DAG variant reduces detection to 10.5%.

What’s new here 4

  • Perturbs the function call graph (FCG) of Windows PE binaries by injecting fully executable dummy functions, a surface not previously attacked for Windows malware.
  • Provides a configurable black-box attack framework that jointly searches injection parameters (number of functions, call sites, NOP content) guided by the classifier’s score.
  • Demonstrates high evasion rates across three architecturally distinct detectors (raw-byte CNN, CFG+FCG GNN, pure FCG GNN) with minimal code overhead.
  • Shows that a single call-site modification suffices for most evasion, enabling fast generation (up to 2.9× faster than prior work).