BRIDGEGUARD60 attack classeslocal fork onlyOwn contracts · no broadcast

> local / 27B uncensored / own-contracts only

BridgeGuard for your own bridge

An AI attacker team that forks your own protocol and writes working exploit PoCs that drain the fork. 60 attack classes, 48 hack replays.

60attack classes
48hack replays
0API keys

Filter by severity tap to filter

Attack catalog

108 of 108 shown

[01]REENTRANCYCRIT

Single-function reentrancy

attack class / Reentrancy

External call before the state update lets the callee re-enter the same function.

Family
Reentrancy
Severity
Critical
Real case
The DAO, 2016
$slither --detect reentrancy-eth
[02]REENTRANCYCRIT

Cross-function reentrancy

attack class / Reentrancy

Re-entry through a different function that shares the same unupdated state.

Family
Reentrancy
Severity
Critical
Real case
Lendf.Me / imBTC, 2020
$slither --detect reentrancy-no-eth
[03]REENTRANCYHIGH

Cross-contract reentrancy

attack class / Reentrancy

Shared state read by a second contract mid-callback, before it settles.

Family
Reentrancy
Severity
High
Real case
Cream Finance (AMP), 2021
$./audit.sh ai # cross-contract chain
[04]REENTRANCYHIGH

Read-only reentrancy

attack class / Reentrancy

A view function returns stale state mid-callback and poisons an integrating protocol.

Family
Reentrancy
Severity
High
Real case
Curve / Conic, 2023
$./audit.sh fuzz # read-only invariant
[05]REENTRANCYHIGH

ERC777 / ERC721 hook reentrancy

attack class / Reentrancy

tokensReceived / onERC721Received callbacks used as a re-entry vector.

Family
Reentrancy
Severity
High
Real case
Lendf.Me / imBTC, 2020
$semgrep --config rules/bridge
[06]REENTRANCYHIGH

Reentrancy via unsafe external call

attack class / Reentrancy

call / transfer to an untrusted target before effects are written.

Family
Reentrancy
Severity
High
Real case
Grim Finance, 2021
$slither --detect reentrancy-benign
[07]SIGNATURE / VALIDATORCRIT

Missing signature verification

attack class / Signature / Validator

A signed-message path that never actually checks the signature.

Family
Signature / Validator
Severity
Critical
Real case
Wormhole, 2022
$./audit.sh replays # wormhole
[08]SIGNATURE / VALIDATORCRIT

Signature replay

attack class / Signature / Validator

A valid signature reused because it is not consumed or bound to a nonce.

Family
Signature / Validator
Severity
Critical
Real case
pattern class
$./audit.sh fuzz # nonce-never-reused
[09]SIGNATURE / VALIDATORHIGH

Signature malleability

attack class / Signature / Validator

ecrecover s/v not constrained, letting a second valid signature be forged.

Family
Signature / Validator
Severity
High
Real case
pattern class
$semgrep --config rules/bridge
[10]SIGNATURE / VALIDATORHIGH

ecrecover zero-address

attack class / Signature / Validator

Unchecked ecrecover returning 0x0 treated as a valid signer.

Family
Signature / Validator
Severity
High
Real case
pattern class
$semgrep: bridge.ecrecover-zero-addr
[11]SIGNATURE / VALIDATORCRIT

Validator-threshold bypass

attack class / Signature / Validator

Quorum math satisfiable by too few or compromised keys.

Family
Signature / Validator
Severity
Critical
Real case
Ronin, 2022
$./audit.sh replays # ronin
[12]SIGNATURE / VALIDATORHIGH

Missing signer de-duplication

attack class / Signature / Validator

The same validator counted multiple times toward the threshold.

Family
Signature / Validator
Severity
High
Real case
pattern class
$./audit.sh ai # signer dedup
[13]SIGNATURE / VALIDATORCRIT

Forged / double-signing

attack class / Signature / Validator

A validator signs two conflicting messages; no equivocation detection.

