Skip to content
Open access

TCRNet: Topology-Guided Contextual Representation Network for Smart Contract Vulnerability Detection

Sep 2026 · Journal of Artificial Intelligence and Technology · 0 citations · 44 references

TL;DR

Results indicate that integrating semantic richness and structural awareness within a Contextual Encoding Network architecture enhances both detection reliability and generalization capability, making the framework suitable for practical smart contract security analysis.

Abstract

Smart contracts operate in decentralized environments where deployed code cannot be easily modified, making security vulnerabilities particularly critical. Even minor logical flaws may lead to severe financial and operational consequences. Although traditional static analysis and symbolic execution techniques have been widely used for vulnerability detection, they often rely on handcrafted rules and struggle to generalize to complex or evolving contract patterns. Recent deep learning approaches have improved detection performance by learning representations directly from code, yet many of these models treat source code primarily as token sequences or graph structures in isolation, limiting their ability to capture deeper semantic interactions. We propose Topology-Guided Contextual Representation Network (TCRNet), a Contextual Encoding Network framework for smart contract vulnerability detection. The model integrates multi-granular semantic information and structural dependency knowledge directly into the attention mechanism. Experiments conducted on a large-scale dataset derived from SmartBugs demonstrate that the proposed approach significantly outperforms traditional static tools and recent learning-based methods. TCRNet achieves an accuracy of 90.14% and a macro F1-score of 94.67%, showing substantial improvements over strong baselines. These results indicate that integrating semantic richness and structural awareness within a Contextual Encoding Network architecture enhances both detection reliability and generalization capability, making the framework suitable for practical smart contract security analysis.

Read PDF

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
Open access Oct 2026

Augmenting Multi-technique Static Analysis with Large Language Models: A Neuro-symbolic Approach to Smart Contract Vulnerability Detection

Smart contracts facilitate and enforce agreements between untrusted parties without trusted intermediaries, but vulnerabilities within contracts can cause severe damage once exploited. Various analysis techniques have been proposed for vulnerability detection, but they are typically limited to specific vulnerability ty...

Jun-Xiang Wang, Fu Song, Miao-Miao Zhang et al. · 0 citations
Sep 2026

HSF-Vul: hierarchical semantic fusion for vulnerability detection

HSF-Vul is proposed, a novel approach for software vulnerability detection and localization based on hierarchical semantic fusion that frame vulnerability detection as a binary classification task and extend it to line-level localization by analyzing the contribution of individual code lines.

Hong-Tao Wang, Xin Yang, Xiao-Feng Liu et al. · 0 citations
Sep 2026

Solidity Meets LLMs: A Transformer-Based Approach to Smart Contract Vulnerability Detection

The growing adoption of blockchain technologies, particularly the Ethereum platform, has amplified the critical role of smart contracts in decentralized applications. However, the increasing complexity and financial value of these contracts make them prime targets for cyber attacks. In this work, we present a transform...

Djamel Eddine Hakim Ghorab, Farid Mokhati, Mostafa Anouar Ghorab · 0 citations
Conference Aug 2026

Automated Smart Contract Vulnerability Detection using Hybrid Deep Learning and Language Models

With the emergence of block chain and smart contracts, security of the smart contract at any stage of its use is very relevant to prevent risks of finance and operations. The automated methods of finding vulnerabilities in smart contracts give a dependable and scalable solution. In this research, we employ the annotate...

Koyyati Rajini, SwapnaSiddamsetti · 0 citations

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