Lighter hack shows API keys can drain funds even when withdrawals are locked down

Lighter hack shows API keys can drain funds even when withdrawals are locked down

More than $10 million was siphoned out of Lighter, a decentralized exchange for perpetual futures contracts, according to a report by Cointelegraph. The attack did not break the platform's smart contracts. Instead, the attacker used compromised API keys — access codes that let software trade on a user's behalf — to move funds through routes that withdrawal controls did not cover.

According to Lighter's postmortem, the attacker moved funds into a public pool and then redeemed shares held through another account. Blockchain analytics firm Bitquery traced a withdrawal of 10.39 million USDC, a stablecoin pegged to the US dollar.

Key facts from the incident

  • Over $10 million was taken from Lighter, a decentralized perpetual futures exchange.
  • The attacker used compromised API keys, not a flaw in the protocol or smart contracts.
  • Funds were moved into a public pool, and shares were redeemed through a second account.
  • Bitquery traced a withdrawal of 10.39 million USDC.
  • Lighter has restored deposits and withdrawals and returned about $5 million in USDC to the affected trader.

What Lighter said and did

Lighter stated that its protocol and smart contracts were unaffected by the incident. The company published a postmortem explaining how the attacker used the compromised keys.

The exchange has since made changes. It now requires wallet signatures for transfers into public pools. It has made API-key signatures non-public. It also plans to add IP allowlists, which limit access to approved network addresses, and configurable permissions for individual keys.

The lesson: trading rights can also lose money

The incident shows that focusing security only on withdrawal controls leaves other paths open. A key that is allowed to trade, move funds internally, or interact with shared pools can still cause losses.

As Lighter put it in its postmortem: "A key that can trade can still lose you money if someone else holds it."

The report argues that the real risk of a credential depends on the balances it can reach, the transactions it can start, and the exposures it can create — not just whether it can withdraw funds and to which destinations.

What the report recommends

The report suggests that users set a clear mandate for each credential. Such a mandate can specify which accounts are accessible, which markets are permitted, order sizes, pricing tolerances, and total exposure limits. Moving capital into a shared pool or raising those limits should require separate authorization.

The same logic applies to requiring a second signature. According to the report, a second signature adds real protection only when its approval process independently evaluates the financial effect of a transaction.

What is confirmed and what is not

Confirmed from the sources: the amount taken, the method involving compromised API keys and a public pool, the 10.39 million USDC withdrawal traced by Bitquery, the statement that smart contracts were unaffected, the security changes Lighter made, and the return of about $5 million in USDC to the affected trader.

The exact identity of the attacker and how the API keys were compromised are not stated in the supplied material.

Sources

Newisty Editorial Team
Written by

Newisty Editorial Team

Technology · Crypto · Digital Economy
View all posts

Newisty Editorial Team covers technology, cryptocurrency, digital products, online platforms, developer tools and the wider digital economy. Our content is researched from official sources, company announcements, public documentation, market data and other primary or reputable sources. Articles are reviewed and edited before publication for clarity, accuracy and useful context.

Comments (0)

Leave a comment
Your comment will appear publicly after submission.
No comments yet. Be the first to comment!