There is no way to measure the entropy in a private key without the private
key unless the algorithm is bjorked or the key is so weak that you can
break it by brute force (as happened here).

What you can do instead is to generate public key pairs in multiple
locations, securely transmit the private components to the HSM and generate
key that can be proved to incorporate all the key shares from the public
components.

I proposed this to CFRG years ago but... Would people be interested in
asking the CFRG to reconsider?


The mechanism uses threshold cryptography and is trivial to implement for
ECC.

Let a and b be private key values for an ECC scheme with base point P and
field m.

It follows that the corresponding public keys are a.P and b.P.

We can now generate a new private key c = a+b mod (m-1 ?). The
corresponding public key c.P = (a+b).P = a.P + b.P

We can do this with as many shares as people want.


On Wed, Oct 21, 2026 at 2:45 PM Corey Bonnell <[email protected]>
wrote:

> > Is there any chance that's what we're looking at?
>
> I think that’s what happened. The actual key was generated in the HSM, and
> a reference key file was written to disk. The CSR was then generated using
> the reference key file as if it were a real key. The public key was derived
> from the reference value (“4”) as its private scalar, and the CSR was
> self-signed with it. The issuing CAs then certified that “reference” public
> key.
>
> The incident report mentions that CRLs signed by the CAs failed to
> validate against their certificates. That’s consistent with this scenario.
> The CRLs were presumably signed by the real HSM-resident keys, while the
> certificates contain the public key derived from the reference value, so
> the CRL signatures can’t validate against them.
>
> Thanks,
> Corey
>
> On Tuesday, October 20, 2026 at 2:51:06 PM UTC-4 Matthew Hardeman wrote:
>
> I'm aware of at least one HSM integration library that utilizes
> "reference" faux private keys -- the goal being to provide a way for
> software that supports (for example) PKCS12, but in very limited fashion --
> to use a PKCS12 driver from the manufacturer to perform HSM isolated
> operations under the direction of software that can't easily pass in things
> like...which partition & key to reference in a given operation.  Those HSMs
> can spit out a fake key which parses for the form and nature of a private
> key and which the HSM vendors' software will dereference for a signing or
> encryption operation.  Is there any chance that's what we're looking at?
> That somehow there was a failure of such a library or interface and the
> result was instead of aborting the operation to actually perform the
> operation over the faux key?
>
> On Tue, Oct 20, 2026 at 1:35 PM <[email protected]> wrote:
>
> On 2026-10-20 17:33, Jeffrey Walton wrote:
> > Please forgive my ignorance...  I am having trouble following the
> > statement. What is the "they" with a single-byte key?
>
> Quite literally: For the private keys of the compromised certificates,
> one of the factors of the moduli is always < 256 (hence single-byte).
>
> They can be broken without any serious computation - literally trying a
> few divisions using the "bc" command line calculator would be enough.
>
> The factors have been posted on the fediverse but I don't know if a link
> to them would be appreciated on this mailing list, so I am holding off
> on linking them.
>
> Li
>
> --
> You received this message because you are subscribed to the Google Groups "
> [email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>
> To view this discussion visit
> https://groups.google.com/a/mozilla.org/d/msgid/dev-security-policy/8c5b343d04fd55b144201e4c59e5971e%40invalid.invalid
> .
>
> --
> You received this message because you are subscribed to the Google Groups "
> [email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/a/mozilla.org/d/msgid/dev-security-policy/e324bc4c-9c21-4765-addb-300b07173abfn%40mozilla.org
> <https://groups.google.com/a/mozilla.org/d/msgid/dev-security-policy/e324bc4c-9c21-4765-addb-300b07173abfn%40mozilla.org?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-security-policy/CAMm%2BLwjMkxVMuKuHUZGkbB5FQ3p8Hs9R-58XiPNrAJH3NyJv%2Bw%40mail.gmail.com.

Reply via email to