Back to Blog

Newsletter - December 2025

Code Auditing
December 31, 2025

Top 3 DeFi Incidents in December

Yearn Finance: ~$9M

On December 1, Yearn Finance’s yETH pool on Ethereum was exploited, resulting in total losses exceeding $9 million. With assistance from external security teams, about $2.39 million (857.49 pxETH) was successfully rescued on the same day.

The vulnerability resided in the _calc_supply() function, which used an iterative method to calculate new supply approximations. Unsafe math operations caused rounding errors and underflow issues. While the vulnerability itself appeared relatively straightforward, the attacker executed sophisticated steps to exploit it, manipulating the pool's supply down to zero before extracting profits.

Sixteen days later, the protocol suffered a second breach as an outdated contract from its legacy version (iEarn) was compromised. This incident exploited a known misconfiguration vulnerability previously identified in 2023. The second incident resulted in $300k in losses, bringing the protocol's total monthly impact to nearly $10 million.

Read official post-mortem for detailed attack analysis

Trust Wallet: ~$7M

On Christmas Day, Trust Wallet suffered a critical security breach in its Chrome extension (v2.68), resulting in the theft of approximately $7 million in user funds.

The root cause was a malicious backdoor injected into the codebase, suspected to have originated from a social engineering attack targeting the development team. This backdoor method uploads user memonics to an attacker-controlled server, compromising any memonics generated or imported using this specific version of the extension. The attacker subsequently drained user funds on multiple chains and routed them to non-KYC exchanges.

Following the incident, the Trust Wallet team released an emergency update to remove the backdoor and committed to a compensation plan for affected users. This breach serves as a stark reminder that security must span the entire protocol lifecycle. Beyond on-chain code audits, securing off-chain infrastructure and maintaining continuous monitoring are essential to safeguarding user assets.

Ribbon Finance: ~$2.7M

On December 12, Ribbon Finance on Ethereum was attacked, resulting in a loss of $2.7 million.

The root cause was improper access control in the setAssetPricer() function within the Oracle contract, allowing anyone to arbitrarily set asset prices. The attacker exploited this by first setting a legitimate-looking price oracle to avoid detection, as the protocol only settles options on whole-week intervals. After creating and purchasing a call option position, the attacker waited until the exercise date to upgrade the contract and replace the benign oracle with a malicious one that set an artificially inflated asset price, then exercised the option to extract profit.

This incident highlights that access control remains a critical aspect of smart contract security. A single oversight in permission management can expose protocols to significant risks. Comprehensive security audits that examine all administrative functions are essential before deployment to identify and address such vulnerabilities.

The information above is based on data as of 00:00 UTC, December 30, 2025.

This concludes the December security incidents brief

You can learn more in our Security Incidents Library.

Stay informed and stay secure!

Sign up for the latest updates
Newsletter - July 2026
Security Insights

Newsletter - July 2026

July 2026's three largest DeFi incidents totaled approximately $67.9M in losses across Arbitrum and Solana. AFX Trade lost ~$24.15M after a supply chain attack compromised validator signing authority. Ostium's OLP vault was drained of ~$23.75M through compromised oracle infrastructure that submitted attacker-controlled prices. BonkDAO lost ~$20M when an attacker spent $4.4M to acquire enough voting power to pass a malicious treasury transfer with no timelock. All three incidents demonstrate that a protocol's security boundary extends far beyond smart contract code.

~$39.5M Lost: Allbridge, Wanchain & More | BlockSec Weekly
Security Audits

~$39.5M Lost: Allbridge, Wanchain & More | BlockSec Weekly

During the week of July 20-26, 2026, 8 notable security incidents resulted in approximately $39.5M in total losses across Solana, Ethereum, BNB Chain, Arbitrum, Zilliqa, and Cardano. The highlighted Allbridge Core incident (~$1.65M) exposed a Solana input validation flaw where the same Pool account was accepted in both swap roles, with analysis reconstructed entirely from the deployed program binary. Other analyzed incidents include Wanchain (~$500K, flawed message encoding in a Cardano bridge validator), Zilliqa (~$400K, flawed nonce generation in a Ledger app since 2019), and Lien Finance (~$542K, flawed validation logic in bond exchange).

~$1.35M Lost: BarnBridge, DeFiTuna | BlockSec Weekly
Security Insights

~$1.35M Lost: BarnBridge, DeFiTuna | BlockSec Weekly

This weekly report covers 2 security incidents from July 13 to July 19, 2026, with approximately $1.35M in total losses on Ethereum and Solana. DeFiTuna, a Solana lending protocol, lost ~$570K because the position health check treated a zero-value position as healthy regardless of outstanding debt; the attacker used controlled swap routing and a separate low-liquidity pool to trigger this defect. BarnBridge lost ~$776K after an attacker exploited the protocol's deprecated but still-active governance system on Ethereum to pass a malicious proposal and drain user-approved USDC.

Best Security Auditor for Web3

Validate design, code, and business logic before launch. Aligned with the highest industry security standards.

BlockSec Audit