Cross-Chain bridges have become the most popular solution to support asset interoperability between heterogeneous blockchains. However, while providing efficient and flexible cross-chain asset transfer, the complex workflow involving both on-chain smart contracts and off-chain programs causes emerging security issues. In the past year, there have been more than ten severe attacks against cross-chain bridges, causing billions of loss. With few studies focusing on the security of cross-chain bridges, the community still lacks the knowledge and tools to mitigate this significant threat. To bridge the gap, we conduct the first study on the security of cross-chain bridges. We document three new classes of security bugs and propose a set of security properties and patterns to characterize them. Based on those patterns, we design Xscope, an automatic tool to find security violations in cross-chain bridges and detect real-world attacks. We evaluate Xscope on four popular cross-chain bridges. It successfully detects all known attacks and finds suspicious attacks unreported before. A video of Xscope is available at https://youtu.be/vMRO_qOqtXY.
翻译:跨Chain桥已成为支持不同链路之间资产互操作性的最受欢迎的解决办法,然而,在提供高效和灵活的跨链式资产转让的同时,涉及链式智能合同和离链式程序等复杂工作流程的复杂工作流程造成了新的安全问题;过去一年,跨链桥遭到十多起严重袭击,造成数十亿次损失;关于跨链桥安全的研究很少,社区仍然缺乏减轻这一重大威胁的知识与工具;为弥合这一差距,我们开展了关于跨链桥安全的第一个研究;我们记录了三类新的安全漏洞,并提出了一套安全特性和模式,根据这些模式,我们设计了XCOS,这是在跨链式桥梁中发现违反安全情况并侦测现实世界攻击的自动工具;我们评估了四座流行的跨链桥Xsclo;它成功地探测了所有已知的袭击,发现以前未报告的可疑袭击;在https://youtu.be/vMRO_qtXY上提供了Xscope的视频。