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.
DeFiFusion: Combining Transaction Events with Smart Contracts to Detect Price Manipulation Attacks
Nanjing University of Aeronautics and Astronautics(南京航空航天大学);National University of Singapore(新加坡国立大学);Zhejiang University of Technology(浙江工业大学);Zhejiang University(浙江大学);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新区(滨江)区块链与数据安全研究院)
DeFiScreener: Efficient DeFi Attack Pre-screening in Smart Contracts via Historical Case Matching
Nanjing University of Aeronautics and Astronautics(南京航空航天大学);National University of Singapore(新加坡国立大学);Shanghai University(上海大学);Zhejiang University(浙江大学);Zhejiang University of Technology(浙江工业大学);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新技术开发区(滨江)区块链与数据安全研究所)