Elephant Money Hack

TOTAL LOST $22.2M
High Flashloan Price Oracle Attack / Flash Loan Attack bsc

Summarize with AI

Affected Chain bsc Incident surface
Recovered - No recovery reported
All-Time Rank #214 By amount stolen
Auditors 2 Prior security audits

Incident Overview

The $TRUNK token's redemption mechanism was exploited by an attacker who manipulated the price oracle to enable token return, resulting in the theft of ELEPHANT from the unverified Treasury contract.

The attacker initially borrowed 131,162 WBNB and 91,035,000 BUSD via a flash loan. They then exchanged the 131,162 WBNB for 34,244 ELEPHANT Tokens. The attacker then manipulated the minting contract to swap BUSD for WBNB, which was used to buy back ELEPHANT tokens at an increased market value.

The ELEPHANT tokens were then swapped back to WBNB, resulting in 34,244 ELEPHANT exchanged on 163,782.82 WBNB. The attacker then redeemed TRUNK for 36,987.33 WBNB and 66,884,140.12 BUSD. After repaying the flash loans, the attacker made a profit of $4M.

The attacker's address:

https://bscscan.com/tx/0xf678370c…0b22a2

The transaction behind the attack:

https://bscscan.com/tx/0xec317deb…3d4577

Incident Report

Protocol / Project Elephant Money
Date of Incident
Affected Chain(s) bsc
Attack Technique Flashloan Price Oracle Attack / Flash Loan Attack
Classification Ecosystem / Exchange (DEX)
Primary Source View Post-Mortem

Protocol Information

Protocol Type Yield
Affected Token ELEPHANT
Smart Contract Language Solidity
Official Website elephant.money/
Protocol Twitter/X @ElephantStatus
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Categories
BNB Chain Ecosystem

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.

Technical Knowledge Deep understanding of flashloan price oracle attack / flash loan attack and Solidity and EVM internals
Capital Required Flash loan capital (borrowed atomically, zero upfront cost)
On-Chain Access Ability to interact with bsc smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Elephant Money's contract logic - root cause: ecosystem / exchange (dex)
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Yes — skilled auditors routinely flag Flashloan Price Oracle Attack / Flash Loan Attack vulnerabilities in code review
Audited by Audit Report 1, Audit Report 2 — still lost $22.2M. Prior audits don't guarantee safety, especially after post-audit code changes.

If you're auditing a protocol with similar architecture to Elephant Money, these are the critical security checks that could have prevented this incident (April 2022).

  • Verify all logic paths related to Flashloan Price Oracle Attack / Flash Loan Attack are guarded by proper access controls and input validation - see the Flash Loans Attacks attack class for patterns
  • Audit oracle price feeds for manipulation risks - ensure time-weighted average prices (TWAPs) or multi-source aggregators are used, not spot prices
  • 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 Trial

Security Audit History

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Flash Loans Attacks examples →

Sources & References

Learn to Prevent the Next Elephant Money

The Elephant Money 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.

Recreate exploit patterns safely Free Trial