首页> 外文会议>International conference on information security practice and experience >An Adaptive Gas Cost Mechanism for Ethereum to Defend Against Under-Priced DoS Attacks
【24h】

An Adaptive Gas Cost Mechanism for Ethereum to Defend Against Under-Priced DoS Attacks

机译:以太坊防御天然气价格过低的自适应气体成本机制

获取原文

摘要

The gas mechanism in Ethereum charges the execution of every operation to ensure that smart contracts running in EVM (Ethereum Virtual Machine) will be eventually terminated. Failing to properly set the gas costs of EVM operations allows attackers to launch DoS attacks on Ethereum. Although Ethereum recently adjusted the gas costs of EVM operations to defend against known DoS attacks, it remains unknown whether the new setting is proper and how to configure it to defend against unknown DoS attacks. In this paper, we make the first step to address this challenging issue by first proposing an emulation-based framework to automatically measure the resource consumptions of EVM operations. The results reveal that Ethereum's new setting is still not proper. Moreover, we obtain an insight that there may always exist exploitable under-priced operations if the cost is fixed. Hence, we propose a novel gas cost mechanism, which dynamically adjusts the costs of EVM operations according to the number of executions, to thwart DoS attacks. This method punishes the operations that are executed much more frequently than before and lead to high gas costs. To make our solution flexible and secure and avoid frequent update of Ethereum client, we design a special smart contract that collaborates with the updated EVM for dynamic parameter adjustment. Experimental results demonstrate that our method can effectively thwart both known and unknown DoS attacks with flexible parameter settings. Moreover, our method only introduces negligible additional gas consumption for benign users.
机译:以太坊中的gas机制负责执行每个操作,以确保最终在EVM(以太坊虚拟机)中运行的智能合约会被终止。未能正确设置EVM操作的天然气成本,攻击者可以在以太坊上发起DoS攻击。尽管以太坊最近调整了EVM的耗气量来防御已知的DoS攻击,但仍不清楚新设置是否合适以及如何配置它以防御未知的DoS攻击。在本文中,我们首先提出了一个基于仿真的框架来自动测量EVM操作的资源消耗,从而迈出了解决这一难题的第一步。结果表明,以太坊的新设置仍然不合适。此外,我们了解到,如果成本固定,可能总会存在可利用的低价操作。因此,我们提出了一种新颖的天然气成本机制,该机制可根据执行次数动态调整EVM操作的成本,以阻止DoS攻击。这种方法惩罚了比以前更频繁执行的操作,并导致高昂的燃气成本。为了使我们的解决方案灵活,安全并避免以太坊客户端的频繁更新,我们设计了一种特殊的智能合约,该合约与更新后的EVM协作以进行动态参数调整。实验结果表明,我们的方法可以通过灵活的参数设置有效地阻止已知和未知的DoS攻击。而且,我们的方法仅对良性用户引入了微不足道的额外气体消耗。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号