HeadlinesBriefing HeadlinesBriefing.com

How I nearly found eMudhra's d=4 private key

Hacker News •
×

Recently, e Mudhra's private keys were discovered to be insecure, with one key being the integer 4 and others fitting in a single byte, using ECDSA with curve p384r1. This unprecedented full compromise of private keys allowed issuance of trusted web certificates. The vulnerability was easy to grasp: small private key values are weak.

I developed badkeys to find such flaws, and its creator Theo Buehler had raised a related issue in November 2025 about checking for small elliptic curve private keys. At that time, I already had a script generating keys up to 16 for common curves, meaning I stored one of the compromised d=4 keys on my laptop. I also scanned CCADB certificates regularly, so adding these keys to badkeys' blocklist would have triggered detection.

However, I sought a more elegant algorithmic method rather than expanding the blocklist. During 39C3 in December 2025, Nadia Henninger suggested Pollard's Lambda or Kangaroo algorithms, while Keegan Ryan proposed analyzing RSA key bit ratios for new vulnerabilities. This backstory highlights how close badkeys was to uncovering the e Mudhra breach.

Source: Hacker News · Summarized by HeadlinesBriefing