Lighter API Key Exploit: Nonce Reuse Drained Market Maker Accounts and Froze Withdrawals
The Lighter API key exploit hit two market maker accounts via reused signing nonces. Timeline, fund flows to Hyperliquid, and the key handling lesson.
$ Stop reading delayed data. Read live order book depth on the 100 most liquid Hyperliquid pairs right now.
Launch Free Terminal →Lighter, the perp DEX that ranked second only to Hyperliquid by daily volume among the five venues tracked by Coinpaprika on November 16, froze all withdrawals and pool creation that same morning after an attacker took control of trading API keys. Analysts put the hit at $15.48 million across two market maker accounts, per Crypto Briefing, while CoinDesk reported that investigators traced $10.4 million in USDC leaving the exchange.
The Lighter API key exploit was not a smart contract bug. Lighter's postmortem blames custom signing code that reused nonces, which let the attacker rebuild private keys from signatures that were sitting in public data. For anyone running a bot on an onchain venue, that is the part worth studying.
Lighter API key exploit: the timeline
The losses were split unevenly. Account 714710 lost $10.39 million and account 714723 lost $5.09 million, according to Crypto Briefing. The attacker first closed the open positions on both accounts, then moved the USDC into a pool, redeemed it in batches of roughly $1 million, withdrew it, and swapped it into ETH through CoW Protocol, per the same report.
Lighter's first public statement described a single compromised external party and said withdrawals and pool creation were suspended as a precaution, as quoted by CoinLaw. A later update narrowed it to a leaked API key for one trader's account and said the protocol and smart contracts were not affected, per CryptoNews.
By the end of the day Lighter said its Guardian mechanism had paused withdrawals, that its Security Council had returned about 5 million USDC to the affected trader, and that withdrawals had resumed with pending requests being processed, according to TokenPost. Lighter has not confirmed either the $10.4 million or the $15.5 million estimate, as Crypto Briefing notes.
Nonce reuse: how a trading key became a withdrawal path
Two separate weaknesses lined up. The first was in the trader's own tooling. The compromised accounts did not use Lighter's official SDK, and their signing code reused nonces, which allowed the attacker to derive private keys from signatures visible onchain, per TokenPost. In other words, the keys were never stolen from a server. They were reconstructed from the trader's own public activity.
The second weakness was a permission edge on the venue. A public pool created by an account counted as that account's own sub-account, so an API key alone could move funds into it, according to CryptoNews.net. That is how a key meant for trading ended up as the first step of a withdrawal. Lighter says transfers into public pools now require a wallet signature and that API key signatures are no longer public, per the same report.
More is coming. Lighter plans IP allowlists, configurable permissions per key, limits on which markets a key can trade, and automated monitoring for nonce reuse, according to TokenPost. It also told users of custom or third party signing tools to rotate their API keys and move to the official SDKs, per TokenPost.
Where the stolen funds went: Hyperliquid and XMR
Part of the money landed on Hyperliquid. Lookonchain reported that an address linked to the incident deposited about 288,300 USDC into Hyperliquid and bought XMR, per TechFlow. A roundup of coverage on Newscord says Lighter and Bubblemaps flagged wallet 0xb3f as the attacker's address.
The flow is small relative to the theft, but it is a reminder that Hyperliquid's order books double as an exit route. Large one directional buys in a thin spot market from a freshly funded address are exactly the pattern that shows up in trade prints before it shows up in the news.
The market reaction was concentrated in Lighter's own token. LIT fell 16% on Monday according to Bitcoin.com, and Upbit and Bithumb suspended LIT deposits and withdrawals after the incident, per crypto.news.
What the incident means for market maker flow
Lighter's volume is unusually dependent on fast quoting. Coinpaprika measured 5.82x daily volume per dollar of open interest on Lighter against 0.65x on Hyperliquid on November 16, per its perp DEX comparison. Turnover that fast is mostly automated quoting, and automated quoting runs on API keys.
When one of those accounts is hijacked, the orderflow signature is predictable. Its resting quotes disappear, spreads widen, and its inventory gets closed with aggressive orders, which is what Crypto Briefing describes the attacker doing first. On a taker flow chart that looks like a short burst of one sided volume with no news attached. Traders who read cumulative volume delta and spread together will see it as a liquidity event, not a directional view.
It is worth watching whether the effect spreads. If other quoting firms respond by rotating keys and pausing bots, the first sign will be thinner books and wider spreads on the venues they share, before any statement is made.
How Hyperliquid API wallets compare
Hyperliquid handles delegated keys differently. An approved agent wallet can place and cancel orders but cannot withdraw funds, per the approveAgent reference, and withdrawals are user signed actions that must come from the master wallet, according to Privy's Hyperliquid guide.
That does not make an agent key harmless. A stolen agent key can still place and cancel orders on the account it was approved for. Hyperliquid's own nonce documentation strongly suggests generating a new API wallet rather than reusing an old address, because previously signed actions can be replayed once a deregistered wallet's nonce state is pruned. It also recommends one API wallet per trading process.
The practical checklist is short. Use the official SDK for signing. Give every bot its own key with an expiry. Revoke keys you no longer use. Keep the master wallet off the server that runs the strategy.
Reading the next venue incident in real time
Venue incidents rarely start with an announcement. They start with a market maker pulling quotes, a burst of forced closes, and a token that reprices before anyone has explained why. On Buildix, the screener ranks Hyperliquid markets by open interest change, funding and CVD in one table, so a sudden one sided flow in a single pair stands out against the rest of the board, and the whale tracker shows when a fresh address starts building size.
Lighter's contracts held up, and roughly a third of the analyst estimate has been returned. The weak point was a signature routine on a trader's server and a pool permission that trusted it. In onchain markets, key handling sits inside the risk model, not next to it.