SquirRL:利用深度强化学习自动分析区块链激励机制的攻击
SquirRL: Automating Attack Analysis on Blockchain Incentive Mechanisms with Deep Reinforcement Learning
摘要:
激励机制是非许可区块链功能的核心:它们激励参与者运行和保护底层共识协议。然而,设计激励相容的激励机制是众所周知的挑战。因此,今天大多数公共区块链使用的激励机制的安全属性知之甚少,而且在很大程度上未经测试。在这项工作中,我们提出了SquirRL,这是一个使用深度强化学习来分析对区块链激励机制的攻击的框架。我们通过首先恢复已知的攻击来展示SquirRL的能力:(1)比特币中的最佳自私挖掘攻击[52],以及(2)块扣留攻击中的纳什均衡[16]。我们还使用SquirRL获得了一些新的经验结果。首先,我们发现了一个违反直觉的缺陷,在广泛使用的冲对手模型时,适用于多智能体马尔可夫博弈不完全信息。其次,我们证明了[52]中确定的最佳自私挖掘策略实际上不是多代理自私挖掘设置中的纳什均衡。事实上,我们的研究结果表明(但没有证明),当两个以上的竞争代理人从事自私的挖掘,没有有利可图的纳什均衡。这与在野外没有观察到自私的采矿是一致的。第三,我们发现了一种针对以太坊终结机制简化版的新型攻击,Casper the Friendly Finality Gadget(FFG)允许战略代理人将其奖励放大高达30%。值得注意的是,[10]表明诚实投票是Casper FFG中的纳什均衡:我们的攻击表明,当Casper FFG由自私挖掘组成时,情况不再如此。总之,我们的实验证明了SquirRL的灵活性和承诺,作为一个框架,研究攻击设置,迄今为止,逃避理论和经验的理解。
英文摘要:
Incentive mechanisms are central to the functionality of permissionless blockchains: they incentivize participants to run and secure the underlying consensus protocol. Designing incentive-compatible incentive mechanisms is notoriously challenging, however. As a result, most public blockchains today use incentive mechanisms whose security properties are poorly understood and largely untested. In this work, we propose SquirRL, a framework for using deep reinforcement learning to analyze attacks on blockchain incentive mechanisms. We demonstrate SquirRL's power by first recovering known attacks: (1) the optimal selfish mining attack in Bitcoin [52], and (2) the Nash equilibrium in block withholding attacks [16]. We also use SquirRL to obtain several novel empirical results. First, we discover a counterintuitive flaw in the widely used rushing adversary model when applied to multi-agent Markov games with incomplete information. Second, we demonstrate that the optimal selfish mining strategy identified in [52] is actually not a Nash equilibrium in the multi-agent selfish mining setting. In fact, our results suggest (but do not prove) that when more than two competing agents engage in selfish mining, there is no profitable Nash equilibrium. This is consistent with the lack of observed selfish mining in the wild. Third, we find a novel attack on a simplified version of Ethereum's finalization mechanism, Casper the Friendly Finality Gadget (FFG) that allows a strategic agent to amplify her rewards by up to 30%. Notably, [10] show that honest voting is a Nash equilibrium in Casper FFG: our attack shows that when Casper FFG is composed with selfish mining, this is no longer the case. Altogether, our experiments demonstrate SquirRL's flexibility and promise as a framework for studying attack settings that have thus far eluded theoretical and empirical understanding.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。