joshluxr/bot/bridge-exploit
Claude Code and agent skill by joshluxr/bot
- community
Checking that the SKILL.md file is still in the repository.
Cross-chain bridge attack — message-validation bypass (Wormhole class), validator key compromise (Ronin / Harmony class), reentrancy on token-bridge claim, Merkle-proof forgery on optimistic bridges, signature replay across chains. Bridges have lost >$2B; understand why.
Install
npx vskill@latest install joshluxr/bot/bridge-exploitSKILL.md
The same SKILL.md was published earlier as bittersecurity/decepticon/bridge-exploit.
Cross-Chain Bridge Attack
Bridges hold large pooled assets and execute messages from a separate trust layer. Architecturally fragile.
Bridge taxonomy
| Type | Trust model | Past exploits | |
|---|---|---|---|
| Lock-and-mint | Trusted validators sign mint events | Wormhole ($325M), Ronin ($600M), Harmony ($100M) | |
| Burn-and-redeem | Same | Multichain/Anyswap ($126M) | |
| Optimistic | Fraud proof window | Nomad ($190M) | |
| Light-client / zk | Cryptographic | (Fewer hacks, but newer) | |
| Liquidity-network (Hop, Connext) | Routers + relayers | Smaller individual exploits |
Attack classes
1. Validator-signature bypass (Wormhole, Feb 2022, $325M)
The Solana-side verify_signature function trusted the caller to provide a "verified" sigset account. Attacker passed a sysvar that wasn't a real sigset → unauthorized mint of 120k wETH.
Lesson: any verify function whose input is a struct fetched by address is bypassable if address-trust is missing.
2. Validator key compromise (Ronin, March 2022, $600M)
9-of-9 validators, 5 of which were operated by one entity. Sky Mavis got phished → attacker controlled 5 keys → arbitrary mint.
Lesson: validator decentralization isn't math, it's operational. Count distinct legal entities and key-storage methods, not just keys.
3. Merkle-proof forgery (Nomad, August 2022, $190M)
After an upgrade, the zero-hash was set as a "valid root" — any proof against root = 0 passed. The first attacker withdrew real funds; then thousands of others copy-pasted the same tx with their own address. ~$190M total.
Lesson: check initialize / upgrade scripts for accidental defaults — bytes32(0), address(0), 1 (often the most-tested value) becoming the trusted value.
4. Replay across chains (Multichain class)
Bridge tx signed for chain A is replayed on chain B because chainId wasn't bound into the signed message:
5. Reentrancy on bridge claim
Claim transfers tokens THEN updates nonce-used mapping:
6. Liquidity-pool draining via fee oracle (Hop / Across class)
Bridges using a quote-and-relay model price slippage via oracle. Manipulate the oracle → arbitrage drains liquidity:
Bridge audit checklist (the bugs that broke real bridges)
- `verify_signature` trust chain: from where does the verifier load its trust roots? Can the caller spoof them?
- Validator set update: is there a quorum check on changing validators? Can a 51% rotate themselves out and stay in?
- Nonce vs chainId binding: does the signed message include destChainId?
- Claim state machine: nonce-used mapping written BEFORE external token call?
- Default values: any
address(0),bytes32(0),1in initialize that becomes a trusted value? - Pause / rescue functions: are they gated by a multisig that's actually distributed?
- Relayer trust: does the bridge trust relayer-provided data, or re-verify on-chain?
- Fee/rate oracle: TWAP or spot? Manipulable?
Tooling
OPSEC / scope
- Bridge attacks are direct financial theft. Never test against live bridges without explicit ownership/written authorization.
- Bug bounty bridges (Immunefi top payouts) are the legitimate channel — read the Immunefi scope, then test on a private fork.
- Disclose responsibly — bridge maintainers may need 24-72h to drain liquidity to a safe vault.
References
- Rekt.news — every major bridge hack post-mortem
- Trail of Bits "Cross-Chain Bridge Architecture" deep dive
- Wormhole / Ronin / Harmony / Nomad post-mortems (official)
- "How to Build a Secure Cross-Chain Bridge" — Chainlink Labs research
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingwordpress-tool/decepticon-skills/standard/contracts/bridge-exploit/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/joshluxr/bot/bridge-exploit)