-----BEGIN EC PRIVATE KEY-----
MIGkAgEBBDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAASgBwYFK4EEACKhZANiAAQTglHNUqySmMHIqtl3Mh3rl+cJvQtMoKyl
XcitUdz8nRWJoVl+OlEg4e/WMcY+GDXKyuKYaaYuFjHoooGBq1ZhbcRdkYq8CfOr
DmPPeSqk3O1zh743u6VpVJ8cArJw7Wc=
-----END EC PRIVATE KEY-----
Replying to @fluepke@chaos.social
@erd ich habe den Verdacht, dass:
1. Das HSM im C_GenerateKeyPair falsch parametrisiert wurde und das HSM die falsche Parametrisierung nicht ablehnte, wodurch Key Length = 1.
2. Firmware Bug im HSM, wodurch accidentally nur das erste Byte random ist.
Replying to @fluepke@chaos.social
@erd die CPS sagt, dass ein HSM benutzt wird für KeyGen und so‘ne Wirtschaftsprüfungsbude bestätigt das. Ich trau denen nicht viel zu, aber zu gucken, ob da nen HSM benutzt wird, traue ich denen zu.
Eine solche Schwachstelle in einem handelsüblichen HSM hätten wir aber schon längst mitbekommen?!
Replying to @fluepke@chaos.social
Replying to @fluepke@chaos.social
@erd aber alles nur Spekulatius.
Als Presse würde ich bei eMudhra mal anrufen und nachfragen, welches HSM sie benutzen und wie genau sie die Keys erzeugt haben.
Replying to @fluepke@chaos.social
@fluepke @erd Die verwendeten HSMs haben sie disclosed. https://bugzilla.mozilla.org/show_bug.cgi?id=2083449#c12
Replying to @holger@toot.berlin
@holger @fluepke @erd Bold hypothesis #1: they used some example key and imported it into the HSM.
Bold hypothesis #2: they used the Utimaco HSM Simulator (" SecurityServer Simulator" from https://utimaco.com/data-protection/simulators-and-trials) as an "HSM" without it being a proper HSM.
I just successfully imported the "4" key into the 6.6.0.0 sim version and used it for signing. So at least this path is a working option (I don't have access to actual Utimaco HW atm - this maybe also could work on a 'true' HW-based HSM).
utimaco.com/data-protection/simulators-and-trials