Detecting Buggy Contracts via Smart Testing
Sally Junsong Wang, Jianan Yao, Kexin Pei, Hidedaki Takahashi, Junfeng, Yang

TL;DR
SmartSys is an innovative system that enhances hybrid dynamic analysis of smart contracts by teaching foundation models to identify performance bottlenecks and generate effective fuzz targets, leading to improved bug detection and deeper coverage.
Contribution
We introduce SmartSys, a self-deciding foundation model system that improves hybrid smart contract testing by forecasting analysis techniques and reducing hallucinations.
Findings
Discovered a long-escaped smart contract vulnerability.
Achieved up to 14.3% coverage improvement on benchmarks.
Detected a vulnerability missed by eleven tools and multiple audits.
Abstract
Smart contracts are susceptible to critical vulnerabilities. Hybrid dynamic analyses, such as concolic execution assisted fuzzing and foundation model assisted fuzzing, have emerged as highly effective testing techniques for smart contract bug detection recently. This hybrid approach has shown initial promise in real-world benchmarks, but it still suffers from low scalability to find deep bugs buried in complex code patterns. We observe that performance bottlenecks of existing dynamic analyses and model hallucination are two main factors limiting the scalability of this hybrid approach in finding deep bugs. To overcome the challenges, we design an interactive, self-deciding foundation model based system, called SmartSys, to support hybrid smart contract dynamic analyses. The key idea is to teach foundation models about performance bottlenecks of different dynamic analysis techniques,…
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
TopicsDigital Rights Management and Security · Artificial Intelligence in Law · Ethics and Social Impacts of AI
