🤔 With no withdrawal permission at all, how was $15.5 million moved out of Lighter? According to on-chain monitoring and third-party analysis, the incident first came into view through an anomalous withdrawal of about 10.39 million USDC, and was subsequently linked to the leak of a market maker account's API key. Lighter also confirmed the key leak of a certain trader account, but the number of accounts and the loss amount remain third-party claims. So why could an API key cause such a large loss? Lighter's official documentation shows that a regular API key can execute transfers between accounts of the same owner, while transfers to other owners require an additional wallet signature; secure withdrawals can be initiated with an API key alone, but can only go to the account owner's own L1 address. In other words, an API key alone cannot directly move money to another owner's name. According to the analysis relayed by @0xTria, the attacker exploited exactly the relationship between this permission set and public pools: first using the victim account's API to close all positions and release margin; then creating a public pool with a 0% fee using the victim account, and having an account controlled by the attacker contribute about $10,000 to obtain about a 99.99% share; then transferring USDC from the victim account into that pool in amounts of about $1 million each time, and redeeming the shares to take the assets. A public pool is a special trading sub-account on Lighter; other users can subscribe to shares and share profits and losses according to their shares. Who created the pool and who owns the shares are not the same thing. According to 0xTria's account, internal transfers between accounts associated with the same L1 address may not require an additional signature, and the pool created by the victim account is also treated as its associated account. According to @KarenZh30739159's understanding, if the analysis is accurate, the key may lie in this: internal transfers are not the same as share subscriptions. After funds are transferred into the pool, the system may not have minted new shares for the victim account, so the attacker's original overwhelming majority of shares may not have been diluted, and upon redemption the attacker may have been able to take away these newly added assets. However, this is still an inference based on the path described by 0xTria; Lighter has not disclosed whether internal transfers trigger share minting.
