DMi Hack
Incident Overview
On December 8, 2025, the DMi token on BSC Chain suffered an AMM reserve-manipulation exploit, resulting in the theft of approximately 138.68 WBNB (~$124,400 USD).
The vulnerability originated from a critical asymmetry in the DMi token's transfer implementation: when tokens were sent to the PancakeSwap liquidity pair using transfer(), the contract silently redirected 100% of the tokens to a fee/burn address instead of delivering them to the pair, while transferFrom() delivered tokens normally. This behavior violated the AMM's fundamental assumption that token transfers to the pair would actually increase its balance, causing the pair's ERC-20 balance to diverge from its reserve variables. The attacker exploited this by obtaining a flash loan of 102.7 WBNB, then alternating between transfer() and transferFrom() calls to intentionally create reserve desynchronization, where the AMM believed the pair held a large quantity of DMi tokens while those tokens were actually redirected or never deposited, ultimately triggering a final swap that overpaid WBNB far beyond normal trade amounts.
Incident Report
Protocol Information
What the Attacker Needed to Succeed
Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.
What Auditors Should Check
If you're auditing a protocol with similar architecture to DMi, these are the critical security checks that could have prevented this incident (December 2025).
- Verify all logic paths related to Other are guarded by proper access controls and input validation
- Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs
Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.
Free TrialSources & References
Learn to Prevent the Next DMi
The DMi hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.