AI-Powered Exploits Target Unverified Smart Contracts in $36.7M DeFi Security Breach, Chainalysis Reports

Decentralized finance protocols relying on hidden or unverified source code are facing an escalating threat landscape, as malicious actors leverage advanced artificial intelligence and automated decompilation tools to bypass traditional security hurdles. According to recent findings from blockchain analytics firm Chainalysis, unverified smart contracts have been directly linked to at least $36.7 million in losses across four separate DeFi exploits over the past six months. This emerging trend highlights a dangerous shift in the tactics employed by crypto hackers, who are increasingly targeting protocols that keep their underlying code opaque.

For years, a prevailing assumption persisted within various corners of the decentralized finance sector that concealing a smart contract’s source code by omitting verification on public blockchain explorers offered an extra layer of protection against bad actors. Protocols often treated hidden code as a form of security through obscurity, assuming that preventing public visibility would deter potential attackers from finding vulnerabilities. However, the latest Chainalysis report indicates that this foundational security philosophy is rapidly losing its effectiveness in the face of rapid technological advancements.

The largest single incident documented in the report involved Truebit, which suffered a devastating $26.2 million loss. An attacker successfully exploited an integer overflow vulnerability embedded within a contract that had remained unverified on the Ethereum blockchain since 2021. Alongside Truebit, the report highlights similar exploitation patterns affecting Trusted Volumes, Aperture Finance, and Ekubo. In every instance, the targeted contracts shared a common characteristic: they had not been verified on a blockchain explorer, leaving their source code entirely hidden from public view.

By keeping the code unverified, these protocols inadvertently introduced severe vulnerabilities that extended far beyond mere secrecy. According to Chainalysis, this lack of visibility severely restricted independent scrutiny from security researchers, auditors, and community members. Furthermore, because the source code was not publicly accessible for verification, these contracts were frequently excluded from comprehensive bug bounty programs—programs that often serve as a vital first line of defense by incentivizing ethical hackers to discover and report vulnerabilities responsibly before malicious entities can exploit them. Despite controlling substantial user funds, these unverified protocols operated in a relative blind spot.

Unverified DeFi contracts linked to $36.7M in losses: Chainalysis

The accelerating vulnerability of hidden code is largely driven by rapid leaps in software decompilation tools and artificial intelligence capabilities. Historically, reverse-engineering smart contract bytecode to uncover logical flaws, calculation errors, or memory management bugs demanded significant human effort and specialized expertise. Chainalysis noted that what once required a skilled reverse engineer to spend days meticulously analyzing a single contract can now be partially automated across vast numbers of unverified contracts simultaneously. Attackers are weaponizing AI models to analyze complex bytecode at scale, significantly lowering the technical barrier to entry for uncovering high-value vulnerabilities in obscure protocols.

To counter these evolving methodologies, Chainalysis has urged the decentralized finance industry to overhaul its security best practices. The analytics firm strongly recommends mandatory source code verification on public explorers to invite broad community and professional scrutiny. Additionally, protocols are advised to expand bug bounty coverage to encompass all active contracts, regardless of their perceived complexity or deployment age, and to implement robust, real-time monitoring tools capable of detecting anomalous transaction behavior before irreversible capital flight occurs.

DeFi Security Concerns Persist After Record April Losses

The revelations regarding unverified smart contracts arrive against a backdrop of escalating systemic security concerns across the wider cryptocurrency ecosystem. The broader landscape has experienced severe stress from massive exploits, shaking investor confidence and prompting renewed scrutiny of cross-chain bridges, oracle dependencies, and private key management practices.

Data compiled by DeFiLlama reveals that malicious actors managed to steal an alarming $629.7 million during the month of April alone, marking the highest monthly total recorded for crypto-related hacks and exploits since February 2025. The staggering financial damage from that month was primarily driven by two monumental incidents that accounted for more than 80% of all stolen funds. KelpDAO suffered a massive $293 million exploit, while Drift Protocol was simultaneously hit with a $280 million security breach, illustrating the persistent vulnerability of high-tvl liquidity protocols to sophisticated vectors.

Unverified DeFi contracts linked to $36.7M in losses: Chainalysis

Although overall financial losses from crypto exploits fell sharply in subsequent weeks—with blockchain security firm CertiK reporting a decline to $68.3 million stolen in May—the long-tail consequences of April’s devastating attacks continued to reverberate through the market. In June, blockchain intelligence platform Arkham reported that the perpetrator behind the KelpDAO exploit had successfully laundered nearly all of the roughly $220 million in unfrozen stolen funds that remained accessible following the initial breach, highlighting the immense difficulties law enforcement and security teams face when tracking and recovering illicitly acquired digital assets.

The fallout from the KelpDAO incident extended well beyond the immediate financial losses, triggering a comprehensive reassessment of technical infrastructure across the broader decentralized finance sector. Multiple DeFi projects initiated urgent reviews of their underlying security architectures and third-party dependencies. Among them, Solv Protocol publicly announced its strategic decision to migrate its operations to Chainlink’s cross-chain infrastructure following internal security audits prompted by the industry-wide shockwaves.

The growing intersection of artificial intelligence and cybercrime has also emerged as a central theme for technology platforms attempting to secure their ecosystems against malicious actors. Earlier this month, artificial intelligence company Anthropic disclosed that out of 832 accounts banned over a one-year period for violating acceptable use policies, 560 accounts had explicitly utilized AI tools to assist in preparing cyberattacks. These malicious activities ranged from writing custom malware scripts to systematically identifying security vulnerabilities in target systems, illustrating that both defenders and attackers are increasingly operating within an AI-augmented environment.