Family
Signature / Validator
Severity
Critical
Real case
Harmony Horizon, 2022
$./audit.sh replays # harmony
[14]MESSAGE / REPLAYCRIT

Missing nonce / replay check

attack class / Message / Replay

Processed messages not marked consumed, so they can be re-submitted.

Family
Message / Replay
Severity
Critical
Real case
pattern class
$./audit.sh fuzz # nonce-once
[15]MESSAGE / REPLAYCRIT

Cross-chain replay

attack class / Message / Replay

A message valid on one chain accepted on another (no chainId binding).

Family
Message / Replay
Severity
Critical
Real case
Wormhole, 2022
$./audit.sh replays # wormhole
[16]MESSAGE / REPLAYCRIT

Uninitialized trusted root

attack class / Message / Replay

A default / zero merkle root accepted as trusted.

Family
Message / Replay
Severity
Critical
Real case
Nomad, 2022
$./audit.sh replays # nomad
[17]MESSAGE / REPLAYHIGH

Missing EIP-712 domain separator

attack class / Message / Replay

Domain not bound, enabling cross-context signature reuse.

Family
Message / Replay
Severity
High
Real case
pattern class
$semgrep --config rules/bridge
[18]MESSAGE / REPLAYMED

Out-of-order / skipped messages

attack class / Message / Replay

Sequence not enforced; messages processed out of order or dropped.

Family
Message / Replay
Severity
Medium
Real case
pattern class
$./audit.sh ai
[19]MESSAGE / REPLAYHIGH

Merkle proof forgery

attack class / Message / Replay

Weak or unchecked proof verification against the committed root.

Family
Message / Replay
Severity
High
Real case
Nomad, 2022
$./audit.sh replays # nomad
[20]ACCESS CONTROLHIGH

Missing / incorrect modifier

attack class / Access Control

A privileged function with no onlyOwner / role check or the wrong one.

Family
Access Control
Severity
High
Real case
pattern class
$semgrep --config rules/bridge
[21]ACCESS CONTROLCRIT

Unprotected initializer

attack class / Access Control

initialize() callable by anyone, or re-callable to seize control.

Family
Access Control
Severity
Critical
Real case
Parity, 2017
$slither --detect unprotected-upgrade
[22]ACCESS CONTROLCRIT

Ownership / upgrade takeover

attack class / Access Control

Admin or proxy-admin role reachable by an attacker.

Family
Access Control
Severity
Critical
Real case
pattern class
$slither --detect unprotected-upgrade
[23]ACCESS CONTROLCRIT

Delegatecall / storage collision

attack class / Access Control

Proxy and implementation storage layouts clash, corrupting slots.

Family
Access Control
Severity
Critical
Real case
pattern class
$slither --detect controlled-delegatecall
[24]ACCESS CONTROLCRIT

Arbitrary delegatecall

attack class / Access Control

User-controlled target in delegatecall executes attacker code in-context.

Family
Access Control
Severity
Critical
Real case
Parity, 2017
$slither --detect controlled-delegatecall
[25]ACCESS CONTROLCRIT

Unprotected selfdestruct

attack class / Access Control

A reachable selfdestruct bricks the contract or proxy.

Family
Access Control
Severity
Critical
Real case
Parity, 2017
$slither --detect suicidal
[26]ACCESS CONTROLHIGH

Unprotected setters

attack class / Access Control

Config / fee / validator setters callable without authorization.

Family
Access Control
Severity
High
Real case
pattern class
$semgrep --config rules/bridge
[27]ARITHMETICHIGH

Overflow / underflow

attack class / Arithmetic

unchecked{} blocks or pre-0.8 math wrapping around.

Family
Arithmetic
Severity
High
Real case
BeautyChain (BEC), 2018
$myth analyze # integer over/underflow
[28]ARITHMETICMED

Rounding / precision loss

attack class / Arithmetic

Division before multiplication or truncation draining dust at scale.

Family
Arithmetic
Severity
Medium
Real case
pattern class
$slither --detect divide-before-multiply
[29]ARITHMETICMED

Decimals mismatch

attack class / Arithmetic

