dTRINITY Hack

Reported loss $56K
Sonic
Improper Access Control

What happened

On 27 September 2025, an attacker stole about $56K from dLEND, the lending market of dTRINITY, on Sonic and Fraxtal. dLEND's collateral-swap adapter, which routes swaps through Odos (OdosLiquiditySwapAdapter), let any caller name *another* user as the swap owner. The adapter then spent that user's existing approvals for dLEND receipt tokens (aTokens). The attacker exploited this with swap routes they controlled, taking the victims' collateral and leaving them only dust.

Three wallets were hit, all belonging to dTRINITY team members who had granted high or unlimited approvals while testing. dTRINITY's interface asked users to approve only the exact amount needed for each transaction, and the team said no other users' funds were affected. Its first estimate was under $100K, later revised to $56K. In response, dTRINITY paused dUSD transfers during the investigation, removed collateral swaps from the UI, told users to revoke approvals to the affected adapters, and said it would reimburse the team members. The post-mortem notes that the adapter had been part of an earlier audit by Verichains, which missed this vector.

How it happened

  1. The attacker flash-minted dUSD for temporary working capital.
  2. They called the adapter's swapLiquidity with withFlashLoan = true, set user to a victim, and supplied crafted swapData that routed through contracts they controlled.
  3. The adapter repaid the victim's debt and, using the victim's earlier aToken approval to the adapter, burned the victim's aTokens to release the underlying collateral.
  4. The malicious route moved the released collateral to the attacker through helper contracts and wrappers. It returned only 1 micro-unit of collateral, enough to pass the minOut check, plus enough dUSD to repay the flash mint.
  5. The adapter deposited that dust back for the victim, so the call appeared to succeed. The attacker then repaid the flash mint and kept almost all of the victim's collateral.

Protocol details

Classification Access Control
Protocol Type DeFi Protocol
Implementation language Solidity

Market Context at Time of Hack

Token Price at Hack $0.2357
Market Cap at Hack $24K
Reported loss / token market cap 100.00%

Understand the attack patterns

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.