The Lighter Attack: How a Single API Key Drained Tens of Millions of Dollars?
On November 16, a security incident hit Lighter, a decentralized perpetual contract trading platform. Roughly $15.48 million in USDC was drained from two large market-maker accounts (#714710 and #714723), though Lighter officially confirmed only that a single trader's API key was compromised—not the protocol or smart contracts.
The attacker reportedly exploited a leaked API key that lacked direct withdrawal permissions by chaining legitimate product features: closing the victim's trading positions to free margin, creating a 0% fee public pool funded with about $10,000 from an attacker-controlled account to secure ~99.99% of pool shares, then using the victim account's internal transfer permissions to move USDC into the pool in ~$1 million batches. Because internal transfers between accounts linked to the same L1 address may not require additional signatures, and such transfers may not have minted new shares for the victim, the attacker's dominant share position appreciated and could be redeemed for the victim's funds.
On-chain records show about 10.39 million USDC withdrawn via withdrawPendingBalance, then swapped through CoW Protocol into ~5,764 ETH/WETH, with some funds later moved to Hyperliquid and converted to XMR. Lighter's LIT token fell over 12% in 24 hours.
Lighter attributed the root cause to the affected account using unofficial SDK signing code that reused nonces, allowing private key recovery from public signature data; the official SDK was unaffected. The Guardian mechanism paused withdrawals, the security committee returned about $5 million USDC, and deposits/withdrawals have resumed. Lighter now requires wallet signatures for transfers to public pools, makes API key signatures non-public, and plans IP whitelists, API key permissions and limits, plus monitoring for nonce reuse.
marsbit49m ago