,
Chinonso Philip Nwishienyi
,
Charity Wanja Mwaura
,
Alia Teto
,
Jema David Ndibwile
Creative Commons Attribution 4.0 International license
This paper is a failure analysis of the representation layer underlying GNN-based smart contract vulnerability detectors. These systems convert source code into graphs before any learning takes place; if the graph fails to capture the code’s semantics, no model improvement can compensate. We investigate GNNSCVulDetector and identify four failures. First, structurally different contracts produce byte-for-byte identical graphs, constituting a concrete evasion attack. Second, graph construction is governed by a hardcoded 47-entry variable whitelist (including one duplicate entry), which constrains what the extractor can recognise. As a consequence, identical vulnerabilities with different variable names produce inconsistent graphs, graph quality degrades as naming diverges from the whitelist, and when no entry matches the pipeline produces structural output not grounded in source variables. Third, the C node (the graph element representing the external caller that triggers a reentrancy attack) is absent from even the most canonical vulnerable contract in the literature. Fourth, a controlled experiment confirms this as a direct misclassification: a fully exploitable contract is labelled safe because the C → W edge is never constructed. All four failures are demonstrated experimentally. Current accuracy figures in the literature are measured under conditions that do not expose these failures. We demonstrate one confirmed case of misclassification caused directly by a representation-layer failure; the prevalence of such failures in real-world contract populations remains an open empirical question.
@InProceedings{hondi_et_al:LIPIcs.AFT.2026.33,
author = {Hondi, Birindwa Prisca and Nwishienyi, Chinonso Philip and Mwaura, Charity Wanja and Teto, Alia and Ndibwile, Jema David},
title = {{Pre-Model Representation Failures in GNN-Based Smart Contract Vulnerability Detection}},
booktitle = {8th Conference on Advances in Financial Technologies (AFT 2026)},
pages = {33:1--33:12},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-451-2},
ISSN = {1868-8969},
year = {2026},
volume = {395},
editor = {Kiayias, Aggelos and Kyropoulou, Maria},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.AFT.2026.33},
URN = {urn:nbn:de:0030-drops-278872},
doi = {10.4230/LIPIcs.AFT.2026.33},
annote = {Keywords: Smart contract security, graph neural networks, vulnerability detection, DeFi, reentrancy, feature extraction}
}