SmartOracle: Generating Smart Contract Oracle via Fine-Grained Invariant Detection
Jianzhong Su, Jiachi Chen, Zhiyuan Fang, Xingwei Lin, Yutian Tang and, Zibin Zheng

TL;DR
SmartOracle is a dynamic invariant detection tool that automatically generates application-specific invariants to improve vulnerability detection in smart contracts, achieving higher accuracy and effectiveness than existing methods.
Contribution
It introduces a novel approach for automatically generating fine-grained invariants as smart contract oracles, enhancing vulnerability detection accuracy and handling complex contract functionalities.
Findings
Detects 50% more ERC20 invariants than existing methods
Achieves 96% precision in vulnerability detection
Successfully identifies 466 abnormal transactions involving 31 vulnerable contracts
Abstract
As decentralized applications (DApps) proliferate, the increased complexity and usage of smart contracts have heightened their susceptibility to security incidents and financial losses. Although various vulnerability detection tools have been developed to mitigate these issues, they often suffer poor performance in detecting vulnerabilities, as they either rely on simplistic and general-purpose oracles that may be inadequate for vulnerability detection, or require user-specified oracles, which are labor-intensive to create. In this paper, we introduce SmartOracle, a dynamic invariant detector that automatically generates fine-grained invariants as application-specific oracles for vulnerability detection. From historical transactions, SmartOracle uses pattern-based detection and advanced inference to construct comprehensive properties, and mines multi-layer likely invariants to…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security · Imbalanced Data Classification Techniques
