DevOps

The Last Classical Hop: Tracking Kamal's Path to ML-KEM

Type ssh from an OpenSSH 10 client and the session is already post-quantum. Run kamal deploy against the same server and it falls back to classical x25519. Four upstream Ruby steps stand between the two; here's where each one is.

securitypost-quantumSSHKamalRubynet-sshML-KEM
The Last Classical Hop: Tracking Kamal's Path to ML-KEM

On 2 December, three US agencies published a joint statement saying AI companies had disclosed “discoveries that impact the security of some cryptography currently in use.” By the evening, people were asking whether Ed25519, the key type most of us switched to precisely because it was the safe modern choice, was still safe.

Looking at what a typical Kamal setup actually negotiates gives a split answer. An interactive ssh session from an OpenSSH 10.5 client to a stock Debian 13 server running OpenSSH 10.0 is already protected by post-quantum key exchange. The Kamal deploy to the same server isn’t, and can’t be yet, because of a chain of four Ruby dependencies.

This post covers what was published, what it does and doesn’t say, and a tracker for that chain. I’ll update the tracker as each step lands.

Note

This is a living post. Last checked: 3 December 2026. The status table in the tracker is the part that changes.

What was actually published

Three documents came out within a day of each other, and most of the alarm comes from reading them together.

The joint statement (ONCD, NSA and CISA, 2 December) is short and policy-level. It says frontier AI models “have demonstrated the capability to solve some of the most complex and previously unsolved problems in the field of mathematics,” that companies have disclosed discoveries affecting “some cryptography currently in use,” and that the current assessment is that these “do not present an immediate and widespread threat.” It names no algorithm, product, CVE or deadline. It points to Executive Order 14412, signed in June, on moving to post-quantum cryptography, and says that work has been accelerated.

The NSA advisory (Immediate Actions to Push Toward Post-Quantum, dated 1 December) goes further. It tells national security system owners to inventory their cryptography and flag algorithms not approved in CNSA 2.0 or 1.0. Its examples are “elliptic curves other than P-384 or P-521,” EdDSA, and pairing-based cryptography. RSA is not on that list.

