Systems Engineering
By Andrew Grosser · EvilPet Security · 5 min read
Upgraded OpenSSL and OpenSSH? Three Config Lines Might Still Strip PQC
Why servers that 'support' ML-KEM still negotiate classic X25519 by default — and how to test both default and forced post-quantum handshakes.
Go tls.Config{CurvePreferences: ...}
Explicitly pinning []tls.CurveID{tls.X25519, tls.CurveP256} disables Go's built-in X25519MLKEM768 default.
Nginx ssl_ecdh_curve + ssl_prefer_server_ciphers
Listing X25519:prime256v1 ahead of X25519MLKEM768 forces classic key exchange even when the browser requests ML-KEM first.
OpenSSH KexAlgorithms Hardening
Copy-pasted CIS sshd_config lines pinning curve25519-sha256 first demote mlkem768x25519-sha256 to fallback-only — or remove it completely.
Test Default vs. Supported PQC — Then Scan Your Repo Free
EvilPet's PQC test runs a two-stage check on TLS/443 and inspects your SSH KEXINIT order on port 22: OK if PQC is negotiated by default, Warning if PQC is supported but classic wins by default, and Error if PQC is missing.
Public GitHub repository scans on EvilPet are always free — proving real vulnerabilities and opening production-ready fix pull requests.
References & Sources
- NIST Releases First 3 Finalized Post-Quantum Encryption Standards (FIPS 203 / ML-KEM & FIPS 204 / ML-DSA) (nist.gov · 2024-08)
- Anthropic's lattice cryptography papers: what they mean for post-quantum security (tenable.com · 2026)
- What is Lattice-Based Cryptography? A Beginner's Guide (ssh.com · 2026)
- SPQR: Signal's Post-Quantum Ratchet (Triple Ratchet with ML-KEM) (signal.org · 2025)

