Smart Contract Vulnerability Detection using Prompt Engineering with Reasoning Models
The increasing deployment of smart contracts has drawn significant attention to the urgent need for robust and scalable vulnerability detection techniques to mitigate substantial financial risks associated with their immutable nature on blockchain platforms. This paper introduces structured reasoning prompts using agent-role chaining for vulnerability detection that utilizes model capacity to enhance smart contract security through zero-shot and structured prompt engineering without fine-tuning. By carefully defining agent roles and embedding explicit reasoning steps within structured prompts for large language models (LLMs), the proposed method exploits the inherent reasoning capabilities of LLMs to identify security flaws in smart contracts without extensive model retraining. Experimental results demonstrate the effectiveness of the system in achieving competitive performance compared to existing vulnerability detection techniques, highlighting the potential of prompt engineering as an efficient and adaptable strategy for enhancing smart contract security.
Authors
- Phan The Duy (ORCID: https://orcid.org/0000-0002-5945-3712)
- Van-Hau Pham (ORCID: https://orcid.org/0000-0003-3147-3356)
- Lê Thái Hùng (ORCID: https://orcid.org/0000-0001-6846-9073)
- Do Tran Anh Duc
- Hoang-Phuong Chu-Nguyen
Publication Details
- Published
- 2025-08-14
- DOI
- https://doi.org/10.1109/mapr67746.2025.11133797
- Primary Topic
- Insurance and Financial Risk Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00