Skip to content
Preprint

Pre-Model Representation Failures in GNN-Based Smart Contract Vulnerability Detection

Aug 2026 · 0 citations · 8 references
Computer Science

TL;DR

A failure analysis of the representation layer underlying GNN-based smart contract vulnerability detectors finds 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.

Abstract

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.

View source

Similar papers

Sep 2026

A Unified Framework for Function-Level Vulnerability Detection and Explanation in Smart Contracts

A unified framework combining a novel Hierarchical Cross-Attention Subgraph Neural Network for detection with Large Language Models for explanation form a comprehensive framework that significantly enhances both the technical accuracy and operational usability of smart contract analysis.

Ngoc Minh Nguyen, Le-Minh Nguyen · 0 citations
Review Open access 2026

SVACS: Smart Contract Vulnerability Analysis via Control Flow Semantics

This paper proposes SVACS, a bytecode-based analysis framework to identify multiple co-existing vulnerabilities based on SWC registry to align with industry-standard security guidelines and assist security reviewers to ensure smart contract security.

Ankur Jain, Abhishar Anand, S. Tripathy · 0 citations
Conference Aug 2026

LLM-powered Smart Contract Vulnerability Detection with RAG-based Knowledge Base and Corrective Quality Gating

Once deployed, smart contract bytecode is final and cannot be patched. Any vulnerability that ships with the contract becomes a permanent attack surface. Existing tools have clear gaps. Static analyzers such as Slither flag aggressively and tend to produce many false positives, while large language models (LLMs) reason...

S. Nguyen, Quang-Tien Tran, H. Vu et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Automated Vulnerability Injection in Smart Contracts Using Large Language Models

Results show that LLM-based vulnerability injection is feasible, while exposing key limitations in scalability and diversity, and practical challenges including LLMs' non-determinism and the difficulty of preserving contract semantics are reported.

Luca Migliaccio, Roberto Natella, N. Ivaki et al. · 0 citations
Open access Sep 2026

A Sound Semantics Approximation of Solidity for Enhanced Vulnerability Detection

As Solidity smart contracts become central to decentralized finance and governance, the exploitation of critical vulnerabilities has repeatedly resulted in severe financial losses. Existing state-of-the-art methods that rely on symbolic execution or syntactic patterns are unable to model the language semantics accurate...

Maitri Kushwaha, Raju Halder, Agostino Cortesi · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.