Quick Answer: The eMudhra private key incident exposed issuing CA keys for ECDSA on curve P-384 with private values as small as 4. Such keys are trivial to recover: an attacker multiplies the curve's generator point by small integers until the result matches the public key. The badkeys tool missed it, though its author had nearly built the check.

A certificate authority's signing key is about as valuable as a secret gets on the web. Whoever holds it can issue certificates that browsers trust for any domain. So when researchers learned that several eMudhra intermediate keys were insecure, the surprise wasn't just that a key leaked. It was how small the secret was. One private key was literally the number 4. Hanno Böck, who maintains the badkeys scanner, has written up how close his tool came to catching it.

What Actually Went Wrong With the eMudhra Private Key

An ECDSA private key is an integer, usually called d. The public key is the point Q = d·G, where G is the curve's generator. For P-384, the group order is roughly 2^384, so a properly generated key is unguessable. Generic attacks like Pollard's rho need about 2^192 operations to solve the discrete log.

The eMudhra keys broke that assumption. Some were just small enough to fit in a single byte, and one was d = 4. Recovering d then takes a few hundred multiplications: compute k·G for k = 1, 2, 3... and stop when the result equals the public key.

When d is small, the math is not the hard part. The hard part is noticing that anyone tested the value at all.

Why Standard Key Validation Passed

Here's the counter-intuitive part. The eMudhra public keys were mathematically valid points on the curve. A key with d = 4 passes every standard check: the point is on the curve, it's in the correct subgroup, and the encoding is well-formed. Validation tools that only ask "is this a valid key?" will say yes.

That's why the common advice to "just validate your keys" is incomplete. Validation checks that a key is well-formed. It doesn't check whether the secret behind it is actually secret. Those are different questions, and only the second one catches this class of failure.

How badkeys Came Within One Step

Hanno's tool works in two ways. Some checks compare keys against a blocklist of known-compromised values, such as the hashes behind the Debian OpenSSL bug. Others are algorithmic. Fermat factorization, for example, breaks RSA keys whose primes are close together.

In November 2025, Theo Buehler filed a badkeys issue asking, in effect, whether small-private-key ECDSA keys count as bad keys. That is the exact check that would have found eMudhra's keys. Hanno agreed it was valid, and he had already written a script generating keys for values up to 16 on common curves. He had a d = 4 key on his laptop. Adding those values to the blocklist would have caught it with a cron job.

He didn't, for a reasonable-sounding reason. Blocklists grow with every curve and every value. There are also many obscure curves, a side effect of what Hanno calls crypto-nationalism and NIH syndrome. He wanted an algorithmic check that didn't require a list.

Blocklist vs. Algorithmic Detection

Here's how the main options compare for finding small d values:

ApproachApproximate costStrengthWeakness
Blocklist lookupNear-constant per key once builtSimple, fast, no crypto codeMust enumerate every curve and value in advance
Brute-force small dAbout d scalar multiplicationsTrivial to implementLinear in the range, impractical beyond ~2^32
Baby-step giant-step (BSGS)About √N steps, √N memoryCovers ranges up to ~2^40 with modest memoryMemory-hungry at larger ranges
Pollard's kangarooAbout √N steps, tiny memoryWorks on a known interval without a big tableHarder to implement correctly

For a 1-byte range, all of these finish almost instantly. The real differences appear when you want to cover wider ranges without maintaining a list. Nadia Henninger, an expert on attacking public keys, suggested Pollard's kangaroo as the best fit. Hanno found it too complicated to adapt quickly, and most of his time went to RSA findings.

The RSA Detour That Taught the Same Lesson

While investigating a separate RSA problem, the team traced many affected keys to CompleteFTP. The generated RSA keys had an unusually large public exponent. Hanno suspected that public and private exponents had been swapped. The RSA math still works if you swap them, so a key pair can function perfectly and still be weak.

The check was quick: CompleteFTP on Linux produced keys with d = 65537. A small private exponent is exactly what Wiener's attack exploits, so Hanno added that check to badkeys first. The lesson carries over to ECDSA. Insecurity often comes from a value sitting in the wrong place, and it doesn't show up as a math error.

Most people stop here, and that's the wrong move. Check both exponents on RSA keys and both scalars on ECDSA keys, not just the one you expect to be secret.

Who Found It, and the paranoid_crypto Gap

Daniel Bleichenbacher, known for his 1998 attack on RSA PKCS#1 v1.5 encryption, worked on Google's paranoid_crypto with Pedro Barbosa. That tool checks public keys and other artifacts, including signatures, for known weaknesses. It already contained a BSGS implementation that detects small-d elliptic curve keys.

Hanno looked at paranoid_crypto but didn't notice that check. His explanation is that the feature wasn't prominent in the README, which lists the weak keys the tool has found in the wild. The eMudhra incident was discovered through a different path. A researcher named Wayne ran paranoid_crypto against the certificates in CCADB, the public database of certificate authorities, and it flagged the eMudhra certificates immediately. Chrome's CRLSet revocation list had already blocked eMudhra intermediates, which helped confirm the problem.

That said, the lesson is not "pick the right tool." Coverage depends on which checks you enable and which curves you test. A scanner can be excellent and still miss a class of keys nobody asked it to look for.

What to Do With Your Own Key Inventory

If you run a certificate inventory or a key-scanning pipeline, here's a practical sequence:

  1. Extract every ECDSA public key from your certificates, including intermediates and roots. Check each curve you use, and don't forget secp256k1 and P-521.
  2. For each key, test whether Q equals k·G for small k, starting at 1 byte. This is the direct check for the eMudhra class.
  3. For wider ranges, use BSGS or Pollard's kangaroo rather than growing a blocklist indefinitely.
  4. For RSA keys, flag public exponents that look like private exponents. A large e or a d near 65537 is a red flag.
  5. Run two independent tools, such as badkeys and paranoid_crypto, and compare their outputs. Disagreement is a signal to investigate.

Be honest about the limits. Small-d checks only catch keys whose secret is small. They say nothing about a key that leaked through other means. And a check that targets curves you don't scan will miss exactly the obscure-curve cases that Hanno's blocklist discussion raised.

Frequently Asked Questions

What is the eMudhra private key issue?

Several issuing CA intermediate keys from certificate authority eMudhra used ECDSA on curve P-384 with very small private values. One was simply 4, and others fit in a single byte. Anyone who tests small integers can recover these keys, which is why browsers revoked the affected intermediates. The issue was disclosed in October 2026.

How do you check an ECDSA key for a small private value?

Multiply the curve's generator point by candidate values k = 1, 2, 3... and compare each result to the public key. For small ranges, brute force is enough. For wider ranges, baby-step giant-step or Pollard's kangaroo finds d in roughly the square root of the range size.

Why did the eMudhra keys pass validation?

Validation checks that a public key is a well-formed point on the curve, and a key with d = 4 is one. The check doesn't test whether the private value is random. Detecting this weakness requires a separate test that asks whether d is small.

Why does a small d ECDSA key matter if the public key looks normal?

The public key reveals nothing about d by inspection, so it looks identical to a strong one. Anyone who can run a few hundred scalar multiplications can recover the private key. For a CA, that means forged certificates trusted by browsers.

Run a small-d check against your own certificate inventory this week and note what turns up. If you rely on a single scanner, pass this to whoever owns your key-management policy and ask them which curves and value ranges it covers. The eMudhra private key story is a reminder that the gaps you don't test for are the ones that matter.