The piece recounts the discovery of a serious eMudhra certificate-authority failure: several ECDSA private keys were dangerously small integers, including one with a private value of just 4. Such keys make trusted certificates forgeable. The author develops badkeys, a tool for finding weak public keys, and had considered checking for small elliptic-curve private values nearly a year earlier. A simple blocklist of generated small-value keys would have caught the affected certificate in a database badkeys scans. Instead, he explored algorithmic detection, but did not implement it; work on a separate RSA weakness led him to add a check for small RSA private exponents first.
The account traces how the vulnerability was actually found. A researcher called Wayne, after auditing badkeys, learned of paranoid_crypto, a broader cryptographic-analysis tool built by Google researchers. Its Baby Step Giant Step implementation detects elliptic-curve keys with small private values. Wayne ran it against certificates in the public CA database and reported the eMudhra keys to browser root programs. The author explains that badkeys had come close in several ways, including having a related feature request and test keys, but had missed paranoid_crypto’s relevant capability. After public disclosure, he added small elliptic-curve keys to badkeys’ blocklist and plans to consider algorithmic detection. The story is a candid look at how tools, overlooked clues, and independent researchers combined to expose a major WebPKI compromise.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.