keybase-issues icon indicating copy to clipboard operation
keybase-issues copied to clipboard

Indicator for private key hosting.

Open ChristianGaertner opened this issue 12 years ago • 13 comments

Hi,

would it be possible to have an indicator whether the user hosts his private key on keybase?

There are a few projects, which are now going to partially reject and delete keys of their keyring if they found the key on keybase. (For example the Debian Project)

I can understand this and would NEVER host my private key on the internet.

I really cannot understand why you guys allowed and implemented such a thing, but I am drifting away.

Maybe you could show some kind of notice, that a user is NOT hosting their private key on keybase.

Christian (DaGardner)

Example from the Debian mailing list:

https://lists.debian.org/debian-project/2014/04/msg00006.html

ChristianGaertner avatar Apr 13 '14 19:04 ChristianGaertner

It's been explained a great number of times--keybase is specifically designed to interest new-to-encryption users in an attempt to bring PGP encryption to the layman. Obviously making this process as simplistic and meaningful as possible is just about one of the only ways to ensure that can actually happen. There is an empirical emphasis on security, however, the devs have already stated that as of yet they are unconvinced that they need to remove the feature to upload your private key to keybase and suggest that if you don't trust the feature, simply don't use it.

That being said, I'm sure that's why you suggested the users with a private key uploaded be identified, so you can be much more cautious around them. I personally think that's a reasonable trade-off, however, I do believe it's entirely unnecessary. While keybase is an awesome service, even for PGP vets, I doubt on any real level it'll be used within the community for mission critical tasks--that being said, if keybase encryption is not being (hopefully) used for very important encryption we can deduce that it's only other use is for non very important encryption. So even if these sensitive encryption keys were to somehow be stolen, the only thing that could be decrypted is your family's secret chili recipe. (again, hopefully)

It's so very important to keep in mind that keybase is still in pre-alpha and should not be used for anything other than testing purposes right now. Personally, I think it's far too early to be thinking about such things as you should not have your actual private keys which you are currently using for business (and other things) uploaded to anywhere other than your private computer and maybe your cellphone for on-the-fly encryption and verification purposes. I highly suggest to anyone interested in using keybase to simply have keybase generate you a new key pair to be used for the time being, and when keybase has finally been released, then use your recognized key.

Just my two cents though.

zQueal avatar Apr 13 '14 20:04 zQueal

I can appreciate that projects want to ensure they are using keys that are as secure as possible, but I feel that asking for keybase to differentiate between users who have and have not uploaded their keys is the wrong way of going about this. Keybase is about publicly auditable proofs of ownership, not about "trust us to tell you the truth", and giving them the ability to categorize users into what will be seen as "secure or not secure" means they have to be given more trust.

However, deleting keys that simply appear on keybase is the wrong thing to do as well. Trying to make yourselves more secure by not using keys that have the private key uploaded anywhere is fine, but not all keybase users will have uploaded their keys, and not all uploaded keys will appear on keybase, so there will be lots of type 1 and type 2 errors to this approach.

My advice is to make it very clear in project policy that any keypairs used must have the private key stored solely on the user's computer, and are not to be uploaded in any way, via keybase, encrypted and synced to dropbox, or whatever. Then enforce on a case-by-case basis. After all, if you can't trust your users not to upload their private key to keybase, why would you trust them not to upload it via some other manner? Singling out keybase seems inconsistent.

FWIW, my vote is not to have any such private key flag on keybase accounts unless it can be done in a publicly auditable fashion as ownership proofs are. At the very least a signed statement that the upload happened, which would prevent keybase from arbitrarily setting the flag without the user's involvement.

WillMorrison avatar Apr 15 '14 15:04 WillMorrison

to categorize users into what will be seen as "secure or not secure" means they have to be given more trust.

I don't necessarily agree with that statement, but I definitely see what you're shooting for.

My advice is to make it very clear in project policy that any keypairs used must have the private key stored solely on the user's computer, and are not to be uploaded in any way, via keybase, encrypted and synced to dropbox, or whatever.

I don't think the issue here is whether or not these projects what their contributors to not use keybase I simply think, for security purposes, they simply want a way to identify (for themselves) between users who are contributing to their projects and use keybase who have also made their private keys available to keybase. I think their intention is to treat those users as if their keys are already compromised. Which from a certain standpoint is pretty reasonable. However, I don't believe the developers will do this specifically for a single open source project.

I know one thing that's been played around with is keybase for organizations. This could be a possible feature request when organization accounts start to roll out which can be activated by the community managers for the project and will allow them to publicly display which of thier own users have their public key uploaded.

zQueal avatar Apr 15 '14 17:04 zQueal

@Xanza I guess I should have qualified my comment with "For projects that believe that uploading private keys is a serious concern", as I was speaking to the statement that some projects were going to delete keys that appear on keybase. My opinion is that managing contributor behaviour is something that should be in project policy, not something that should have an effect outside that project. Asking keybase to either remove private key uploading or add features to enforce an external project's policy is "effects outside that project" in my books.

I think their intention is to treat those users as if their keys are already compromised. Which from a certain standpoint is pretty reasonable.

Which is why I raised my concerns about trusting keybase with displaying who has uploaded their public key and who hasn't, and by extension, which keys these projects will allow. That's why I wanted some publicly auditable way that keybase can show that the user did in fact upload a private key, such as a signed statement to that effect. This solves one half of the problem, where a compromised keybase claims an upload that didn't happen, but I don't see any way of proving that a user has never uploaded their key to keybase.

