arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.13170cs.CRcs.SE
收藏

跨链桥中的验证漏洞:一项实证研究

Understanding Verification Vulnerabilities in Cross-chain Bridges: An Empirical Study

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全全国重点实验室);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新区(滨江)区块链与数据安全研究院)

Yuying Wang, Yi Guo, Jiachi Chen, Hanwen Zhang, Yi Sun

AI总结:

本研究通过分析36个跨链桥项目的588份审计报告,提炼11种跨链验证漏洞模式并构建含830个实例的数据集,评估现有检测方法后发现需开发适配跨链验证语义的检测方法。

摘要:

随着区块链技术的快速发展,大量异构区块链应运而生,各自具有独特的架构、共识机制和应用生态。跨链桥因此成为关键基础设施组件,通常依赖智能合约实现异构区块链间的消息传递与资产转移。与单链合约不同,桥合约引入额外验证逻辑以验证外部链数据,如状态证明、消息发送者身份及签名。然而,正确实现此类逻辑颇具挑战。我们将违反跨链验证安全保障的漏洞称为跨链验证漏洞(Cross-chain Verification Vulnerabilities, CVVs)。为刻画CVVs,我们对该漏洞类别开展了首次系统性实证研究。通过分析36个真实跨链桥项目的588份安全审计报告,我们提炼出11种CVV模式,并根据受影响的验证属性将其归为5个高级别类别。依据该分类,我们构建了包含786个合约文件中830个漏洞实例的CVV数据集,该数据集建立了审计报告、经审计的源代码版本、受影响的源文件与CVV模式标签之间的映射关系。随后,我们评估了现有检测方法:当前工具对CVV模式的文档化覆盖有限;在4个被评估的大语言模型(LLMs)中仅有2个表现优于29.3% Macro-F1的全模式常数基线,最优模型达到51.2%。工具覆盖有限与LLM增益不稳定的现状,促使需开发适配跨链验证语义的检测方法。

英文摘要:

With the rapid development of blockchain technology, numerous heterogeneous blockchains have emerged, each featuring distinct architectures, consensus mechanisms, and application ecosystems. Cross-chain bridges have consequently become a critical infrastructure component, typically relying on smart contracts to facilitate message passing and asset transfers across heterogeneous blockchains. Unlike single-chain contracts, bridge contracts introduce additional verification logic to validate external-chain data, such as state proofs, message sender identities, and signatures. However, correctly implementing such logic is challenging. We refer to vulnerabilities that violate the security guarantees of cross-chain verification as Cross-chain Verification Vulnerabilities (CVVs). To characterize CVVs, we conduct the first systematic empirical study of this vulnerability class. By analyzing 588 security audit reports from 36 real-world cross-chain bridge projects, we derive 11 CVV patterns and organize them into 5 high-level categories according to the affected verification properties. Following this taxonomy, we construct a CVV dataset containing 830 vulnerability instances across 786 contract files. The dataset establishes mappings among audit reports, audited source-code versions, affected source files, and CVV-pattern labels. We then assess existing detection approaches. Current tools provide limited documented coverage of CVV patterns, while only two of four evaluated LLMs outperform an all-pattern constant baseline of 29.3% Macro-F1; the best reaches 51.2%. Together, the limited tool coverage and inconsistent LLM gains motivate detection methods tailored to cross-chain verification semantics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