Mixing token decimals in accounting, mispricing value.

Family
Arithmetic
Severity
Medium
Real case
pattern class
$./audit.sh ai
[30]ARITHMETICHIGH

Unchecked math on supply

attack class / Arithmetic

Mint / burn totals that can desync from backing collateral.

Family
Arithmetic
Severity
High
Real case
pattern class
$./audit.sh fuzz # locked>=minted
[31]ARITHMETICMED

Downcast truncation

attack class / Arithmetic

uintN downcast silently dropping high bits.

Family
Arithmetic
Severity
Medium
Real case
pattern class
$semgrep --config rules/bridge
[32]ORACLE / PRICEHIGH

Spot-price reliance

attack class / Oracle / Price

Pricing off a manipulable AMM spot reserve instead of a robust feed.

Family
Oracle / Price
Severity
High
Real case
bZx, 2020
$./audit.sh ai # price source
[33]ORACLE / PRICECRIT

Flash-loan-assisted manipulation

attack class / Oracle / Price

Reserves moved within one tx to distort the quoted price.

Family
Oracle / Price
Severity
Critical
Real case
Harvest Finance, 2020
$./audit.sh ai # flashloan price
[34]ORACLE / PRICEHIGH

TWAP manipulation

attack class / Oracle / Price

A short or ill-configured TWAP window gamed across blocks.

Family
Oracle / Price
Severity
High
Real case
pattern class
$./audit.sh ai
[35]ORACLE / PRICEMED

Stale / negative price

attack class / Oracle / Price

No freshness or sign check on an external feed.

Family
Oracle / Price
Severity
Medium
Real case
pattern class
$semgrep --config rules/bridge
[36]ORACLE / PRICEHIGH

Single-source oracle

attack class / Oracle / Price

One feed with no fallback or sanity bound.

Family
Oracle / Price
Severity
High
Real case
Mango Markets, 2022
$./audit.sh ai
[37]ECONOMIC / MEVCRIT

Flash loan attack

attack class / Economic / MEV

Uncollateralized capital used to momentarily satisfy an invariant and drain.

Family
Economic / MEV
Severity
Critical
Real case
Beanstalk, 2022
$./audit.sh ai # flashloan chain
[38]ECONOMIC / MEVHIGH

First-depositor / share inflation

attack class / Economic / MEV

Empty-vault donation inflates share price to steal later deposits.

Family
Economic / MEV
Severity
High
Real case
ERC-4626 class
$./audit.sh fuzz # share-price
[39]ECONOMIC / MEVHIGH

Donation attack

attack class / Economic / MEV

A direct token transfer skews balanceOf-based accounting.

Family
Economic / MEV
Severity
High
Real case
pattern class
$./audit.sh fuzz
[40]ECONOMIC / MEVMED

Sandwich / front-running

attack class / Economic / MEV

Slippage-exposed swaps bracketed by attacker transactions.

Family
Economic / MEV
Severity
Medium
Real case
MEV class
$./audit.sh ai
[41]ECONOMIC / MEVMED

Fee-on-transfer assumptions

attack class / Economic / MEV

Accounting assumes amount sent == amount received.

Family
Economic / MEV
Severity
Medium
Real case
Balancer (STA), 2020
$slither --detect unchecked-transfer
[42]ECONOMIC / MEVMED

Rebasing token assumptions

attack class / Economic / MEV

Balances that change out-of-band break fixed-balance accounting.

Family
Economic / MEV
Severity
Medium
Real case
pattern class
$./audit.sh ai
[43]DENIAL OF SERVICEMED

Unbounded loops

attack class / Denial of Service

Iteration over user-growable arrays exceeding the block gas limit.

Family
Denial of Service
Severity
Medium
Real case
pattern class
$slither --detect calls-loop
[44]DENIAL OF SERVICEHIGH

Push-payment DoS

attack class / Denial of Service

A single reverting recipient blocks a batch payout for everyone.

Family
Denial of Service
Severity
High
Real case
King of Ether, 2016
$slither --detect calls-loop
[45]DENIAL OF SERVICEMED

