Evaluation of ChatGPT's Smart Contract Auditing Capabilities Based on Chain of Thought
Yuying Du, Xueyan Tang

TL;DR
This paper evaluates GPT-4's capabilities in smart contract auditing, revealing its limitations in vulnerability detection but highlighting its strengths in code parsing and PoC generation, suggesting potential as an auxiliary tool.
Contribution
It provides a comprehensive assessment of GPT-4's performance in smart contract security tasks, comparing it with existing tools and demonstrating its strengths and weaknesses.
Findings
GPT-4 has high precision but low recall in vulnerability detection.
GPT-4 excels in code parsing and understanding contract background.
GPT-4 can generate usable PoCs in 60% of cases.
Abstract
Smart contracts, as a key component of blockchain technology, play a crucial role in ensuring the automation of transactions and adherence to protocol rules. However, smart contracts are susceptible to security vulnerabilities, which, if exploited, can lead to significant asset losses. This study explores the potential of enhancing smart contract security audits using the GPT-4 model. We utilized a dataset of 35 smart contracts from the SolidiFI-benchmark vulnerability library, containing 732 vulnerabilities, and compared it with five other vulnerability detection tools to evaluate GPT-4's ability to identify seven common types of vulnerabilities. Moreover, we assessed GPT-4's performance in code parsing and vulnerability capture by simulating a professional auditor's auditing process using CoT(Chain of Thought) prompts based on the audit reports of eight groups of smart contracts. We…
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 · Adversarial Robustness in Machine Learning · Security and Verification in Computing
MethodsAttention Is All You Need · Linear Layer · Dense Connections · Label Smoothing · Adam · Softmax · Multi-Head Attention · Layer Normalization · Dropout · Residual Connection
