Key findings
- The sweep covers every P-384 and P-256 CA key in the public trust stores, 344 P-384 and 405 P-256 keys pulled from CCADB, plus the RSA CA keys. MEASURED
- It tests the whole family of eMudhra-class weakness, not just the exact bug: small integer private keys, short alphanumeric “string” keys, structured scalars (shifted small values, repeated bytes, values near the curve order), and for RSA, Fermat, ROCA, and shared prime factors across the entire set. MEASURED
- The method is validated against ground truth: the eight known eMudhra private scalars, placed in valid P-384 certificates, were all eight recovered. A clean result on the real corpus therefore means something, rather than coming from a tool that would find nothing either way. MEASURED
- The method runs on two independent EC stacks (C on OpenSSL, and Python
cryptography). Both recover the eMudhra ground truth, and any live hit would be re-derived in the other stack before being trusted, so a hit could never be a decoding artefact of one library. MEASURED - Result: no weak keys found. Across all 2,374 trusted CA keys, every key passed every check. The sweep tested 66.3 billion candidate keys in 4.5 hours on a single spot VM. eMudhra’s failure was isolated across the public trust store at the snapshot date, 22 October 2026. MEASURED
Background
On 17 October 2026, a researcher scanning public certificate data found that eight of eMudhra’s intermediate CA certificates had been signed with private keys that were not secret at all. The keys were P-384, an elliptic curve that should put the private value far beyond any brute force, but their private scalars were absurdly small. One of the eight, the “EM OV TLS CA - G3C” intermediate, had a private key equal to the number 4. The other seven were two or three digits. On a curve where a real private key is a random 384-bit integer, that is as low as it goes. Scott Helme reported recovering all eight private keys from the public certificates in under a second, noting that one of them was simply the number 4.
eMudhra’s own account is mundane: a script error in April 2025 that generated a second, weaker set of keys, which were then mistakenly selected for signing because their labels resembled those of the correctly generated ones. It is worth being careful here. A P-384 scalar below 256 is not what a broken or badly seeded random number generator produces; in-module generation on a validated HSM does not emit the integer 4. The open forensic discussion in the Mozilla bug (2083449) argues that values this small point to supplied or injected key material rather than a seeding failure. Which of those it was is still unresolved, and it is eMudhra’s to answer: the ceremony script, the exact call that created the second key pair, and the key generation logs are the only things that settle it. This article does not try to settle that question. It asks a different one.
Within days the major trust stores responded. Chrome blocked the six TLS intermediates via CRLSet on 17 October, and Firefox blocked the certificates through OneCRL the same day. Apple blocked them on 19 October and Microsoft on 20 October. The Go team shipped 1.27.3 and 1.26.10 on 20 October for CVE-2026-111943, rejecting any chain containing one of the eight keys. eMudhra stopped issuing under its G3 root and announced it would leave the TLS certificate business.
A CA signing key sits at the top of the trust chain. If its private key is recoverable, anyone can mint certificates that browsers trust for any site on the web, which is about as serious as web PKI failure gets. The eMudhra keys had been recoverable since April 2025. There is no evidence anyone abused them, but the window was open for roughly eighteen months.
That is the question this work set out to answer. eMudhra was caught because one researcher happened to look at one CA. Was eMudhra alone, or are there other certificate authorities in the public trust stores whose keys fail the same way? One sweep tests every CA at once, so the answer is the whole trust store or nothing.
Test environment
| Item | Value |
|---|---|
| Key corpus | all root and intermediate CA keys in CCADB (snapshot 22 Oct 2026): 2,374 keys, being 405 EC P-256, 344 EC P-384, and 1,625 RSA (628 at 2048-bit, 377 at 3072-bit, 620 at 4096-bit) |
| EC path | incremental candidate walk, one point addition each, in C on OpenSSL primitives |
| EC cross-check | Python cryptography, independent key derivation |
| RSA path | Fermat, ROCA, and shared-prime (batch GCD) checks across the whole set |
| OpenSSL | 3.0.22 |
| Compiler | gcc 12.2.0 |
| Python | 3.11.2, cryptography 50.0.2 |
| Compute | GCP n2-highcpu-32 spot instance |
Methodology
The corpus is every CA key the browsers trust, pulled from CCADB, the Common CA Database that aggregates the certificate authorities in the major root programs. Split by algorithm, that is 344 P-384 and 405 P-256 elliptic-curve keys, plus the RSA CA keys.
The elliptic-curve idea. An EC public key is just a point on the curve,
P = d·G, where d is the private key and G is the curve’s fixed base point.
Recovering d from P is meant to be infeasible. But if d is small or guessable,
there is nothing to break: you compute candidate·G for each candidate and compare
it to the published public key. eMudhra’s d was 4, so recovering it is four steps.
Why one pass covers the whole store. The scanner walks candidate scalars incrementally, one point addition per step, and at each step compares against every CA key at once. So a single pass over the candidate range tests the entire set of trusted CA keys together, not one key at a time. The hot path is in C on OpenSSL’s EC primitives.
What it tests, beyond the exact eMudhra case:
- small integer private keys (the direct case, and well past it),
- short alphanumeric “string” keys, where the raw ASCII bytes of a word are used directly as the scalar (someone typing a word as a key),
- structured scalars: shifted small values, repeated bytes, and values near the curve order,
- for RSA: Fermat (close primes), ROCA (the Infineon structure), and shared prime factors across the whole corpus.
Two implementations, cross-validated. The two EC stacks are independent: the
candidate walk runs in C on OpenSSL, and the structured-pattern sweep and all key
derivation in the validation run in Python’s cryptography. Both stacks recover the
eMudhra ground truth, and the design re-derives any live hit in the other stack
before trusting it, so a hit can never be a decoding artefact of one library. The
sweep produced no live hits, so this per-hit cross-check never had to fire; its role
here is to make the null result defensible rather than to adjudicate a find.
Validation against ground truth. Before trusting a clean result, the tool has to prove it can find the weakness it is looking for. The eight known eMudhra private scalars were placed in valid P-384 certificates and run through the sweep. All eight were recovered. That is what makes a null result meaningful: the tool is not silent because it is blind. MEASURED
Results
No weak keys found. Across all 2,374 trusted CA keys, every key passed every check. Setting aside the already-revoked eMudhra intermediates, the public trust store held no other key of the recoverable class on 22 October 2026. MEASURED
| Test | Scope | Candidates searched | Runtime | Result |
|---|---|---|---|---|
| Structured patterns | EC P-256 | 32,073 | under 1 min | 0 hits |
| Structured patterns | EC P-384 | 44,425 | under 1 min | 0 hits |
| Small integers (up to 2^32) | EC P-256 | 4,294,967,296 | 21.4 min | 0 hits |
| Small integers (up to 2^32) | EC P-384 | 4,294,967,296 | 11.8 min | 0 hits |
| 6-char alphanumeric strings | EC P-384 | 57,731,386,986 | 3.9 hr | 0 hits |
| Fermat / ROCA / factors / blocklist | all CA certs | 2,377 certs | fast | all OK |
| Shared-prime (batch GCD) | RSA | 1,625 keys | under 1 min | 0 shared |
That is 66.3 billion candidate keys in 4.5 hours on one n2-highcpu-32 spot VM.
MEASURED
(The blocklist/Fermat/ROCA pass runs over all 2,377 certificate files in the corpus, EC and RSA alike, which is why its count is slightly above the 1,625 RSA keys that go into the shared-prime check. The 6-char string sweep was run on P-384 only, since that is the eMudhra curve and the expensive run was aimed where the known failure sits.)
The result that matters is the null one, and it only means something because of the validation. The same tool recovered all eight planted eMudhra scalars, so a clean pass on the real corpus is the tool working, not the tool blind. Read plainly: at the snapshot date, eMudhra’s failure was an isolated lapse, not the visible tip of a weak-key problem across the public certificate authorities. On this class of weakness, the trust store is clean. MEASURED
Limitations and open questions
- A sweep finds only the weakness classes it models (small and structured EC scalars, string keys, and for RSA Fermat, ROCA and shared factors). A key can be weak in a way this sweep does not test for. OPEN
- The string check assumes the raw ASCII bytes of the word are the private scalar.
A key derived by hashing a passphrase (a brainwallet-style
SHA-256(word)) is not caught by this sweep; that is a separate and far slower kernel. OPEN - CCADB is the public trust stores, not every CA in existence; private, enterprise and regional PKIs are out of scope. OPEN
- The sweep catches a weak key, not the cause. How eMudhra’s keys came to be small enough to recover is not something a public-key sweep can answer; it is eMudhra’s to explain, from the ceremony script and the key generation logs, and that question is still open in the Mozilla bug thread. The natural next check on this side is collision detection: scanning the corpus for duplicate or shared public keys, which is the real signature of a badly seeded RNG, as distinct from the tiny scalars eMudhra produced. OPEN
How to reproduce
- Pull the CA certificate set from CCADB (record the snapshot date).
- Split the keys by algorithm (P-384, P-256, RSA).
- EC: run the incremental scalar walk in C; it compares every CA key at each step.
- Cross-check every candidate hit in Python
cryptography. - RSA: run the Fermat, ROCA and batch-GCD checks.
- Confirm any hit by deriving the public key from the recovered private key and matching it to the certificate.
References
The eMudhra incident
- Mozilla Bug 2083449: eMudhra intermediate CA key compromise (primary source, including the root-cause discussion)
- Scott Helme, on recovering all eight private keys from the public certificates (one of them the number 4)
- The Hacker News, “Eight eMudhra CA Keys Compromised, Triggering Emergency Fixes Across Browsers and Software”
- Help Net Security, “eMudhra security blunder left trusted CA signing keys exposed to anyone”
Method and tooling
- CCADB (Common CA Database): the public source of the CA key corpus.
badkeysand the ROCA / Fermat / batch-GCD literature: the RSA weak-key checks.
Disclosure and data handling
This work only ever touches public keys. Nothing is signed, and no certificate is issued. Any weak key found that is still live and not yet revoked is withheld from publication until it has been reported privately to the affected CA and the root programs and they have acted. In this sweep nothing was found, so nothing was withheld. The already-public eMudhra set is named only because it is already revoked and documented.