Brutkey

Christine Lemmer-Webber
@cwebber@social.coop
Christine Lemmer-Webber
@cwebber@social.coop

I am, once again, kinda sympathetic and kinda unsettled simultaneously.

- Sympathetic: key management
is hard and we just don't have the UX answers to solve that, and Bluesky is once again trying to deliver to Twitter refugees
- Unsettled: it's centralized, but... there's something
more troubling

Christine Lemmer-Webber
@cwebber@social.coop

Bluesky has identified, I'd say correctly even, that key management for users is an incredibly hard thing to do.

But the solution, once again, ends up pretty centralized: for all users on Bluesky's main servers at least, Bluesky generates and manages the keys for them.

Christine Lemmer-Webber
@cwebber@social.coop

At any rate, one way or another, you can presumably use did:plc to move yourself from one server to another so in the interest of "credible exit" this is a good choice

Though, one might take a moment to ask: who controls the keys if you
do want to move?

Christine Lemmer-Webber
@cwebber@social.coop

At any rate, that decision was used to create a kinda confused deputy-ish attack, which is why it came up in the blogpost, and anyway, hi, I'm not a cryptographer, momentary reminder that I am not a cryptographer, but I have designed cryptographic certificate chains and I was pretty shocked by that

Christine Lemmer-Webber
@cwebber@social.coop

Anyway that's the quote and presumably this must be changed. I haven't looked, but I can't imagine they're still doing this today (are they?) but the fact that only one key was ever used in production for expense purposes is a strange decision

Christine Lemmer-Webber
@cwebber@social.coop

This is an eyebrow-raising decision on its own; apparently the cloud HSM product they use does billing per key, so it would be prohibitively expensive to give each user their own. (I hear they're planning on transitioning from "cloud" to on-premise hosting, so maybe they'll get the chance to give each user their own keypair then?)

Christine Lemmer-Webber
@cwebber@social.coop

There's another thing about that blogpost that caught my attention. I will just quote it:

However, there's one other factor that raises this from "a curiosity" to "a big problem": bsky.social uses the same rotationKeys for every account.

Christine Lemmer-Webber
@cwebber@social.coop

One way in which the truncation shows up in that blogpost which I thought was curious is that the attack involved generating a longer truncated hash

The fix ended up resulting in codifying the hash length: 24 characters, and no longer
https://github.com/did-method-plc/did-method-plc/pull/31

Christine Lemmer-Webber
@cwebber@social.coop

At any rate, I continue to not understand it, maybe it's fine, but it did play a part in that "Hijacking Bluesky Identities with a Malleable Deputy" blogpost, which is fascinating and, unlike me, is written by a Real Cryptographer (TM) https://www.da.vidbuchanan.co.uk/blog/hacking-bluesky.html

Good post btw

Christine Lemmer-Webber
@cwebber@social.coop

DIDs weren't meant to be seen by the user; cryptographic identifiers in general *shouldn't be*, they should be encapsulated in the UI.

We'll get to UI stuff in a bit.

I just don't understand this decision though, it just seems weird to me but maybe a cryptographer will tell me it's fine, actually