Star Swap Hack
Incident Overview
The contract deployer added initial liquidity at:
https://etherscan.io/tx/0x062cb2e5…ebec1c
The contract deployer used hidden minting functionality under the starCheck() function to generate new tokens onto his wallet:
https://etherscan.io/tx/0x786c8637…932dbc
The minted tokens were sold by the contract deployer at:
https://etherscan.io/tx/0xe621d4aa…078c47
Incident Report
Protocol Information
Market Context at Time of Hack
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 Star Swap, these are the critical security checks that could have prevented this incident (November 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 TrialLearn to Prevent the Next Star Swap
The Star Swap 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.