首页> 外文会议>IEEE International Conference on Software Analysis, Evolution, and Reengineering >EVM*: From Offline Detection to Online Reinforcement for Ethereum Virtual Machine
【24h】

EVM*: From Offline Detection to Online Reinforcement for Ethereum Virtual Machine

机译:EVM * :从以太坊虚拟机的脱机检测到在线增强

获取原文

摘要

Attacks on transactions of Ethereum could be dangerous because they could lead to a big loss of money. There are many tools detecting vulnerabilities in smart contracts trying to avoid potential attacks. However, we found that there are still many missed vulnerabilities in contracts. Motivated by this, we propose a methodology to reinforce EVM to stop dangerous transactions in real time even when the smart contract contains vulnerabilities. Basically, the methodology consists of three steps: monitoring strategy definition, opcode-structure maintenance and EVM instrumentation. Monitoring strategy definition refers to the specific rule to test whether there is a dangerous operation during transaction execution. Opcode-structure maintenance is to maintain a structure to store the rule related opcodes and analyze it before an operation execution. EVM instrumentation inserts the monitoring strategy, interrupting mechanism and the opcode-structure operations in EVM source code. For evaluation, we implement EVM* on js-evm, a widely-used EVM platform written in javascript. We collect 10 contracts online with known bugs and use each contract to execute a dangerous transaction, all of them have been interrupted by our reinforced EVM*, while the original EVM permits all attack transactions. For the time overhead, the reinforced EVM* is slower than the original one by 20-30%, which is tolerable for the financial critical applications.
机译:对以太坊交易的攻击可能很危险,因为它们可能导致巨额资金损失。有许多工具可以检测智能合约中的漏洞,从而避免潜在的攻击。但是,我们发现合同中仍然存在许多遗漏的漏洞。因此,我们提出了一种方法,即使智能合约包含漏洞,也可以增强EVM实时阻止危险交易。基本上,该方法包括三个步骤:监视策略定义,操作码结构维护和EVM检测。监视策略定义是指用于测试在事务执行期间是否存在危险操作的特定规则。操作码结构维护是指维护与规则相关的操作码并在执行操作之前对其进行分析的结构。 EVM工具在EVM源代码中插入监视策略,中断机制和操作码结构操作。为了评估,我们实施了EVM * 在js-evm(使用javascript编写的广泛使用的EVM平台)上。我们在线收集了10个已知错误的合同,并使用每个合同执行危险的交易,所有这些都已被我们增强的EVM打断 * ,而原始EVM允许所有攻击交易。对于时间开销,增强型EVM * 比原始版本慢20-30%,这对于财务关键型应用程序是可以容忍的。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号