Login
You're viewing the assemblag.es public feed.

Replies

  • Oct 20, 2026, 6:31 PM

    tl;dr

    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

    💬 3🔄 4⭐ 8
  • 💬 1🔄 0⭐ 0
  • Oct 20, 2026, 6:26 PM

    @gsuberland

    > 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

    *extremely USCSB narrator voice* “an approved deviation”

    💬 1🔄 2⭐ 0
  • 💬 0🔄 1⭐ 2
  • Oct 20, 2026, 6:25 PM

    @q3k did they get them from the same shop as those ledger wallets the other week?

    💬 0🔄 1⭐ 6
  • Oct 20, 2026, 6:28 PM

    @q3k "HSM" being a fancy term for what usually turns out to be a 19" rack mounted Linux box with a PCIe card in it, inside a cage, still faithfully executing whatever nonsense you type after "openssl".

    💬 0🔄 1⭐ 1
  • 💬 2🔄 5⭐ 3
  • 💬 4🔄 1⭐ 0
  • Oct 20, 2026, 6:56 PM

    @secretasianman @q3k I don't think having an HSM is actually relevant. It's pretty much _mandatory_ for a CA to use one (in whatever form it may be). It's just a protected environment to run your scripts in, with guarantees on random number generators and such, but if you feed it a bad script, it's still going to give you a bad result.

    💬 1🔄 1⭐ 0
  • 💬 0🔄 0⭐ 1
  • Oct 20, 2026, 7:07 PM

    @q3k @jripley do you think that after it puts another 4 on the pcie lane, it pumps its little digital fist and tells itself "still got it, champ"

    💬 1🔄 0⭐ 0
  • Oct 20, 2026, 7:11 PM

    @secretasianman It's the phrase "Necessary but not sufficient". An HSM is _necessary_ to implement a secure CA, but it is _not sufficient_. Like making a virtual machine of your entire development setup, and executing it inside an HSM, does not magically make it secure.

    (This sounds contrived but I once had an awkward conversation at a former employer with this exact example, which they still didn't understand)

    💬 0🔄 0⭐ 0
  • Oct 20, 2026, 9:39 PM

    @secretasianman @q3k @jripley The battery backup is actually also "use resistant": To swap the battery, you need to get this very specfic cylindrical lithium cell, then take off the red/white plastic cover, and then figure out again what the polarity was, since the polarity is pretty much only on this plastic cover, and not marked on the PCB. I then tried the documentation, but ended up having up relying on a product photo like q3k posted above.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Oct 21, 2026, 4:42 AM

    @q3k @jripley oops. Utimaco HQ is where i live and I know a couple people there. Never knew what they were doing. Seems they were selling fours.

    💬 1🔄 0⭐ 0
  • Oct 21, 2026, 5:53 AM

    @root42 I can't see any of this being Utimaco's fault. A tool's only as good as its user. If you ask it to do something dumb, it'll faithfully execute it. The point of an HSM is (barring extreme incompetence) you can execute that without outside observation, interference, or fear of storage being extracted. The rest is up to you.

    💬 1🔄 0⭐ 0
  • Oct 21, 2026, 6:19 AM

    @jripley Yes, I figured that out after reading more posts, too. It's basically "just" a glorified TPM. :) If you don't use it, you are screwed... But it shows that there are definitely gaps where users or integrators can make mistakes that break all the advantages of having an HSM. The whole idea should be that you CAN'T do any non-secure encryption. But obviously you can circumvent it in software anyway...

    💬 0🔄 0⭐ 0
  • Oct 20, 2026, 6:28 PM
    @q3k If I read this right they basically discarded the HSM generated keys and used sw generated ones in the CSR by mistake?
    💬 0🔄 1⭐ 0
  • 💬 0🔄 2⭐ 5
  • 💬 0🔄 1⭐ 4
  • Oct 20, 2026, 6:57 PM

    @q3k tbh I think it’s a design flaw in a HSM’s programming interface if the device ever allows you to “import” a key created outside of it except for backup/restore and clustering functionality to prevent this exact type of error.

    💬 0🔄 2⭐ 1
  • 💬 1🔄 1⭐ 0
  • Oct 20, 2026, 6:59 PM

    @q3k I dont think their APIs are necessarily designed for misuse resistance. This sort of thing doesn’t show up in FIPS 140-2 security evaluation.

    💬 0🔄 0⭐ 0
  • Oct 20, 2026, 7:01 PM

    @jaseg @q3k In all my dealings with HSMs I think "misuse resistance" did never come up.
    Most of them do, however, excel at implementing the alternative "use resistance".

    💬 0🔄 4⭐ 0
  • Oct 21, 2026, 11:08 AM

    @q3k @jaseg typically there are flags you can set on a key, sometimes only at key creation time, that control exportability

    The options tend to be “No export at all”, “Export only to HSMs from the same manufacturer (via key attestation from the receiving HSM)” and “No export at all”.

    Typically there are also custody flags (i.e. you can know “Key was generated on this HSM”, “Key was imported from a same-manufacturer HSM with attestation” or “Key was imported yolo”, “Key has been exported with attestation”, “Key has been exported yolo”)

    But like. I think quite often the keys have less strict controls set on them because nobody wants to end up stuck in a 30 year relationship with a HSM vendor.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Oct 20, 2026, 6:42 PM
    This quote in the bug report caught my attention:
    > Mozilla was able to recover the private keys for the impacted certificates independently
    💬 0🔄 1⭐ 0