论文标题
探索智能合同开发人员的安全实践
Exploring Security Practices of Smart Contract Developers
论文作者
论文摘要
智能合约是在区块链上运行的自我执行程序(例如,以太坊)。由于2021年的各种安全漏洞,智能合约控制的价值6.8亿美元的数字资产已被黑客入侵或被盗。尽管安全是智能合约的根本关注点,但尚不清楚智能合约开发人员如何使用安全性。为了帮助填补这一研究差距,我们进行了一项探索性定性研究,该研究包括半结构化访谈和与29个具有不同背景的智能合同开发人员的代码审查任务,其中包括10个早期阶段(不到一年的经验)和19个经验丰富的经验丰富(2 - 5年的经验经验)。 我们的发现显示了广泛的智能合同安全性和实践,包括他们使用的各种工具和资源。我们的早期开发人员的参与者的成功率(15%)要比经验丰富的同行(55%)低得多。我们对其代码评论的分层任务分析意味着,仅通过访问标准文档,参考实现和安全工具就不够。许多开发人员检查了这些材料或使用了安全工具,但仍未确定安全问题。此外,一些参与者指出了当前智能合同安全工具(例如其可用性)的缺点。我们讨论未来的教育和工具如何更好地支持开发人员确保智能合同安全。
Smart contracts are self-executing programs that run on blockchains (e.g., Ethereum). 680 million US dollars worth of digital assets controlled by smart contracts have been hacked or stolen due to various security vulnerabilities in 2021. Although security is a fundamental concern for smart contracts, it is unclear how smart contract developers approach security. To help fill this research gap, we conducted an exploratory qualitative study consisting of a semi-structured interview and a code review task with 29 smart contract developers with diverse backgrounds, including 10 early stage (less than one year of experience) and 19 experienced (2-5 years of experience) smart contract developers. Our findings show a wide range of smart contract security perceptions and practices including various tools and resources they used. Our early-stage developer participants had a much lower success rate (15%) of identifying security vulnerabilities in the code review task than their experienced counterparts (55%). Our hierarchical task analysis of their code reviews implies that just by accessing standard documentation, reference implementations and security tools is not sufficient. Many developers checked those materials or used a security tool but still failed to identify the security issues. In addition, several participants pointed out shortcomings of current smart contract security tooling such as its usability. We discuss how future education and tools could better support developers in ensuring smart contract security.