AttackPathGNN: Cross-function vulnerability detection in smart contracts using state interference graphs and conjunction pooling

Gabriela Dobrita, Simona-Vasilica Oprea, Adela Bara
6/4/2026
cs.CRcs.AI
gnn

No confident code implementation found for this paper.

Abstract

Existing learning-based detectors for Solidity smart-contracts reduce vulnerability detection to syntactic pattern matching within single functions, yet many of the most consequential exploits (The DAO, Cream Finance) exist not in any individual function but in the relationship between functions and in the combination of conditions that made the attack feasible. Thus, we propose AttackPathGNN, a graph neural network (GNN) that reframes detection as reasoning over explicit attack paths.

Show full abstract

Two architectural choices distinguish it from prior GNN-based detectors: (1)a State Interference Graph that links every pair of functions sharing mutable storage through typed, weighted edges and through directed reentrancy-path edges defined by an explicit five-condition predicate; (2)conjunction pooling, a differentiable AND-aggregator over eight named exploit preconditions whose log-sigmoid form causes the per-function exploit score to collapse whenever any single mitigation (a reentrancy guard, an access-control modifier or SafeMath) is in place. Across five independent training runs, AttackPathGNN attains 92.3+/-0.2% F1 on the SmartBugs Wild held-out test partition (4.3+/-0.3% false-negative rate, 90.8+/-2.5% detection rate on the independently human-labelled SmartBugs Curated benchmark), recovering 6/10 DASP10 categories at 100% on every seed and Reentrancy at 98.7+/-1.8%. Each prediction is emitted with a structured remediation report, turning each verdict into an actionable, function-level audit finding.

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{dobrita2026attackpathgnn,
  title  = {AttackPathGNN: Cross-function vulnerability detection in smart contracts using state interference graphs and conjunction pooling},
  author = {Gabriela Dobrita and Simona-Vasilica Oprea and Adela Bara},
  year   = {2026},
  eprint = {2606.05986},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.05986v1}
}

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/2606.05986.svg)](https://codeofpaper.com/paper/2606.05986)

Discussion