Lune

ASE2022顶会

Learning Contract Invariants Using Reinforcement Learning

Junrui Liu, Yanju Chen, Bryan Tan, Isil Dillig, Yu Feng

摘要

Due to the popularity of smart contracts in the modern financial ecosystem, there has been growing interest in formally verifying their correctness and security properties. Most existing techniques in this space focus on common vulnerabilities like arithmetic overflows and perform verification by leveraging contract invariants (i.e., logical formulas hold at transaction boundaries). In this paper, we propose a new technique, based on deep reinforcement learning, for automatically learning contract invariants that are useful for proving arithmetic safety. Our method incorporates an off-line training phase in which the verifier uses its own verification attempts to learn a policy for contract invariant generation. This learned (neural) policy is then used at verification time to predict likely invariants that are also useful for proving arithmetic safety. We implemented this idea in a tool called Cider and incorporated it into an existing verifier (based on refinement type checking) for proving arithmetic safety. Our evaluation shows that Cider improves both the quality of the inferred invariants as well as inference time, leading to faster verification and hardened contracts with fewer run-time assertions.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generation 引用了 SmartPulse: Automated Checking of Temporal Properties in Smart Contracts
  • PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generation 引用了 SmartInv: Multimodal Learning for Smart Contract Invariant Inference
  • PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generation 引用了 VerX: Safety Verification of Smart Contracts
  • Demystifying Loops in Smart Contracts 引用了 VerX: Safety Verification of Smart Contracts
  • SmartPulse: Automated Checking of Temporal Properties in Smart Contracts 引用了 VerX: Safety Verification of Smart Contracts
  • SmartInv: Multimodal Learning for Smart Contract Invariant Inference 引用了 VERISMART: A Highly Precise Safety Verifier for Ethereum Smart Contracts
  • SmartInv: Multimodal Learning for Smart Contract Invariant Inference 引用了 VerX: Safety Verification of Smart Contracts
  • SmartInv: Multimodal Learning for Smart Contract Invariant Inference 引用了 SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds
  • HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi Protocols 引用了 SmartPulse: Automated Checking of Temporal Properties in Smart Contracts
  • HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi Protocols 引用了 VerX: Safety Verification of Smart Contracts
  • HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi Protocols 引用了 SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds
  • Enforcing Control Flow Integrity on DeFi Smart Contracts 引用了 SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. SmartInv: Multimodal Learning for Smart Contract Invariant InferenceSally Junsong Wang, Kexin Pei, Junfeng YangS&P 2024 · 38 次引用
  2. HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi ProtocolsDongyu Meng, Fabio Gritti, Robert McLaughlin, Nicola Ruaro 等NDSS 2026 · 2 次引用
  3. PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property GenerationYe Liu, Yue Xue, Daoyuan Wu, Yuqiang Sun 等NDSS 2025
  4. Enforcing Control Flow Integrity on DeFi Smart ContractsZhiyang Chen, Sidi Mohamed Beillahi, Pasha Barahimi, Cyrus Minwalla 等ICSE 2026

它引用的 Paper5

  1. VerX: Safety Verification of Smart ContractsAnton Permenev, Dimitar Dimitrov, Petar Tsankov, Dana Drachsler-Cohen 等S&P 2020 · 251 次引用
  2. SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in SecondsPriyanka Bose, Dipanjan Das, Yanju Chen, Yu Feng 等S&P 2022 · 142 次引用
  3. VERISMART: A Highly Precise Safety Verifier for Ethereum Smart ContractsSunbeom So, Myungho Lee, Jisu Park, Heejo Lee 等S&P 2020 · 133 次引用
  4. SmartPulse: Automated Checking of Temporal Properties in Smart ContractsJon Stephens, Kostas Ferles, Benjamin Mariano, Shuvendu K. Lahiri 等S&P 2021 · 70 次引用
  5. Demystifying Loops in Smart ContractsBenjamin Mariano, Yanju Chen, Yu Feng, Shuvendu K. Lahiri 等ASE 2020 · 20 次引用

相关 Paper

  1. SolType: refinement types for arithmetic overflow in solidityBryan Tan, Benjamin Mariano, Shuvendu K. Lahiri, Isil Dillig 等POPL 2022 · 29 次引用
  2. Verifying Declarative Smart ContractsHaoxian Chen, Lan Lu, Brendan Massey, Yuepeng Wang 等ICSE 2024 · 2 次引用
  3. Automated Inference on Financial Security of Ethereum Smart ContractsWansen Wang, Wenchao Huang, Zhaoyi Meng, Yan Xiong 等USENIX Security 2023
  4. Trainify: A CEGAR-Driven Training and Verification Framework for Safe Deep Reinforcement LearningPeng Jin, Jiaxu Tian, Dapeng Zhi, Xuejun Wen 等CAV 2022 · 28 次引用
  5. Learning to Synthesize Relational InvariantsJingbo Wang, Chao WangASE 2022 · 9 次引用
黄昏的海面,两侧是细线勾勒的悬崖