Temporal Generalization and Explanation Stability of Control Flow Graph Neural Networks for Malware Detection

Md. Asif Sajeed, Md. Nazrul Islam Mondal, Md Ashraful Hossen Akash
9/21/2026
cs.CRcs.AIcs.LG
gnn

No confident code implementation found for this paper.

Abstract

Malware detection is a critical task in cybersecurity, and graph neural networks over control flow graphs have shown promising results for it. However, detectors are usually evaluated on a random split of a corpus collected over a single period, which cannot show how well a model generalizes to later samples.

Show full abstract

This study addresses that limitation with a strict temporal split: every model is trained on one period and scored once on a later one. Two corpora of control flow graphs, each node carrying 37 features, were extracted statically from 1,989 Windows portable executables: 459 graphs from 2024-2025 for training and 223 from 2026 for evaluation. Twelve variants and a flat-feature control were trained on the earlier corpus. The choice of message-passing operator changes robustness to the shift significantly, and every pairwise gap that survives correction separates an aggregating architecture from one built around a learned attentional readout. The ranking also reverses: the flat control, which sees node features but no topology, is the best in-distribution model and among the worst across the boundary, so a conventional benchmark would have rejected message passing. Neither recalibration nor ensembling substitutes for the operator choice. Attributions do not shift, but explanation validity is architecture-specific, and the most accurate operator on the later corpus is the hardest to explain. An architecture derived from the finding matches the best searched operator without search. The shift affects both malware and benign classes alike, so these are results about robustness to distribution shift, not malware evolution.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sajeed2026temporal,
  title  = {Temporal Generalization and Explanation Stability of Control Flow Graph Neural Networks for Malware Detection},
  author = {Md. Asif Sajeed and Md. Nazrul Islam Mondal and Md Ashraful Hossen Akash},
  year   = {2026},
  eprint = {2609.24280},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.24280v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.24280.svg)](https://codeofpaper.com/paper/2609.24280)

Discussion