Gas griefing

attack class / Denial of Service

Forwarding insufficient gas or forcing expensive callee paths.

Family
Denial of Service
Severity
Medium
Real case
pattern class
$./audit.sh ai
[46]DENIAL OF SERVICEMED

Block-stuffing / liveness

attack class / Denial of Service

Time-sensitive paths stalled by filling blocks.

Family
Denial of Service
Severity
Medium
Real case
Fomo3D, 2018
$./audit.sh ai
[47]DENIAL OF SERVICEMED

Storage / state exhaustion

attack class / Denial of Service

Unbounded state growth that permanently raises costs.

Family
Denial of Service
Severity
Medium
Real case
pattern class
$./audit.sh ai
[48]LOW-LEVELHIGH

Unchecked call return value

attack class / Low-level

call / send / transfer result ignored, masking a failed transfer.

Family
Low-level
Severity
High
Real case
pattern class
$slither --detect unchecked-lowlevel
[49]LOW-LEVELHIGH

tx.origin authentication

attack class / Low-level

Auth on tx.origin, phishable through an intermediary contract.

Family
Low-level
Severity
High
Real case
phishing class
$slither --detect tx-origin
[50]LOW-LEVELHIGH

Uninitialized storage pointer

attack class / Low-level

A local struct / array pointing at slot 0 and overwriting state.

Family
Low-level
Severity
High
Real case
pattern class
$slither --detect uninitialized-storage
[51]LOW-LEVELMED

Dirty high-order bits

attack class / Low-level

Unmasked calldata / assembly values poisoning comparisons.

Family
Low-level
Severity
Medium
Real case
pattern class
$./audit.sh ai
[52]LOW-LEVELMED

Raw assembly memory safety

attack class / Low-level

Hand-written assembly violating memory / ABI assumptions.

Family
Low-level
Severity
Medium
Real case
pattern class
$./audit.sh ai
[53]LOW-LEVELMED

Weak randomness

attack class / Low-level

block.timestamp / blockhash used as an entropy source.

Family
Low-level
Severity
Medium
Real case
Fomo3D, 2018
$slither --detect weak-prng
[54]BRIDGE-SPECIFICCRIT

Unlock / withdraw-path flaw

attack class / Bridge-specific

Release of locked funds without a matching, verified burn / proof.

Family
Bridge-specific
Severity
Critical
Real case
Qubit QBridge, 2022
$./audit.sh replays # qubit
[55]BRIDGE-SPECIFICCRIT

Mint / burn accounting mismatch

attack class / Bridge-specific

Wrapped supply can exceed locked collateral (locked >= minted broken).

Family
Bridge-specific
Severity
Critical
Real case
Meter.io, 2022
$./audit.sh fuzz # locked>=minted
[56]BRIDGE-SPECIFICHIGH

Missing pause / circuit-breaker

attack class / Bridge-specific

No way to halt withdrawals when an exploit is in progress.

Family
Bridge-specific
Severity
High
Real case
pattern class
$semgrep --config rules/bridge
[57]BRIDGE-SPECIFICHIGH

Relayer trust assumption

attack class / Bridge-specific

Over-trusting an off-chain relayer with no on-chain validation.

Family
Bridge-specific
Severity
High
Real case
pattern class
$./audit.sh ai
[58]BRIDGE-SPECIFICCRIT

Validator key SPOF

attack class / Bridge-specific

Keys stored or rotated through a single point of failure.

Family
Bridge-specific
Severity
Critical
Real case
Ronin / Multichain
$./audit.sh ai # key rotation
[59]BRIDGE-SPECIFICHIGH

Wrapped-token supply cap

attack class / Bridge-specific

No cap binding minted representation to real deposits.

Family
Bridge-specific
Severity
High
Real case
pattern class
$./audit.sh fuzz
[60]BRIDGE-SPECIFICHIGH

Deposit / finality race

attack class / Bridge-specific

Crediting before source-chain finality, enabling reorg double-spend.

