Safeguarding DeFi Smart Contracts against Oracle Deviations
Authors:
- Xun DengXDXun Deng
- Sidi Mohamed BeillahiSBSidi Mohamed Beillahi
- Cyrus MinwallaCMCyrus Minwalla
- Han DuHDHan Du
- Andreas VenerisAVAndreas Veneris
- Fan LongFLFan Long
Preprint
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 also illustrates that current parameters utilized in the majority of benchmarks are inadequate to ensure safety when confronted with significant oracle deviations.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- TWAP Oracle Attacks: Easier Done than Said?2022
- Demystifying loops in smart contracts2020
- Oracle-Supported Dynamic Exploit Generation for Smart ContractsIEEE Transactions on Dependable and Secure Computing, 2020
- A Formal Verification Framework for Security Issues of Blockchain Smart ContractsElectronics, 2020
- Slither: A Static Analysis Framework for Smart Contracts2019
- ZEUS: Analyzing Safety of Smart Contracts2018