Independent discussion of crypto, wallets, cards and markets
Forum Home > DeFi & Yield > Cross-Chain & Bridges > How bridges work and why they keep getting hacked
How bridges work and why they keep getting hacked131 replies · 3,966 views
Thread ToolsShow Printable Version · Subscribe to this Thread · Search Thread
Where to open an account: Open a Trustee account.

A bridge moves value between chains that do not share a ledger. Every design achieves

that with a tradeoff, and the tradeoffs are where the losses come from.

The two main designs

Lock and mint. Your asset is locked in a contract on the source chain and a representation

is minted on the destination. When you bridge back, the representation is burned and the

original is released.

This is the most common pattern. The security of the destination token depends entirely

on the source contract holding the original.

Burn and mint on both sides. Some designs use independent validator or operator sets to

verify and release, which avoids a single locked contract but introduces a trust set.

Message-passing layers. Rather than moving assets, these move messages between chains, and

contracts on each side handle the assets. Security depends on the messaging layer.

Why incidents happen

  • The locked contract holds enormous value, which makes it a target
  • Upgradeable contracts mean an admin key can change behaviour, and a compromised key

can move everything

  • Cross-chain message verification is subtle, and bugs are easy to introduce
  • Third-party integrators may use a bridge incorrectly, and the loss still lands on users
  • Fast launch pressure, with audits of code that changed afterwards

The risk you actually carry

When you bridge, you convert one asset into a claim on another system. Even a "canonical"

wrapped asset depends on the bridge and the issuer being honest and solvent.

Reducing your exposure

  1. Prefer routes where the destination asset is issued by the original project, not only

by a bridge

  1. Check whether the bridge contract is upgradeable and who controls it
  2. Use bridges with a long incident-free history and a published incident response
  3. Bridge only what you need, and bridge back promptly if you do not need it on the

destination chain

  1. Test with a small amount on any new route
  2. Consider whether a centralised exchange transfer is simpler for small amounts

The takeaway

Bridges are the most valuable contracts in the ecosystem and the most attacked.

Treat a bridge as a counterparty. Size the exposure accordingly, and never assume the

wrapped version is identical to the original.

Thread Statistics131 replies · 3,966 views