Lighter Suffers $10.39M USDC Exploit Due to Nonce Reuse in Unsafe SDK
On November 16, decentralized perpetual trading platform Lighter experienced an abnormal outflow of approximately $10.39 million USDC. An investigation published by the platform on November 17 confirmed that the loss resulted from the leakage of a trader’s API key, caused by the use of insecure signing code in a non-official SDK that reused signature nonces.
How the Attack Unfolded
Each transaction on Lighter is authorized by an API key signature, which requires a unique and unpredictable nonce. If the same nonce is used to sign two different transactions with the same key, the private key can be mathematically derived from the two signatures—a vulnerability inherent in Schnorr signatures when nonces are reused.
The attacker exploited the leaked key to create a public funding pool, minted a large number of shares in that pool, and then transferred the victim’s funds into the pool. This increased the pool’s net asset value without issuing new shares, allowing the attacker to profit from the inflated share value. The platform viewed the transfer as a normal internal transaction, as it did not change the holder structure or mint new shares.
Funds Tracing
After withdrawing the $10.39 million USDC, the attacker swapped all USDC for about 5,400 ETH via CoW Protocol and dispersed the funds in batches of 160 ETH to multiple addresses. So far, about 800 ETH was swapped for BNB and 299 ETH for BTC via Thorchain. Additionally, 1,920 ETH was bridged to Arbitrum via Li.Fi, converted to USDC, and deposited into Hyperliquid to buy XMR spot. All related addresses have been flagged, and monitoring continues.
Industry Implications
This incident underscores the critical importance of secure key management and the risks associated with unofficial SDKs. Nonce reuse is a well-known cryptographic pitfall, yet it continues to cause significant losses. DeFi platforms must educate users about the dangers of third-party tools and ensure that official SDKs are robust and widely adopted. Moreover, the attacker’s use of cross-chain bridges and privacy coins highlights the challenges of tracking stolen funds in an increasingly interconnected ecosystem.
Forward-Looking Perspective
As DeFi evolves, security must remain a top priority. Projects should conduct regular audits of their SDKs and promote best practices for key management. Users should exercise caution when using unofficial tools and verify the integrity of any code that handles private keys. Regulators and law enforcement may also need to enhance cross-chain tracing capabilities to keep pace with sophisticated attackers.