Let's say that this gets implemented, and keybase has a flag per key that says whether the owner uploaded the private half. When the upload occurs, the user must sign a statement saying, for example, "I, WillMorrison, have uploaded an encrypted copy of the private key corresponding to public key 0xBLAHBLAH to keybase.io". Keybase keeps a copy of this signed message and displays it to whoever asks.

Now, should Debian decide to implement their "remove keys that appear on keybase" policy, they can check that the user did in fact sign that statement. Keybase cannot generate such a statement without either the user's private key or the user's cooperation. Thus, keybase cannot falsely claim that a user has uploaded a private key, which could have negative consequences for that user elsewhere.

WillMorrison avatar Apr 15 '14 20:04 WillMorrison

I think advertising that a given user has or does not have their private key stored on Keybase will make it a much more valuable target for potential attackers, especially if their motivation behind the attack is centered around a specific user.

This might also create a sense of distrust towards users who have their keys stored on Keybase, which is the wrong way to get users comfortable with the service. People who are super-special and important already know that they should keep their private keys at home, and if they don't, Keybase does a wonderful job of warning them of the dire consequences of blindly trusting JS crypto.

In my opinion, given how Keybase was designed, as a concept, it's 110% safe to use it if you're only putting your public key up. That's not to say it's unsafe to put your private key up; my point is that public keys are just that.

I've always seen Keybase as a more modern version of a PGP keyserver. A keyserver is just a directory of keys, and you gotta figure out whether or not you trust it. Keybase modernizes it with the proof system to tie the key pair to established online accounts.

The storage of a private key on Keybase is merely a secondary feature, for convenience; it allows you to perform gpg functions without having to know anything about gpg or even the PGP standard. It's a personal preference, and I don't think those who wish to partake should be branded as insecure n00bs.

That said, again, I wouldn't stuff my private key on a pre-alpha service.

r000t avatar Apr 22 '14 01:04 r000t

The problem remains that debian developers (and others of the same inclinations I suppose) will treat keybased keys as compromised even if I only put up my public key.

So anyone who wants to e.g. help out with packaging of free software will try to avoid keybase. And they'll be telling others to avoid keybase. Now you've got not only the hardcore crypto nerds avoiding keybase and telling people to avoid keybase, but also regular developers avoiding it out of practical reasons.

If private key hosting really is supposed to be just a convencience feature, why can we not have some indicator so people who want to use only the public-key features of keybase can still communicate with people who have stricter key handling procedures? It's not about branding people as n00bs, it's about having some nuance.

unhammer avatar May 27 '14 10:05 unhammer

Um, one guy on the Debian list threatened to do this, admitted he wouldn’t bother to proactively check, cc’ed the list for sanity-checking, and there has been almost no follow-up except for another guy saying “please don’t”.

timbray avatar May 27 '14 15:05 timbray

Um, one guy on the Debian list threatened to do this, admitted he wouldn't bother to proactively check, cc’ed the list for sanity-checking, and there has been almost no follow-up except for another guy saying “please don’t”.

While this is true, I've always subscribed to the "If there's one guy, there's also another" philosophy. One reason why the idea might not be getting much traction is that Keybase is still in alpha and is still relatively unknown. As it gains more and more momentum I have the utmost confidence that people like that will begin to appear from the woodwork.

It's always nice to get a jump on things.

zQueal avatar May 28 '14 02:05 zQueal

keybase.io allows storing private gpg key. if user's public key is on keybase.io, that users private key may also be stored there. Or has been stored in the past, and subsequently deleted. (I have not yet checked, I presume keybase requires a valid signature by a given key before accepting and publishing the public key) Therefore, at least I consider, keys listed on keybase.io to be compromised with or without an indicator.

xnox avatar Jul 09 '14 14:07 xnox

@xnox You may as well be saying you refuse to use PGP to communicate with anyone who has a rooted machine. Which could be everyone in your address book.

maxtaco avatar Jul 09 '14 14:07 maxtaco

Yeah, there is fallacy in above argumentation, that in fact there is no way to assert safety levels everyone else uses w.r.t. their private key safekeeping. horum

xnox avatar Jul 13 '14 23:07 xnox

@maxtaco a distinction is often left out, keybase is a centralized server hosting private GPG keys. This would seem to make successful attacks and or government coercion more fruitful, especially if Keybase is successful in its mission.

ghost avatar Aug 04 '14 14:08 ghost

There may not be a way to know the security precautions other users take with their private keys in general, we can provide at least this indicator. (Other indicators might be that the user has a "debian weak key" or a short key length etc, and those might be useful as well.)

I'm not sure that we should worry about the social effects of showing whether the private key was uploaded yet, and I also think that this concern conflates the hypothetical stigma associated with showing that a user has uploaded their private key with the hypothetical stigma of having actually uploaded their private key. The former is a perhaps-worrisome social judgment, while the latter is precisely the kind of security judgment based on data that a service like keybase can and should be providing. It's up to users to decide for themselves what significance they attach to the fact that someone has provided their private key to keybase. Hiding this fact to help some users save face is the Wrong thing to do.

I should also point out that the disclaimer that keybase is "pre-alpha" is pretty lame -- the service is obviously being used by real people outside the project, and they're using it "for real" regardless of your protestations. You're just going to have to face reality on this one.

doherty avatar Jan 26 '15 15:01 doherty