Works with the AI Agents you already use
Cross Chain Messaging Review
by BanditXBT
Audit bridges and cross-chain messaging: trust model, finality, replay protection, rate limits.
Free
About this skill
Bridges concentrate risk: a single verification failure can mint unbacked assets. Start from the trust assumption, not the code.
Who attests that "event E happened on chain A"? Classify: native/canonical (rollup proof or fraud-proof window), light-client/ZK-verified, external validator/guardian set (m-of-n), optimistic (watchers + challenge period), oracle+relayer split. Write: threshold, key custody, who can change the set, upgrade authority, and the cost to compromise vs. value locked. Past failures map cleanly: validator-key compromise (Ronin), signature-verification bug (Wormhole 2022), faulty initialization accepting any message (Nomad).
-
Source: emits message only after finalized/sufficiently-confirmed state; includes
srcChainId,dstChainId,sender,nonce, payload, and for tokens the amount in canonical decimals. -
Finality & reorgs: confirmations required per source chain (Ethereum ≈ 2 epochs for economic finality; L2s have soft-confirmation vs. L1-posted vs. challenge-period finality; some chains have probabilistic finality). Acting on unfinalized messages enables double-spend after reorg.
-
Destination verification: authenticated endpoint caller; trusted-remote/peer mapping per chain (setter access control!); payload decoding bounds; no reliance on
msg.senderbeing the bridge without checking the configured endpoint. -
Replay protection: unique message ID consumed once (mark executed before external calls), bound to chain IDs and destination contract; ordering semantics (ordered vs. unordered channels) and what happens on a failed message (stuck pipeline, retry, DoS by a poison message).
-
Atomicity: cross-chain actions are not atomic. Design for partial failure: refund paths, timeouts, idempotent handlers, reconciliation. Never assume the second leg succeeds.
-
Gas/fee handling: destination gas estimation, insufficient gas leaving messages stuck, refund address, fee-token pricing.
-
Configuration risk: verifier/DVN set, required confirmations, and library versions are per-path settings; defaults may be weak. Check the actual on-chain config for each pathway, and who can change it.
-
Lock/mint vs. burn/mint vs. liquidity pools: ensure total supply across chains ≤ locked collateral at all times; invariant
Σ_chains circulating ≤ canonical locked. Test with decimals differing per chain (e.g., 6 vs. 18). -
Omnichain (OFT-style) tokens: shared-decimals truncation/dust, rate limits per chain, who can add a new chain peer.
-
Wrapped assets/depeg: a bridged token ≠ canonical token; oracles and collateral lists must distinguish (e.g., USDC vs. USDC.e).
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 13 days ago
- Free with an Agensi account
Requires
Nothing to install.
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.