News for hackers. Stuff that matters.
Re:Key to Simplicity: Squeezing the hassle out of encryption... by imperiopolis on Tuesday April 09, 2024 @01:06PM (#39981511)
Author here, happy to answer any questions!
Re:Key to Simplicity: Squeezing the hassle out of encryption... by XMPPwocky on Tuesday April 09, 2024 @09:46PM (#39986178)
I'm not a cryptographer- what's the attack/failure mode of "standard HSM key recovery, but the 'PIN' sent to each realm is actually HMAC(some_identifier_for_each_realm, PIN), and each realm stores just one share of the secret"- i.e. what motivates the use of OPRF here instead of just HMAC to prevent a realm from basically pass-the-hash-ing the user's PIN to get shares from other realms?
Re:Key to Simplicity: Squeezing the hassle out of encryption... by ongardie on Tuesday April 09, 2024 @10:08PM (#39986286)
The issue if realms stored HMAC(realm_id + PIN), where PINs are presumed to be low-entropy, then an individual realm could brute-force the PIN. Specifically, an adversary with access to a single realm's database could enumerate PINs, run them through the HMAC along with the realm ID, and test locally whether that's the correct PIN. That would already be bad because users might reuse PINs across services. Then, if the adversary had valid auth tokens for other realms, they would be able to use that PIN to recover the secret shares from other realms and reconstruct the secret.

The Juicebox protocol is designed to prevent this. A realm can't individually test whether or not a PIN is correct.

Note: I'm a former employee of/contributor to Juicebox.

Re:Key to Simplicity: Squeezing the hassle out of encryption... by XMPPwocky on Tuesday April 09, 2024 @10:15PM (#39986319)
Ah, of course, that makes sense- thanks for the answer!
Re:Key to Simplicity: Squeezing the hassle out of encryption... by themoonisachees on Wednesday April 10, 2024 @02:24AM (#39987524)
What work does "individually" do in this last sentence? Can 2 evil services collaborate (or more realistically 2 non-evil services get breached) to extract part of the secret? What is the mechanism keeping me from setting up n realms and extracting secrets from their shared info?
Re:Key to Simplicity: Squeezing the hassle out of encryption... by imperiopolis on Wednesday April 10, 2024 @02:46AM (#39987665)
Yes, that is the work "individually" is doing here – multiple realms (services) could collude to combine shards and attempt to extract secrets.

However, programmable HSMs, with verifiable software (e.g. via a key ceremony), minimize this form of collusion. The shards they hold can't be extracted by a malicious operator, at least without substantial effort (requiring HSM hardware vulnerabilities).

Re:Key to Simplicity: Squeezing the hassle out of encryption... by themoonisachees on Wednesday April 10, 2024 @04:50AM (#39988442)
Interesting. Thanks for the explanations!
Re:Key to Simplicity: Squeezing the hassle out of encryption... by parhamn on Tuesday April 09, 2024 @10:04PM (#39986264)
Besides "how do we use this" any word on the authors of this project? I did a very cursory search of the two contributors and there was very little I could find that would reassure me in using such a sensitive tool. Could well be my heightened paranoia after recent events.
Re:Key to Simplicity: Squeezing the hassle out of encryption... by imperiopolis on Tuesday April 09, 2024 @10:29PM (#39986399)
Ideally you don't have to trust us! Code is open source on GitHub, protocol is published in the whitepaper, and all has been independently audited.

If you have specific concerns, happy to talk them through!

Re:Key to Simplicity: Squeezing the hassle out of encryption... by daniper on Tuesday April 09, 2024 @10:22PM (#39986359)
The team is here, includes creator of Signal, among others: https://www.juicebox.xyz/contributors
Re:Key to Simplicity: Squeezing the hassle out of encryption... by simplify on Wednesday April 10, 2024 @12:26PM (#39992550)
Juicebox's design of distributing secrets to n independent services sounds similar to Lit Protocol's threshold signature schemes. Is this in the same problem space or no?
Re:Key to Simplicity: Squeezing the hassle out of encryption... by DerekRodriguez on Wednesday April 10, 2024 @01:28PM (#39993380)
It's the same space but most "solutions" in the space (like Lit Protocol) are actually custodial solutions parading as non-custodial. If you look closer at Lit Protocol, you will see that their nodes are unknown and unamed providers. Reading between the lines, it's just Lit hosting everything.
Re:Key to Simplicity: Squeezing the hassle out of encryption... by DerekRodriguez on Wednesday April 10, 2024 @04:16PM (#39995265)
EDIT to previous comment.

I actually just has a call with David from Lit Protocol. He patiently explained some of the nuanced pieces of Lit Protocol. A lot of this information is out there but they are moving so fast that it's hard to find. They are going to update their docs to make it more apparent but they have named their providers and appear to have a robust distributed network for key storage. Sorry for the hasty comment! It looks like Lit Protocol is one of the few non-custodial and resilient systems out there.

Re:Key to Simplicity: Squeezing the hassle out of encryption... by imperiopolis on Thursday April 11, 2024 @01:15PM (#40004505)
It’s a different problem space. Lit seems very focused on the MPC use case. They are using some similar, albeit less strong cryptographic techniques, but at their core (based on https://developer.litprotocol.com/v3/resources/how-it-works) they seem focused on MPC, blockchain applications, and more social key distribution.

Juicebox is very focused on how does an individual user manage their private key for one service, in a simple and user-friendly way, without any compromise in security. Think like your keys for Signal, WhatsApp, or any other E2EE service. It could also be used to manage a wallet private key for a noncustodial wallet.

As far as I can tell, Lit also manages all the nodes available to you (even if they don’t personally run them). There’s not a freedom for you to run your own nodes. This is the most important thing for this kind of distributed cryptography to be used securely, and something Juicebox supports by default – all our server code is available on GitHub and we encourage people to host their own realms to build networks with appropriate trust characteristics.