跳到正文
arXiv (AI + Vision + Imaging)· Yasir Rahman, Ishraq Samiha, Shahnewaz Karim Sakib, Anindya Bijoy Das·· 7 天前AI 评分22

LLM作为跨链桥验证器:在Solana上评估源码级与交易级攻击检测

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

AI 导读

研究在本地Solana验证器上实现原生Rust lock-and-mint跨链桥,含4个可利用变体(2个源自Cashio与Wormhole事件,2个来自Solana安全审计记录的漏洞类别),评估5个开放权重模型的6种配置共16,800条响应。无注释时模型仅诊断出24%的漏洞源码输入且频繁误报安全桥,交易诊断在缺失签名者场景较高但其余三场景平均仅6%;保留原始注释可将源码诊断率提升至60%。

正文 · 原文

arXiv:2611.21777v1 Announce Type: cross Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org