Root-cause analysis not yet published. The incident description below contains all currently available signal — review the attack transaction directly for definitive forensics.
Reproducible Foundry test fork from SunWeb3Sec/DeFiHackLabs. Clone the repo, run forge test against the file path above, and replay the exploit against a mainnet fork at the historical block. Use for reproduction only — not for live targets.
According to official sources, GrimFinance, a compound income platform on the Fantom chain, suffered a lightning loan attack, and the current loss has exceeded 30 million U.S. dollars. The attacker uses the function named "beforeDeposit()" in GrimFinance's vault strategy to attack and enter the malicious Token contract. Attack method (per SlowMist): Flash Loan Attack. Reported loss: $ 30,000,000.
- chain
- —
- protocol
- GrimFinance
- bug_class
- flashloan
- date_occurred
- 2021-12-19
- loss_usd
- $30,000,000
- source_id
- sm:grimfinance::2021-12-19