arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.21777cs.CRcs.AI
收藏

大型语言模型(LLMs)作为跨链桥的验证器:评估Solana上的源级和交易级攻击检测

LLMs as Validators for Cross-Chain Bridges: Evaluating Source-Level and Transaction-Level Attack Detection on Solana

Chittagong University of Engineering and Technology(吉大港工程技术大学);East Delta University(东三角洲大学);University of Tennessee at Chattanooga(田纳西大学查塔努加分校);The University of Akron(阿克伦大学)

Yasir Rahman, Ishraq Samiha, Shahnewaz Karim Sakib, Anindya Bijoy Das

AI总结:

该研究在Solana上实现含四个漏洞变体的跨链桥,评估五个开放权重LLM的源级和交易级攻击检测能力,发现带注释可提升源诊断率,凸显区分正确诊断与无依据警报的重要性。

摘要:

跨链桥因链上程序的漏洞已遭受大量资产损失。在Solana上,即使底层区块链运行正常,缺失的验证检查也可能引发漏洞利用。大型语言模型(LLMs)从源代码或交易记录中诊断这些漏洞而非仅发出警报的能力仍未得到充分理解。我们在本地Solana验证器上实现了一个原生Rust锁铸桥,包含四个可利用变体:两个来自Cashio和Wormhole事件的模型漏洞,另外两个代表Solana安全审计中记录的漏洞类别。配对的易受攻击和安全程序,以及成功攻击、良性会话和被阻止的尝试,使我们能够区分正确诊断与无依据的警报。我们评估了五个开放权重模型的六种配置,共16800个响应,对比了带注释和不带注释的源输入,并使用两个盲态LLM评分器对7200个易受攻击输入的答案进行评分。结果显示不同条件下存在显著差异:不带注释时,模型诊断24%的易受攻击源输入,同时频繁标记安全桥;交易诊断在缺失签名者场景中较高,但在其他三个场景中平均为6%。部分描述漏洞的原始注释将源诊断提升至60%。这些发现强调了在桥安全审查中区分正确漏洞诊断与无依据警报的重要性。

英文摘要:

Cross-chain bridges have suffered substantial asset losses due to vulnerabilities in their on-chain programs. On Solana, missing validation checks can enable exploits even when the underlying blockchain operates correctly. The ability of large language models (LLMs) to diagnose these flaws from source code or transaction records, rather than merely raise alarms, remains insufficiently understood. We implement a native Rust lock-and-mint bridge on a local Solana validator with four exploitable variants: two model flaws from the Cashio and Wormhole incidents, while the other two represent vulnerability classes documented in Solana security audits. Paired vulnerable and secure programs, together with successful attacks, benign sessions, and blocked attempts, allow us to distinguish correct diagnoses from unsupported alarms. We evaluate six configurations of five open-weight models across 16,800 responses, compare source inputs with and without comments, and grade 7,200 answers on vulnerable inputs using two blinded LLM graders. The results reveal substantial differences across conditions: without comments, models diagnose 24% of vulnerable source inputs while frequently flagging the secure bridge. Transaction diagnosis is high for the missing-signer scenario but averages 6% across the other three scenarios. Original comments, some of which describe the flaw, increase source diagnosis to 60%. These findings highlight the importance of distinguishing correct vulnerability diagnoses from unsupported alarms in bridge security review.

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

↑