Hide and Seek: DeFi's $36.7M Loss Streak Proves Closed-Source Code Is No Security Blanket
Unverified smart contracts were linked to at least $36.7 million in losses across four DeFi exploits over the past six months, with attackers increasingly targeting protocols whose source code is not publicly available, according to a Chainalysis report. The largest incident involved Truebit, which lost $26.2 million after an attacker exploited an integer overflow vulnerability in a contract that had remained unverified on Ethereum since 2021. The other incidents involved Trusted Volumes, Aperture Finance and Ekubo, with the report noting that a fifth protocol also saw an exploit on an unverified contract. In each case, the exploited contract had not been verified on a blockchain explorer, meaning its source code was not publicly available for review.
According to Chainalysis, the lack of verification limited scrutiny from security researchers and excluded the contracts from many bug bounty programs despite their control of user funds. The company attributed the trend in part to advances in decompilation tools and artificial intelligence, which can help attackers reverse-engineer smart contract bytecode and identify vulnerabilities even when source code is not publicly available. According to the report, what once required "a skilled reverse engineer spending days on a single contract" can now be partially automated across large numbers of unverified contracts.
The report challenges a longstanding assumption in DeFi that keeping smart contract code private provides an additional layer of security. Chainalysis said protocols relying on hidden code are increasingly depending on "obscurity as a security measure," an approach the company said is rapidly losing effectiveness. The firm recommended source code verification, broader bug bounty coverage and real-time monitoring tools as safeguards against future exploits.
The findings come amid a broader rise in crypto exploits. According to DeFiLlama, hackers stole $629.7 million in April alone, the highest monthly total since February 2025. Two incidents accounted for most of the losses: KelpDAO lost $293 million and Drift Protocol suffered a $280 million exploit, together representing more than 80% of the month's stolen funds. Losses fell sharply in May, with CertiK reporting $68.3 million stolen from cryptocurrency exploits, though the fallout from April's largest attacks continued. In June, blockchain intelligence platform Arkham reported that the attacker behind the KelpDAO exploit had laundered nearly all of the roughly $220 million in unfrozen stolen funds, and the exploit later prompted DeFi protocols including Solv Protocol to announce plans to migrate to Chainlink's crosschain infrastructure following internal security reviews.
Share Article
Quick Info
Disclaimer: This content is for information and entertainment purposes only. It does not constitute financial, investment, legal, or tax advice. Always do your own research and consult with qualified professionals before making any financial decisions.
See our Terms of Service, Privacy Policy, and Editorial Policy.