基础设施 4.0 · 优秀 2026-10-20 · 文章

Eight Bits of Trust; eMudhra's CA keys cracked in milliseconds

Scott Helme 把 eMudhra 八张中间 CA 证书的私钥从公开证书里反解出来,在笔记本上花不到一秒八张都是 P-384 椭圆曲线密钥,但私钥标量 d 只有 456115 这种量级d=4 算出的公钥仍是曲线上完全合法的点,所有结构校验都能通过,唯一发现办法是去试...

打开原文回到归档

Eight Bits of Trust; eMudhra's CA keys cracked in milliseconds

URL: https://scotthelme.co.uk/eight-bits-of-trust-emudhras-ca-keys-cracked-in-milliseconds/
author: Scott Helme
date: 2026-10-20
source: blog / article
collected: 2026-10-23 (daily-intake-evening)

Summary

Scott Helme 把 eMudhra 八张中间 CA 证书的私钥从公开证书里反解出来,在笔记本上花不到一秒。八张都是 P-384 椭圆曲线密钥,但私钥标量 d 只有 4、56、115 这种量级——d=4 算出的公钥仍是曲线上完全合法的点,所有结构校验都能通过,唯一发现办法是去试;一个字节只有 256 种取值,最多 255 步就撞上。证书 2025 年 4 月签发,六张 TLS CA 加两张代码签名 CA,又经 Sectigo AAA 根交叉签名,暴露 17 个月。Chrome 和 Firefox 封了这八张中间证书,但 curl、Python、Node、Go、Java、git 和容器包管理器默认信任磁盘 CA bundle、不查吊销不查 CT,作者用伪造 api.stripe.com 证书在 Linux/macOS 直接拿到验证通过。成因是仪式脚本 bug 加人工挑错密钥对;Helme 后来只让 Claude 敲了一个 prompt 就把私钥全部恢复。固件冻结到 2039 年的设备更新不了根证书包。

Scott Helme recovered the private keys of eight eMudhra intermediate CA certificates from the public certificates in under a second on his laptop. All eight are P-384 keys whose scalar d is tiny (4, 56, 115...), producing perfectly valid curve points that pass every structural check - brute force needs at most 255 tries per byte. Issued April 2025 and cross-signed by Sectigo's AAA root, they went undiscovered for 17 months. Chrome and Firefox blocked them, but curl, Python, Node, Go, Java, git and container package managers trust on-disk CA bundles with no revocation or CT checks, so a forged api.stripe.com certificate verified cleanly on his Linux and macOS machines. Root cause: a ceremony-script bug plus hand-picking the wrong keypair. Helme later recovered all keys with a single Claude prompt; devices with firmware frozen to 2039 cannot update their root stores.

Source (fetched)

One of eMudhra's certificate authority private keys is the number 4. Not a number that starts with 4, or the number 4 followed by a few hundred random digits, just, 4... Another one is 56, and another is 115. I know, because I recovered all of them from their public certificates on my laptop just now, and it took less than a second. What happened On Saturday 17th October a security researcher reported to Apple, Google, Microsoft, Mozilla and eMudhra that the private keys for eight eMudhra intermediate certificates were compromised. Chrome pushed a CRLSet update blocking them that evening and Mozilla blocked them in Firefox via OneCRL a few hours later. On Tuesday 20th, Mozilla announced it publicly and shipped an NSS update removing the eMudhra root, and Chrome confirmed the root is going in Chrome Root Store v43. The eight intermediates are six TLS issuing CAs (DV, OV and EV, two generations each) and two code-signing CAs, all created in April 2025. Every one of them was also cross-signed by Sectigo's AAA Certificate Services root in May 2025. That's the "what", but it's the "how" that's the interesting part, and it was summed up in one line on the thread by Ian Carroll: They are inherently weak single-byte keys that anyone can factor, and the issue cannot be contained. What a private key actually is These are elliptic-curve keys on the P-384 curve. The private key is just a number, d . The public key, the thing that goes in the certificate for the world to see, is d × G , where G is a fixed point on the curve that everyone uses and "×" means adding G to itself d times using the curve's special arithmetic. Going forwards is easy, but going backwards, from the public key to d , is considered to be impractical. That's the entire security model, and it only holds if d is enormous. A P-384 private key should be a random 384-bit number, which gives you 2³⁸⁴ possibilities (or roughly 10¹¹⁵), so nobody is ever going to search that. eMudhra's keys look like this: d = 0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004 A P-384 private key should look like this: d = 0x48ac06790886c80c48d31691fd4c0fe9ce3207f9807f2fe571d6e4ec426d78644298fc53df2b92566970e757ac998c34 That's 47 bytes of zeros and then one byte, and all eight keys are like that. A single byte has 256 possible values, so the "search" is: compute 1 × G , 2 × G , 3 × G , and stop when it matches the certificate, which is at most 255 steps. So the whole thing, every certificate those CAs could ever issue, every client that trusted them, rested on eight bits. I checked Mozilla attached the affected certificates to their announcement, so I pulled all 16 (8 keys, each used in two issued certificates: once by eMudhra and once by Sectigo) and brute-forced them. Every single one fell over instantly, the six TLS values, and the two code-signing keys are just as weak:

