使用 Ethstractor 对以太坊智能合约的软件质量指标与自认技术债务的版本化分析
Versioned Analysis of Software Quality Indicators and Self-admitted Technical Debt in Ethereum Smart Contracts with Ethstractor
AI总结:
本文提出首个智能合约收集工具 Ethstractor,用于构建版本化合约数据集,研究发现代码指标无法有效指示漏洞,漏洞数量随时间保持一致,且多数自认技术债务从未被移除。
摘要:
去中心化应用(dApps)的兴起使智能合约成为区块链技术不可或缺的组件。由于许多智能合约处理金融交易,其安全性至关重要。此外,区块链的不可篡改性使得智能合约中的漏洞尤为棘手,因为这需要在不同的地址部署合约的新版本,从而产生以 Ether 支付的巨额费用。本文提出了 Ethstractor,这是第一个用于收集版本化智能合约数据集的智能合约收集工具。随后,收集到的数据集被用于评估代码指标作为智能合约漏洞指标的可靠性。我们的研究结果表明,代码指标在指示漏洞存在方面是无效的。此外,我们调查了智能合约新版本中的漏洞是否得到缓解,并发现漏洞数量随时间保持一致。最后,我们检查了合约中自认技术债务的移除情况,发现大多数引入的债务从未被随后移除。
英文摘要:
The rise of decentralized applications (dApps) has made smart contracts imperative components of blockchain technology. As many smart contracts process financial transactions, their security is paramount. Moreover, the immutability of blockchains makes vulnerabilities in smart contracts particularly challenging because it requires deploying a new version of the contract at a different address, incurring substantial fees paid in Ether. This paper proposes Ethstractor, the first smart contract collection tool for gathering a dataset of versioned smart contracts. The collected dataset is then used to evaluate the reliability of code metrics as indicators of vulnerabilities in smart contracts. Our findings indicate that code metrics are ineffective in signalling the presence of vulnerabilities. Furthermore, we investigate whether vulnerabilities in newer versions of smart contracts are mitigated and identify that the number of vulnerabilities remains consistent over time. Finally, we examine the removal of self-admitted technical debt in contracts and uncover that most of the introduced debt has never been subsequently removed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。