SAASMENT

Security skill · Find

OpenSSH post-quantum key exchange review.

Review OpenSSH hybrid post-quantum key exchange (sntrup761x25519-sha512 and mlkem768x25519-sha256) using ssh -Q kex, sshd -T, and negotiation checks, with the OpenSSH versions that added or defaulted each method. Use when assessing SSH fleets for harvest-now-decrypt-later exposure on the key-exchange channel.

Download .zipInstall via MCPFindMIT
  • Misconfiguration
  • Vulnerability management

Facts

Category
Find
License
MIT
Tags
  • Misconfiguration
  • Vulnerability management
Version
1.0.0
Last updated
2026-12-03
Folder
pqc-ssh-kex-review/
MCP resource
skill://pqc-ssh-kex-review/SKILL.md
Files
  • SKILL.md
  • LICENSE
  • references/ssh-kex-checklist.md
Standards

Original Saasment content. Saasment is in early access; this skill does not require joining it.

Install via MCP or as files

Connect your client to https://www.saasment.com/api/mcp (see client setup) and call get_skill:

{
  "name": "get_skill",
  "arguments": {
    "slug": "pqc-ssh-kex-review"
  }
}

Or download the .zip and unpack it into your agent's skills directory:

Terminal, from your project root (user-level: ~/.cursor/skills)

mkdir -p .cursor/skills
curl -fsSL https://www.saasment.com/ai-security/skills/pqc-ssh-kex-review/download.zip -o /tmp/pqc-ssh-kex-review.zip
unzip -o /tmp/pqc-ssh-kex-review.zip -d .cursor/skills
# result: .cursor/skills/pqc-ssh-kex-review/SKILL.md

Review SKILL.md before enabling a skill. Skills are instructions your agent will follow.

SKILL.md

---
name: pqc-ssh-kex-review
description: Review OpenSSH hybrid post-quantum key exchange (sntrup761x25519-sha512 and mlkem768x25519-sha256) using ssh -Q kex, sshd -T, and negotiation checks, with the OpenSSH versions that added or defaulted each method. Use when assessing SSH fleets for harvest-now-decrypt-later exposure on the key-exchange channel.
license: MIT
metadata:
  author: Saasment
  version: "1.0.0"
  category: find
  tags: "misconfiguration, vulnerability-management"
---

# OpenSSH post-quantum key exchange review (find)

License: MIT. Copyright (c) 2026 Saasment. Source: https://www.saasment.com/ai-security/skills/pqc-ssh-kex-review

OpenSSH ships hybrid post-quantum key exchange methods that combine a PQ KEM with X25519. Official OpenSSH materials document `sntrup761x25519-sha512` (and the earlier `@openssh.com` name) and `mlkem768x25519-sha256`. This skill reviews client and server KEX configuration and negotiated algorithms. Host-key and user-key algorithm migration remains a separate inventory concern (`pqc-crypto-inventory-review`).

## When to use

- Bastion, jump host, or fleet SSH versions need a PQ KEX readiness check.
- Users see OpenSSH warnings about missing post-quantum key agreement.
- Migration planning needs SSH rows distinct from TLS hybrid work.

## Safe by default

- Change `KexAlgorithms` only on systems you own or are authorized to administer. Keep a classical hybrid or classical method available until both peers are upgraded.
- Prefer read-only queries (`ssh -Q`, `sshd -T`, log review) before editing sshd_config.
- Test against staging listeners. Do not lock production into a PQ-only KEX list without a rollback.

## Version facts (from OpenSSH release notes and pq.html)

| Method | Added | Default behavior |
| --- | --- | --- |
| `sntrup761x25519-sha512@openssh.com` | OpenSSH 8.5 (2021-03-03) replaced an earlier experimental NTRU hybrid; disabled by default in 8.5 | OpenSSH 9.0 (2022-04-08) uses this hybrid by default |
| `sntrup761x25519-sha512` (IANA name) | OpenSSH 9.9 (2024-09-19) also exposes the bare name | Still available; was the PQ default before 10.0 |
| `mlkem768x25519-sha256` | OpenSSH 9.9 (2024-09-19), available by default | OpenSSH 10.0 (2025-04-09) makes it the default key agreement |

OpenSSH’s PQ page states versions 9.0+ support `sntrup761x25519-sha512` and versions 9.9+ support `mlkem768x25519-sha256`. Both are hybrids (PQ + classical).

## Procedure

1. **Collect versions.** On each client and server: `ssh -V` / package version. Map to the table above.
2. **List supported KEX algorithms.**

```bash
ssh -Q kex
```

Confirm whether `mlkem768x25519-sha256`, `sntrup761x25519-sha512`, and/or `sntrup761x25519-sha512@openssh.com` appear.

3. **Read effective sshd configuration** (authorized hosts):

```bash
sshd -T | rg -i 'kexalgorithms|pubkeyacceptedalgorithms|hostkeyalgorithms'
```

Record whether PQ KEX methods are present and their order.

4. **Check client config.** Inspect user and system `ssh_config` / `~/.ssh/config` for `KexAlgorithms` overrides that drop PQ methods.
5. **Negotiation check.** From an authorized client, connect with verbose logging and record the negotiated KEX:

