By: Eliza Bennet
Moonwell, a decentralized finance (DeFi) lending protocol operating on the Base and Optimism networks, recently suffered a significant exploit that resulted in a loss of $1.78 million. The incident stemmed from a critical mispricing of the Coinbase Wrapped Staked Ether (cbETH) due to a misconfigured pricing oracle. The oracle incorrectly valued cbETH at approximately $1.12, a stark contrast to its actual market value of about $2,200, thereby opening the door for exploitative actions.
As explained in a detailed incident post-mortem by Moonwell, the faulty configuration arose after a governance proposal mishandled the use of the cbETH/ETH exchange rate, leading the system to report an incorrect price. This oversight was quickly perceived and leveraged by liquidation bots and opportunistic borrowers, who manipulated the mispricing to generate substantial profits, ultimately saddling the protocol with $1.78 million in so-called bad debt.
The episode has spurred broader discussions about the risks associated with artificial intelligence (AI) in smart contract development. Evidence from GitHub pull requests revealed that multiple commits on the compromised contracts were co-authored by AI, specifically Anthropic’s Claude Opus 4.6. This has raised eyebrows within the cryptographic community, with security auditor Pashov publicly highlighting this as a cautionary tale regarding AI-authored or AI-assisted coding underperforming or, in this case, failing.
Moonwell’s development team is now under pressure to rectify the exploitations and tighten security protocols while addressing the ongoing debate over AI's role in coding within the DeFi space. As the dialogue continues, the Moonwell incident serves as a stark reminder of both the innovative potential and inherent risks that come with the integration of AI into complex financial systems.