arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.06044cs.SE
收藏

保护 DeFi 智能合约免受预言机偏差影响

Safeguarding DeFi Smart Contracts against Oracle Deviations

Xun Deng, Sidi Mohamed Beillahi, Cyrus Minwalla, Han Du, Andreas Veneris, Fan Long

AI总结:

本文提出 OVer 框架,通过符号分析、约束建模和 SMT 求解自动分析 DeFi 协议在偏斜预言机输入下的安全性,并生成保护语句,实验证明现有参数在显著预言机偏差下普遍不足。

摘要:

本文提出了 OVer,一个旨在自动分析去中心化金融(DeFi)协议在受到“偏斜”预言机输入时行为的框架。OVer 首先对给定合约执行符号分析,并构建约束模型。然后,该框架利用 SMT 求解器识别允许其安全运行的参数。此外,可以为可能使用预言机值的智能合约生成保护语句,从而有效防止预言机操纵攻击。实证结果表明,OVer 能够成功分析收集到的全部 10 个基准,这些基准涵盖了多种 DeFi 协议。此外,本文还说明,当前大多数基准中使用的参数在面对显著预言机偏差时不足以确保安全。

英文摘要:

This paper presents OVer, a framework designed to automatically analyze the behavior of decentralized finance (DeFi) protocols when subjected to a "skewed" oracle input. OVer firstly performs symbolic analysis on the given contract and constructs a model of constraints. Then, the framework leverages an SMT solver to identify parameters that allow its secure operation. Furthermore, guard statements may be generated for smart contracts that may use the oracle values, thus effectively preventing oracle manipulation attacks. Empirical results show that OVer can successfully analyze all 10 benchmarks collected, which encompass a diverse range of DeFi protocols. Additionally, this paper also illustrates that current parameters utilized in the majority of benchmarks are inadequate to ensure safety when confronted with significant oracle deviations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