```bash
ssh -vv -o KexAlgorithms=mlkem768x25519-sha256 user@host true
ssh -vv -o KexAlgorithms=sntrup761x25519-sha512 user@host true
```

Also run a normal connection and note which KEX wins under defaults. Worksheet: `references/ssh-kex-checklist.md`.

6. **ssh-audit-style review.** If the team already runs `ssh-audit` or a similar read-only auditor against authorized hosts, include its KEX findings. Do not treat a tool report as a substitute for version and `sshd -T` evidence.
7. **Classify hosts.** PQ default / PQ available but not preferred / classical-only / unknown. Feed classical-only internet-facing SSH into `pqc-harvest-now-decrypt-later-prioritization`.

## Verification

- Re-run `ssh -Q kex` and `sshd -T` after any config change.
- Confirm a verbose connection shows the expected `kex: algorithm:` line.
- Confirm a rollback path remains (documented previous `KexAlgorithms` list).
- Confirm host keys were not rotated as a side effect of a KEX-only change unless that was intended.

## Reporting

Table: host, OpenSSH version, PQ methods in `ssh -Q kex`, effective `KexAlgorithms`, negotiated KEX under default connect, owner, next action (upgrade, remove override, accept with date).

## References

- OpenSSH post-quantum cryptography page: https://www.openssh.org/pq.html
- OpenSSH 8.5 release notes (sntrup761 hybrid added, disabled by default): https://www.openssh.org/txt/release-8.5
- OpenSSH 9.0 release notes (sntrup761 hybrid default): https://www.openssh.org/txt/release-9.0
- OpenSSH 9.9 release notes (mlkem768x25519-sha256; IANA sntrup name): https://www.openssh.org/txt/release-9.9
- OpenSSH 10.0 release notes (mlkem768x25519-sha256 default): https://www.openssh.org/txt/release-10.0
- OpenSSH release notes index: https://www.openssh.org/releasenotes.html
- Companion skills: `pqc-crypto-inventory-review`, `pqc-harvest-now-decrypt-later-prioritization`, `pqc-migration-plan`, `pqc-openssl-support-check`.

Helper files

LICENSE
MIT License

Copyright (c) 2026 Saasment

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
references/ssh-kex-checklist.md
# OpenSSH PQ KEX checklist

License: MIT. Copyright (c) 2026 Saasment.

## Per-host worksheet

| Field | Value |
| --- | --- |
| Host / role | |
| `ssh -V` / package version | |
| `ssh -Q kex` contains `mlkem768x25519-sha256`? | yes / no |
| `ssh -Q kex` contains `sntrup761x25519-sha512` or `@openssh.com`? | yes / no |
| `sshd -T` KexAlgorithms (paste) | |
| Client config overrides KexAlgorithms? | yes / no (path) |
| Negotiated KEX on default connect | |
| Negotiated KEX when forcing mlkem | |
| Negotiated KEX when forcing sntrup | |
| Internet-facing? | yes / no |
| Owner | |
| Next action | |

## Commands

```bash
ssh -V
ssh -Q kex
# server, where authorized:
sudo sshd -T | rg -i 'kexalgorithms'
ssh -vv user@host true 2>&1 | rg -i 'kex|negotiat'
```

## Version quick map (official release notes / pq.html)

- 8.5: `sntrup761x25519-sha512@openssh.com` present, not default
- 9.0–9.8: sntrup hybrid default
- 9.9: adds `mlkem768x25519-sha256`; IANA name `sntrup761x25519-sha512`
- 10.0+: `mlkem768x25519-sha256` default

## Sources

- https://www.openssh.org/pq.html
- https://www.openssh.org/txt/release-8.5
- https://www.openssh.org/txt/release-9.0
- https://www.openssh.org/txt/release-9.9
- https://www.openssh.org/txt/release-10.0

Related

Related guides

Companion skills

Related library entries

Questions

How do I install the OpenSSH post-quantum key exchange review skill?

Download https://www.saasment.com/ai-security/skills/pqc-ssh-kex-review/download.zip and unzip it into your agent's skills directory (for example .cursor/skills, .claude/skills, .agents/skills, or .github/skills) so that pqc-ssh-kex-review/SKILL.md exists. Or connect to https://www.saasment.com/api/mcp and call the get_skill tool with the slug pqc-ssh-kex-review.

What license is the OpenSSH post-quantum key exchange review skill under?

It is original Saasment content under the MIT license, stated in the SKILL.md frontmatter and in the LICENSE file in the skill folder.

Is it safe to run this skill?

A skill is a set of instructions your agent follows, so read SKILL.md first. It tells the agent to test only systems you own or are authorized to test, to use test environments and synthetic data, and to avoid destructive probes. Downloading it does not run any code on your machine.

Next step.

Saasment is an early-access AI security platform that tests a risk and closes it. Connections, live tests, and automated fixes are not available yet.

← Saasment Security MCP · all skills

See the demo.

Open the demo workspace with sample data. No login. Register from the banner when you want early access. No security team. No call.

See the demo