News for hackers. Stuff that matters.
Re:Don't Take Security Advice from SEO Experts or Psychics by snowwrestler on Thursday August 10, 2017 @10:09AM (#14979822)
I don't know how you use SSH, but I don't permit or establish anonymous SSH connections the way I do anonymous HTTPS connections.

SSH is "trust on first use" because the trust is typically established ahead of time by provisioning a username/password or a public/private key pair.

Along the same lines, I can use self-signed certs to encrypt the HTTPS connection to my own server, and feel confident because I can validate that it is really my cert and my server.

The same is not true of connecting to, say, twitter.com.

Re:Don't Take Security Advice from SEO Experts or Psychics by iancarroll on Thursday August 10, 2017 @11:07AM (#14980447)
You are right in that SSH is TOFU because trust can be established beforehand, but you cannot establish trust based on whether or not a password or public key is accepted. You need to establish trust separately (with the server's public key), usually before you ever authenticate.

For passwords, it's obvious, because a malicious server can just save your username and password, but public keys are not immune either, as a bad actor can "pretend" to be your server and hope you enter an access key or something.

Re:Don't Take Security Advice from SEO Experts or Psychics by icebraining on Friday August 11, 2017 @02:50AM (#14987196)
Actually, you can, and just using passwords! Using a PAKE protocol, the client and the server can prove to each other that they know a certain password, without revealing it.

And you can even tie that to TLS: https://en.wikipedia.org/wiki/TLS-SRP

Re:Don't Take Security Advice from SEO Experts or Psychics by iancarroll on Friday August 11, 2017 @11:42AM (#14990779)
Yes, but SRP for SSH isn't specified or implemented into any SSH implementation that I know of. My comment was about SSH today, as apparently the GP is currently using this as a method to authenticate servers.
Re:Don't Take Security Advice from SEO Experts or Psychics by icebraining on Friday August 11, 2017 @01:40PM (#14992366)
Ah, fair enough. As a matter of curiosity, OpenSSH did start an implementation of J-PAKE, but it was abandoned before ever becoming stable :|