Have AI agents made the entire $148 billion DeFi sector unsafe?

Oluwapelumi Adejumo



A warning from one of decentralized finance’s (DeFi) early security figures has turned a difficult stretch of hacks into a broader test of how the industry can defend itself against artificial intelligence (AI).

On May 27, Manuel Aráoz, co-founder and former chief technology officer of OpenZeppelin, advised investors to exit DeFi positions, including exposure to established lending protocols such as Aave, MakerDAO, and Compound.

According to Aráoz, autonomous AI coding agents have widened the gap between attackers and defenders by making it easier to find vulnerabilities at scale. He wrote:

“Coding agents are superhuman at finding vulnerabilities, and smart contract security is too asymmetric. Defenders need to fix every bug while attackers need just one exploit to steal funds.”

The warning gained traction because it came during a period of pressure for the broader DeFi market. Over the past year, the sector has lost more than $1.1 billion to exploits, with April accounting for $635 million across 28 reported hacks.

These security incidents resulted in the total value locked across decentralized finance falling from roughly $172 billion in mid-April to $148 billion as of press time, marking five consecutive weeks of outflows. The decline can also be linked to broader market weakness, which saw Bitcoin approach $72,000 earlier today.

Still, those figures have pushed the security debate beyond individual protocols and into a wider question of whether AI has lowered the cost of attacking DeFi faster than the industry can improve its defenses.

AI makes the search for weakness cheaper

Aráoz’s warning is grounded in the fact that artificial intelligence fundamentally lowers the cost and effort required to map smart contract vulnerabilities.

Over the past years, advanced AI models have introduced immense pressure by accelerating vulnerability discovery, exploit testing, and operational reconnaissance at near-zero cost.

Recent research from venture capital firm a16z validates this accelerating offensive capability by noting that AI agents have consistently identified core vulnerabilities in historical DeFi exploits.

According to the firm, even when agents failed to complete an exploit, they often reached the stage that gives attackers a starting point. A tool that reliably identifies weak points can reduce the expertise required to begin an attack.

Anthropic has similarly restricted public access to its unreleased Claude Mythos model precisely because of its capacity to autonomously discover and weaponize software flaws.

For DeFi, this development matters because the systems for many protocols are public, composable, and financially liquid. Thus, the code, governance structures, and integrations surrounding a platform can be studied openly to identify any vulnerabilities.

AI can make that process faster and cheaper, increasing pressure on teams whose defenses still depend heavily on audits, bug bounties and manual review.

Protocol leaders point to stronger infrastructure

However, concerns about AI have drawn pushback from founders and security firms, who say DeFi has become more resilient than in earlier cycles.

Blockchain security firm OpenZeppelin argued that many recent security incidents stemmed from operational failures instead of flaws in audited contract code.

According to the firm, most large losses in recent months have involved stolen private keys, bridge spoofing, social engineering, and access control issues. That pattern suggests that attackers have often targeted the systems around protocols, including teams, permissions, and infrastructure.

Aave founder Stani Kulechov made a similar argument. He said DeFi infrastructure today benefits from better risk engines, lending market structures, formal verification, audits, bug bounties, cap management, oracle improvements, automated monitoring, and circuit breakers.

Kulechov said much of the remaining attack surface involves Web2-style operational lapses, including weak internal controls and infrastructure processes.

Notably, that view aligns with April’s exploit wave, where several of the largest losses were tied to compromised keys, social engineering, and bridge-related failures. For context, Drift Protocol’s $285 million loss is tied to a six-month social engineering campaign from North Korea’s Lazarus Group.

Uniswap founder Hayden Adams also pushed back against the broader conclusion that DeFi itself has become unsafe.

He argued that well-built smart contracts can support applications with strong security properties, while AI is likely to expose weak code, rushed launches, and poor development practices more quickly.

That distinction has become central to the industry’s response. The debate is increasingly about which systems have the controls in place to withstand AI-assisted attacks, and which remain exposed due to weak operations, complex integrations, or limited monitoring.

DeFi teams bring AI into the defense stack

Meanwhile, the pushback from founders has not stopped teams from changing their approach to security.

Nansen, an agentic AI trading platform, told CryptoSlate that major protocols are leaning into AI tools on the defensive side rather than pulling away from open-source development.

This is corroborated by Deddy Lavid, chief executive officer of Cyvers, who said the industry is moving toward an AI-versus-AI security environment.

CryptoSlate Daily Brief

Daily signals, zero noise.

Market-moving headlines and context delivered every morning in one tight read.