DeFi, or Decentralized Finance, is based on a distributed ledger called blockchain technology. Using blockchain, DeFi may customize the execution of predetermined operations between parties. The DeFi system use blockchain technology to execute user transactions, such as lending and exchanging. The total value locked in DeFi decreased from \$200 billion in April 2022 to \$80 billion in July 2022, indicating that security in this area remained problematic. In this paper, we address the deficiency in DeFi security studies. To our best knowledge, our paper is the first to make a systematic analysis of DeFi security. First, we summarize the DeFi-related vulnerabilities in each blockchain layer. Additionally, application-level vulnerabilities are also analyzed. Then we classify and analyze real-world DeFi attacks based on the principles that correlate to the vulnerabilities. In addition, we collect optimization strategies from the data, network, consensus, smart contract, and application layers. And then, we describe the weaknesses and technical approaches they address. On the basis of this comprehensive analysis, we summarize several challenges and possible future directions in DeFi to offer ideas for further research.
翻译:DeFi, 或分散金融, 以分布式分类账为基础, 称为“ 连锁技术 ” 。 使用连锁系统, DeFi 可以定制执行各方之间的预定操作。 DeFi 系统使用连锁技术进行用户交易, 如借贷和交换。 DeFi 中锁定的总价值从2022年4月的2 000亿美元下降到2022年7月的800亿美元, 表明这一领域的安全仍然有问题 。 在本文件中, 我们处理 DeFi 安全研究中的缺陷 。 根据我们的最佳知识, 我们的文件是首先对 DeFi 安全进行系统分析的。 首先, 我们总结了每个连锁层中与 DeFi 相关的弱点。 此外, 应用程序级别的脆弱性也得到了分析。 然后我们根据与脆弱性相关的原则对真实世界的 DeFi 攻击进行分类和分析。 此外, 我们从数据、 网络、 共识、 智能合同 和应用层次收集了优化战略 。 然后我们描述了它们所处理的弱点和技术方法。 我们根据这一全面分析, 总结了DeFi 中的若干挑战和可能的未来方向。