Swapos Hack
Incident Overview
Swapos DEX was exploited on the same day it launched, with 464,026 $USD worth of assets stolen. The exploit was possible due to a vulnerable 'swap' function that allowed anyone to perform malicious swaps and
fully drain the pool.
Swapos is a DEX running on the Ethereum chain. The project offered decentralized trading with low fees. On the day Swapos V2 Contracts were deployed, a vulnerability was discovered in their 'swap' function which allowed an attacker to execute malicious swaps and fully drain all three pools, including SWP/WETH, USDC/WETH, USDC/WBTC.
In total, 464,026 $USD worth of assets were stolen from these pools. Interestingly, the exploiter executed a transaction after a hack with a message reading "safe", suggesting they may be a whitehat hacker attempting to bring attention to this vulnerability rather than committing outright theft. Regardless of intent, funds are currently held within the attacker's contract.
Attacker address:
https://etherscan.io/address/0x53fc4a4a…323ebd
Malicious transactions:
https://etherscan.io/tx/0x78edc292…82d50a
https://etherscan.io/tx/0x4c55ba0b…9f1966
https://etherscan.io/tx/0xbe643ccd…b44575
Attacker message:
https://etherscan.io/tx/0x4c37d83f…43f624
Malicious contract:
https://etherscan.io/address/0x2df07c05…bd1405
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 Swapos, these are the critical security checks that could have prevented this incident (April 2023).
- 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
-
01
Official Post-Mortem twitter.com/certikalert/status/1647530789947469825
Learn to Prevent the Next Swapos
The Swapos 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.