首页> 外文会议>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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号