paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SmartFix: Fixing Vulnerable Smart Contracts by Accelerating Generate-and-Verify Repair using Statistical Models

SmartFix:利用统计模型加速“生成-验证”式修复以修复存在漏洞的智能合约
FSE Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering2023匹配度 3/10 · 论文聚焦智能合约漏洞修复,用验证器反馈训练的统计模型加速生成-验证式补丁搜索,属于程序修复/程序合成与形式验证交叉,但与用户关注的 LLM/Agent 改进静态分析或形式化验证、ML/Agentic 程序静态分析、浮点程序分析、贝叶斯程序分析均无直接交集。引用 25 inbox
Sunbeom So, Hakjoo Oh
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:用验证器反馈训练的统计模型加速生成-验证式补丁搜索,实现智能合约漏洞的全自动、安全可保证修复。

智能合约属于安全关键软件,人工调试困难且易错,而现有自动修复技术难以同时兼顾高修复率、全自动与安全性保证。SmartFix 采用“生成-验证”范式:迭代枚举候选补丁,并调用安全验证器确认补丁正确性,从而提供安全保证。该范式的核心挑战在于搜索空间巨大且基于验证的补丁校验开销高昂。为此,作者提出利用验证器反馈信息构建统计模型,对搜索过程进行加速,从而在保持全自动与安全保证的同时大幅提升修复效率。在真实以太坊智能合约上的实验表明,SmartFix 对关键漏洞类别的修复成功率达到 94.8%,显著超过现有最先进技术 sGuard 的 65.4%。

问题
智能合约漏洞修复既关键又困难,现有修复方法无法同时实现高修复率、完全自动化与安全性保证,难以实用。
方法
采用“生成-验证”式修复:迭代枚举候选补丁并用安全验证器校验其正确性;同时从验证器反馈中学习统计模型,用以加速和引导代价高昂的补丁搜索与验证过程。
评估
在真实以太坊智能合约上对关键漏洞类别进行实验,SmartFix 的修复成功率为 94.8%,远超现有最先进方法 sGuard 的 65.4%。
原文摘要(Abstract)

We present SmartFix, a new technique for repairing vulnerable smart contracts. There is an urgent need to develop automatic bug-repair techniques for smart contracts, as smart contracts are safety-critical software and manual debugging is burdensome and error-prone. While several repair approaches have been proposed recently, they are unsatisfactory since no existing techniques can achieve high repairability, full automation, and safety guarantee at the same time, posing significant problems for practical use. SmartFix aims to address these shortcomings by using a “generate-and-verify” approach that iteratively enumerates candidate patches while validating their correctness by invoking a safety verifier. However, in this approach, a technical challenge arises as the search space is huge and the verification-based patch validation is expensive. To address this challenge, we present a novel technique for accelerating the generate-and-verify repair procedure using statistical models derived from the verifier’s feedback. Experimental results on real-world Ethereum smart contracts show that SmartFix is able to achieve a fix success rate of 94.8% for critical classes of vulnerabilities, far outperforming sGuard, the existing state-of-the-art technique whose success rate is 65.4%.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@inproceedings{SoO23,
  title = {SmartFix: Fixing Vulnerable Smart Contracts by Accelerating Generate-and-Verify Repair using Statistical Models},
  author = {Sunbeom So and Hakjoo Oh},
  booktitle = {FSE},
  year = {2023},
  doi = {10.1145/3611643.3616341}
}