← Lab /AI/ML

Message-passing operator choice determines temporal robustness of CFG GNN malware detectors

The choice of message-passing operator strongly impacts a GNN's ability to generalize to later malware samples.

AI/ML arXiv 21 Sep 2026 Measurement Prototype evidence

Published as “Temporal Generalization and Explanation Stability of Control Flow Graph Neural Networks for Malware Detection”

Why it matters

Choosing a drift-robust message-passing operator can improve real-world malware detection longevity without increasing model size.

Summary

The choice of message-passing operator determines how well a CFG-based malware detector survives a temporal shift: operators that aggregate (e.g., PNA, GraphSAGE) retain higher AUC on a 2026 test set than attentional readouts, and the flat-feature control, which is best on a random split (AUC 0.932), becomes one of the worst across the boundary (AUC 0.807). The evidence is strong: two independent executions with separate hyper-parameter searches show a significant Friedman omnibus test (p ≤ 0.001) and seven pairwise comparisons survive Benjamini-Hochberg correction, each separating an aggregating architecture from an attentional one.

What they found 3

  1. Message-passing operator choice significantly affects temporal robustness.

    “The choice of message-passing operator changes robustness to the shift significantly”

  2. Flat-feature control is best in-distribution but among the worst out-of-distribution.

    “The flat control, which sees node features but no topology, is the best in-distribution model and among the worst across the boundary”

  3. The most accurate operator on the later corpus is the hardest to explain.

    “the most accurate operator on the later corpus is the hardest to explain”

Caveats 5

  • The operator that achieves the highest 2026 AUC (PNA) shows the weakest attribution grounding, i.e., its explanations do not align with any behavioural concept.
  • The corpus is small and purpose-built: 1,989 binaries yield 682 usable graphs, because no public corpus supplies what this study requires.
  • Adversarial robustness is not evaluated here.
  • Every interval is a standard deviation over five seeds on one fixed split, and therefore measures optimisation variance.
  • The shift was measured per class, with the benign class as a control, under a verdict rule fixed before the measurement.

What’s new here 4

  • Demonstrates that temporal evaluation can reverse the ranking of GNN architectures versus a flat baseline.
  • Shows that message-passing operator choice, not model size, drives robustness to distribution shift.
  • Provides an evidence-driven architecture (CFGNet-v2) that matches the best searched operator without hyper-parameter search.
  • Analyzes explanation stability under real temporal drift, revealing that the most accurate model is hardest to explain.