SAASMENT

Security skill · Find

Hybrid post-quantum TLS key exchange check.

Verify whether public HTTPS endpoints negotiate hybrid post-quantum TLS key exchange such as X25519MLKEM768 / ML-KEM, using concrete OpenSSL 3.5+ commands and config guidance from official docs, and identify classical fallbacks. Use when checking PQC TLS readiness on sites you own or are authorized to test.

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-tls-hybrid-key-exchange-check/
MCP resource
skill://pqc-tls-hybrid-key-exchange-check/SKILL.md
Files
  • SKILL.md
  • LICENSE
  • references/hybrid-tls-commands.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-tls-hybrid-key-exchange-check"
  }
}

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-tls-hybrid-key-exchange-check/download.zip -o /tmp/pqc-tls-hybrid-key-exchange-check.zip
unzip -o /tmp/pqc-tls-hybrid-key-exchange-check.zip -d .cursor/skills
# result: .cursor/skills/pqc-tls-hybrid-key-exchange-check/SKILL.md

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

SKILL.md

---
name: pqc-tls-hybrid-key-exchange-check
description: Verify whether public HTTPS endpoints negotiate hybrid post-quantum TLS key exchange such as X25519MLKEM768 / ML-KEM, using concrete OpenSSL 3.5+ commands and config guidance from official docs, and identify classical fallbacks. Use when checking PQC TLS readiness on sites you own or are authorized to test.
license: MIT
metadata:
  author: Saasment
  version: "1.0.0"
  category: find
  tags: "misconfiguration, vulnerability-management"
---

# Hybrid post-quantum TLS key exchange check (find)

License: MIT. Copyright (c) 2026 Saasment. Source: https://www.saasment.com/ai-security/skills/pqc-tls-hybrid-key-exchange-check

TLS 1.3 hybrid key exchange combines a classical ECDH share with ML-KEM so the session keys remain secret unless both algorithms are broken. The IETF specifies groups such as `X25519MLKEM768`, `SecP256r1MLKEM768`, and `SecP384r1MLKEM1024`. This skill checks whether your public endpoints negotiate a hybrid group, how to read the result, and what classical fallback looks like.

## When to use

- You need evidence that a hostname supports hybrid PQ key exchange.
- You are validating a CDN, load balancer, or origin upgrade to OpenSSL 3.5+ or an equivalent stack.
- Inventory work (`pqc-crypto-inventory-review`) flagged TLS terminators that still look classical-only.

## Safe by default

- Probe only hosts you own or are authorized to test. Use a few handshakes per host; do not scan address ranges.
- Prefer staging first when changing server group configuration.
- Do not disable classical groups in production until clients you depend on can negotiate hybrid or you have a measured rollback.
- If you use Saasment Security MCP, `check_pqc_tls` performs the same class of read-only probe from Saasment's servers (public hosts, port 443, SSRF checks). Still limit testing to authorized targets.

## Procedure

1. **Confirm client tooling.** Hybrid groups need a TLS stack that implements them. OpenSSL 3.5 and later supports `X25519MLKEM768` (and related hybrids). Confirm with `openssl version`. Node.js builds that bundle OpenSSL 3.5 can offer the group via `tls.connect({ ecdhCurve: "X25519MLKEM768", ... })`.
2. **Force the hybrid group (positive test).** From a workstation with OpenSSL 3.5+:

```bash
openssl s_client -groups X25519MLKEM768 \
  -connect example.com:443 -servername example.com </dev/null 2>/dev/null | \
  rg -i 'Negotiated TLS1\.3 group|Protocol|Cipher|Peer Temp Key|error|fail'
```

If the handshake completes and the output shows `Negotiated TLS1.3 group: X25519MLKEM768` (wording varies slightly by OpenSSL build; some builds print the group on a `Negotiated TLS1.3 group` line), the server accepted the hybrid group when it was the only client option.

3. **Confirm classical fallback.** Offer only a classical group:

