Skip to content
Conference Open access

MRR-VD: Multi-stage Retrieval-Augmented Reasoning for Smart Contract Vulnerability Detection

Aug 2026 · 2026 6th International Conference on Computer Science and Blockchain (CCSB) · pp. 20-25 · 0 citations · 25 references

TL;DR

The proposed MRR-VD is the first work that constructs a hierarchical knowledge base consisting of four layers, namely risk awareness, misjudgment correction, defense reasoning, and judgment cases, and further designs a four-stage RAG reasoning chain.

Abstract

The rapid advancement of Web 3.0 and blockchain technologies has made smart contract security a fundamental requirement for the reliable operation of blockchain systems. Recently, methods based on large language models (LLMs) combined with Retrieval-Augmented Generation (RAG) have been applied to smart contract vulnerability analysis. However, existing single-stage RAG methods rely on single-round retrieval and lack progressive reasoning capability for vulnerability judgment, making them prone to knowledge interference and semantic confusion. To address this problem, we propose MRR-VD, a multi-stage retrieval-augmented reasoning framework for smart contract vulnerability detection. To the best of our knowledge, MRR-VD is the first work that constructs a hierarchical knowledge base consisting of four layers, namely risk awareness, misjudgment correction, defense reasoning, and judgment cases, and further designs a four-stage RAG reasoning chain. The proposed design enables stepwise vulnerability verification and multi-stage consistency analysis, thereby improving detection accuracy while reducing false positives. Extensive experimental results demonstrate the effectiveness of MRR-VD, which achieves F1 scores of 0.9404 and 0.8457 for reentrancy and access control vulnerability detection, respectively.

Read PDF

Similar papers

#graph neural networks Review Open access Oct 2026

A Survey of Smart Contract Vulnerability Detection Based on Tree Representation

Smart contracts, characterized by automation, transparency, and decentralization, can establish efficient, secure, and reliable blockchain fund management and data processing mechanisms, playing a crucial supporting role in blockchain application scenarios. However, security issues in smart contracts are increasingly p...

Gong-Ming Wang, Jun-Song Zhou, Bing-Sen Li et al. · 0 citations
Open access Oct 2026

GMVD: smart contract vulnerability detection based on GAT-Mamba framework

Smart contracts hold billions of dollars worth of digital currencies, and hacking attacks can not only cause users to lose their assets but also destabilize the blockchain ecosystem. Vulnerability detection in smart contracts remains a major challenge in blockchain security. Existing methods typically rely on a fixed e...

Ming-Yan Liu, Chang-Li Zhang · 0 citations
Conference Open access Sep 2026

When LLM Architectures Meet Smart Contract Vulnerability Detection: a Replication Study

Smart contracts are immutable programs deployed on blockchain platforms, where vulnerabilities can translate directly into financial loss. Among the techniques proposed for their detection, recent work has relied increasingly on Large Language Models (LLMs) guided by carefully crafted prompts. However, the evidence acc...

Gerardo Iuliano, Gabriele De Vito, Dario Di Nucci · 0 citations
#large language models Open access Oct 2026

PIU Smart Intelligence Agents: Design and Implementation of a Security-Aware Multi-Agent Architecture for Enterprise Intelligence

Enterprises increasingly rely on heterogeneous documents, relational databases, and analytical systems to support information retrieval and business decision-making. Integrating large language models (LLMs) with these sources introduces challenges in evidence reliability, analytical correctness, access control, and ope...

Sujit Shibaprasad Maity · 0 citations
Book Open access Oct 2026

The Role of Prompt Patterns in LLM-Based Smart Contract Vulnerability Detection

Smart contracts are immutable programs deployed on blockchain platforms, and their vulnerabilities can cause severe financial losses. Therefore, several tools have been proposed to detect these vulnerabilities. Among them, recent research has increasingly leveraged Large Language Models (LLMs) relying on carefully craf...

G. Iuliano, Dario Di Nucci · 0 citations
Book Open access Oct 2026

SecChain: Operationalizing Security Guidelines for Multi-agent Smart Contract Generation

Smart contracts generated by large language models (LLMs) can compile yet still violate basic security obligations, and existing generation frameworks largely treat security as post-hoc verification rather than as a constraint that persists throughout generation and repair. We present SecChain, a multi-agent smart-cont...

Dian-Xiang Sun, Li-Ming Nie, Yang Liu · 0 citations

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