Securing smart contract with runtime validation
Ao Li, Jemin Andrew Choi, Fan Long
Abstract
We present Solythesis, a source to source Solidity compiler which takes a smart contract code and a user specified invariant as the input and produces an instrumented contract that rejects all transactions that violate the invariant. The design of Solythesis is driven by our observation that the consensus protocol and the storage layer are the primary and the secondary performance bottlenecks of Ethereum, respectively. Solythesis operates with our novel delta update and delta check techniques to minimize the overhead caused by the instrumented storage access statements. Our experimental results validate our hypothesis that the overhead of runtime validation, which is often too expensive for other domains, is in fact negligible for smart contracts. The CPU overhead of Solythesis is only 0.12% on average for our 23 benchmark contracts.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
13 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Synthesis-powered optimization of smart contracts via data type refactoring cites ZEUS: Analyzing Safety of Smart Contracts
- Synthesis-powered optimization of smart contracts via data type refactoring cites VerX: Safety Verification of Smart Contracts
- Synthesis-powered optimization of smart contracts via data type refactoring cites Making Smart Contracts Smarter
- SolType: refinement types for arithmetic overflow in solidity cites ZEUS: Analyzing Safety of Smart Contracts
- SolType: refinement types for arithmetic overflow in solidity cites VerX: Safety Verification of Smart Contracts
- SolType: refinement types for arithmetic overflow in solidity cites Making Smart Contracts Smarter
- SolType: refinement types for arithmetic overflow in solidity cites Securify: Practical Security Analysis of Smart Contracts
- ZEUS: Analyzing Safety of Smart Contracts cites Making Smart Contracts Smarter
- Taming callbacks for smart contract modularity cites Making Smart Contracts Smarter
- Taming callbacks for smart contract modularity cites Securify: Practical Security Analysis of Smart Contracts
- Learning to Fuzz from Symbolic Execution with Application to Smart Contracts cites ZEUS: Analyzing Safety of Smart Contracts
- Learning to Fuzz from Symbolic Execution with Application to Smart Contracts cites VerX: Safety Verification of Smart Contracts
- Learning to Fuzz from Symbolic Execution with Application to Smart Contracts cites Making Smart Contracts Smarter
- Learning to Fuzz from Symbolic Execution with Application to Smart Contracts cites Securify: Practical Security Analysis of Smart Contracts
- Demystifying Invariant Effectiveness for Securing Smart Contracts cites Making Smart Contracts Smarter
- Compositional Security for Reentrant Applications cites Taming callbacks for smart contract modularity
- Compositional Security for Reentrant Applications cites Making Smart Contracts Smarter
- Securify: Practical Security Analysis of Smart Contracts cites ZEUS: Analyzing Safety of Smart Contracts
- Securify: Practical Security Analysis of Smart Contracts cites Making Smart Contracts Smarter
Cited by top-tier papers13
- Compositional Security for Reentrant ApplicationsEthan Cecchetti, Siqiu Yao, Haobin Ni, Andrew C. MyersS&P 2021 · 42 citations
- SolType: refinement types for arithmetic overflow in solidityBryan Tan, Benjamin Mariano, Shuvendu K. Lahiri, Isil Dillig et al.POPL 2022 · 29 citations
- Taming callbacks for smart contract modularityElvira Albert, Shelly Grossman, Noam Rinetzky, Clara Rodríguez-Núñez et al.OOPSLA 2020 · 28 citations
- Demystifying Invariant Effectiveness for Securing Smart ContractsZhiyang Chen, Ye Liu, Sidi Mohamed Beillahi, Yi Li et al.FSE 2024 · 15 citations
- Synthesis-powered optimization of smart contracts via data type refactoringYanju Chen, Yuepeng Wang, Maruth Goyal, James Dong et al.OOPSLA 2022 · 14 citations
Builds on6
- Making Smart Contracts SmarterLoi Luu, Duc-Hiep Chu, Hrishi Olickel, Prateek Saxena et al.CCS 2016 · 2,306 citations
- Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
- ZEUS: Analyzing Safety of Smart ContractsSukrit Kalra, Seep Goel, Mohan Dhawan, Subodh SharmaNDSS 2018 · 595 citations
- Learning to Fuzz from Symbolic Execution with Application to Smart ContractsJingxuan He, Mislav Balunovic, Nodar Ambroladze, Petar Tsankov et al.CCS 2019 · 288 citations
- VerX: Safety Verification of Smart ContractsAnton Permenev, Dimitar Dimitrov, Petar Tsankov, Dana Drachsler-Cohen et al.S&P 2020 · 251 citations
Related papers
- Demystifying Loops in Smart ContractsBenjamin Mariano, Yanju Chen, Yu Feng, Shuvendu K. Lahiri et al.ASE 2020 · 20 citations
- Towards Understanding the Bugs in Solidity CompilerHaoyang Ma, Wuqi Zhang, Qingchao Shen, Yongqiang Tian et al.ISSTA 2024 · 9 citations
- Clone Detection for Smart Contracts: How Far Are We?Zuobin Wang, Zhiyuan Wan, Yujing Chen, Yun Zhang et al.FSE 2025 · 1 citation
- Automated Inference on Financial Security of Ethereum Smart ContractsWansen Wang, Wenchao Huang, Zhaoyi Meng, Yan Xiong et al.USENIX Security 2023
- FunRedisp: Reordering Function Dispatch in Smart Contract to Reduce Invocation Gas FeesYunqi Liu, Wei SongISSTA 2024 · 3 citations
