🤷🏽 Ex-certificate authority eMudhra has revoked yet more web security certific...
Paul Ducklin @pducklin@infosec.exchange
🤷🏽 Ex-certificate authority eMudhra has revoked yet more web security certificates it signed…
I recently wrote about a web security blunder by cybersecurity company eMudhra, which generated eight cryptographic keys that were supposed to be random numbers 48 bytes long (the equivalent of tossing a coin 384 times in a row)…
…but accidentally made them just one byte long instead, a mere 8 coin-tosses of randomness.
Because eMudhra was, at the time, trusted to sign HTTPS web certificates for anyone in the world, being one of very few global “root authorities” on the official list accepted by browser makers and software developers, this meant a rapid scramble to invalidate and replace any certificates they had signed.
The 384-bit keys they should have used are currently treated as “too hard to break,” requiring far too many arithmetical calculations to crack practicably. In contrast, the 8-bit keys they used instead could be cracked in a tiny fraction of a second on a regular laptop. (In fact, I did just that, with a few lines of hand-written script code, as did many other researchers, just to be sure how trivial it really was.)
It now turns out that eMudhra (which has already voluntarily and abruptly exited the certificate authority business, presumably seeing the writing on the wall) has revoked another eight of its signing keys. These weren’t trivial to crack like the earlier ones, but the company admitted that the procedure it used to generate them - known in the jargon by the highbrow term “key ceremony” - was substandard.
Keys generated for certificate signing purposes are supposed to be handled and kept in approved hardware security modules (HSMs), to reduce the chance of them being snooped on, tweaked, or stolen along the way. But eMudhra has admitted that the keys had been extracted from their HSM, processed by a Python program on an insecure device - presumably a laptop brought along for the purpose - and then stuffed into other HSMs somewhere else, which rather defeats the “HS” part of the abbreviation HSM. So those signing keys and any certificates they signed have now been revoked, too.
Fortunately, this issue should resolve itself on your computer, because these certificate revocations should become known to your browser and your operating system automatically. But for a great explainer of those bizarre 8-bit keys, and where to look for trusted certificates on your computer if you’re a developer and you manage a list of trusted cryptographic keys yourself, check out my plain-English write-up here:
https://solcyber.com/real-life-crypto-learning-from-the-emudhra-certificate-crisis-part-1-of-2/