Lighter, a decentralized exchange for perpetual futures, has reopened withdrawals after getting roughly $5 million in USDC back from an attacker. The theft happened on November 16 and came down to one trader's signing setup, which left their API keys open to being reverse engineered. The exchange froze withdrawals and the creation of new pools on Monday while it worked out what had happened.
How the Keys Were Cracked
Lighter's postmortem says the targeted accounts did not sign transactions with the exchange's official toolkits. They used their own code, and that code kept reusing the same nonce, a single use number that is supposed to change with every signature. Because those signatures were visible on chain, the attacker could work backwards and recover the private keys.
Once in control, the attacker built a public pool using the victim's account. A second account bought shares in that pool. The victim's money was then pushed into the pool, and the attacker cashed in the shares to walk away with the funds.
The Size of the Loss
Blockchain analysts followed about $10.4 million in USDC leaving the platform. Other researchers put the possible damage at $15.5 million across two market maker accounts. Lighter has not signed off on the higher figure.
What Stopped the Damage
The suspicious activity set off Lighter's Guardian contract, a safety switch that halts withdrawals. That pause gave the exchange's Security Council the chance to send about $5 million in USDC back to the affected trader. Guardian mode is now off, and the backlog of withdrawal requests is being worked through.
Lighter says the fault did not lie with its own system. Its protocol, smart contracts, infrastructure and official toolkits were not breached.
What Changes Now
Moving money into a public pool now needs a wallet signature, and API key signatures are no longer public. The team also plans to add IP allowlists, adjustable permissions for API keys, and automatic alerts when a nonce is reused.
Traders who sign with custom or third party software should replace their API keys and move to Lighter's official toolkits.