How I Nearly Found the eMudhra d=4 Private Key

How I almost found the eMudhra d=4 Private Key

Hanno Böck, developer of the badkeys tool, recounts how close he came to discovering the eMudhra certificate authority's private keys, one of which was simply the integer 4. He had already generated test keys for small ECDSA values and scanned CCADB certificates, but never added them to his blocklist. The keys were eventually found by someone using Google's paranoid_crypto tool, which implements the Baby Step Giant Step algorithm.

There surely is some irony in the fact that I went out to look for a way to implement a check for ECDSA keys with small d values, and ended up finding RSA keys with small private d values and implemented a check for them first.
  1. nopurpose

    Reminded me of a story I read long ago, where inventor of ping was "jealous" (jokingly) that he didn't think of traceroute.

  2. fzeindl

    Would it be feasible to run a crawler that connects to all HTTPS ips on the internet and tries to bruteforce the key with a time budget of a couple of seconds?

    Alternatively make browsers brute force keys when connecting via HTTPs, maybe distributing the work by checking a registry of keys that were already tried by some other user with the same browser?

  3. frereubu

    I can't pretend to understand all of this, but can anyone enlighten me as to what the motivation would be to us such as low number as the ECDSA private key? Was it just a cock-up or is there some benefit in terms of speed etc?

  4. nraynaud

    I’m a complete noob, “Baby Step Giant Step algorithm” is the best algorithm the crack the public key starting by the easiest values first? Wikipedia is a bit unclear.

  5. cobychapple

    Still blows my mind how close to the bone this xkcd got too: https://www.xkcd.com/221/

More from this day

2026-12-04