Remix.run Logo
▲ adrian_b 5 hours ago

The reason why the default key type was switched to ECDSA P-384 and not to one of the quantum-resistant types supported by the current or by the next OpenSSH version, is that the latter are not supported by old servers and clients, so choosing one of them as default would prevent connections.

ECDSA P-384 is supported even by at least 9-year old OpenSSH versions (I have such a device), perhaps even by much older versions.

So setting it as default achieves the goal of better security than with 256-bit elliptic curves, while maintaining compatibility with ancient clients and servers.

When you know that both computers that communicate have up-to-date OpenSSH versions, you can choose to generate quantum-resistant host and client keys.

▲sibman 3 hours ago | parent | next [-]

P-384 seems like a sensible default for now. We've been testing PQC interoperability today and even stock /usr/bin/ssh on macOS 27.2.1 doesn't understand ssh-mldsa44-ed25519 from OpenSSH 10.6. It still has the experimental @openssh.com variant, disabled by default. Hybrid KEX (mlkem768x25519-sha256) works fine though. I'd keep ECDSA P-384 host keys for now until the clients catch up. Wrote a post https://news.ycombinator.com/item?id=50774944.

▲leonidasrup 22 minutes ago | parent | next [-]

There also the option to use Hybrid Streamlined NTRU Prime sntrup761 and X25519 (sntrup761x25519-sha512), RFC 9941. This is based on:

Bernstein, D.J., Brumley, B. B., Chen, M., Chuengsatiansup, C., Lange, T., Marotzke, A., Peng, B., Tuveri, N., Vredendaal, C. V., and B. Yang, "NTRU Prime: round 3", DOI 10.5281/zenodo.13983972, October 2020,

https://ntruprime.cr.yp.to/nist/ntruprime-20201007.pdf

▲formerly_proven 2 hours ago | parent | prev [-]

I really hope Red Hat, Debian et al backport support for these into their older openssh packages, or provide backported openssh 10.x.

▲throw0101d 2 hours ago | parent | next [-]

Not wrong, but it's perhaps worth noting that OpenSSH has PQC-hybrid key exchange (kex) for many years now, so harvest-now-decrypt-later is (AIUI) not really possible. Recent versions of OpenSSH have added 'official' kex algorithms, but even the unofficial ones probably (!) keep things safe.

The main source of worry is the SSH host and client keys not having PQC options, so 'impersonation attacks' are probably the primary source of risk in the near future.

▲forbiddenlake 2 hours ago | parent | prev [-]

Debian has already backported OpenSSH 10.6 to trixie-backports!

▲b112 29 minutes ago | parent [-]

They have. Just bear in mind that that comes from testing, and testing doesn't get security updates as fast as stable. And there's no guarantee that a backport ever gets updated.

Switching would only be sensible in a dire circumstance.

▲cowlevel 3 hours ago | parent | prev | next [-]

Are there any curves that have the same compatibility story, are 384 bits or bigger, and weren't selected by the NSA?

▲throw0101d 4 hours ago | parent | prev | next [-]

> When you know that both computers that communicate have up-to-date OpenSSH versions, you can choose to generate quantum-resistant host and client keys.

Reminder that you can generate PQC keys right now (where available), and they will be offered right now, but you can still have fall back options.

▲atmosx 4 hours ago | parent | prev | next [-]

Kudos for choosing sensible defaults.

▲quotemstr 2 hours ago | parent | prev [-]

It certainly looks like everyone is going to treat this break as a "just move to larger EC keysize bro" and not bite the bullet on PQC until we have a quantum computer staring us in the face.