Skip to main content
Top
Published in: Empirical Software Engineering 2/2024

01-03-2024

An empirical study of attack-related events in DeFi projects development

Authors: Dongming Xiang, Yuanchang Lin, Liming Nie, Yaowen Zheng, Zhengzi Xu, Zuohua Ding, Yang Liu

Published in: Empirical Software Engineering | Issue 2/2024

Log in

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Decentralized Finance (DeFi) offers users decentralized financial services that are associated with the security of their assets. If DeFi is attacked, it could lead to considerable losses. Unfortunately, there is a lack of research on how DeFi developers respond to attacks during the development process. This lack of knowledge makes it difficult to identify which attacks to protect against and to create a comprehensive attack response system. This paper presents an empirical study to understand the current state of developers’ response to attacks during the development process. In addition, we conduct an analytical framework to help developers take preventive measures against attacks. Our research has revealed that Overflow Attack-related events are the most frequent (63, 19.75% of all attack-related events), and high-value DeFi projects tend to have more feedback and active development activities. We have observed that most of the attack instances (61, 85.92%) do not have corresponding attack-related development events, which can lead to a lack of trust between project teams and users if it is unclear whether the team responds to attacks. Furthermore, we have noticed that after the resolution of the same attack-related event, some attacks may recur, even though they could have been prevented. Consequently, we suggest some future research directions and provide some advice for DeFi project developers.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Appendix
Available only for authorised users
Literature
go back to reference Ahmadjee S, Mera-G’omez C, Bahsoon R (2021) Assessing smart contracts security technical debts. 2021 IEEE/ACM International Conference on Technical Debt (TechDebt), pp 6–15 Ahmadjee S, Mera-G’omez C, Bahsoon R (2021) Assessing smart contracts security technical debts. 2021 IEEE/ACM International Conference on Technical Debt (TechDebt), pp 6–15
go back to reference Alzoubi YI, Al-Ahmad A, Kahtan H, Jaradat A (2022) Internet of things and blockchain integration: security, privacy, technical, and design challenges. Future Internet 14(7):216CrossRef Alzoubi YI, Al-Ahmad A, Kahtan H, Jaradat A (2022) Internet of things and blockchain integration: security, privacy, technical, and design challenges. Future Internet 14(7):216CrossRef
go back to reference Barbereau T, Smethurst R, Papageorgiou O, Rieger A, Fridgen G (2022) Defi, not so decentralized: the measured distribution of voting rights Barbereau T, Smethurst R, Papageorgiou O, Rieger A, Fridgen G (2022) Defi, not so decentralized: the measured distribution of voting rights
go back to reference Berg JA, Fritsch R, Heimbach L, Wattenhofer R (2022) An empirical study of market inefficiencies in uniswap and sushiswap. arXiv:2203.07774 Berg JA, Fritsch R, Heimbach L, Wattenhofer R (2022) An empirical study of market inefficiencies in uniswap and sushiswap. arXiv:​2203.​07774
go back to reference Carapella F, Dumas E, Gerszten J, Swem N, Wall L (2022) Decentralized finance (defi): transformative potential & associated risks Carapella F, Dumas E, Gerszten J, Swem N, Wall L (2022) Decentralized finance (defi): transformative potential & associated risks
go back to reference Carter N, Jeng L (2021) Defi protocol risks: the paradox of defi. Regtech, suptech and beyond: innovation and technology in financial services” riskbooks–forthcoming Q 3 Carter N, Jeng L (2021) Defi protocol risks: the paradox of defi. Regtech, suptech and beyond: innovation and technology in financial services” riskbooks–forthcoming Q 3
go back to reference Chen J, Xia X, Lo D, Grundy J, Luo X, Chen T (2019) Defining smart contract defects on ethereum. IEEE Trans Softw Eng 48:327–345CrossRef Chen J, Xia X, Lo D, Grundy J, Luo X, Chen T (2019) Defining smart contract defects on ethereum. IEEE Trans Softw Eng 48:327–345CrossRef
go back to reference Ellis S, Juels A, Nazarov S (2017) Chainlink: a decentralized oracle network. Retrieved March 11, 2018 Ellis S, Juels A, Nazarov S (2017) Chainlink: a decentralized oracle network. Retrieved March 11, 2018
go back to reference Gao J, Liu H, Liu C, Li Q, Guan Z, Chen Z (2019) Easyflow: keep ethereum away from overflow. In: 2019 IEEE/ACM 41st international conference on software engineering: companion proceedings (ICSE-Companion), IEEE, pp 23–26 Gao J, Liu H, Liu C, Li Q, Guan Z, Chen Z (2019) Easyflow: keep ethereum away from overflow. In: 2019 IEEE/ACM 41st international conference on software engineering: companion proceedings (ICSE-Companion), IEEE, pp 23–26
go back to reference Han J, Huang S, Zhong Z (2021) Trust in defi: an empirical study of the decentralized exchange. Available at SSRN 3896461 Han J, Huang S, Zhong Z (2021) Trust in defi: an empirical study of the decentralized exchange. Available at SSRN 3896461
go back to reference He D, Wu R, Li X, Chan S, Guizani M (2023) Detection of vulnerabilities of blockchain smart contracts. IEEE Internet of Things J He D, Wu R, Li X, Chan S, Guizani M (2023) Detection of vulnerabilities of blockchain smart contracts. IEEE Internet of Things J
go back to reference Hu L, Wong WE, Kuhn DR, Kacker RN, Li S (2022) Ct-iot: a combinatorial testing-based path selection framework for effective iot testing. Empir Softw Eng 27:1–38CrossRef Hu L, Wong WE, Kuhn DR, Kacker RN, Li S (2022) Ct-iot: a combinatorial testing-based path selection framework for effective iot testing. Empir Softw Eng 27:1–38CrossRef
go back to reference Hu X, Zhuang Y, Lin SW, Zhang F, Kan S, Cao Z (2021) A security type verifier for smart contracts. Comput Secur 108:102343CrossRef Hu X, Zhuang Y, Lin SW, Zhang F, Kan S, Cao Z (2021) A security type verifier for smart contracts. Comput Secur 108:102343CrossRef
go back to reference Ivanov N, Li C, Yan Q, Sun Z, Cao Z, Luo X (2023) Security threat mitigation for smart contracts: a comprehensive survey. ACM Comput Surv Ivanov N, Li C, Yan Q, Sun Z, Cao Z, Luo X (2023) Security threat mitigation for smart contracts: a comprehensive survey. ACM Comput Surv
go back to reference Jensen JR, von Wachter V, Ross O (2021) An introduction to decentralized finance (defi). Complex Syst Inf Model Q 26:46–54 Jensen JR, von Wachter V, Ross O (2021) An introduction to decentralized finance (defi). Complex Syst Inf Model Q 26:46–54
go back to reference Kaur G, Habibi Lashkari A, Sharafaldin I, Habibi Lashkari Z (2023) Smart contracts and defi security and threats. In: Understanding cybersecurity management in decentralized finance: challenges, strategies, and trends, Springer, pp 91–111 Kaur G, Habibi Lashkari A, Sharafaldin I, Habibi Lashkari Z (2023) Smart contracts and defi security and threats. In: Understanding cybersecurity management in decentralized finance: challenges, strategies, and trends, Springer, pp 91–111
go back to reference Keele S, et al. (2007) Guidelines for performing systematic literature reviews in software engineering Keele S, et al. (2007) Guidelines for performing systematic literature reviews in software engineering
go back to reference Khan MQ, Shahid A, Uddin MI, Roman M, Alharbi A, Alosaimi W, Almalki J, Alshahrani SM (2022) Impact analysis of keyword extraction using contextual word embedding. PeerJ Comput Sci 8:e967CrossRef Khan MQ, Shahid A, Uddin MI, Roman M, Alharbi A, Alosaimi W, Almalki J, Alshahrani SM (2022) Impact analysis of keyword extraction using contextual word embedding. PeerJ Comput Sci 8:e967CrossRef
go back to reference Krupa T, Ries M, Kotuliak I, Bencel R et al (2021) Security issues of smart contracts in ethereum platforms. In: 2021 28th Conference of Open Innovations Association (FRUCT), IEEE, pp 208–214 Krupa T, Ries M, Kotuliak I, Bencel R et al (2021) Security issues of smart contracts in ethereum platforms. In: 2021 28th Conference of Open Innovations Association (FRUCT), IEEE, pp 208–214
go back to reference Liu B, Szalachowski P, Zhou J (2021) A first look into defi oracles. In: 2021 IEEE international conference on decentralized applications and infrastructures (DAPPS), IEEE, pp 39–48 Liu B, Szalachowski P, Zhou J (2021) A first look into defi oracles. In: 2021 IEEE international conference on decentralized applications and infrastructures (DAPPS), IEEE, pp 39–48
go back to reference Maouchi Y, Charfeddine L, El Montasser G (2022) Understanding digital bubbles amidst the covid-19 pandemic: evidence from defi and nfts. Finance Res Lett 47:102584 Maouchi Y, Charfeddine L, El Montasser G (2022) Understanding digital bubbles amidst the covid-19 pandemic: evidence from defi and nfts. Finance Res Lett 47:102584
go back to reference McKight PE, Najab J (2010) Kruskal-wallis test. The corsini encyclopedia of psychology pp 1–1 McKight PE, Najab J (2010) Kruskal-wallis test. The corsini encyclopedia of psychology pp 1–1
go back to reference Metelski D, Sobieraj J (2022) Valuations of decentralised finance (defi) protocols: a panel data study investigating defi’s key performance indicators Metelski D, Sobieraj J (2022) Valuations of decentralised finance (defi) protocols: a panel data study investigating defi’s key performance indicators
go back to reference Nath K (2022) Evolution of the internet from web 1.0 to metaverse: the good, the bad and the ugly Nath K (2022) Evolution of the internet from web 1.0 to metaverse: the good, the bad and the ugly
go back to reference Oliva GA, Hassan AE, Jiang ZM (2020) an exploratory study of smart contracts in the ethereum blockchain platform. Empir Softw Eng 25:1864–1904CrossRef Oliva GA, Hassan AE, Jiang ZM (2020) an exploratory study of smart contracts in the ethereum blockchain platform. Empir Softw Eng 25:1864–1904CrossRef
go back to reference Pal O, Alam B, Thakur V, Singh S (2021) Key management for blockchain technology. ICT Express 7(1):76–80CrossRef Pal O, Alam B, Thakur V, Singh S (2021) Key management for blockchain technology. ICT Express 7(1):76–80CrossRef
go back to reference Qin K, Zhou L, Afonin Y, Lazzaretti L, Gervais A (2021) Cefi vs. defi–comparing centralized to decentralized finance. arXiv:2106.08157 Qin K, Zhou L, Afonin Y, Lazzaretti L, Gervais A (2021) Cefi vs. defi–comparing centralized to decentralized finance. arXiv:​2106.​08157
go back to reference Qin K, Zhou L, Gamito P, Jovanovic P, Gervais A (2021) An empirical study of defi liquidations: incentives, risks, and instabilities. In: Proceedings of the 21st ACM internet measurement conference, pp 336–350 Qin K, Zhou L, Gamito P, Jovanovic P, Gervais A (2021) An empirical study of defi liquidations: incentives, risks, and instabilities. In: Proceedings of the 21st ACM internet measurement conference, pp 336–350
go back to reference QuillAudits (2022) Stader nearx attacked incident. https://medium.com/quillhash/decoding-a-830-000-exploit-quillaudits-c70d1ecfd562 QuillAudits (2022) Stader nearx attacked incident. https://​medium.​com/​quillhash/​decoding-a-830-000-exploit-quillaudits-c70d1ecfd562
go back to reference Raikwar M, Gligoroski D (2022) Dos attacks on blockchain ecosystem. Euro-Par 2021: parallel processing workshops: Euro-Par 2021 international workshops, Lisbon, Portugal, August 30–31, 2021. Springer, Revised Selected Papers, pp 230–242 Raikwar M, Gligoroski D (2022) Dos attacks on blockchain ecosystem. Euro-Par 2021: parallel processing workshops: Euro-Par 2021 international workshops, Lisbon, Portugal, August 30–31, 2021. Springer, Revised Selected Papers, pp 230–242
go back to reference Said KS, Nie L, Ajibode AA, Zhou X (2020) Gui testing for mobile applications: objectives, approaches and challenges. In: Proceedings of the 12th Asia-Pacific Symposium on Internetware, pp 51–60 Said KS, Nie L, Ajibode AA, Zhou X (2020) Gui testing for mobile applications: objectives, approaches and challenges. In: Proceedings of the 12th Asia-Pacific Symposium on Internetware, pp 51–60
go back to reference Sifra EM (2022) Security vulnerabilities and countermeasures of smart contracts: a survey. In: 2022 IEEE international conference on blockchain (Blockchain), IEEE, pp 512–515 Sifra EM (2022) Security vulnerabilities and countermeasures of smart contracts: a survey. In: 2022 IEEE international conference on blockchain (Blockchain), IEEE, pp 512–515
go back to reference Tolmach P, Li Y, Lin SW, Liu Y (2021) Formal analysis of composable defi protocols. In: International conference on financial cryptography and data security, Springer, pp 149–161 Tolmach P, Li Y, Lin SW, Liu Y (2021) Formal analysis of composable defi protocols. In: International conference on financial cryptography and data security, Springer, pp 149–161
go back to reference Torres CF, Schütte J, State R (2018) Osiris: hunting for integer bugs in ethereum smart contracts. In: Proceedings of the 34th annual computer security applications conference, pp 664–676 Torres CF, Schütte J, State R (2018) Osiris: hunting for integer bugs in ethereum smart contracts. In: Proceedings of the 34th annual computer security applications conference, pp 664–676
go back to reference Treleaven P, Greenwood A, Pithadia H, Xu J (2022) Web 3.0 tokenization and decentralized finance (defi). Available at SSRN 4037471 Treleaven P, Greenwood A, Pithadia H, Xu J (2022) Web 3.0 tokenization and decentralized finance (defi). Available at SSRN 4037471
go back to reference Vivar AL, Orozco ALS, Villalba LJG (2021) A security framework for ethereum smart contracts. Comput Commun 172:119–129CrossRef Vivar AL, Orozco ALS, Villalba LJG (2021) A security framework for ethereum smart contracts. Comput Commun 172:119–129CrossRef
go back to reference Wan Z, Xia X, Lo D, Chen J, Luo X, Yang X (2021) Smart contract security: a practitioners’ perspective. In: 2021 IEEE/ACM 43rd international conference on software engineering (ICSE), IEEE, pp 1410–1422 Wan Z, Xia X, Lo D, Chen J, Luo X, Yang X (2021) Smart contract security: a practitioners’ perspective. In: 2021 IEEE/ACM 43rd international conference on software engineering (ICSE), IEEE, pp 1410–1422
go back to reference Wang D, Wu S, Lin Z, Wu L, Yuan X, Zhou Y, Wang H, Ren K (2020) Towards understanding flash loan and its applications in defi ecosystem. arXiv:2010.12252 Wang D, Wu S, Lin Z, Wu L, Yuan X, Zhou Y, Wang H, Ren K (2020) Towards understanding flash loan and its applications in defi ecosystem. arXiv:​2010.​12252
go back to reference Wang H, Wang Y, Cao Z, Li Z, Xiong G (2018) An overview of blockchain security analysis. China cyber security annual conference. Springer, Singapore, pp 55–72 Wang H, Wang Y, Cao Z, Li Z, Xiong G (2018) An overview of blockchain security analysis. China cyber security annual conference. Springer, Singapore, pp 55–72
go back to reference Wang Y, Chen X, Huang Y, Zhu HN, Bian J, Zheng Z (2023) An empirical study on real bug fixes from solidity smart contract projects. J Syst Softw 111787 Wang Y, Chen X, Huang Y, Zhu HN, Bian J, Zheng Z (2023) An empirical study on real bug fixes from solidity smart contract projects. J Syst Softw 111787
go back to reference Wen Y, Lu F, Liu Y, Huang X (2021) Attacks and countermeasures on blockchains: a survey from layering perspective. Comput Netw 191:107978CrossRef Wen Y, Lu F, Liu Y, Huang X (2021) Attacks and countermeasures on blockchains: a survey from layering perspective. Comput Netw 191:107978CrossRef
go back to reference Wu S, Wang D, He J, Zhou Y, Wu L, Yuan X, He Q, Ren K (2021) Defiranger: detecting price manipulation attacks on defi applications. arXiv:2104.15068 Wu S, Wang D, He J, Zhou Y, Wu L, Yuan X, He Q, Ren K (2021) Defiranger: detecting price manipulation attacks on defi applications. arXiv:​2104.​15068
go back to reference Wu T, Shen L, Peng X, Shen B, Li Z (2020) Group activity matching with blockchain backed credible commitment. In: Proceedings of the 12th Asia-pacific symposium on internetware, pp 81–90 Wu T, Shen L, Peng X, Shen B, Li Z (2020) Group activity matching with blockchain backed credible commitment. In: Proceedings of the 12th Asia-pacific symposium on internetware, pp 81–90
go back to reference Yuan Y, Wang FY et al (2016) Blockchain: the state of the art and future trends. Acta Autom Sin 42(4):481–494 Yuan Y, Wang FY et al (2016) Blockchain: the state of the art and future trends. Acta Autom Sin 42(4):481–494
go back to reference Zhang H, Merino LH, Estrada-Galinanes V, Ford B (2022) Flash freezing flash boys: countering blockchain front-running. In: 2022 IEEE 42nd international conference on distributed computing systems workshops (ICDCSW), IEEE, pp 90–95 Zhang H, Merino LH, Estrada-Galinanes V, Ford B (2022) Flash freezing flash boys: countering blockchain front-running. In: 2022 IEEE 42nd international conference on distributed computing systems workshops (ICDCSW), IEEE, pp 90–95
go back to reference Zhou L, Xiong X, Ernstberger J, Chaliasos S, Wang Z, Wang Y, Qin K, Wattenhofer R, Song D, Gervais A (2023) Sok: decentralized finance (defi) attacks. In: 2023 IEEE symposium on security and privacy (SP), IEEE, pp 2444–2461 Zhou L, Xiong X, Ernstberger J, Chaliasos S, Wang Z, Wang Y, Qin K, Wattenhofer R, Song D, Gervais A (2023) Sok: decentralized finance (defi) attacks. In: 2023 IEEE symposium on security and privacy (SP), IEEE, pp 2444–2461
Metadata
Title
An empirical study of attack-related events in DeFi projects development
Authors
Dongming Xiang
Yuanchang Lin
Liming Nie
Yaowen Zheng
Zhengzi Xu
Zuohua Ding
Yang Liu
Publication date
01-03-2024
Publisher
Springer US
Published in
Empirical Software Engineering / Issue 2/2024
Print ISSN: 1382-3256
Electronic ISSN: 1573-7616
DOI
https://doi.org/10.1007/s10664-024-10447-7

Other articles of this Issue 2/2024

Empirical Software Engineering 2/2024 Go to the issue

Premium Partner