A result that looked too good#
While writing about the locks I use every day I wanted one line of evidence: which key exchange does a real site use today? Go makes that easy. Since Go 1.25 a connection reports the key-exchange group it used, so this is the whole program:
package main
import (
"crypto/tls"
"fmt"
"os"
)
func main() {
for _, host := range os.Args[1:] {
conn, err := tls.Dial("tcp", host+":443", &tls.Config{ServerName: host})
if err != nil {
fmt.Printf("%-16s error: %v\n", host, err)
continue
}
st := conn.ConnectionState()
fmt.Printf("%-16s %v issuer: %s\n", host, st.CurveID, st.PeerCertificates[0].Issuer.CommonName)
conn.Close()
}
}My first version printed only the group, and on my Windows laptop it said:
github.com X25519MLKEM768
www.google.com X25519MLKEM768X25519MLKEM768 is the hybrid post-quantum key exchange. Both sites, already protected against “harvest now, decrypt later”. It was exactly the answer I hoped for, which should have been the first warning.
The thread I pulled#
The second warning came from OpenSSL. Asked about the same connection on the same laptop, it named a certificate issuer I didn’t expect: not GitHub’s certificate authority, but the antivirus on my laptop. And it complained: “unable to verify the first certificate”. So I added the issuer to my Go program (the version above), and there it was again:
github.com X25519MLKEM768 issuer: <the antivirus root>
www.google.com X25519MLKEM768 issuer: <the antivirus root>Go hadn’t complained because it uses Windows’ list of trusted roots, and the antivirus had added its own root to that list. OpenSSL keeps a separate list, so it was the only one to notice.
What’s actually happening: HTTPS interception#
The US cybersecurity agency CISA described this years ago in an alert called HTTPS Interception Weakens TLS Security. These products work “by intercepting the HTTPS network traffic and performing a man-in-the-middle (MiTM) attack on the connection”. To avoid browser warnings, they “install trusted certificates on client devices”.
So there are two connections, not one:
- My program to the antivirus, on my own laptop. This is the one my program measured: the antivirus’s certificate, and the key exchange the antivirus chose to offer me.
- The antivirus to GitHub, across the internet. This is the one that matters, and I can’t see it. CISA puts it plainly: “The client can only verify the connection between itself and the HTTPS interception product.”
My antivirus speaks good, modern TLS to me. That told me about my antivirus, not about GitHub.
What GitHub actually does#
To see the real connection I ran OpenSSL from Linux on the same machine (under WSL), where the traffic isn’t intercepted, and the certificate chain ends at Sectigo, GitHub’s real issuer. Then I offered only the hybrid key exchange, so the server has to accept it or refuse:
echo | openssl s_client -groups X25519MLKEM768 -connect github.com:443 -servername github.comOn 4 December 2026:
| Site | Through the antivirus (Windows) | Direct (Linux), offering only X25519MLKEM768 |
|---|---|---|
| github.com | X25519MLKEM768, issuer: antivirus | handshake failure; with X25519 also offered it picks X25519 |
| www.google.com | X25519MLKEM768, issuer: antivirus | X25519MLKEM768, issuer: Google Trust Services |
| pq.cloudflareresearch.com | X25519MLKEM768 |
So Google and Cloudflare do accept the hybrid. GitHub, on that date, didn’t. Nothing is wrong with that; it’s just not yet. But it’s the opposite of what my first test said.
Why this matters more than it looks#
I nearly published a wrong fact, and the way I nearly did it is worth more than the fact itself.
- Measurements can lie without errors. Nothing failed. Every tool returned a clean, plausible answer. Only a second tool with a different trust list disagreed.
- The hidden leg is the one that crosses the internet. If someone records traffic today to decrypt it later, they record the antivirus-to-GitHub leg, the one I couldn’t see. CISA also warns that these products may not check the server’s certificate properly, and may “allow deprecated protocol versions or weak ciphers” that the client never sees.
- The same happens at work. Many company networks inspect HTTPS in exactly this way, for good reasons. Any inventory of “which crypto do our connections use”, measured from inside such a network, describes the inspection box, not the servers.
- Trust lists are part of the system. One product added one root, and every program that trusts Windows trusted it too. The seal is only as good as the list of roots you check it against.
How I check a connection now#
- Look at the issuer, not just the result. If the certificate wasn’t issued by the site’s real certificate authority, I’m measuring something in between.
- Measure from two places. My laptop and a clean environment (a Linux VM, a CI runner, a cloud shell). If they disagree, the difference is the story.
- Force the question. Offering only the group I care about (
-groups X25519MLKEM768) turns “what did we end up with?” into a yes-or-no answer from the server. - Write down where a measurement came from, next to the result.
Keywords#
| Keyword | Meaning here |
|---|---|
| HTTPS interception | A product that ends your HTTPS connection, inspects it, and opens its own to the real server |
| Man-in-the-middle (MiTM) | Anything sitting between two parties who think they’re talking directly |
| Root certificate | A certificate your system trusts by default; anything it signs is believed |
| Trust store | The list of root certificates a program trusts (Windows has one; OpenSSL keeps its own) |
| X25519MLKEM768 | The hybrid key exchange: classic X25519 plus post-quantum ML-KEM |
| Handshake failure | The server refusing a connection, here because it didn’t accept the only group offered |
Takeaways#
- My Windows laptop’s antivirus answered every HTTPS connection itself, so my test measured the antivirus, not GitHub.
- Through it, GitHub looked post-quantum-ready; directly, on 4 December 2026, it refused X25519MLKEM768.
- HTTPS interception creates two connections; you can only see the first, and the second is the one that crosses the internet.
- Check the certificate issuer, measure from two places, and record where every result came from.
References#
- HTTPS Interception Weakens TLS Security (TA17-075A): CISA, March 2017 (archived); how interception works, trusted certificates on clients, what the client can and can’t verify, risks
- Package crypto/tls: Go standard library documentation; ConnectionState and the X25519MLKEM768 identifier
- RFC 9846, The Transport Layer Security (TLS) Protocol Version 1.3: IETF, July 2026; the handshake and server authentication the interception product takes over
- Post-Quantum Key Agreement at Cloudflare: Cloudflare Research; a server that accepts X25519MLKEM768



