# cross-chain-messaging-review

> Audit bridges and cross-chain messaging: trust model, finality, replay protection, rate limits.

cross-chain-messaging-review is a free AI agent skill on Agensi by BanditXBT, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [BanditXBT](https://www.agensi.io/creators/banditxbt)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/cross-chain-messaging-review
- Tags: web3-crypto, security, apis-backend

## 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.sender` being 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).

## Requires

Nothing beyond your AI agent.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the cross-chain-messaging-review skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does cross-chain-messaging-review do?

Audit bridges and cross-chain messaging: trust model, finality, replay protection, rate limits.

### Which AI agents support cross-chain-messaging-review?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use cross-chain-messaging-review?

Connect your AI agent to Agensi through MCP, then ask it to use cross-chain-messaging-review on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
