HomeNewsAI-Written Smart Contract Bug Causes $1.78M DeFi Exploit on Moonwell

AI-Written Smart Contract Bug Causes $1.78M DeFi Exploit on Moonwell

-

The decentralized finance (DeFi) lending protocol Moonwell suffered an exploit resulting in approximately $1.78 million in bad debt. The incident occurred after a governance proposal misconfigured a pricing oracle for Coinbase Wrapped Staked ETH (cbETH), causing it to report a value of $1.12 instead of the correct $2,200. This mispricing was exploited by liquidation bots and opportunistic borrowers, according to the protocol’s incident post-mortem.


The exploit on the Moonwell protocol, deployed on Base and Optimism, stemmed from a faulty oracle configuration. A governance proposal executed on Sunday incorrectly used only the cbETH/ETH exchange rate, as stated in the protocol’s post-mortem, leading to the severe undervaluation.

Security auditor Pashov publicly flagged that multiple commits in the affected contract pull requests were co-authored by Anthropic’s Claude Opus. He described this as an example of AI-assisted Solidity code backfiring but noted the issue was not unique to AI. “The developer was using Claude to write the code, and this has led to the vulnerability,” Pashov said.

However, Pashov cautioned against viewing the flaw as solely AI-driven. He argued the oracle mistake was one “even a senior Solidity developer could have made,” attributing the root cause to insufficient checks and validation. The loss is relatively small compared to major DeFi exploits, but it raises questions about governance and security processes.

The incident has sparked discussion about responsible AI use in development. Fraser Edwards, co-founder and CEO of cheqd, told Cointelegraph that AI-assisted development can be valuable but requires discipline. He argued all AI-generated smart contract code should be treated as untrusted input subjected to rigorous review. “Ultimately, responsible AI integration comes down to governance and discipline,” Edwards stated.

LATEST POSTS

Stablecoins Power Real-World Spending to Bypass Costly Fiat Conversions

The push for using cryptocurrency in everyday purchases is gaining momentum, led by projects enabling direct stablecoin payments. The total stablecoin market has grown to...

XRP Could Reach New All-Time High in 2026 on ETF Inflows and Refund Surge; Risks Remain…

In 2025, Ripple settled its lawsuit with the SEC, lifting investor sentiment and activity. That settlement pushed XRP to a $3.65 peak in July, its...

ECB Nears Digital Euro Pilot, PSP Selection to Begin Early 2026

The European Central Bank (ECB) is advancing plans for a digital euro pilot, with Executive Board Member Piero Cipollone announcing the selection of payment service...

Jito (JTO) Jumps 11% on Solana Expansion News, Whales Drive Rally

The Jito (JTO) token surged 11% following an announcement that the project will build a new market layer on the Solana network. Analysis of order...

Most Popular

spot_img