Compounder Finance Hack
Incident Overview
Contract deployer exploited StrategyController smart contract, transferring funds to his wallet and hiding traces using Tornado Cash mixer.
The contract deployer exploited the StrategyController smart contract by invoking the inCaseTokensGetStuck() function. This allowed him to transfer funds directly into his wallet. The exploit was carried out in several transactions.
After acquiring the funds, the attacker used the Tornado Cash mixer to hide the traces of the stolen funds. This method of obscuring the origin of funds makes it difficult to track the attacker.
Malicious Transactions:
https://etherscan.io/tx/0x57c61df9…3fc7fe
https://etherscan.io/tx/0x10d245e6…113d77
https://etherscan.io/tx/0x0763afe2…901822
https://etherscan.io/tx/0xf94de5a0…f033e6
https://etherscan.io/tx/0x18e0efca…0cacfa
https://etherscan.io/tx/0x744c51b4…d852e5
https://etherscan.io/tx/0x9c75f706…809056
Tornado Cash Mixer Transaction:
https://bloxy.info/txs/calls_from/0x079667f4…1f0758?signature_id=11062&smart_contract_address_bin=0xa160cdab…53f291
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 Compounder Finance, these are the critical security checks that could have prevented this incident (December 2020).
- Verify all logic paths related to Drained Contracts / Rugpull 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 Compounder Finance
The Compounder Finance 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.