Filippo Valsorda’s What to Make of the NSA Advisory (2 December, which he calls “hastily drafted”) is where the Ed25519 worry comes from. Reading the advisory’s exclusions, he concludes that “256-bit elliptic curves (P-256 and Curve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought.” His reasoning: the disclosure came from AI companies, not from progress on quantum computers, which neither document mentions, so it is more likely a classical attack. He reads “immediate and widespread” as possibly “immediate but not widespread,” and suggests RSA and P-384 “might be fine as an interim solution.”

I found Valsorda’s post the most useful thing written that day, and it’s worth reading in full. But keep its status straight: the conclusion is his reading between the lines, and he says so. MadRobot’s write-up makes the same point: “the NSA has not named any broken algorithm.”

Is Ed25519 broken?

Nobody has published a break. As of today:

  • Confirmed: the NSA wants 256-bit curves and EdDSA inventoried and replaced, and wants hybrid ML-KEM key exchange turned on now.
  • Credible inference, not confirmed: that a classical attack on 256-bit curves exists. That’s Valsorda’s reading of the advisory.
  • Rumour: most of the “Ed25519 is dead” posts that went around repeat Valsorda’s post, or AI-generated guesses built on top of it. Earlier rumours that “AI broke RSA” didn’t survive scrutiny; the Vig Post and Pasquale Pillitteri both covered that in late November.

What I took from it: don’t panic-rotate everything to RSA, but stop treating classical-only key exchange as fine. The fixes for key exchange are available and cheap today. Signatures (host keys, user keys, certificates) are the hard part.

Why hybrid key exchange is the first move

For SSH, OpenSSH already ships two hybrid key exchanges:

mlkem768x25519-sha256sntrup761x25519-sha512
Post-quantum halfML-KEM-768, NIST FIPS 203Streamlined NTRU Prime
SpecIETF draftRFC 9941
In OpenSSHSince 9.9; the default since 10.0Since 8.5; the default from 9.0 to 9.9

Both run a post-quantum algorithm and X25519 together and combine the results, so an attacker has to break both. If X25519 is weaker than we thought, you’re still covered. And because key exchange protects the session, a hybrid also protects traffic someone records today and tries to decrypt later. OpenSSH’s post-quantum page explains the reasoning, and notes that OpenSSH 10.1 started warning when a server offers neither.

Signatures are a different story. OpenSSH has one post-quantum key type, ssh-mldsa44-ed25519@openssh.com, a hybrid of ML-DSA-44 and Ed25519. Valsorda recommends moving to OpenSSH 10.6 and rotating to it. The catch is that both ends need an OpenSSH new enough to understand it, and Debian 13 ships 10.0 (10.3 in trixie-backports).

What a typical setup negotiates

Take an OpenSSH 10.5 client (current macOS ships it) connecting to a stock Debian 13 server running OpenSSH 10.0 (10.0p1-7+deb13u4). ssh -vv shows:

debug1: kex: algorithm: mlkem768x25519-sha256
debug1: kex: host key algorithm: ssh-ed25519

The session is already post-quantum for key exchange, with no configuration: mlkem768x25519-sha256 has been the default since OpenSSH 10.0, so any pair of 10.0-or-newer ends picks it. The host key is still plain Ed25519.

Kamal is different. It doesn’t run your ssh binary; it connects through Ruby’s net-ssh library, and net-ssh has no post-quantum key exchange in any released version. A Kamal deploy to the same server negotiates classical curve25519. That’s the last classical hop: every command you type is protected, and the tool that pushes code to production isn’t.

Hardening a Kamal host without locking Kamal out

The server side can still be tightened today:

  • install the newest packaged OpenSSH (on Debian 13, trixie-backports carries 10.3);
  • list the post-quantum exchanges first in KexAlgorithms, then curve25519, and the NIST curves too if your Kamal clients lack the x25519 gem, since net-ssh needs one of them;
  • keep logins key-only, with root login off;
  • offer only the Ed25519 host key, dropping RSA and ECDSA.

The ordering matters. A server that offers only post-quantum exchanges locks Kamal out. Putting them first means every client that can use them does, and Kamal still connects. Once Kamal can speak ML-KEM, the classical entries can come off the list.

The tracker

Four things have to happen, in order, before a Kamal deploy negotiates ML-KEM:

#StepWhereStatus (3 Dec 2026)
1Ruby’s openssl gem gains ML-KEMruby/openssl#1062🟡 Merged 22 June 2026, not released. Latest gem is 4.0.2, from May.
2net-ssh adds mlkem768x25519-sha256net-ssh/net-ssh#1005🟡 Open, waiting on step 1. Tests pass against an unreleased openssl branch.
3Kamal allows net-ssh 8basecamp/kamal#1974🟡 Open since 20 October, unblocked since 22 October.
4Kamal ships against a net-ssh release that includes step 2—❌ Not started; depends on 1–3.

Step 1 is the real blocker. Everything downstream is ready or nearly ready, and is waiting on a gem release.

Step 3 matters for a second reason: Kamal currently pins net-ssh to ~> 7.3, and people are already asking for the merge because security scanners flag advisories against net-ssh 7.3. net-ssh 8.x has shipped several security fixes since.

How to check for yourself

gem list -r '^openssl$'   # step 1: a release after 4.0.2 that includes ML-KEM
gem list -r '^net-ssh$'   # step 2: a release whose CHANGES mention mlkem768x25519
gh pr view 1005 -R net-ssh/net-ssh --json state
gh pr view 1974 -R basecamp/kamal --json state

If you deploy with Kamal today

  1. Check what your servers offer. Run ssh -vv your-server true 2>&1 | grep 'kex: algorithm'. If it isn’t mlkem768x25519-sha256, update OpenSSH on the server.
  2. Put the post-quantum exchanges first in KexAlgorithms, but keep curve25519 after them, or Kamal can’t connect.
  3. Drop RSA and ECDSA host keys if nothing still needs them.
  4. Don’t rotate your keys to RSA in a panic. RSA is exposed to quantum attacks too. The way forward is hybrid ML-DSA keys once both ends support them.
  5. Add a 👍 or a short, factual comment on the upstream PRs. A calm, well-sourced nudge gets merged; an alarmist one gets ignored.

Sources

Press Esc to return to the article
About the author

Prakash Poudel Sharma

Independent product manager & agentic engineering consultant

I'm an independent product manager, founder, and software builder based in Kathmandu. I help teams make product decisions and adopt agentic software development, drawing on over a decade of building software. I write about product thinking, engineering with AI, and hands-on experiments.

Keep reading

More on this

Join the conversation0 comments

What did you take away?

Thoughts, pushback, or a story of your own? Drop a reply below — I read every one.

Comments are powered by Disqus. By posting you agree to theirterms.

—
0:000:00