A Trader's Own Signing Code Leaked the Key. Lighter's Contracts Never Broke.
About 10.39 million USDC left the perps exchange Lighter on November 16. Lighter says the cause was signing code outside its official SDK that reused a nonce, which let an attacker compute the trader's API keys from public signatures.
10.39M USDCleft Lighter before withdrawals were paused
On Monday, November 16, about 10.39 million USDC left Lighter, a perpetual futures exchange built on an Ethereum layer 2. The transaction is on Ethereum at 10:11 UTC and went to a wallet Lighter later said it believes belongs to the attacker.
Lighter’s account is that its protocol, smart contracts and infrastructure were not affected. In its first statement it described “a single compromised external party.” The failure was in signing code the trader used in place of Lighter’s official toolkit.
I haven’t read Lighter’s postmortem directly. It was published as an article on X that I couldn’t open, so the details below come from The Defiant’s and Cointelegraph’s reports of it.
How the keys leaked
According to Lighter, the affected accounts signed orders with code that wasn’t its official SDK, and that code reused a signing nonce.
A nonce here is a secret number used once per signature. In the signature schemes most of crypto runs on, if you sign two different messages with the same nonce, anyone holding both signatures can work out the private key. They don’t have to break anything to do it. Once they spot the repeat, the rest is arithmetic.
This is an old mistake. It’s how the PlayStation 3’s code signing key was recovered in 2010, and a broken random number generator on Android drained bitcoin wallets the same way in 2013. It keeps coming back because nonce generation looks like plumbing, and people rarely review plumbing.
Lighter said the signatures were publicly visible, which is how the attacker got two to compare. It also said its own signing tools generate nonces safely.
What the attacker did with them
Lighter API keys can’t withdraw to someone else’s wallet. That limit shaped the attack, and it didn’t stop it.
Per Lighter, a public pool created by an account counted as that account’s own sub-account. So an API key could move funds into it. The attacker bought shares in the pool through a separate account, moved the trader’s funds into the pool without creating new shares, then redeemed the shares and withdrew.
That’s a detour around the withdrawal restriction. The key was scoped so it couldn’t send money out, and the attacker found a place inside the system where “the trader’s own account” and “something the attacker owns part of” were the same thing.
Lighter’s postmortem, as quoted by Cointelegraph, puts it in one line: “A key that can trade can still lose you money if someone else holds it.”
Containment
- 10:11 UTC. 10.39 million USDC leaves Lighter’s contract.
- 11:02 UTC. Lighter suspends all withdrawals and pool creation.
- Later that day. Lighter says its Guardian safeguard paused withdrawals and let its Security Council return about 5 million USDC to the affected trader. The Defiant reports this was money caught in an additional withdrawal attempt.
- 18:21 UTC. Lighter says deposits and withdrawals are back to normal.
The two figures shouldn’t be netted against each other without care. The 5 million was stopped on the way out. Nothing in the reporting I read says the first 10.39 million has been recovered.
Compare that with Gonka’s bridge, which I wrote about this morning. Gonka had decided against a fast pause and could only post a warning. Lighter had one, used it within the hour, and kept roughly a third of the money from leaving. A pause control is a centralization risk and it’s also the thing that worked here.
What Lighter changed
- Transfers into a public pool now require a wallet signature. An API key alone isn’t enough.
- API-key signatures are no longer public.
- Still to come, per Lighter: restrictions on which servers can use a key, and configurable permissions and limits per key.
Making signatures private removes the raw material for this specific attack. It doesn’t fix a signer that reuses nonces. It only means outsiders can’t see the result.
If you trade through API keys anywhere
- Rotate any key that custom or third-party signing code has touched. This is Lighter’s own advice. If you aren’t sure whether your code reused a nonce, assume it did.
- Use the exchange’s official signing library. If you must write your own, use deterministic nonces from a reviewed library and don’t write the nonce handling yourself.
- Scope each key as tightly as the exchange allows, and ask what a key can do besides withdraw. Internal transfers, pool deposits and sub-account moves are all ways to lose money without a withdrawal.
- Ask whether your signatures are visible to other people. Most traders have never checked.
What I take from it
It’s fair to say this wasn’t Lighter’s bug. The contracts held and the official SDK was fine. It’s also true that Lighter published signatures, let an API key fund a pool, and counted a pool with outside shareholders as the owner’s own account. Each of those was a reasonable choice alone. An attacker needed all three.
If you build a platform, your users will sign with code you’ve never seen, and your threat model has to assume some of it is wrong.
David Cooper, CCIE #14019
Educational, not financial or legal advice. Views are my own. Figures reflect reporting as of November 17, 2026.
Sources
- Lighter’s first statement on the incident, X, November 16, 2026
- Lighter Says Withdrawals Resume After API-Key Theft, The Defiant, November 16, 2026, for the postmortem details and timings
- Lighter incident exposes risks beyond withdrawal controls, Cointelegraph, November 17, 2026, for the postmortem quote
- The 10.39 million USDC withdrawal, Etherscan, as cited by The Defiant