Codex CLI on macOS doesn't use post quantum
Greyhaven found OpenAI Codex CLI v0.173.0 on macOS falls back to TLS 1.2 across 625 endpoint requests because reqwest defaults to Apple Secure Transport.
In short
macOS Codex CLI users and security teams · 625 OpenAI requests fell back to TLS 1.2 · Audit client TLS and track the rustls issue
By Dillip Chowdary • Dec 06, 2026 • Source: greyhaven.co

At a glance
- Who it is for
- macOS Codex CLI users and security teams
- The number
- 625 OpenAI requests fell back to TLS 1.2
- What to do
- Audit client TLS and track the rustls issue
- Product version
- codex-cli v0.173.0
- Root cause
- reqwest defaults to Apple Secure Transport
In this post
According to Greyhaven's report, OpenAI's open-source Codex CLI v0.173.0 on macOS falls back to TLS 1.2 across 625 endpoint requests instead of negotiating post-quantum encryption.
This analysis is for macOS developers and security teams running AI coding agents who want to verify whether local client binaries actually use post-quantum key exchange. It explains Greyhaven's 24-hour Greywatch traffic audit, the Rust dependency behind the downgrade, and the upstream fix teams should track.
01NSA directive and TLS categories
A recent NSA directive urged an immediate transition to post-quantum cryptography, drawing a joint statement of strong support from OpenAI, Apple, Cloudflare, Google, Microsoft, and Oracle. Around the same time, a theoretical attack against module-lattice cryptography similar to NIST's ML-KEM and ML-DSA standards raised alarm, though it was deemed not practical. Cryptography engineer Filippo Valsorda summarized the NSA advisory for TLS into three tiers based on key exchange strength.
Valsorda recommended X25519MLKEM768 hybrid encryption as the post-quantum ready target, with RSA-3072 or P-384 serving as interim options where hybrid exchange is unavailable. Any classical keys smaller than those thresholds are classified as insufficient and should be replaced immediately. Against that baseline, Cloudflare Radar data indicates that roughly 72.8% of the traffic Cloudflare monitors is already post-quantum ready.
| TLS Category | Recommended Algorithms | Status |
|---|---|---|
| Post-quantum ready | X25519MLKEM768 | Target standard |
| Interim solutions | RSA-3072 or P-384 | Temporary fallback |
| Insufficient | P-256, X25519, or smaller keys | Replace immediately |
02Greywatch local traffic audit results
Greyhaven used its kernel-level visibility tool Greywatch to inspect what network calls local AI agents and their subprocesses actually make. After the NSA directive, engineer Frank Chiarulli Jr. extended the Greywatch endpoint client with ClientHello peeking to inspect every outbound TLS connection. Running Greywatch for 24 hours on his macOS machine captured 7,884 connections across 435 distinct destinations.
Local adoption slightly outpaced Cloudflare Radar's global ~72.8% benchmark, with 84% of the 7,884 connections negotiating X25519MLKEM768. Another 15% of connections fell into the insufficient category using P-256 or classical X25519, while less than 1% used interim P-384 protection. Those 14 interim P-384 connections all went to VSCode-related Microsoft destinations.
| Traffic Segment | Share or Count | Negotiated Scheme |
|---|---|---|
| Total local connections | 7,884 across 435 hosts | 24-hour Greywatch run |
| Post-quantum connections | 84% | X25519MLKEM768 |
| Insufficient connections | 15% | P-256 or X25519 |
| Interim connections | Under 1% (14 requests) | P-384 (Microsoft VSCode) |
| Cloudflare Radar baseline | ~72.8% | Post-quantum ready |
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Denied and unoffered ML-KEM handshakes
Digging into the 15% insufficient bucket revealed two distinct failure modes across 84 hosts. For 71 of those 84 hosts, the local client offered ML-KEM in its ClientHello, but the remote server denied the scheme. Greyhaven observed denied ML-KEM requests on connections to GitHub, fly.io, Apple, and NPM.
The remaining 13 hosts showed a client-side gap where local processes never offered a post-quantum scheme at all. Ironically, that group included 625 requests sent to OpenAI and ChatGPT endpoints despite OpenAI's public support for the NSA directive. Greyhaven initially suspected a bug in its new ClientHello peeking code before tracing all 625 requests to a single binary.
04Why Codex CLI uses TLS 1.2
Every one of those 625 unoffered post-quantum requests originated from OpenAI's open-source codex-cli v0.173.0 running on macOS. Greyhaven verified that OpenAI's servers do support TLS 1.3 and X25519MLKEM768, meaning the server side was not at fault. Because the CLI is open-source, the team inspected its Rust dependencies to pinpoint the downgrade.
Codex CLI depends on the reqwest Rust crate with its default feature flags enabled, which selects native-tls as the TLS backend. On macOS, native-tls binds to Apple's deprecated Secure Transport TLS API, which is frozen at TLS 1.2. As a result, codex-cli on macOS falls back to TLS 1.2 regardless of upstream server support, preventing any post-quantum key exchange.
05Client updates and rustls migration
To resolve the downgrade, Greyhaven opened an issue in the Codex repository proposing a switch to the rustls backend for reqwest with prefer-post-quantum enabled. Enabling rustls bypasses Apple's frozen Secure Transport API so macOS clients can negotiate TLS 1.3 and X25519MLKEM768 directly with OpenAI endpoints.
Note: Greyhaven filed an issue rather than a code patch because the Codex repository does not accept external pull requests.
Greyhaven concluded that while post-quantum TLS adoption is higher than expected, upgrading servers alone does not make an organization post-quantum ready. Engineering teams must also audit every client binary and library connecting to their endpoints to ensure those clients actually offer modern TLS 1.3 and hybrid key exchange.
Frequently asked questions
Why does Codex CLI v0.173.0 fail to use post-quantum TLS on macOS?
Codex CLI uses the reqwest Rust crate with default features, which pulls in native-tls. On macOS, native-tls relies on Apple's deprecated Secure Transport API, which is frozen at TLS 1.2 and cannot negotiate X25519MLKEM768.
Do OpenAI servers support post-quantum encryption?
Yes. Greyhaven confirmed that OpenAI servers support TLS 1.3 and X25519MLKEM768, so the 625 downgraded requests were caused entirely by the macOS client configuration.
How many connections did Greywatch measure in its 24-hour audit?
Greywatch recorded 7,884 connections across 435 destinations, finding 84% post-quantum ready, 15% insufficient using P-256 or X25519, and under 1% interim secure using P-384.
How can Codex CLI be fixed to support post-quantum TLS on macOS?
Greyhaven opened an issue in the Codex repository recommending that reqwest switch from native-tls to rustls with prefer-post-quantum enabled.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement