Hacker News new | ask | show | jobs
by eqvinox 45 days ago
> Keys were generated in hardware and the hardware in use was Ultimaco HSMs.

The plot thickens.

Broken HSM? Misconfiguration? Confusion? Straight up lie?

> Excel attached. The Ultimaco devices were used to generate the ECC, RSA key pairs for the issuers. They were not used to generate any other key material. But it doesnt look like the device is at fault.

> We have done some preliminary assessment, there appears to be a flaw in the KGC script that was used on that specific day to create these ECC issuers. As for these ECC keys, our review of the KGC, assessment of the code and view of HSM keys so far indicate that a) a set of original ECC keys were created onboard as expected b) an approved deviation to our usual KGC to test a wrap/unwrap was introduced as these keys were meant for export for this instance c) a flaw in the code resulted in the second pair of keys being created onboard which were weaker d) these second pair of weaker keys were used by mistake to create the csr (because the key labels were similar) and signed by our root e) the CSR from these weaker keys were also sent over to Sectigo for cross signing (we verified the files sent over to Sectigo)

…

3 comments

> an approved deviation to our usual KGC to test

The whole point of a key ceremony is that you're not going off-script and YOLOing random crap.

I was once the annoying person who refused to participate in a ceremony when it went off script.

What was more troubling was the other people involved couldn't understand why I did it.

If my career was ever exciting enough to let me participate in a key ceremony, you'd bet I'd go all in on the Seriousness and Gravity. Hell, I'd come in a monk's habit.
Ultimaco HSMs! Well Ultimaco today published a marketing blog post entitled Global Encryption Day: Encryption Is Only as Strong as the Keys Behind It. It seems like a subtle dig at their customer’s incompetence.

https://utimaco.com/news/blog-posts/global-encryption-day-en...

Reading further, it seems like they say they first generated some keys on-HSM, but then used 'test keys' (that were used to test wrap/unwrap of key material) instead by accident. Fishy.
They used the "correct" key for signing the CRLs (which of course was then an invalid signature):

> The CRL's were signed with the original private keys (which were supposed to be the correct keys with appropriate entropy) but given that this resulted in incorrect signatures, they were resigned with flawed keys.

And THAT is where I'm drawing the line between "honest mistake" and "gross negligence". For that to not raise giant red flags is an unacceptable failure in process and work culture.

I've seen speculation that there was a language barrier, given that this is an Indian company.

The theory was that someone misinterpreted 384-bit keys to mean the key must be a number between 1-384.

I think that's entirely made up, but it wouldn't be completely implausible to have happened while someone tried to troubleshoot why the first attempt failed.

> I've seen speculation that there was a language barrier, given that this is an Indian company.

The discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=2083449 really doesn't sound like that, but who knows what's getting lost in the "fog of war" we're currently getting on this all.

I do not consider language barrier at all a factor here.

Instead, I consider a lack of concentration due to too much stuff going on around to be a big factor.

The biggest problem when working with Indian offices is that their crew always has to deal with weird shit continuously that it would be extremely surprising for me to have someone fully concentrated on their work.

I mean, what we call "Arabic numerals" actually originated in India. Indians, generally speaking, can comprehend numbers.

A language barrier is not an acceptable excuse, especially in a country where the primary language of technology firms is English.

Unreal. Absolutely unreal.
Image search result for that Ultimaco brand name returns a lot of images for PCIe cards and badged white-box x86 servers. Maybe "generated on-HSM" in this case means the "HSM" was operated using a regular display and keyboard connected to it rather than e.g. selecting "GENERATE KEY? (Y/N)" on a 16x2 display.