↓ Skip to main content
Security

My test said GitHub was quantum-ready. My antivirus was answering.

I wrote a small program to check whether GitHub already uses post-quantum key exchange. It said yes. I was about to write that down as a fact when a different tool gave me a different answer, and the reason was sitting on my own laptop.
Two views of the same connection. Windows: my program talks to the antivirus on my laptop, which presents a certificate signed by its own root and negotiates X25519MLKEM768; the antivirus then opens its own connection to GitHub, which my program cannot see. Linux: a direct connection to GitHub, certificate from Sectigo, key exchange X25519; when only X25519MLKEM768 is offered, GitHub refuses the handshake.
Two connections, one of them hidden

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   X25519MLKEM768

X25519MLKEM768 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:

  1. 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.
  2. 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.com

On 4 December 2026:

SiteThrough the antivirus (Windows)Direct (Linux), offering only X25519MLKEM768
github.comX25519MLKEM768, issuer: antivirushandshake failure; with X25519 also offered it picks X25519
www.google.comX25519MLKEM768, issuer: antivirusX25519MLKEM768, issuer: Google Trust Services
pq.cloudflareresearch.comX25519MLKEM768

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
#

  1. 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.
  2. 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.
  3. 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.
  4. Write down where a measurement came from, next to the result.

Keywords
#

KeywordMeaning here
HTTPS interceptionA 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 certificateA certificate your system trusts by default; anything it signs is believed
Trust storeThe list of root certificates a program trusts (Windows has one; OpenSSL keeps its own)
X25519MLKEM768The hybrid key exchange: classic X25519 plus post-quantum ML-KEM
Handshake failureThe 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
#

Author
Samarthya
Engineer, learner, tinkerer. This is my trophy shelf of everyday work and leisure.

Related

The locks I use every day without noticing

·8 mins
I type gh pr list dozens of times a day. The answer comes back in under a second from a server I’ve never met, and nobody in between can read it or change it. One evening I got curious about what actually happens in that second. Three jobs, four families Following one command onto the wire # First, where does gh go? Its debug switch shows every request:

Three things osv.dev taught me

I thought of osv.dev as a big list of bugs: look up your package and version, get a yes or no. Then I downloaded its raw data and counted. The list turned out to be mostly something else, the word “fixed” turned out to depend on who you ask, and one famous bug turned out to be many records. What the raw data showed me In the Learning OSV series I learned how to read a record, run the scanner and let it fix a project. This post is different. I didn’t read one record; I looked at OSV’s data as a whole, asked the API a few pointed questions, and wrote down what surprised me. All numbers are from 4 December 2026.

Learning OSV, part 5: I scanned my own blog, and the real problem wasn't in the report

A test project is a controlled experiment; your own repository is the one that talks back. I pointed OSV-Scanner at the source of this blog expecting a dull report. The report was indeed dull. The interesting part was what it could not see. The mood of the evening. It lasted until the first command. In parts 2 and 3 I used a project built to be vulnerable. This time the target is the repository behind this site: Hugo, the Blowfish theme as a git submodule, some Python helper scripts and two GitHub Actions workflows. All runs used OSV-Scanner v2.7.0.