荷鲁斯之眼:发现和分析对以太坊智能合约的攻击
The Eye of Horus: Spotting and Analyzing Attacks on Ethereum Smart Contracts
摘要:
近年来,以太坊获得了极大的普及,从2016年1月的日均交易量1万增长到2020年1月的日均交易量50万。同样,智能合约开始承载更多价值,使其成为攻击者的吸引力目标。结果,他们开始成为袭击的受害者,损失数百万美元。为了应对这些攻击,学术界和工业界都提出了大量的工具来扫描智能合约的漏洞,然后再将它们部署到区块链上。然而,这些工具中的大多数只专注于检测漏洞而不是攻击,更不用说量化或跟踪被盗资产的数量了。在本文中,我们介绍了Horus,这是一个基于逻辑驱动和图形驱动的交易分析来自动检测和调查智能合约攻击的框架。Horus提供了快速的方法来量化和跟踪以太坊区块链上被盗资产的流动。我们对以太坊上部署的所有智能合约进行了大规模分析,直到2020年5月。我们发现了1,888个受攻击的智能合约和8,095个对抗性交易。我们的调查显示,在过去几年中,攻击的数量并没有减少,但对于某些漏洞仍然保持不变。最后,我们还证明了我们的框架的实用性,通过对最近的Uniswap和Lendf.me攻击的深入分析。
英文摘要:
In recent years, Ethereum gained tremendously in popularity, growing from a daily transaction average of 10K in January 2016 to an average of 500K in January 2020. Similarly, smart contracts began to carry more value, making them appealing targets for attackers. As a result, they started to become victims of attacks, costing millions of dollars. In response to these attacks, both academia and industry proposed a plethora of tools to scan smart contracts for vulnerabilities before deploying them on the blockchain. However, most of these tools solely focus on detecting vulnerabilities and not attacks, let alone quantifying or tracing the number of stolen assets. In this paper, we present Horus, a framework that empowers the automated detection and investigation of smart contract attacks based on logic-driven and graph-driven analysis of transactions. Horus provides quick means to quantify and trace the flow of stolen assets across the Ethereum blockchain. We perform a large-scale analysis of all the smart contracts deployed on Ethereum until May 2020. We identified 1,888 attacked smart contracts and 8,095 adversarial transactions in the wild. Our investigation shows that the number of attacks did not necessarily decrease over the past few years, but for some vulnerabilities remained constant. Finally, we also demonstrate the practicality of our framework via an in-depth analysis on the recent Uniswap and Lendf.me attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。