Coldcard事故报告:弱随机数导致比特币被盗,非设备被黑
Coldcard Postmortem Says Weak Seeds, Not Hacked Devices, Drove Bitcoin Thefts
这是加密基础设施领域罕见的系统性安全事件复盘,详细披露了漏洞原理、影响范围及具体金额。持有Coldcard或关注冷存储安全的从业者必须了解其技术细节与应对方案。
Bitcoin Magazine
Coldcard Postmortem Says Weak Seeds, Not Hacked Devices, Drove Bitcoin Thefts
Coldcard 事后分析报告指出,弱种子而非被黑客攻击的设备导致了比特币被盗
Coinkite on Tuesday published its full postmortem on the Coldcard seed-generation flaw that let thieves drain bitcoin from customer wallets starting in July, saying no device was hacked and that the stolen keys were rebuilt offline from weak seeds.
Coinkite 周二发布了关于 Coldcard 种子生成缺陷的完整事后分析报告。该缺陷导致窃贼自7月起从客户钱包中盗取比特币。报告称没有设备被黑客入侵,被盗密钥是从弱种子离线重建的。
The 18-page report, dated Nov. 23 and modeled on a National Transportation Safety Board accident report, lays out how the defect shipped in Coldcard firmware from March 29, 2021, through July 30, 2026, and why years of outside reviews missed it.
这份18页的报告日期为11月23日,其格式模仿了美国国家运输安全委员会(NTSB)的事故报告。报告阐述了该缺陷如何随 Coldcard 固件从2021年3月29日一直存在至2026年7月30日,以及为何多年的外部审查未能发现它。
“The losses are real and, for some customers, life-changing. No report or firmware update can undo that. We are sorry,” Coinkite wrote.
“损失是真实的,对某些客户来说甚至是改变人生的。没有任何报告或固件更新能挽回这一切。我们深表歉意。” Coinkite 写道。
A silent swap in the random number generator
随机数生成器的无声替换
A seed is the list of recovery words that controls a bitcoin wallet, and it is only as safe as the randomness used to create it. Coldcard devices were supposed to draw that randomness from the hardware random number generator built into their STM32 chip.
种子(seed)是控制比特币钱包的助记词列表,其安全性完全取决于创建时使用的随机性。Coldcard 设备本应从其 STM32 芯片内置的硬件随机数生成器中获取这种随机性。
Instead, a firmware setting switched that hardware source off, and a safeguard in Coinkite’s libNgU code library failed to catch it. Seed generation quietly fell back to Yasmarang, a predictable software generator built into MicroPython, the programming environment the firmware runs on.
然而,一个固件设置关闭了该硬件源,而 Coinkite 的 libNgU 代码库中的一个安全措施未能检测到这一情况。种子生成 quietly 回退到了 Yasmarang,这是一个内置于 MicroPython(固件运行的编程环境)中的可预测软件生成器。
Nothing crashed, and the devices produced normal-looking seed words. Coinkite estimates affected seeds carried roughly 40 bits of effective security on the older Mk2 and Mk3 models and about 72 bits on the Mk4, Mk5 and Q, against an intended 128 bits. That shrinks the pool of possible seeds enough for attackers to search it offline.
系统没有崩溃,设备也生成了看似正常的种子词。Coinkite 估计,在较旧的 Mk2 和 Mk3 型号上,受影响的种子仅具有约40位的有效安全性,而在 Mk4、Mk5 和 Q 型号上约为72位,而预期应为128位。这使得可能的种子池缩小到足以让攻击者进行离线搜索的程度。
The report says Coinkite’s release checks confirmed the hardware code was present, but never confirmed that seed generation actually reached it. At least 15 independent review efforts since 2021 also missed the flaw, including two paid third-party reviews and an AI-assisted firmware review this year that produced 85 candidate findings.
报告称,Coinkite 的发布检查确认了硬件代码的存在,但从未确认种子生成实际上是否到达了该硬件代码。自2021年以来,至少15次独立的审查工作也错过了该缺陷,包括两次付费的第三方审查,以及今年一次产生85个候选发现的 AI 辅助固件审查。
Hundreds of Coldcard owners report losses
数百名 Coldcard 所有者报告损失
Unexpected transactions from affected seeds began July 29. Coinkite said it identified the defect the next day, after users discovered thefts, and shipped fixed firmware for every supported release track on July 31.
来自受影响种子的异常交易始于7月29日。Coinkite 表示,在用户发现盗窃案后的第二天,他们确定了该缺陷,并于7月31日向所有支持的发布渠道发送了修复后的固件。
As of Nov. 18, Coinkite had received about 300 loss-related support tickets tied to 242 customer accounts, or about 0.21% of its estimated Coldcard user base. The company’s blog post cites 236 accounts. Because Coldcard is self-custodial, Coinkite can only count losses that customers report, and it says the true number is likely higher.
截至11月18日,Coinkite已收到约300张与损失相关的工单,涉及242个客户账户,约占其估计的Coldcard用户基数的0.21%。该公司博客文章引用了236个账户的数据。由于Coldcard是自托管的,Coinkite只能统计客户报告的损失,并表示实际数字可能更高。
The report cites Galaxy Research figures showing 1,778.84 BTC stolen from more than 8,600 addresses, worth about $107 million at today’s price. Galaxy pegged losses above $115 million in August, based on prices when the coins were taken, and white hats later moved some exposed coins into a recovery trust.
报告引用了Galaxy Research的数据,显示从超过8,600个地址中窃取了1,778.84 BTC,按当前价格计算价值约1.07亿美元。Galaxy在8月份根据硬币被盗时的价格将损失定为超过1.15亿美元,随后白帽黑客将部分暴露的硬币转移到了恢复信托中。
Who found and exploited the flaw is still unknown, and law enforcement is investigating. The report calls AI-assisted discovery “a plausible hypothesis, not an attribution,” noting that the first thefts came two days after the full model weights of the AI model Kimi K3 were released. Bitcoin Core developers ended long embargoes last month for bugs that AI tools can easily rediscover.
发现并利用该漏洞的人身份仍未知,执法部门正在调查中。报告称AI辅助发现“是一个合理的假设,而非归因”,指出第一次盗窃发生在AI模型Kimi K3的完整模型权重发布两天后。比特币核心开发人员上个月结束了针对AI工具可以轻松重新发现的漏洞的长期禁运期。
Updating firmware does not fix an old seed
更新固件无法修复旧的种子
Coinkite said an independent review by Keylabs, published Oct. 15, found the defect “fully closed” in Mk5 firmware 5.6.2 and 5.6.3 and Q firmware 1.5.2Q and 1.5.3Q. That review did not cover Coldcard’s Edge releases, a preview track for developers and early adopters.
Coinkite表示,Keylabs于10月15日发布的独立审查发现,Mk5固件5.6.2和5.6.3以及Q固件1.5.2Q和1.5.3Q中的缺陷已“完全关闭”。该审查未涵盖Coldcard的Edge版本,这是面向开发人员和早期采用者的预览轨道。
Newer Coldcard firmware now requires users to add their own randomness, through key presses, dice rolls or coin flips, and mixes it with three hardware sources. The device also checks at startup that seed generation reaches the hardware generator, and stops if it does not.
较新的Coldcard固件现在要求用户通过按键、掷骰子或抛硬币添加自己的随机性,并将其与三个硬件源混合。设备还在启动时检查种子生成是否达到硬件生成器,如果未达到则停止。
But a firmware update does not repair a seed that was already created on affected firmware. Coinkite told owners whose seeds were made on affected firmware to install verified fixed firmware, create a new seed and move their coins. Seeds made with at least 50 private dice rolls were not weakened.
但固件更新无法修复已在受影响固件上创建的种子。Coinkite告知那些在受影响固件上创建种子的用户安装经过验证的修复固件,创建新种子并转移他们的硬币。使用至少50次私钥骰子滚动的种子未被削弱。
Three of the report’s 15 recommendations to Coinkite remain open, including whether to compensate affected customers. The company said it has “no decision” on a plan yet and asked whoever holds the stolen bitcoin to return it through [email protected].
报告中对Coinkite的15项建议中有三项仍处于开放状态,包括是否向受影响的客户提供补偿。该公司表示目前对计划“尚无决定”,并要求任何持有被盗比特币的人通过[email protected]归还。
This post Coldcard Postmortem Says Weak Seeds, Not Hacked Devices, Drove Bitcoin Thefts first appeared on Bitcoin Magazine and is written by Micah Zimmerman.
这篇《Coldcard事后分析称弱种子而非被黑设备导致比特币被盗》最初发表在Bitcoin Magazine上,由Micah Zimmerman撰写。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力