咨询与建议

看过本文的还看了

相关文献

该作者的其他文献

文献详情 >SmartOracle: Generating Smart ... 收藏
arXiv

SmartOracle: Generating Smart Contract Oracle via Fine-Grained Invariant Detection

作     者:Su, Jianzhong Chen, Jiachi Fang, Zhiyuan Lin, Xingwei Tang, Yutian Zheng, Zibin 

作者机构:School of Software Engineering Sun Yat-sen University China College of Computer Science and Technology Zhejiang University China School of Computing Science University of Glasgow United Kingdom 

出 版 物:《arXiv》 (arXiv)

年 卷 期:2024年

核心收录:

主  题:Smart contract 

摘      要:As decentralized applications (DApps) proliferate, the increased complexity and usage of smart contracts have heightened their susceptibility to security incidents and financial losses. Although various vulnerability detection tools have been developed to mitigate these issues, they often suffer poor performance in detecting vulnerabilities, as they either rely on simplistic and general-purpose oracles that may be inadequate for vulnerability detection, or require user-specified oracles, which are labor-intensive to create. In this paper, we introduce SmartOracle, a dynamic invariant detector that automatically generates fine-grained invariants as application-specific oracles for vulnerability detection. From historical transactions, SmartOracle uses pattern-based detection and advanced inference to construct comprehensive properties, and mines multi-layer likely invariants to accommodate the complicated contract functionalities. After that, SmartOracle identifies smart contract vulnerabilities by hunting the violated invariants in new transactions. In the field of invariant detection, SmartOracle detects 50% more ERC20 invariants than existing dynamic invariant detection and achieves 96% precision rate. Furthermore, we build a dataset that contains vulnerable contracts from real-world security incidents. SmartOracle successfully detects 466 abnormal transactions with an acceptable precision rate 96%, involving 31 vulnerable contracts. The experimental results demonstrate its effectiveness in detecting smart contract vulnerabilities, especially those related to complicated contract functionalities. Copyright © 2024, The Authors. All rights reserved.

读者评论 与其他读者分享你的观点

用户名:未登录
我的评分