The Keybase command-line client supports Tor. Of course anonymity is a fraught and subtle property. This document explains how to protect your identity with Tor and other Keybase features.
Please note that the Keybase GUI does not support Tor mode. If you would like to tunnel the whole application through Tor, we recommend running it inside of a Tails VM. Furthermore our Tor support isn't audited, so it's possible that even in strict mode some identifying information might creep in.
To use the command-line client with Tor, you'll need the Tor SOCKS proxy running locally. See the Tor project's documentation for more information on how to set up a local Tor proxy.
Enabling Tor mode
If you are already running a
keybase service in the background,
--tor-mode to your commands will not work - for
commands other than
service, the flag is only effective when
the service is not already running, so you will have to use either of the
Temporarily by running service with an explicitly set flag
If you'd like to use Keybase in Tor mode just for a single session, first run
keybase ctl stop to shut down the services running in the
background, then run
keybase --tor-mode=leaky|strict service.
While this service is running, all
keybase commands in other
terminals will access our servers through the Tor network.
Please note that at this point starting the Keybase GUI will shut down that service and
restart it in default mode.
Permanently by changing service's configuration
# "leaky" mode which simply tunnels all traffic through Tor keybase config set tor.mode leaky # "strict" mode which makes the requests fully anonymous keybase config set tor.mode strict # Restart the service, making sure that the GUI is not running
A short demo
To enable Tor with the default options, just set the Tor mode flag to
# enable leaky tor mode using either of the methods described above keybase id malgorithms@twitter
And you'll get an output like:
▶ INFO Identifying chris ✔ public key fingerprint: 94AA 3A5B DBD4 0EA5 49CA BAF9 FBC0 7D6A 9701 6CB3 ✔ "malgorithms" on twitter: https://twitter.com/malgorithms/status/433640580220874754 ✔ "malgorithms" on github: https://gist.github.com/2d5bed094c6429c63f21 ✔ admin of chriscoyne.com via HTTPS: https://chriscoyne.com/keybase.txt ✔ "malgorithms" on hackernews: https://news.ycombinator.com/user?id=malgorithms ✔ admin of DNS zone chriscoyne.com, but the result isn't reliable over Tor: found TXT entry keybase-site-verification=2_UwxonS869gxbETQdXrKtIpmV1u8539FmGWLQiKdew
All network traffic is now protected via Tor, so the server or network eavesdroppers can't discern your IP adddress, but the server can still see your login credentials. This mode of operation is akin to Tor anonymity mode(3). It won't protect you from a Keybase server breach, but it will prevent your ISP (or any other nefarious network snoopers) from knowing you use Keybase.
Note that not everything could be trusted in the above attempt to identify
The Keybase CLI printed out that the DNS record for
chriscoyne.com is untrusted,
due to the fact that DNS and naked HTTP are inherently unreliable over Tor;
relay nodes can make up whatever they want, and a malicious node can fake a proof.
Strict mode is currently broken, we are working on a fix.
If you want a higher level of privacy, you can ask for strict Tor mode, which will withhold all user-identifying information from the server, akin to Tor anonymity mode(1). For example, try this:
# enable strict tor mode using either of the methods described above keybase follow malgorithms@twitter
And you'll get an output like:
warn: In Tor mode: strict=true; proxy=localhost:9050 warn: Tor support is in alpha; please be careful and report any issues warn: Tor strict mode: not syncing your profile with the server info: ...checking identity proofs ✔ public key fingerprint: 20AA 7564 29A0 B9B9 5974 3F72 E1E4 B2A1 286B A323 ✔ "btcdrak" on twitter: https://twitter.com/btcdrak/status/513395408845148160 ✔ "btcdrak" on github: https://gist.github.com/e4435571fe4c7d55231b ✔ "btcdrak" on reddit: https://www.reddit.com/r/KeybaseProofs/comments/2gyyej/my_keybase_proof_redditbtcdrak_keybasebtcdrak/ Is this the btcdrak you wanted? [y/N] y warn: Can't write tracking statement to server in strict Tor mode info: ✔ Wrote tracking info to local database info: Success!
Notice a few new things going on. In the third line of output, there's a warning that the client skipped syncing its local view of your profile with the server's. If it did, someone analyzing traffic on the server could correctly guess that a lookup of Alice directly followed by a lookup of Bob implies that Alice was following or ID'ing Bob. So the lookup of Alice is surpressed. Also note that the client doesn't offer to write a follower statement to the server, which would also divulge the user's identity. Instead, it just settles for writing following information to the local store.
Some commands won't work at all in strict mode. For instance, if you try to log-in afresh:
keybase logout keybase login
▶ WARNING Failed to load advisory secret store options from remote: We can't send out PII in Tor-Strict mode; but it's needed for this operation ▶ ERROR Login required: login failed after passphrase verified
As part of Tor support, we've also exposed
https://keybase.io as a hidden address;
this is a marginal improvement over standard anonymous Tor browsing, since your traffic
need not traverse an exit node. Our hidden address is:
Note that the command-line client uses this hidden address internally, by default.