DistX Hack
Incident Overview
The contract deployer was holding unfair distribution of the tokens to the following addresses:
https://etherscan.io/tx/0x163016f5…775ec1
https://etherscan.io/tx/0x573466be…bd65ae
https://etherscan.io/tx/0xa71c693d…5ab8f8
0xdf7:
- added the initial liquidity to the pair using funds from the presale:
https://etherscan.io/tx/0x36c132ed…dc6d85
- funds for the initial liquidity were got from the external wallet which gathered them from the presale event:
https://etherscan.io/tx/0x73df6020…b0fb0c
- the rest funds were transferred to the external wallet:
https://etherscan.io/tx/0x5bfed01a…2f2a8a
- the liquidity was removed by this address:
https://etherscan.io/tx/0x2e1b4acf…4fe5cf
0x6fa:
- sold tokens in multiple transactions:
https://etherscan.io/tx/0x430e21ad…a72e20
https://etherscan.io/tx/0xcfd6b9c5…2abcdd
https://etherscan.io/tx/0x1b55571c…1ab129
https://etherscan.io/tx/0x4eabcaa1…7342a6
https://etherscan.io/tx/0x02fca546…fdce7e
https://etherscan.io/tx/0x9d2c7599…058c96
https://etherscan.io/tx/0x52774006…b4048a
0xc6b:
- collected funds and distributed tokens (presale)
Incident Report
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 DistX, these are the critical security checks that could have prevented this incident (December 2020).
- Verify all logic paths related to 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 DistX
The DistX 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.