Family
Bridge-specific
Severity
High
Real case
reorg class
$./audit.sh ai
[61]REPLAY$624M

Ronin Bridge

Ethereum/Ronin / 2022-03-23

Attacker obtained 5 of 9 validator keys (4 Sky Mavis + Axie DAO allowlisted signer) and signed two withdrawals; no rate limit or delay on large...

Loss
$624M
Class
bridge P01
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_RONIN_2022_vulnerable
[62]REPLAY$611M

Poly Network

multi / 2021-08-10

Cross-chain manager could call EthCrossChainData; method name 'f1121318093' collides with putCurEpochConPubKeyBytes (0x41973cd9), replacing the...

Loss
$611M
Class
bridge P06
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_POLY_NETWORK_2021_vulnerable
[63]REPLAY$570M

BNB Chain Token Hub

BNB / 2022-10-06

IAVL Merkle proof verification mishandled inner nodes, letting the attacker smuggle a forged leaf into a valid proof and mint 2M BNB (~$100-110M...

Loss
$570M
Class
bridge P11
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_BNB_BRIDGE_2022_vulnerable
[64]REPLAY$326M

Wormhole

Solana / 2022-02-02

verify_signatures accepted a caller-supplied (spoofed) sysvar instructions account, so the guardian signature check was bypassed and 120k wETH minted.

Loss
$326M
Class
bridge P03
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_WORMHOLE_2022_vulnerable
[65]REPLAY$197M

Euler Finance

Ethereum / 2023-03-13

donateToReserves lacked a liquidity/health check; attacker made a leveraged account insolvent and self-liquidated at a discount.

Loss
$197M
Class
defi P16
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_EULER_2023_vulnerable
[66]REPLAY$190M

Nomad Bridge

Ethereum / 2022-08-01

Upgrade initialized the Replica with committedRoot 0x00 and marked it confirmed; unproven messages map to root 0 and were accepted (copy-paste...

Loss
$190M
Class
bridge P04
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_NOMAD_2022_vulnerable
[67]REPLAY$182M

Beanstalk

Ethereum / 2022-04-17

Flash-loaned governance power (no snapshot) passed a malicious BIP via emergencyCommit in one transaction.

Loss
$182M
Class
defi P17
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_BEANSTALK_2022_vulnerable
[68]REPLAY$150M

Parity Library (kill)

Ethereum / 2017-11-06

Uninitialized library contract: anyone called initWallet to become owner, then kill() self-destructed it, freezing ~514k ETH.

Loss
$150M
Class
defi P19
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_PARITY_2017_NOV_vulnerable
[69]REPLAY$126M

Multichain (MPC)

multi / 2023-07-06

MPC key material effectively controlled by a single party; abnormal outflows signed with the bridge's own keys (key custody single point of failure).

Loss
$126M
Class
bridge P01
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_MULTICHAIN_2023_vulnerable
[70]REPLAY$114M

Mango Markets

Solana / 2022-10-11

Collateral (MNGO perp) valued from thin spot markets; attacker pumped the price and borrowed against the unrealized gain.

Loss
$114M
Class
defi P18
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_MANGO_2022_vulnerable
[71]REPLAY$100M

Harmony Horizon Bridge

Ethereum / 2022-06-23

2-of-5 multisig; two signer private keys compromised, attacker executed withdrawals.

Loss
$100M
Class
bridge P01
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_HARMONY_2022_vulnerable
[72]REPLAY$81M

Orbit Chain Bridge

Ethereum / 2024-01-01

7 of 10 multisig signer keys compromised; vault drained with valid signatures.

Loss
$81M
Class
bridge P01
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_ORBIT_2024_vulnerable
[73]REPLAY$80M

Qubit QBridge

Ethereum/BSC / 2022-01-27

deposit() with token address(0): safeTransferFrom on a code-less address does not revert, so a fake deposit was credited and minted on BSC.

Loss
$80M
Class
bridge P09
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_QUBIT_2022_vulnerable
[74]REPLAY$80M

Fei/Rari Fuse

Ethereum / 2022-04-30

borrow() sent ETH before updating borrow state (no CEI); attacker re-entered (exitMarket) to withdraw collateral. Replay models the...

Loss
$80M
Class
defi P12a
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_FEI_RARI_2022_vulnerable
[75]REPLAY$70M

Curve pools (Vyper 0.2.15-0.3.0)

Ethereum / 2023-07-30

Vyper compiler bug allocated separate storage slots for @nonreentrant locks, so add_liquidity could be re-entered from remove_liquidity's raw_call.

Loss
$70M
Class
defi P13
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_CURVE_VYPER_2023_vulnerable
[76]REPLAY$60M

The DAO

Ethereum / 2016-06-17

splitDAO sent ETH before zeroing the balance; recursive calls drained 3.6M ETH.

Loss
$60M
Class
defi P12a
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_THE_DAO_2016_vulnerable
[77]REPLAY$50M

Uranium Finance

BSC / 2021-04-28

Fork changed fee scaling to 10000 but the K invariant still used 1000**2, so swaps could take ~all reserves for dust.

Loss
$50M
Class
defi P20
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_URANIUM_2021_vulnerable
[78]REPLAY$34M

Harvest Finance

Ethereum / 2020-10-26

Vault share price derived from manipulable Curve pool state; flash-loan swaps skewed it for deposit/withdraw arbitrage.

Loss
$34M
Class
defi P18
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_HARVEST_2020_vulnerable
[79]REPLAY$30M

Grim Finance

Fantom / 2021-12-18

depositFor() took a caller-supplied token; its transferFrom re-entered depositFor, double counting balance-diff shares.

Loss
$30M
Class
defi P12b
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_GRIM_2021_vulnerable
[80]REPLAY$30M

Parity Multisig (1st)

Ethereum / 2017-07-19

initWallet reachable via delegatecall fallback and not protected; attacker re-initialized owners and drained wallets.

Loss
$30M
Class
defi P19
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_PARITY_2017_JUL_vulnerable
[81]REPLAY$25M

Lendf.Me (imBTC)

Ethereum / 2020-04-19

ERC777 imBTC hooks allowed re-entry during supply(), inflating recorded balances. Replay models the ERC777 hook-reentrancy class (entrypoint differs).

Loss
$25M
Class
defi P12a
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_LENDFME_2020_vulnerable
[82]REPLAY$21M

Transit Swap

BSC/Ethereum / 2022-10-01

Insufficient validation of call parameters let the attacker invoke claimTokens/transferFrom on users' approvals.

Loss
$21M
Class
defi P07
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_TRANSIT_SWAP_2022_vulnerable
[83]REPLAY$20M

Sonne Finance

Optimism / 2024-05-14

Newly activated empty market: donation + rounding in redeem drained funds (Compound v2 fork).

Loss
$20M
Class
defi P15
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_SONNE_2024_vulnerable
[84]REPLAY$19M

Cream Finance (AMP)

Ethereum / 2021-08-30

AMP token transfer hooks (ERC777-style) re-entered borrow before debt was recorded.

Loss
$19M
Class
defi P12a
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_CREAM_2021_vulnerable
[85]REPLAY$12M

Ronin Bridge (upgrade)

Ethereum / 2024-08-06

Upgrade called initializeV4 but not initializeV3, leaving _totalOperatorWeight = 0 so minimum vote weight was 0; withdrawals passed without...

Loss
$12M
Class
bridge P05
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_RONIN_2024_vulnerable
[86]REPLAY$10M

LI.FI (GasZip facet)

Ethereum / 2024-07-16

New facet (depositToGasZipERC20) performed an arbitrary call with user-controlled data, draining infinite approvals.

Loss
$10M
Class
bridge P07
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_LIFI_2024_vulnerable
[87]REPLAY$9M

Punk Protocol

Ethereum / 2021-08-10

CompoundModel.initialize() was unprotected; attacker re-initialized it with their own forge address and withdrew funds.

Loss
$9M
Class
defi P19
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_PUNK_2021_vulnerable
[88]REPLAY$8M

Platypus Finance

Avalanche / 2023-02-16

emergencyWithdraw returned staked LP collateral without checking outstanding USP debt.

Loss
$8M
Class
defi P22
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_PLATYPUS_2023_vulnerable
[89]REPLAY$8M

Chainswap

Ethereum/BSC / 2021-07-10

Signature check did not verify the signer was an authorized node; unauthorized signatures raised the receive quota.

Loss
$8M
Class
bridge P02
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_CHAINSWAP_2021_vulnerable
[90]REPLAY$7M

Hundred Finance

Optimism / 2023-04-15

Empty market: donation inflated the exchange rate and redeemUnderlying rounded burned shares down, draining other suppliers.

Loss
$7M
Class
defi P15
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_HUNDRED_2023_vulnerable
[91]REPLAY$6M

Seneca

Ethereum / 2024-02-28

performOperations allowed an arbitrary external call; attacker transferred tokens users had approved.

Loss
$6M
Class
defi P07
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_SENECA_2024_vulnerable
[92]REPLAY$4M

Meter.io Bridge

Ethereum/BSC / 2022-02-05

deposit() for the wrapped-native token skipped transferFrom (assumed depositETH had wrapped it), so deposits were credited without funds.

Loss
$4M
Class
bridge P10
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_METER_2022_vulnerable
[93]REPLAY$4M

Cover Protocol

Ethereum / 2020-12-28

Blacksmith.deposit cached pool state in memory before updating it, so reward write-off used a stale accumulator; attacker minted huge COVER.

Loss
$4M
Class
defi P21
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_COVER_2020_vulnerable
[94]REPLAY$4M

DODO crowdpools

Ethereum / 2021-03-09

init() of crowdpool contracts could be called again, letting the attacker swap in fake tokens and drain real ones.

Loss
$4M
Class
defi P19
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_DODO_2021_vulnerable
[95]REPLAY$4M

dForce

Arbitrum/Optimism / 2023-02-09

Read-only reentrancy: protocol read Curve get_virtual_price during a remove_liquidity callback, when pool state was inconsistent.

Loss
$4M
Class
defi P14
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_DFORCE_2023_vulnerable
[96]REPLAY$3M

Socket Gateway

Ethereum / 2024-01-16

Newly added route performed a call with unvalidated user calldata, letting the attacker call transferFrom on tokens users had approved to the gateway.

Loss
$3M
Class
bridge P07
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_SOCKET_2024_vulnerable
[97]REPLAY$3M

SushiSwap RouteProcessor2

Ethereum / 2023-04-09

processRoute trusted an attacker-supplied pool address; the fake pool invoked the swap callback, which pulled tokens from a victim with an approval.

Loss
$3M
Class
defi P07b
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_SUSHI_RP2_2023_vulnerable
[98]REPLAY$3M

Conic Finance

Ethereum / 2023-07-21

Read-only reentrancy guard was bypassed due to a misconfigured ETH-pool check, so a mid-callback Curve price was used.

Loss
$3M
Class
defi P14
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_CONIC_2023_vulnerable
[99]REPLAY$3M

Orion Protocol

Ethereum/BSC / 2023-02-02

Swap through an attacker token re-entered depositAsset; balance-difference accounting credited the deposit twice.

Loss
$3M
Class
defi P12b
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_ORION_2023_vulnerable
[100]REPLAY$2M

Akropolis

Ethereum / 2020-11-12

deposit accepted an attacker token that re-entered deposit; balance-difference accounting counted the same funds twice.

Loss
$2M
Class
defi P12b
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_AKROPOLIS_2020_vulnerable
[101]REPLAY$2M

Onyx Protocol

Ethereum / 2023-11-01

Same Compound-fork empty-market precision-loss/donation issue in a newly listed market.

Loss
$2M
Class
defi P15
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_ONYX_2023_vulnerable
[102]REPLAY$2M

Hundred Finance (ERC667)

Gnosis / 2022-03-15

ERC667 transferAndCall hook on xDAI tokens re-entered borrow before state was updated.

Loss
$2M
Class
defi P12a
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_HUNDRED_2022_vulnerable
[103]REPLAY$2M

Rubic

Ethereum / 2022-12-25

routerCallNative allowed calls to whitelisted 'routers' that included the USDC token, so user approvals were spent via transferFrom.

Loss
$2M
Class
bridge P07
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_RUBIC_2022_vulnerable
[104]REPLAY$2M

Dexible

Ethereum / 2023-02-17

selfSwap accepted an arbitrary router + calldata, used to transferFrom tokens approved to Dexible.

Loss
$2M
Class
defi P07
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_DEXIBLE_2023_vulnerable
[105]REPLAY$1M

Multichain/Anyswap router

Ethereum / 2022-01-18

anySwapOutUnderlyingWithPermit called permit() on WETH, which has no permit but a non-reverting fallback; victims' existing approvals were then spent.

Loss
$1M
Class
bridge P08
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_ANYSWAP_2022_vulnerable
[106]REPLAY$1M

Inverse Finance (Jun)

Ethereum / 2022-06-16

LP collateral oracle read manipulable pool state; flash-loan manipulation let the attacker over-borrow.

Loss
$1M
Class
defi P18
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_INVERSE_2022_vulnerable
[107]REPLAY$1M

Level Finance

BSC / 2023-05-01

claimMultiple() did not de-duplicate epochs / update claimed state per iteration, so the same referral reward was claimed repeatedly.

Loss
$1M
Class
defi P23
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_LEVEL_2023_vulnerable
[108]REPLAY$600K

LI.FI

Ethereum / 2022-03-20

swap data allowed arbitrary calls before bridging; attacker used it to transferFrom users with infinite approvals.

Loss
$600K
Class
bridge P07
Rebuilt as
fork replay test + detection rule
$forge test --match-test test_LIFI_2022_vulnerable

Nothing matches that filter.

HOW TO READEach card is a bug class the pipeline hunts: family, severity, the real-world hack it maps to, and the exact engine command or ./audit.sh flag that detects or exploits it. Severity blocks: 4 = critical. Replays are rebuilt as fork tests, not run against mainnet.

The engine

what runs under the catalog

[A]AI ATTACKER TEAM

Six roles, one kill chain

A propose → verify → price loop on your local qwen3-local (Huihui Qwen3.8 27B abliterated). An exploit only counts once it drains the fork.

  • RECON — reads the call-graph, lists every value-exit path
  • ATTACKER — proposes multi-step exploit chains
  • EXPLOIT-WRITER — turns each into a real Foundry test
  • VERIFIER — runs it on the fork; real only if it drains
  • REFINER — fixes failed attempts and retries
  • ECONOMIST — prices profit after gas, slippage, fees
[B]ENGINE FLOW

Target → fork → report → CI gate

Static + symbolic + fuzzing + mutation + the AI team, merged into one severity-ranked report and a merge-blocking CI gate.

FoundrySlitherAderynMythrilSemgrepEchidnaMedusaGambitOllama · qwen3-local
$./audit.sh all
[C]HOW TO RUN IT

Local, no API keys

Everything installs under ./tools; the only big download is the ~20 GB model. Contracts never leave the machine.

  • Install the toolchain — ./setup.sh — Foundry, Slither, Aderyn, Mythril, Echidna, Medusa, Semgrep, Gambit into ./tools
  • Pull the local model — ollama cp huihui_ai/qwen3-abliterated:32b qwen3-local
  • Point it at your own protocol — ./audit.sh target --rpc <url> --addresses <0x..,0x..>
[D]RESPONSIBLE USE

Your own protocol, fork only

Target mode forks live chain state into a local anvil and runs every attack against that copy. The real chain is never written to and nothing is broadcast.

  • Own code only — point it at contracts you own or are authorized to test.
  • No broadcast — PoCs execute on the fork; mainnet is untouched.
  • Stays local — the uncensored model runs on your box, offline.