```bash
openssl s_client -groups X25519 \
  -connect example.com:443 -servername example.com </dev/null 2>/dev/null | \
  rg -i 'Negotiated TLS1\.3 group|Peer Temp Key|Protocol'
```

A server that supports both will succeed here with a classical group such as `X25519`. A hybrid-only failure with a classical success means the endpoint is up but does not accept `X25519MLKEM768` yet (example pattern seen on some major sites).

4. **Offer both (negotiation preference).**

```bash
openssl s_client -groups X25519MLKEM768:X25519 \
  -connect example.com:443 -servername example.com </dev/null 2>/dev/null | \
  rg -i 'Negotiated TLS1\.3 group|Peer Temp Key'
```

Record which group wins. Clients that put hybrid first and send a hybrid key share will prefer PQ when the server supports it.

5. **Optional MCP check.** Call `check_pqc_tls` with the hostname. The tool offers `X25519MLKEM768` only after the same SSRF controls as `check_tls`. A successful handshake means the server accepted that group; a failure plus a successful classical probe means hybrid is not available.

6. **Review server configuration** using only stacks you can cite from official documentation. Practical notes and links are in `references/hybrid-tls-commands.md`.

7. **Record findings** per hostname: hybrid accepted (yes/no), negotiated group when hybrid offered alone, classical fallback group, TLS version, who owns the terminator, and evidence date.

## Verification

- Repeat the hybrid-only and classical-only commands and confirm the same outcome.
- If you changed server groups, re-test from a second network path (for example outside a corporate middlebox that might disrupt large ClientHello messages; OpenSSL documents that large hybrid ClientHellos can trouble some firewalls).
- Confirm you did not leave a staging-only group list on a production listener by mistake.
- Record the OpenSSL or Node version used for the probe next to the finding so later readers can reproduce it.

## Reporting

Table: hostname, hybrid negotiated, group name, classical fallback, OpenSSL/client version used, terminator owner, date. Link inventory rows from `pqc-crypto-inventory-review`.

## References

- IETF draft-ietf-tls-ecdhe-mlkem (hybrid ECDHE-MLKEM for TLS 1.3; groups include X25519MLKEM768): https://datatracker.ietf.org/doc/html/draft-ietf-tls-ecdhe-mlkem
- IETF draft-ietf-tls-hybrid-design (hybrid key exchange design for TLS 1.3): https://datatracker.ietf.org/doc/html/draft-ietf-tls-hybrid-design
- NIST FIPS 203 (ML-KEM): https://csrc.nist.gov/pubs/fips/203/final
- OpenSSL SSL_CTX_set1_groups / groups list (OpenSSL 3.5 hybrid group names): https://docs.openssl.org/3.5/man3/SSL_CTX_set1_curves/
- OpenSSL EVP_PKEY-MLX-KEM (hybrid ML-KEM for TLS 1.3): https://docs.openssl.org/master/man7/EVP_PKEY-MLX-KEM/
- Cloudflare PQC support (documents OpenSSL 3.5+ and NGINX with OpenSSL 3.5+): https://developers.cloudflare.com/ssl/post-quantum-cryptography/pqc-support/
- Related articles: https://www.saasment.com/post-quantum-cryptography/hybrid-tls — https://www.saasment.com/post-quantum-cryptography
- Companion skills: `pqc-crypto-inventory-review`, `pqc-cloud-hybrid-tls-config-review`, `pqc-openssl-support-check`, `web-server-tls-headers-review`, `pqc-migration-plan`.

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/hybrid-tls-commands.md
# Hybrid TLS commands and configuration notes

License: MIT. Copyright (c) 2026 Saasment.

Only include server guidance you can point to in an official document. Prefer linking to the primary source over copying long vendor tutorials.

## Client checks (OpenSSL 3.5+)

```bash
openssl version

# Hybrid only — success implies the server accepted X25519MLKEM768
openssl s_client -groups X25519MLKEM768 \
  -connect HOST:443 -servername HOST -brief </dev/null

# Classical only — shows fallback behavior
openssl s_client -groups X25519 \
  -connect HOST:443 -servername HOST -brief </dev/null

# Preference list
openssl s_client -groups X25519MLKEM768:X25519 \
  -connect HOST:443 -servername HOST -brief </dev/null
```

