Decentralized perpetuals exchange Lighter had a textbook blunder today: a market maker's account was hacked for about $15.5 million in USDC, and withdrawals were halted for a time. The official line was, “The protocol wasn’t hacked; a trader’s API key was leaked.” The hacker used the leaked key to create a zero-fee pool, deposited $10,000 to take a 99.99% share, then funneled funds from the victim’s account into it in batches and redeemed them. The most painful part came later: the key was exposed because the trader used unofficial signing code that reused nonces, making it possible to derive the private key directly from public signatures. Fortunately, withdrawals resumed the same day, and the security council also recovered about $5 million in USDC and returned it to the victim. One lesson: an API key plus a third-party signing tool is like handing someone else the keys to your vault. #DeFi #Security
