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

arXiv: https://arxiv.org/abs/2611.21777 · HTML: https://mlsanity.com/paper/2611.21777/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 9 of its 31 references that are in the map.
- Submitted 16 Nov 2026, announced 18 Nov 2026.

## Builds on (most cited first, 9 of 9)

- [Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Prompting](https://mlsanity.com/paper/2305.04388/) (2023)
- [Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectives](https://mlsanity.com/paper/2310.01152/) (2023)
- [PropertyGPT: LLM-driven Formal Verification of Smart Contracts through Retrieval-Augmented Property Generation](https://mlsanity.com/paper/2405.02580/) (2024)
- [SmartInv: Multimodal Learning for Smart Contract Invariant Inference](https://mlsanity.com/paper/2411.09217/) (2024)
- [All Your Tokens are Belong to Us: Demystifying Address Verification Vulnerabilities in Solidity Smart Contracts](https://mlsanity.com/paper/2405.20561/) (2024)
- [Defying the Odds: Solana's Unexpected Resilience in Spite of the Security Challenges Faced by Developers](https://mlsanity.com/paper/2406.13599/) (2024)
- [zkBridge: Trustless Cross-chain Bridges Made Practical](https://mlsanity.com/paper/2210.00264/) (2022)
- [Fuzz on the Beach: Fuzzing Solana Smart Contracts](https://mlsanity.com/paper/2309.03006/) (2023)
- [Prompt Engineering vs. Fine-Tuning for LLM-Based Vulnerability Detection in Solana and Algorand Smart Contracts](https://mlsanity.com/paper/2511.11250/) (2025)

## Abstract (arXiv)

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.
