支付竞赛与拥塞通道:闪电网络安全性的一种形式化分析
Payout Races and Congested Channels: A Formal Analysis of Security in the Lightning Network
AI总结:
本文基于BOLT规范构建闪电网络单跳支付协议的形式化模型并用Spin验证,定义安全性质后发现新型支付竞赛攻击,该攻击可使无辜用户损失资金,并在本地测试环境中验证了其可行性。
摘要:
闪电网络是一个支付通道网络,市值超过1.92亿美元,旨在通过快速的链下交易解决比特币的可扩展性问题。闪电网络存在多种客户端实现,它们都遵循被称为BOLT的同一套文本规范。此前已有若干漏洞被人工发现,但迄今为止,系统性地分析闪电网络安全性的工作仍然很少。本文采用一种基础性方法,借助形式化方法分析闪电网络的安全性。基于BOLT规范,我们构建了闪电网络单跳支付协议的详细形式化模型,并使用Spin模型检测器对其进行验证。我们的模型同时刻画了支付协议的并发语义和错误语义。随后,我们定义若干安全性质,用以刻画协议正确的中间运行状态,确保结果对通道双方始终是确定的;利用这些性质,我们重新发现了文献中先前报告过的一个已知攻击,以及一种被称为支付竞赛(Payout Race)的新型攻击。支付竞赛由特定的事件序列组成,可能导致协议出现歧义,使无辜用户在不知情的情况下损失资金。我们通过在本地测试平台环境中复现该攻击,证实了其实际可行性。
英文摘要:
The Lightning Network, a payment channel network with a market cap of over 192M USD, is designed to resolve Bitcoin's scalability issues through fast off-chain transactions. There are multiple Lightning Network client implementations, all of which conform to the same textual specifications known as BOLTs. Several vulnerabilities have been manually discovered, but to-date there have been few works systematically analyzing the security of the Lightning Network. In this work, we take a foundational approach to analyzing the security of the Lightning Network with the help of formal methods. Based on the BOLTs' specifications, we build a detailed formal model of the Lightning Network's single-hop payment protocol and verify it using the Spin model checker. Our model captures both concurrency and error semantics of the payment protocol. We then define several security properties which capture the correct intermediate operation of the protocol, ensuring that the outcome is always certain to both channel peers, and using them we re-discover a known attack previously reported in the literature along with a novel attack, referred to as a Payout Race. A Payout Race consists of a particular sequence of events that can lead to an ambiguity in the protocol in which innocent users can unwittingly lose funds. We confirm the practicality of this attack by reproducing it in a local testbed environment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。