Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contracts
Eduardo Sardenberg, Antonio Jos\'e Grandson Busson, Daniel de Sousa Moraes, Julio Cesar Duarte, S\'ergio Colcher

TL;DR
This paper benchmarks large language models on their ability to detect and classify security vulnerabilities in Solidity smart contracts using zero-shot prompting strategies, revealing trade-offs between recall and precision.
Contribution
It systematically evaluates the effectiveness of different zero-shot prompting methods and models for smart contract vulnerability detection and classification.
Findings
CoT and ToT prompting increase recall to ~95-99%.
Claude 3 Opus achieves 90.8 F1-score in classification.
Zero-shot methods show trade-offs between sensitivity and precision.
Abstract
Smart contracts play a central role in blockchain systems by encoding financial and operational logic. Still, their susceptibility to subtle security flaws poses significant risks of financial loss and erosion of trust. LLMs create new opportunities for automating vulnerability detection, yet the effectiveness of different prompting strategies and model choices in real-world contexts remains uncertain. This paper evaluates state-of-the-art LLMs on Solidity smart contract analysis using a balanced dataset of 400 contracts under two tasks: (i) Error Detection, where the model performs binary classification to decide whether a contract is vulnerable, and (ii) Error Classification, where the model must assign the predicted issue to a specific vulnerability category. Models are evaluated using zero-shot prompting strategies, including zero-shot, zero-shot Chain-of-Thought (CoT), and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security · Big Data and Digital Economy · Adversarial Robustness in Machine Learning
