arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.11440cs.SE
收藏

终端用户对智能合约中转账风险的理解

End-user Comprehension of Transfer Risks in Smart Contracts

Yustynn Panicker, Ezekiel Soremekun, Sudipta Chattopadhyay, Sumei Sun

AI总结:

本研究通过用户实验与代码分析,发现终端用户对USDT等ERC-20智能合约的转账风险认知不足,且头部合约中此类风险普遍存在,呼吁优化智能合约的可解释性与风险信息展示。

摘要:

智能合约正越来越多地应用于关键场景(例如金融交易),因此确保终端用户理解智能合约中的转账风险是十分必要的。为解决这一问题,我们针对最受欢迎的以太坊智能合约——USD Tether(USDT,泰达币),调研了终端用户对其中风险的理解程度,同时探究了这些风险在头部ERC-20智能合约中的普遍程度。我们聚焦于5种会对转账结果和用户目标造成严重影响的转账风险,包括用户被列入黑名单、合约被暂停、合约被任意升级。首先,我们开展了一项用户研究,招募110名参与者,基于USDT/MetaMask(小狐狸钱包)调研终端用户对智能合约转账风险的理解情况。其次,我们对除USDT外排名靠前的78个ERC-20智能合约进行了手动与自动化源代码分析,以识别这些风险的普遍程度。结果表明,终端用户并不了解真实风险:大多数(最高达71.8%的)用户认为合约升级和黑名单机制的严重程度/意外程度很高。更重要的是,在USDT/MetaMask的用户界面流程中,用户发现成功转账结果的难度仅为发现风险结果的一半。无论参与者自评的编程水平和Web3熟练程度如何,这些结果都保持一致。此外,我们的源代码分析显示,所研究的风险在头部ERC-20合约中的占比最高达19.2%。我们还在这些合约中发现了另外3种风险,其普遍占比最高达25.6%。本研究表明,有必要为风险结果提供可解释的智能合约、易懂的用户界面以及相关信息。

英文摘要:

Smart contracts are increasingly used in critical use cases (e.g., financial transactions). Thus, it is pertinent to ensure that end-users understand the transfer risks in smart contracts. To address this, we investigate end-user comprehension of risks in the most popular Ethereum smart contract (i.e., USD Tether (USDT)) and their prevalence in the top ERC-20 smart contracts. We focus on five transfer risks with severe impact on transfer outcomes and user objectives, including users being blacklisted, contract being paused, and contract being arbitrarily upgraded. Firstly, we conducted a user study investigating end-user comprehension of smart contract transfer risks with 110 participants and USDT/MetaMask. Secondly, we performed manual and automated source code analysis of the next top (78) ERC-20 smart contracts (after USDT) to identify the prevalence of these risks. Results show that end-users do not comprehend real risks: most (up to 71.8% of) users believe contract upgrade and blacklisting are highly severe/surprising. More importantly, twice as many users find it easier to discover successful outcomes than risky outcomes using the USDT/MetaMask UI flow. These results hold regardless of the self-rated programming and Web3 proficiency of participants. Furthermore, our source code analysis demonstrates that the examined risks are prevalent in up to 19.2% of the top ERC-20 contracts. Additionally, we discovered (three) other risks with up to 25.6% prevalence in these contracts. This study informs the need to provide explainable smart contracts, understandable UI and relevant information for risky outcomes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