dTRINITY Hack
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
- The attacker flash-minted dUSD for temporary working capital.
- They called the adapter's
swapLiquiditywithwithFlashLoan = true, setuserto a victim, and supplied craftedswapDatathat routed through contracts they controlled. - 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.
- 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
minOutcheck, plus enough dUSD to repay the flash mint. - 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
Market Context at Time of Hack
Evidence
- report dTRINITY: Post-Mortem for dLEND's Swap Adapter Attack (X, via fxtwitter mirror) x.com
- report dTRINITY: URGENT NOTICE on dLEND swap adapters (X, via fxtwitter mirror) x.com
- transaction Sonic attack tx 0xa6aef053 (block 48500826, read via public RPC rpc.soniclabs.com) sonicscan.org
- transaction Fraxtal attack tx 0xd8ae4f2a (block 26100307, read via public RPC rpc.frax.com) fraxscan.com
- analysis DeFiLlama defillama.com
- analysis dTRINITY dLEND Hack (Revoke.cash exploit page) revoke.cash
- analysis BlockThreat - Week 39, 2025 blockthreat.com
Understand the attack patterns
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.