Lighter, an Ethereum-based perpetual futures exchange, has restored withdrawals after a security incident that led to the compromise of a trader’s API keys. The exchange’s Security Council managed to return approximately $5 million in USDC to the affected trader, as detailed in a postmortem report. The issue began on Monday when Lighter detected a suspected compromise involving an external party, prompting the suspension of withdrawals and pool creation as a precautionary measure.
The investigation revealed that the attacker exploited a leaked API key linked to a specific trader’s account. Lighter prioritized recovering funds from an additional withdrawal attempt and completed contract upgrades to reopen withdrawals by the end of Monday. The exchange’s smart contract Guardian played a crucial role by temporarily pausing withdrawals, allowing the Security Council to return the funds.
According to Lighter’s postmortem, the attacker opened a public pool from the compromised account, minted shares in a separate account, and transferred the trader’s funds into the pool without minting more shares. This increased the value of the shares held by the attacker, which were then redeemed and withdrawn. The API keys were leaked due to the use of unauthorized signing software and reused nonces, enabling the calculation of the private key from public signatures.
In response to the incident, Lighter has implemented stricter security measures. API keys alone can no longer authorize transfers to public pools, and wallet signatures are now required. The exchange has also made API key signatures non-public and is adding IP allowlists and permissions for individual keys, including market-specific trading restrictions.