API keys make automated trading easy, but they can also be a weak point. Lighter, a decentralized perpetual futures exchange, suffered an exploit on 16 November 2026 that exposed one trader's API keys. Withdrawals were paused, then restored after about $5 million in USDC was recovered. The cause is a useful lesson for anyone who uses trading bots.
Quick Facts
The exploit happened on 16 November 2026.
Affected accounts used signing code outside Lighter's official SDKs that reused nonces.
Investigators traced about $10.4 million in USDC withdrawn.
About $5 million in USDC was returned to the affected trader.
Lighter says its protocol, contracts and official SDKs were not compromised.
01 What Happened
Lighter paused withdrawals and pool creation while it investigated. It later said the problem came from signing code outside its official SDKs, which repeatedly reused cryptographic nonces. That let an attacker rebuild private keys from public signatures.
02 How the Attack Worked

The steps:
Reused nonces let the attacker work out the private keys.
The attacker created a public pool.
They bought shares in it through a separate account.
They moved the victim's funds into the pool.
They redeemed the shares to take the assets out.
03 Losses and Recovery
Blockchain investigators traced about $10.4 million in USDC withdrawn. Some researchers estimated up to $15.5 million across two accounts, but Lighter has not confirmed those numbers. Its Guardian mechanism was triggered and the Security Council returned about $5 million in USDC to the trader.
04 What Lighter Changed
Transfers into public pools now need wallet signatures, and API key signatures are no longer public. Planned changes include IP allowlists, configurable API key permissions and automatic monitoring for nonce reuse. Guardian mode is now off, withdrawals have resumed and pending requests are being processed.
05 Safety Steps for API Users

If you use API keys anywhere:
Use the platform's official SDKs, not unknown scripts.
Rotate keys regularly and after any doubt.
Give keys only the permissions they need.
Turn on IP allowlists where available.
Never share keys with bots you cannot verify.
06 My Takeaway
The exchange itself was not broken, but one user's tools were. That is common in crypto security: attackers look for the weakest link, and it is often a custom script or a leaked key rather than the platform. The safest setup is often the simplest one, with official tools and limited permissions. On any exchange, including Binance, keep withdrawal permission off for API keys used by bots unless you really need it.
Bottom Line
Lighter's exploit came from custom signing code that reused nonces, not from the core protocol. Use official SDKs, limit API key permissions and rotate keys.
This article is for information only and is not financial advice.
