logoalt Hacker News

Liquid_Fire • today at 10:29 AM • 3 replies • view on HN

You can read eMudhra's incident report here, where they cover how it happened: https://bugzilla.mozilla.org/show_bug.cgi?id=2083449#c82

But the tl;dr is, it was a cock-up due to bad processes, a bug in a script and ignoring some red flags later on.


Replies

frereubu • today at 10:34 AM

Thanks!

terom • today at 10:50 AM

A bug in a one-off Python script running outside of the HSM truncated the ECDSA private key to a single byte.

Handling the unwrapped key material outside of the HSM was apparently in violation of their CPS, but nobody would have noticed if it wasn't for that bug.

I can see why they made the decision to exit the CA business afterwards - that is exactly the kind of thing that you do not do as a CA.

> Contributing Factor 1: Host‑side ceremony script error.

Description: Given that the script was a one off meant for export of key pairs, the approved wrap/unwrap deviation from the normal eMudhra KGC was executed with a custom python key‑handling script created by the PKI Operations team. After the wrapped key was returned, the script read the unwrapped private key’s value out of the module (in host side memory) and re‑created a key object from that host‑side value. For the ECDSA objects, a single line in that read‑back truncated the private value to its leading byte, so the re‑created object held a scalar below 256; this re‑created object (not the originally generated key) was used to produce the CSR and was certified. For the RSA objects, the same pattern did not truncate the key (integrity intact), but during re‑import the key material was handled within the volatile memory of the Python process on the ceremony host. A re‑import performed from host process memory is not consistent with the CPS §6.2.6 and the RSA objects are therefore treated as not meeting that requirement.

pbkompasz • today at 10:42 AM

Cock-up is the technical term