kirancodes.me
To Proof Maintenance & Beyond!
ICSE 2024★ Distinguished Paper

Safeguarding DeFi Smart Contracts against Oracle Deviations

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

Abstract

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 illustrates that current parameters utilized in the majority of benchmarks are inadequate to ensure safety when confronted with significant oracle deviations. It shows that existing ad-hoc control mechanisms such as introducing delays are often in-sufficient or even detrimental to protect the DeFi protocols against the oracle deviation in the real-world.

BibTeX
@inproceedings{Deng-al:ICSE24,
  author    = {Xun Deng and
               Sidi Mohamed Beillahi and
               Cyrus Minwalla and
               Han Du and
               Andreas G. Veneris and
               Fan Long},
  title     = {Safeguarding {DeFi} Smart Contracts against Oracle Deviations},
  booktitle = {ICSE},
  pages     = {171:1--171:12},
  publisher = {{ACM}},
  year      = {2024},
}

Related papers