How to read results:

- Look for a line such as `Negotiated TLS1.3 group: X25519MLKEM768`. That is the hybrid group defined for combining X25519 with ML-KEM-768.
- Handshake failure when hybrid is the only offered group, with success when `X25519` is offered alone, means the service is reachable but does not accept that hybrid group yet.
- System OpenSSL older than 3.5 will reject `-groups X25519MLKEM768`. Upgrade the client or use another OpenSSL 3.5+ build.

Official option reference: https://docs.openssl.org/3.5/man1/openssl-s_client/

## OpenSSL library defaults (servers linked to OpenSSL 3.5+)

OpenSSL 3.5 documents hybrid TLS groups `X25519MLKEM768`, `SecP256r1MLKEM768`, and `SecP384r1MLKEM1024`, and notes that the `DEFAULT` group list can predict a key share for `X25519MLKEM768`. Configure explicit lists with `SSL_CTX_set1_groups_list` when you need a stable policy:

- Docs: https://docs.openssl.org/3.5/man3/SSL_CTX_set1_curves/
- Hybrid key objects: https://docs.openssl.org/master/man7/EVP_PKEY-MLX-KEM/

Large ClientHello messages from hybrid key shares can interact badly with some middleboxes; OpenSSL's groups documentation discusses mitigation patterns such as adjusting key-share prediction. Test before enforcing hybrid-only policies.

## Stacks with official PQC support notes

### Cloudflare

Cloudflare documents deployment of hybrid `X25519MLKEM768` for visitor-to-edge TLS 1.3 and publishes a PQC support matrix (browsers, libraries, servers). Use their docs when the hostname is proxied by Cloudflare:

- https://developers.cloudflare.com/ssl/post-quantum-cryptography/
- https://developers.cloudflare.com/ssl/post-quantum-cryptography/pqc-support/

### NGINX built with OpenSSL 3.5+

Cloudflare's PQC support page states NGINX key agreement works by default when NGINX is compiled with OpenSSL 3.5+. Confirm your build's OpenSSL version (`nginx -V`) before claiming support. Do not invent `nginx.conf` directives that are not in NGINX or OpenSSL documentation.

### Node.js

Node.js releases that bundle OpenSSL 3.5 can pass hybrid group names through `tls.connect` / `ecdhCurve` (for example `X25519MLKEM768`). Node's `socket.getEphemeralKeyInfo()` historically describes classical ECDH/DH; for hybrids, treat a successful handshake while offering only `X25519MLKEM768` as evidence that group was negotiated.

## Classical fallback (what “not hybrid” looks like)

| Client offers | Server supports hybrid | Typical result |
| --- | --- | --- |
| `X25519MLKEM768` only | yes | Handshake OK, group `X25519MLKEM768` |
| `X25519MLKEM768` only | no | Handshake fails |
| `X25519` only | yes or no (classical KE) | Handshake OK with classical group if ECDH is enabled |
| `X25519MLKEM768:X25519` | yes | Often hybrid if the server prefers it |
| `X25519MLKEM768:X25519` | no | Classical `X25519` (or another classical group) |

Fallback to classical ECDH preserves availability but does not protect the session against a future cryptanalytically relevant quantum adversary that can break the classical share. Record fallback explicitly in the inventory rather than treating “TLS 1.3 works” as PQ-ready.

Related

Related guides

Companion skills

Related library entries

Questions

How do I install the Hybrid post-quantum TLS key exchange check skill?

Download https://www.saasment.com/ai-security/skills/pqc-tls-hybrid-key-exchange-check/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-tls-hybrid-key-exchange-check/SKILL.md exists. Or connect to https://www.saasment.com/api/mcp and call the get_skill tool with the slug pqc-tls-hybrid-key-exchange-check.

What license is the Hybrid post-quantum TLS key exchange check 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