Bridges fail at the verification step between chains, not at the cryptography of either chain alone. A bridge locks value on one side and mints a representation on the other, and every major bridge loss traces back to a message that was trusted without proof, a validator set that was smaller than claimed, or a contract that was never initialized. This sub-skill belongs to bridge-attacks, which owns bridge architectures and hack patterns, and it supplies the review method: map the trust model, test the verification, and price the compromise.
Quick Workflow
- Map the design: lock and mint, burn and release, or liquidity pools, and name the contract on each chain that holds value.
- Identify the trust model: validator set, multisig threshold, optimistic fraud proofs, or light client verification, and write down exactly who must be honest.
- Review message verification line by line: what proof the destination chain requires, what it checks, and what it assumes about the source chain.
- Price the compromise: how many keys, validators, or relayers must fail before an attacker can mint or release, and what total value that unlocks.
- Test the classic patterns on a fork: fake deposits, replayed messages, uninitialized proxies, and mismatched chain identifiers.
- Review upgradeability, pause, and rate limits: who can stop the bridge, how fast, and what cap bounds a single bad mint.
- Check the relayer and watcher layer: liveness assumptions, fraud proof windows, and what happens if relayers simply stop.
- Report each trust assumption with its compromise cost and its test result, not just a design diagram.
1. Architecture and trust model mapping
# Find the mint, release, lock, and burn entry points on each side
grep -rn "function mint\|function release\|function lock\|function burn\|function deposit\|function withdraw" \
bridge-contracts/contracts --include="*.sol" | head -40
# For each one, record the caller check, the proof argument, and the
# event it emits, because the event is often the only cross-chain link
grep -rn "event " bridge-contracts/contracts --include="*.sol" | head -40
#!/usr/bin/env python3
"""Bridge compromise cost model, kept deliberately simple."""
total_locked = 500_000_000.0
threshold, total_validators = 5, 9
print(f"threshold: {threshold} of {total_validators}")
print(f"value unlocked by threshold compromise: ${total_locked:,.0f}")
print("flag it if the threshold is under one third of the set,")
print("if one operator runs several validators, or if the set rarely rotates")
2. Message verification review
// FAIL pattern, simplified from real bridge losses: mint trusts a
// message without verifying it against source chain state.
// The destination contract must check the proof, the source chain
// identifier, the nonce, and that the message was not already used.
function mint(address to, uint256 amt, bytes calldata proof) external {
// Missing here: proof verification, chain id check, replay check.
_mint(to, amt);
}
# Replay test on a fork: submit the same valid message twice
cast send $BRIDGE "mint(address,uint256,bytes)" $RECIPIENT 1000 $PROOF \
--rpc-url http://127.0.0.1:8545 --private-key $TEST_KEY
cast send $BRIDGE "mint(address,uint256,bytes)" $RECIPIENT 1000 $PROOF \
--rpc-url http://127.0.0.1:8545 --private-key $TEST_KEY
# The second call must revert. If it mints again, replay protection is absent.
3. Validator set and key management check
# Read the validator set and threshold on chain (fill addresses)
cast call $BRIDGE "getValidators()" --rpc-url $RPC_URL
cast call $BRIDGE "threshold()" --rpc-url $RPC_URL
cast call $BRIDGE "paused()" --rpc-url $RPC_URL
# Then check key hygiene off chain: hardware custody, rotation history,
# and whether the same keys sign for other protocols or testnets
4. Pause, limits, and initialization
# Uninitialized proxy check: an implementation left uninitialized can
# be claimed by an attacker and then used to upgrade the proxy
cast call $IMPLEMENTATION "owner()" --rpc-url $RPC_URL
cast call $IMPLEMENTATION "initialized()" --rpc-url $RPC_URL
# Rate limit check: read the daily cap and compare it with total locked
cast call $BRIDGE "dailyLimit()" --rpc-url $RPC_URL
cast call $BRIDGE "dailySpent()" --rpc-url $RPC_URL
Edge cases
- A bridge with honest validators but a single relayer can still be censored; liveness is a security property, not just an operations detail.
- Optimistic bridges are only as strong as their fraud proof window and their watchers; a window nobody watches is no window at all.
- Chain identifier confusion lets a message valid on a testnet or a fork replay on mainnet; check the domain separator on every message type.
- Upgrades that change verification logic need a fresh review of the whole message path, not just a diff of the changed lines.
- Liquidity pool bridges move the risk from minting to pool accounting; check for double counting of the same deposit across chains.
- Emergency pause that only the compromised multisig can trigger is not an emergency control; check who can pause independently of who can mint.
Key references
1---2name: bridge-attacks-security-review3description: Use when reviewing cross-chain bridge security, including validator and multisig trust, message verification, mint and release logic, pause controls, and rate limits. Use when assessing a new bridge design, testing replay or fake deposit attacks on a fork, or scoring how much value a single compromised key can move.4version: "1.0.0"5domain: blockchain6lifecycle: stable7last_verified: "2026-10-27"8parent: bridge-attacks9requires: [bridge-attacks]10extends: []11relates: [smart-contract-audit, defi-threats, blockchain-forensics]12tools:13 - name: Python14 version: "3.12"15 - name: Slither16 version: "0.11.0"17 - name: Foundry18 version: "1.0.0"19 - name: Solidity compiler20 version: "0.8.28"21metadata:22 source: https://skillmd.com/skills/mizazhaider-ceh/bridge-attacks-security-review23---2425Bridges fail at the verification step between chains, not at the cryptography of either chain alone. A bridge locks value on one side and mints a representation on the other, and every major bridge loss traces back to a message that was trusted without proof, a validator set that was smaller than claimed, or a contract that was never initialized. This sub-skill belongs to bridge-attacks, which owns bridge architectures and hack patterns, and it supplies the review method: map the trust model, test the verification, and price the compromise.2627## Quick Workflow28291. Map the design: lock and mint, burn and release, or liquidity pools, and name the contract on each chain that holds value.302. Identify the trust model: validator set, multisig threshold, optimistic fraud proofs, or light client verification, and write down exactly who must be honest.313. Review message verification line by line: what proof the destination chain requires, what it checks, and what it assumes about the source chain.324. Price the compromise: how many keys, validators, or relayers must fail before an attacker can mint or release, and what total value that unlocks.335. Test the classic patterns on a fork: fake deposits, replayed messages, uninitialized proxies, and mismatched chain identifiers.346. Review upgradeability, pause, and rate limits: who can stop the bridge, how fast, and what cap bounds a single bad mint.357. Check the relayer and watcher layer: liveness assumptions, fraud proof windows, and what happens if relayers simply stop.368. Report each trust assumption with its compromise cost and its test result, not just a design diagram.3738## 1. Architecture and trust model mapping3940```bash41# Find the mint, release, lock, and burn entry points on each side42grep -rn "function mint\|function release\|function lock\|function burn\|function deposit\|function withdraw" \43 bridge-contracts/contracts --include="*.sol" | head -4044# For each one, record the caller check, the proof argument, and the45# event it emits, because the event is often the only cross-chain link46grep -rn "event " bridge-contracts/contracts --include="*.sol" | head -4047```4849```python50#!/usr/bin/env python351"""Bridge compromise cost model, kept deliberately simple."""52total_locked = 500_000_000.053threshold, total_validators = 5, 954print(f"threshold: {threshold} of {total_validators}")55print(f"value unlocked by threshold compromise: ${total_locked:,.0f}")56print("flag it if the threshold is under one third of the set,")57print("if one operator runs several validators, or if the set rarely rotates")58```5960## 2. Message verification review6162```solidity63// FAIL pattern, simplified from real bridge losses: mint trusts a64// message without verifying it against source chain state.65// The destination contract must check the proof, the source chain66// identifier, the nonce, and that the message was not already used.67function mint(address to, uint256 amt, bytes calldata proof) external {68 // Missing here: proof verification, chain id check, replay check.69 _mint(to, amt);70}71```7273```bash74# Replay test on a fork: submit the same valid message twice75cast send $BRIDGE "mint(address,uint256,bytes)" $RECIPIENT 1000 $PROOF \76 --rpc-url http://127.0.0.1:8545 --private-key $TEST_KEY77cast send $BRIDGE "mint(address,uint256,bytes)" $RECIPIENT 1000 $PROOF \78 --rpc-url http://127.0.0.1:8545 --private-key $TEST_KEY79# The second call must revert. If it mints again, replay protection is absent.80```8182## 3. Validator set and key management check8384```bash85# Read the validator set and threshold on chain (fill addresses)86cast call $BRIDGE "getValidators()" --rpc-url $RPC_URL87cast call $BRIDGE "threshold()" --rpc-url $RPC_URL88cast call $BRIDGE "paused()" --rpc-url $RPC_URL89# Then check key hygiene off chain: hardware custody, rotation history,90# and whether the same keys sign for other protocols or testnets91```9293## 4. Pause, limits, and initialization9495```bash96# Uninitialized proxy check: an implementation left uninitialized can97# be claimed by an attacker and then used to upgrade the proxy98cast call $IMPLEMENTATION "owner()" --rpc-url $RPC_URL99cast call $IMPLEMENTATION "initialized()" --rpc-url $RPC_URL100# Rate limit check: read the daily cap and compare it with total locked101cast call $BRIDGE "dailyLimit()" --rpc-url $RPC_URL102cast call $BRIDGE "dailySpent()" --rpc-url $RPC_URL103```104105## Edge cases106107- A bridge with honest validators but a single relayer can still be censored; liveness is a security property, not just an operations detail.108- Optimistic bridges are only as strong as their fraud proof window and their watchers; a window nobody watches is no window at all.109- Chain identifier confusion lets a message valid on a testnet or a fork replay on mainnet; check the domain separator on every message type.110- Upgrades that change verification logic need a fresh review of the whole message path, not just a diff of the changed lines.111- Liquidity pool bridges move the risk from minting to pool accounting; check for double counting of the same deposit across chains.112- Emergency pause that only the compromised multisig can trigger is not an emergency control; check who can pause independently of who can mint.113114## Key references115116- Ethereum documentation, bridges and cross-chain concepts: https://ethereum.org/en/bridges/117- Foundry book, fork testing with Anvil: https://getfoundry.sh/118- OpenZeppelin Contracts, proxy and access control: https://docs.openzeppelin.com/contracts/119- Slither documentation and detectors: https://github.com/crytic/slither120- LayerZero and Wormhole public documentation on message verification models: https://docs.layerzero.network/ and https://docs.wormhole.com/