Lighter wasn't hacked. A trader's API key was
About 10.4 million USDC left Lighter on November 16. The protocol held; a leaked signing key did not. How the key turned into cash.
아직 사용자의 언어로 번역되지 않았어요. 원문을 보여 드려요.
다른 언어: Русский
On Monday, November 16, roughly $10.4 million in USDC left the Lighter perpetuals exchange in one transaction. Lighter says its protocol was not hacked; the problem was one trader's API key. The more interesting part is how a key meant only for placing orders ended up moving money.
What happened
At 10:11 UTC, 10,393,057 USDC left Lighter's contract on Ethereum for a single address. Analysts at Bubblemaps and Bitquery traced the transfer, and Cointelegraph reported the figure. CoinDesk reported that the exchange suspended all withdrawals. Other researchers estimated losses of $15.5 million across two accounts, but Lighter has not confirmed that estimate.
Lighter published a postmortem the same day. Its account: the affected trader signed requests with custom code rather than the exchange's official SDK, and that code reused a nonce, the one-time number that every signature is supposed to use only once. When two different messages are signed with the same nonce, the private key can be calculated from the public signatures. Lighter's version is that the attacker did exactly this.
How the key turned into cash
An API key usually can't move money. It can place orders. On Lighter, that was enough. According to Crypto Briefing, the attacker used the key to open a public pool from the victim's account, bought shares in that pool through a second account, moved the victim's funds into it, and redeemed the shares. The money ended up at the attacker's address.
The contract itself wasn't broken. The transfer was signed with a valid key, so the protocol accepted it. Afterwards Lighter required a wallet signature for transfers into public pools and made API-key signatures non-public. Per Cointelegraph, its Guardian mechanism returned about $5 million USDC to the affected trader, and withdrawals reopened the same day.
What to take from it
Plenty of people treat an API key like a password: as long as it hasn't leaked, you're fine. But what can leak is also whatever the key can be calculated from. A request signature is public by design, because the exchange has to see it. So home-made signing code that doesn't guarantee unique nonces is a hole you can't see from outside.
Things worth checking before you need them:
- Does your client sign requests with the exchange's official library or with your own code? Home-made signing is a separate risk.
- What can each key do? If it can create pools or move funds between subaccounts, you have granted more than you thought.
- Does the exchange restrict API access by IP? According to Cointelegraph, Lighter plans to add that. Without such a limit, a leaked key works from anywhere.
For now, the only explanation comes from Lighter's own postmortem, and there is no independent audit of its signing code. The takeaway doesn't depend on whose version is exact. A key that allows trading and a key that allows transfers are different permissions, and in this case one key could do both.
Daily market data on X: @tarvis_trade