News for hackers. Stuff that matters.
Re:Making an SSH client the hard way by dgentry on Thursday October 27, 2022 @02:35PM (#33361959)
The Tailscale VPN client, the same one which runs on other devices, is compiled to WASM. It handles all of the key exchanges to connect to the tailnet. The SSH session is running as a WASM Tailscale client.

The browser, opening connections from within the browser engine, doesn't have the keys for SSH or VPN access.

Re:Making an SSH client the hard way by ikiris on Thursday October 27, 2022 @04:17PM (#33363441)
citation needed
Re:Making an SSH client the hard way by shp0ngle on Thursday October 27, 2022 @04:21PM (#33363482)
It doesn’t have the keys, but it can inject any javascript and do whatever the user can do.
Re:Making an SSH client the hard way by Spivak on Thursday October 27, 2022 @04:39PM (#33363723)
To me it seems they've taken all precautions they can reasonably take -- "what if the user installs a keylogger" isn't fixable by anyone.
Re:Making an SSH client the hard way by gunapologist99 on Thursday October 27, 2022 @06:46PM (#33365031)
"Installing a keylogger" is a vast oversimplification, even if it is outside of their threat model.

Installing almost anything in your browser is usually a matter of a couple of clicks.

Re:Making an SSH client the hard way by ithkuil on Thursday October 27, 2022 @08:08PM (#33365794)
Like intercepting your oauth token next time you login into SSO and then use that to access your tailnet.

This was true even before this new feature.

The new threat model is entirely psychological.

Re:Making an SSH client the hard way by vngzs on Thursday October 27, 2022 @04:58PM (#33363941)
Sounds like about "as good as this gets" if you happen to want to do this in browsers. Good job.
Re:Making an SSH client the hard way by Asmod4n on Thursday October 27, 2022 @06:06PM (#33364679)
And then the addon intercepts the loading of the Wasm code, injects it’s own payload into it and has access to the keys.
Re:Making an SSH client the hard way by lxgr on Thursday October 27, 2022 @06:41PM (#33364976)
What keys? I think the implementation does not use regular SSH keys for SSH authentication, but rather something custom (I believe traffic to port 22 on each SSH enabled client is intercepted and the daemon handles authentication itself).
Re:Making an SSH client the hard way by lxgr on Friday October 28, 2022 @12:01PM (#33373195)
For the downvotes: Am I misunderstanding Tailscale's implementation?

I'm not commenting on whether it's a good or bad idea, but we should at least be talking about the same thing.

Re:Making an SSH client the hard way by fulafel on Friday October 28, 2022 @10:58AM (#33372171)
The wasm code runs in the browser, hence the keys live in browser memory, so the browser has access to the keys.