arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1909.06605cs.CR
收藏

Oracle支持的智能合约动态漏洞生成

Oracle-Supported Dynamic Exploit Generation for Smart Contracts

Haijun Wang, Yi Li, Shang-Wei Lin, Cyrille Artho, Lei Ma, Yang Liu

摘要:

尽管智能合约涉及很高的风险,但它们通常是以不受约束的方式开发的,这使得区块链交易的安全性和可靠性处于危险之中。在本文中,我们介绍了ContraMaster:一个Oracle支持的智能合约动态漏洞利用生成框架。现有的方法只改变单个事务; ContraMaster通过改变事务序列来超越这些方法。ContraMaster使用数据流、控制流和动态合约状态来指导其变化。然后,它监视目标合约程序的执行,并验证结果对通用语义测试甲骨文发现漏洞。作为一种动态技术,它保证每个发现的漏洞都违反了测试预言,并能够生成攻击脚本来利用此漏洞。与基于规则的方法相比,ContraMaster没有显示出任何误报,并且它很容易推广到未知类型的漏洞(例如,逻辑错误)。我们对218个易受攻击的智能合约进行了评估。实验结果证实了它的实用性和优势,国家的最先进的技术,也揭示了三种新类型的攻击。

英文摘要:

Despite the high stakes involved in smart contracts, they are often developed in an undisciplined manner, leaving the security and reliability of blockchain transactions at risk. In this paper, we introduce ContraMaster: an oracle-supported dynamic exploit generation framework for smart contracts. Existing approaches mutate only single transactions; ContraMaster exceeds these by mutating the transaction sequences. ContraMaster uses data-flow, control-flow, and the dynamic contract state to guide its mutations. It then monitors the executions of target contract programs, and validates the results against a general-purpose semantic test oracle to discover vulnerabilities. Being a dynamic technique, it guarantees that each discovered vulnerability is a violation of the test oracle and is able to generate the attack script to exploit this vulnerability. In contrast to rule-based approaches, ContraMaster has not shown any false positives, and it easily generalizes to unknown types of vulnerabilities (e.g., logic errors). We evaluate ContraMaster on 218 vulnerable smart contracts. The experimental results confirm its practical applicability and advantages over the state-of-the-art techniques, and also reveal three new types of attacks.

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

↑