paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Property-Based Automated Repair of DeFi Protocols

基于属性的 DeFi 协议自动修复
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 3/10 · 论文属于程序自动修复与形式化验证方向,与程序分析/验证有边缘关联;但核心场景是 DeFi 智能合约,且未涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,与用户当前主要研究交叉点不匹配。引用 5 inbox
Palina Tolmach, Yi Li, Shang-Wei Lin
crossref: 2026-09-12

AI 速览

一句话:提出 DeFinery,结合搜索式补丁生成与语义规约推断,自动修复不满足用户性质约束的 DeFi 智能合约。

智能合约编程错误可导致安全攻击,而现有智能合约自动修复工具多针对典型漏洞,难以处理 DeFi 合约中功能规约违背:实现与预期金融模型不一致会造成资金损失。本文提出 DeFinery,一种面向用户定义正确性质的自动修复技术。它将基于搜索的补丁生成与对原程序的语义分析结合,以推断规约,从而在探索多样补丁的同时提供相对预期行为的形式化正确性保证。作者在 9 个真实世界与基准智能合约上评估,表明 DeFinery 能高效生成高质量补丁,且这些补丁无法被现有工具发现。

问题
现有智能合约自动修复主要缓解典型漏洞,无法保证 DeFi 合约满足用户定义的功能正确性质;实现偏离预期金融模型会导致资金损失。
方法
提出 DeFinery,将基于搜索的补丁生成与语义分析推断规约相结合,在探索多样补丁的同时提供对预期行为的形式化正确性保证。
评估
在 9 个真实世界和基准智能合约上修复,证明能高效生成其他工具无法发现的高质量补丁。
原文摘要(Abstract)

Programming errors enable security attacks on smart contracts, which are used to manage large sums of financial assets. Automated program repair (APR) techniques aim to reduce developers’ burden of manually fixing bugs by automatically generating patches for a given issue. Existing APR tools for smart contracts focus on mitigating typical smart contract vulnerabilities rather than violations of functional specification. However, in decentralized financial (DeFi) smart contracts, the inconsistency between intended behavior and implementation translates into the deviation from the underlying financial model, resulting in monetary losses for the application and its users. In this work, we propose DeFinery—a technique for automated repair of a smart contract that does not satisfy a user-defined correctness property. To explore a larger set of diverse patches while providing formal correctness guarantees w.r.t. the intended behavior, we combine search-based patch generation with semantic analysis of an original program for inferring its specification. Our experiments in repairing 9 real-world and benchmark smart contracts prove that DeFinery efficiently generates high-quality patches that cannot be found by other existing tools.

链接与引用

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

BibTeX
@inproceedings{paperbot7363,
  title = {Property-Based Automated Repair of DeFi Protocols},
  author = {Palina Tolmach and Yi Li and Shang-Wei Lin},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3559560}
}