News for hackers. Stuff that matters.
Re:FreeBSD SSH Hardening by BelenusMordred on Wednesday September 15, 2021 @10:04AM (#28539164)
> None of the algorithms enabled by default has any known security issue.

For the tinfoil among us, jump on the post-quantum key exchange train, there's little overhead, it still uses traditional elliptic curve crypto, best of both worlds.

The jump-off: [email protected]

Re:FreeBSD SSH Hardening by Panino on Wednesday September 15, 2021 @01:57PM (#28542259)
Note that the above post-quantum key exchange method was removed in OpenSSH 8.5 (released March 3, 2021) in favor of a newer one:

[email protected]

So if you add the previous one to your server config, sshd may fail to start after upgrading to 8.5 or newer (8.7 is the most recent release).

I started using [email protected] about two years ago, and the new one when OpenSSH 8.5 came out. They've both worked flawlessly for me. Thank you to TinySSH and OpenSSH, and of course cryptographers, for making this possible.

Re:FreeBSD SSH Hardening by chasil on Wednesday September 15, 2021 @07:02PM (#28545566)
I actually filed the github request for Jan Mojžíš to update TinySSH with the new KEX.

I run tinysshd on some RedHat 5 servers, and I rely upon the latest post-quantum exchange. I also jack all my putty users into it with an agent, and I don't assign them passwords.

It would be nice if I was allowed to upgrade from RedHat 5, but I am not.

Re:FreeBSD SSH Hardening by BelenusMordred on Thursday September 16, 2021 @10:10AM (#28552023)
Thanks for the update, guessing this is the round 2 submission?

Despite being sidelined in NIST's post quantum standardisation project it's interesting to see their Streamlined NTRU Prime algorithm still being the main real world adoption out there right now. I'd be interested if anyone knows of a more utilised post-quantum algo irl.

Re:FreeBSD SSH Hardening by newman314 on Thursday September 16, 2021 @04:07PM (#28556802)
Do you compile your own OpenSSH? From what I can tell, the distributions have not really caught up yet.

Bullseye is still on 8.4. OpenSSH on Windows appears to be 8.1.

Re:FreeBSD SSH Hardening by 1vuio0pswjnm7 on Wednesday September 15, 2021 @06:07PM (#28545022)
I prefer tinyssh to dropbear and even to openssh. https://github.com/janmojzis/tinyssh Its not for the tinfoil, the reason is the size. OpenSSH is too large for some small systems. In June, dropbear finally got support for chacha20-poly1305 and ed25519 keys, but it only offers the TweetNaCl version. tinyssh has had this since 2014 and can use the original NaCl library, not just the Twitter version.

tinyssh does what the top comment comment in this thread suggests, and in fact goes further. It does not include bad algorithms. This is arguably better than only "deprecating" them.

Re:FreeBSD SSH Hardening by ilaksh on Wednesday September 15, 2021 @12:29PM (#28541165)
What's a post-quantum key exchange? I assume this is a real thing and not a reference to Devs or Lapsis or something?
Re:FreeBSD SSH Hardening by tialaramex on Wednesday September 15, 2021 @01:10PM (#28541693)
So.

All of today's practical public key crypto could be broken by a sufficiently powerful quantum computer - if one existed which today it does not - thanks to a trick called Shor's Algorithm.

However, there are new public key algorithms that aren't affected by Shor's algorithm. Two problems. 1. They're all worse, they have huge keys for example, or they're slow, so that sucks. 2. We don't know if they actually work, beyond that Shor's algorithm doesn't break them on hypothetical Quantum Computers.

Even if you decide you don't care about (1) and you're very scared of the hypothetical quantum computers (after all once upon a time the Atom Bomb was also hypothetical) you need to deal with (2).

Post-quantum schemes like this for SSH generally arrange that by doing two things, they have the shiny new Quantum Resistant algorithms, but they also have an old-fashioned public key algorithm, and you need to break both to break their security. Either alone won't help you.

Re:FreeBSD SSH Hardening by da_chicken on Wednesday September 15, 2021 @03:58PM (#28543637)
> All of today's practical public key crypto could be broken by a sufficiently powerful quantum computer - if one existed which today it does not

That we know of. There are commercially available quantum computers [0] and there are roadmaps for commercial technology ramp up significantly [1]. Remember, that's a roadmap to projected commercial viability. It's hard to say what state actors are capable of right now.

[0]: https://azure.microsoft.com/en-us/services/quantum/

[1]: https://venturebeat.com/2020/12/09/ionq-roadmap-quantum-mach...