Terraport Finance Hack
Incident Overview
On the morning of April 10th, Terraport was exploited resulting in losses of approximately 4 million USD in Terra, LUNC, and USTC tokens.
The hack was made possible due to a mathematical weakness in the algorithm used to calculate LP prices. The malicious actor added a minor amount of liquidity to the protocol and then manipulated the LP share price, allowing them to withdraw a large amount of liquidity. Two pools were affected, the first one drained for 9,148,426 TERRA ($1.8 million) and 15,100,861,997 LUNC ($1.88 million), and the second one for 576,736 TERRA ($115K) and 5,487,381 USTC ($117K).
The total losses amount to about $4 million USD.
Exploited Addresses:
terra19yrq0mehjfk5cquxn4svjxft4rmhcc9g8t0yma
terra1z5luj6qdtclnt5jnjkrtnlj9zankf654638dq2
Added liquidity:
https://finder.terra.money/classic/tx/bdd941dfcebd8d7f3acd2214026110688751ca68ea2904aba 55b8c01c92d29b0https://finder.terra.money/classic/tx/8c23dc1d6bf26281e726e410327d71a681f6835331e1da0ce39dc73a508a63e1
Remove liquidity:
https://finder.terra.money/classic/tx/BEE71FBD0F343127D90D87FDFD1488354848C4D4AC4EEC59220A9D7833033408
https://finder.terra.money/classic/tx/FF508F3C7E993DFC82F8446FC1E48E923AA051B7DBD309C2270972F696C9B0D7
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 Terraport Finance, 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 TrialSecurity Audit History
- Audit Report 1 Report
Sources & References
- 01
- 02
-
03
Web Archive https://archive.ph/pwsYY
Learn to Prevent the Next Terraport Finance
The Terraport 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.