Intermediate Type d

EM DV TLS CA - G3B TLS 156

EM DV TLS CA - G3C TLS 230

EM EV TLS CA - G3B TLS 115

EM EV TLS CA - G3C TLS 56

EM OV TLS CA - G3B TLS 155

EM OV TLS CA - G3C TLS 4

EM OV CS CA - G3B Code signing 66

EM OV CS CA - G3C Code signing 237

It's interesting that nothing about these certificates looks wrong. A public key derived from d = 4 is a perfectly valid point on the curve, the encoding is fine, the curve is fine, every structural check passes. The only way to find out is to try. Why "it cannot be contained" Normally when a CA key is compromised, someone stole it! There's a thief, there's a moment it happened, and you can at least reason about who now has access to that key. Here, nobody had to steal anything. The key was effectively public from the day the certificate existed. Anyone who looked at one of these certificates, at any point since April 2025, could have recovered the key in milliseconds on commodity hardware. That's a 17 month window and there is no way to know whether someone did. Chrome made the point that because Chrome enforces Certificate Transparency, and no TLS certificates chaining to these CAs ever showed up in CT, no forged certificate could have been trusted by default in Chrome. That's true and it's reassuring for browsers. CT detects mis-issuance though, it doesn't prevent it, and a lot of software doesn't check CT at all. Who's exposed today Mainstream and updated browsers are likely absolutely fine. Chrome and Firefox block the intermediates directly and both require CT, and Safari requires CT too. Everything else is a different story, though. Most non-browser TLS clients (so basically everything else, with default settings), things like curl, Python, Node, Go, Java, git, package managers and every script and daemon you've got, do three things that matter here: they trust a CA bundle on disk, they don't check revocation by default, and they don't check CT. So the fact that eMudhra and Sectigo have revoked these intermediates doesn't help them at all. This is something that I find often when talking about TLS and PKI, understanding just how massive the client ecosystem is can be overlooked. We often focus on this in training when we look at modern solutions for revocation like CRLite, which works wonders on the desktop browsers, but does nothing for any other TLS client. Consider what needs its root store updating now, and this is just the tip of the iceberg: curl | sh installers and self-updaters. Many tools install or update by downloading a script or binary over HTTPS with no signature check (rustup, nvm, Homebrew's installer, countless "install.sh" pages, IoT firmware updaters). A forged certificate here means running the attacker's code, often as root. CI/CD pipelines. GitHub/GitLab runners, Jenkins and build containers fetch dependencies and push artifacts, while holding cloud keys, registry tokens and signing keys. They run on stale base images in shared networks, and they're all curl, Python, Go and Node underneath. Server-to-server API calls. Payment providers, webhooks, OAuth token exchanges and cloud SDKs (AWS CLI and boto use their own certifi bundle; Terraform and kubectl use Go). These carry API secrets and customer data in headers. IoT, embedded and OT devices. Cameras, routers, cars, medical devices, smart appliances, payment terminals and industrial controllers phoning home for commands and updates. Their bundles are frozen until 2039, which is the "cannot be contained" point made real.

Obsidian evidence excerpt

from OpenClaw定时任务/ClawFeed24小时高价值一览/2026-10-23-ClawFeed24小时高价值一览.md:

2. Eight Bits of Trust; eMudhra's CA keys cracked in milliseconds

Scott Helme 把 eMudhra 八张中间 CA 证书的私钥从公开证书里反解了出来,在自己笔记本上花不到一秒。八张都是 P-384 椭圆曲线密钥,但私钥标量 d 是 4、56、115、66、155、156、230、237 这种量级——从 d=4 算出来的公钥是曲线上完全合法的点,编码、曲线、结构校验全部通过,唯一能发现问题的办法是去试。因为一个字节只有 256 种取值,暴力枚举最多 255 步就撞上了。证书是 2025 年 4 月签的,六张 TLS CA(DV/OV/EV 各两代)加两张代码签名 CA,5 月又用 Sectigo 的 AAA 根交叉签了一遍,等于暴露了 17 个月,期间没人能知道有没有人真的用过。Chrome 和 Firefox 直接封了这八张中间证书,Chrome Root Store v43 还要把 eMudhra 根拿掉,浏览器这侧因为强制 Certificate Transparency 反而是安全的,问题全在别处:curl、Python、Node、Go、Java、git、容器里的包管理器默认信任磁盘上的 CA bundle,不查吊销也不查 CT,Helme 用一张伪造的 api.stripe.com 证书在自己 Linux 和 macOS 机器上直接拿到 SSL certificate verify ok,Windows 的 CryptoAPI 除非手动打开吊销检查也会认。eMudhra 自己在 Mozilla 的 bug 上说了成因:仪式脚本有 bug,HSM 上多生成了一对弱密钥,名字又接近,人工挑错了发进 CSR 的那一对;Helme 补了一句,他后来只是让 Claude 敲了一个 prompt 就把私钥全恢复了。固件冻结到 2039 年的设备更新不了根证书包,这是这次唯一真正收不回来的部分。 https://scotthelme.co.uk/eight-bits-of-trust-emudhras-ca-keys-cracked-in-milliseconds/