跳到正文
AYi· @AYi_AInotes · X·· 14 天前精选AI 评分67
AI 导读

Lighter 平台一把关闭提现权限的 API key 仍于 11 月 16 日被转走 10,393,057 USDC,随后被换成约 5,764 ETH。根因是交易员自写签名代码复用 ECDSA nonce,攻击者从公开 calldata 的订单签名反推出私钥,再通过公共资金池份额赎回绕过提现限制;官方 SDK 未受影响。

推荐理由

原文拆解了无提现权限的 API key 仍被搬走 1039 万 USDC 的完整路径,并给出用 Claude 扮演黑客审查权限清单的可复用方法。

正文

卧槽,太离谱了!一把明确关掉了提现权限的 API key,居然照样被人神不知鬼不觉搬走了 1039 万美元的 USDC,@GCSA_COM这篇把过程拆解的特别清楚,
最让人后背发凉的是,这起事故里智能合约没被黑,官方 SDK 也没有漏洞,
纯粹是一个交易员自己写的签名代码图省事,重复使用了同一个随机数,结果链上公开躺着的两笔交易签名一碰撞,私钥直接被数学公式反推了出来。
拿到私钥的攻击者发现这把 key 根本提不了现,于是干脆换了个绕路打法,直接用受害者账户自己建了一个公共资金池把钱全转进去,
紧接着让另一个提前持有池子份额的马甲账户一脚赎回,一千万美金就这么合法合规地洗出去了。

现在满大街的开发者都在给自己的 AI agent 塞各种 API key,心里还美滋滋觉得只要把转账、删库、提现这些高危开关关掉就万事大吉了,

但这起千万美金的教训直接把这层安全幻觉撕了个粉碎,真正决定风险上限的从来不是你关掉了哪个按钮,

而是你放开的那几个普通权限能不能在业务规则里绕出一个等效的死循环。
以后在给任何 AI agent 发放权限或 API key 之前,养成一个习惯,

先把你勾选的权限清单和业务接口文档丢给 Claude,直接下指令让它扮演黑客,

专门找一条不碰高危开关也能把资产或数据绕出去的路径,这招能帮你提前堵死九成隐形漏洞。

引用GCSA@GCSA_COM
GCSA Insight | How 10.39 Million USDC Flowed Out of Lighter Through Public Pools The compromised API key could not withdraw funds directly. Yet 10,393,057 USDC left Lighter’s Ethereum settlement contract on November 16, 2026. The receiving address then swapped the funds for approximately 5,764 ETH through CoW Swap. Lighter’s post-mortem traced the key exposure to a trader’s custom signing code, which reused an ECDSA nonce. With order signatures available in public calldata, an attacker could recover the account’s API private key. Lighter said its official SDK was unaffected. The public pool provided a route around the key’s withdrawal restriction. Lighter treated transfers into the creator’s pool as movements between accounts under the same owner. Other accounts, however, could hold and redeem shares in that pool. Adding funds without issuing new shares increased the amount existing shareholders could redeem. Funds moved internally could therefore become accessible to another account. Lighter has since introduced wallet-signature requirements for public-pool transfers and removed API signature data from public calldata. IP whitelisting and per-key limits are also planned. The platform said its protocol, smart contracts and infrastructure were not compromised. A separate withdrawal attempt was blocked, and approximately 5 million USDC was returned. The final net loss remains unconfirmed. Our analysis follows the timeline and examines where the permission model fell short. For anyone building or auditing a trading API, the question extends beyond whether a key can withdraw funds directly to whether its other permissions can produce the same result. Read the full GCSA analysis https://media.gcsa.com/en-US/news-3731141 · Stay Connected with GCSA Follow GCSA's official social media channels for the latest news, product launches, research developments, and ecosystem updates. GCSA Official Telegram Channel: http://t.me/gcsaofficial GCSA Official WeChat Account: https://mp.weixin.qq.com/s/MZadK42X1kFG-RTqFTps5w #GCSAInsight #GCSACybersecurity #GCSASecVibe
在 X 查看被引用的帖子

来源:AYi · x.com