双胞胎:坚固耐用的BFT系统
Twins: BFT Systems Made Robust
摘要:
本文介绍了Twins,一个自动化的拜占庭攻击单元测试生成器。Twins实现了三种类型的拜占庭行为:(i)领导者模棱两可,(ii)双重投票,以及(iii)丢失内部状态,例如忘记保护投票值的“锁”。为了模拟拜占庭节点的有趣攻击,它实例化了节点的双副本而不是一个副本,为这两个副本提供相同的身份和网络凭据。对于系统的其他部分来说,这对双胞胎看起来与以“可疑”方式行为的单个节点没有区别。Twins可以系统地大规模生成拜占庭攻击场景,以受控的方式执行它们,并检查它们的行为。双胞胎的情况下,在协议轮和不同的节点之间的通信模式。Twins在DiemBFT的生产环境中运行,每天可以执行4400万个Twins生成的场景。虽然手头的系统没有出现错误,但为了验证Twins本身的实现而故意注入的微妙的安全漏洞在几分钟内就暴露了出来。双胞胎可以防止开发人员在更新代码库,引入新功能或执行日常维护任务时回归正确性。Twins只需要在DiemBFT上做一个薄薄的包装,因此我们设想其他系统也可以使用它。基于这个想法,一个新的攻击和几个已知的针对其他BFT协议的攻击被具体化为Twins场景。在所有情况下,目标协议在不到12个协议回合内就会崩溃,因此Twins方法暴露问题是现实的。
英文摘要:
This paper presents Twins, an automated unit test generator of Byzantine attacks. Twins implements three types of Byzantine behaviors: (i) leader equivocation, (ii) double voting, and (iii) losing internal state such as forgetting 'locks' guarding voted values. To emulate interesting attacks by a Byzantine node, it instantiates twin copies of the node instead of one, giving both twins the same identities and network credentials. To the rest of the system, the twins appear indistinguishable from a single node behaving in a 'questionable' manner. Twins can systematically generate Byzantine attack scenarios at scale, execute them in a controlled manner, and examine their behavior. Twins scenarios iterate over protocol rounds and vary the communication patterns among nodes. Twins runs in a production setting within DiemBFT where it can execute 44M Twins-generated scenarios daily. Whereas the system at hand did not manifest errors, subtle safety bugs that were deliberately injected for the purpose of validating the implementation of Twins itself were exposed within minutes. Twins can prevent developers from regressing correctness when updating the codebase, introducing new features, or performing routine maintenance tasks. Twins only requires a thin wrapper over DiemBFT, we thus envision other systems using it. Building on this idea, one new attack and several known attacks against other BFT protocols were materialized as Twins scenarios. In all cases, the target protocols break within fewer than a dozen protocol rounds, hence it is realistic for the Twins approach to expose the problems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。