SmartInv: Multimodal Learning for Smart Contract Invariant Inference
Sally Junsong Wang, Kexin Pei, Junfeng Yang

TL;DR
SmartInv is a multimodal learning framework that infers invariants in smart contracts to automatically detect vulnerabilities, outperforming existing tools in bug detection speed and accuracy, and uncovering critical zero-day bugs.
Contribution
It introduces a novel multimodal invariant inference approach using foundation models with a Tier of Thought prompting strategy for smart contracts.
Findings
Generates 3.5 times more bug-critical invariants
Detects 4 times more critical bugs
Uncovers 119 zero-day vulnerabilities, including five high-severity bugs
Abstract
Smart contracts are software programs that enable diverse business activities on the blockchain. Recent research has identified new classes of "machine un-auditable" bugs that arise from both transactional contexts and source code. Existing detection methods require human understanding of underlying transaction logic and manual reasoning across different sources of context (i.e. modalities), such as code, dynamic transaction executions, and natural language specifying the expected transaction behavior. To automate the detection of ``machine un-auditable'' bugs, we present SmartInv, an accurate and fast smart contract invariant inference framework. Our key insight is that the expected behavior of smart contracts, as specified by invariants, relies on understanding and reasoning across multimodal information, such as source code and natural language. We propose a new prompting strategy…
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
TopicsInsurance and Financial Risk Management
