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

Ability/option to verify/own email addresses on keybase

Open TyIsI opened this issue 12 years ago • 12 comments

It would be awesome option to be able to attach email addresses to one's keybase.io identity, which could be used to find you, or use them for automatic identity matching.

TyIsI avatar Mar 26 '14 23:03 TyIsI

Yes, this would be nice!

You folks probably already have ideas about how to produce publicly auditable proofs of email ownership. And you likely have even thought of this idea. But here it is anyway:

A lot of mail providers are using DKIM as a spam prevention measure. In short, DKIM is a protocol in which the mail provider signs outgoing messages, where there is an established mechanism for looking up the public key that corresponds to a domain using DNS.

To verify a user's address, the keybase client could produce a signed message for the user to email to an address at keybase.io. Keybase could then serve the entire email message publicly over http. Given a link to the message, the keybase client or another third-party could check the sender's address, and apply the DKIM protocol to verify signature in the message matches the domain of the claimed email address.

It is necessary to trust the mail provider to prevent unauthorized persons from sending messages from a given address. But I think that the same caveat applies with any form of email address verification - including traditional PGP verification between two users.

hallettj avatar Mar 31 '14 07:03 hallettj

@hallettj - this seems very smart. We'd been pretty dismissive of email proving until this comment.

Question: any idea who of the big mail providers supports DKIM? The page you link to has interesting stats, but I can't discern if the big providers (gmail, yahoo, hotmail, etc.) are all onboard.

malgorithms avatar Mar 31 '14 15:03 malgorithms

I think the proof could and perhaps should be worked in both directions.

As suggested, first send a proof message to a "proof" address, after which the user will receive a message containing an encrypted message using the user's public key that contains the proof. The proof will link to a verification link that will verify control over the mailbox.

DKIM and SPF can help in the weight of the proof.

Last, having users verify each others email address by signing them would make it complete.

On 31/03/2014 00:58, Jesse Hallett wrote:

Yes, this would be nice!

You folks probably already have ideas about how to produce publicly auditable proofs of email ownership. And you likely have even thought of this idea. But here it is anyway:

A lot of mail providers https://eggert.org/meter/dkim are using DKIM http://www.dkim.org/ as a spam prevention measure. In short, DKIM is a protocol in which the mail provider signs outgoing messages, where there is an established mechanism for looking up the public key that corresponds to a domain using DNS.

To verify a user's address, the keybase client could produce a signed message for the user to email to an address at keybase.io. Keybase could then serve the entire email message publicly over http. Given a link to the message, the keybase client or another third-party could check the sender's address, and apply the DKIM protocol to verify signature in the message matches the domain of the claimed email address.

It is necessary to trust the mail provider to prevent unauthorized persons from sending messages from a given address. But I think that the same caveat applies with any form of email address verification - including traditional PGP verification between two users http://www.phildev.net/pgp/gpgsigning.html.

— Reply to this email directly or view it on GitHub https://github.com/keybase/keybase-issues/issues/373#issuecomment-39061992.

TyIsI avatar Mar 31 '14 15:03 TyIsI

According to the Wikipedia page, Yahoo, Gmail, AOL, and Fastmail use DKIM. I also found a press release indicating that Outlook.com does too.

Google Apps provides instructions on how to enable DKIM for mail on custom domains. (This is what I do for sitr.us.) It looks like the procedure is similar on Fastmail.

hallettj avatar Mar 31 '14 17:03 hallettj

By coincidence I came across WebFist, which is already using DKIM to verify ownership of email addresses.

hallettj avatar Apr 01 '14 21:04 hallettj

Independently, it occurred to me to consider using DKIM to verify emails in OpenPGP IDs... so I asked on security.stackexchange.com. Apparently there are issues:

http://security.stackexchange.com/a/107428/93809

The chief concern appears to be the fact that the DKIM signs the email headers, but there is no guarantee that the headers match the MAIL FROM: address specified in the SMTP dialog. Furthermore, there is no guarantee that the credentials used to sign into the SMTP server (i.e., the sender's Google account) matches either the header or the MAIL FROM.

Thus, depending on implementation, any user with a Google (or Yahoo, or AOL) account could spoof the from header of any other Google user, and the DKIM headers will come out just fine. It's very likely that GMail prevents this as a matter of policy, but it is not a guarantee of DKIM in general.

Tread carefully.

All this being said, the proposed scheme would still be better and more thorough than the PGP Global Directory, as well as any free S/MIME certificate authority (I'm looking at you COMODO)

afourney avatar Dec 07 '15 18:12 afourney

Maybe we should make use of an auto-reply feature. So kebase provide a secret to reply if kebase sends an email from a certain address and/or subject the mail account should autoreply the secret. There for the secret is public accessible.

qoomon avatar Apr 05 '17 21:04 qoomon

While certainly not a complete solution, it's possible to verify many common email addresses (gmail, yahoo, etc) via the non-email OAUTH or similar services they provide. This doesn't work for "small shops," but certainly would cover all the big ones.

plambert avatar May 13 '17 18:05 plambert

screen shot 2017-07-06 at 2 29 41 pm The look in the app suggests that it is possible to verify an email, however, it appears it may not be possible. Hmm... makes sense, however, it doesn't change the fact that the UI makes it feels as if I should be able to.

ghost avatar Jul 06 '17 19:07 ghost

Maybe change 'Not verified' to 'Not verified (this is normal)'

stetner avatar Jul 22 '17 11:07 stetner

This is something that work really well with protonmail and custom DNS domains: https://protonmail.com/support/knowledge-base/dns-records/

wsargent avatar Oct 03 '17 19:10 wsargent

@wsargent Oh yeah, I use protonmail and would love keybase to integrate with it. Being able to publish my protonmail public keys via keybase would be great for instance. Or just verifying ownership of an address.

ghost avatar Jan 07 '18 17:01 ghost