SSLyze 7.0.0 Released
With the ongoing rumors of an AI-powered crypto-apocalypse, it seems like a good time to release SSLyze 7.0.0, a Python library for scanning the SSL/TLS configuration of a server. This version comes with two new checks:
- Post-Quantum key exchange support.
- Encrypted Client Hello (ECH) support.
As always, these checks can be run from SSLyze’s CLI or via its Python API.
Post-Quantum key exchange
Even though a cryptographically-relevant quantum computer does not exist yet, an attacker can record encrypted TLS traffic today and decrypt it later, once such a computer becomes available. This is the “harvest now, decrypt later” attack, and the fix is for servers to support a post-quantum (or hybrid) key exchange group in TLS 1.3, such as X25519MLKEM768. All major browsers already support it, and so do a growing number of servers and CDNs.
SSLyze can now test which post-quantum groups a server accepts:
$ python -m sslyze cloudflare.com
* Supported Groups:
Post-Quantum Key Exchange: OK - Server supports at least one Post-Quantum/hybrid key exchange group. It is protected against 'harvest now, decrypt later' attacks.
Supported Post-Quantum groups: X25519MLKEM768
Rejected Post-Quantum groups: MLKEM1024, MLKEM512, MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024, curveSM2MLKEM768
Encrypted Client Hello
Even with TLS 1.3, the name of the website a client connects to is sent in cleartext, within the Server Name Indication (SNI) extension of the Client Hello. Encrypted Client Hello fixes this by encrypting the “inner” Client Hello (with the real SNI) using a public key that the server publishes in its DNS HTTPS record; only an innocuous “outer” SNI remains visible on the network.
SSLyze can now check if a server supports ECH:
$ python -m sslyze defo.ie
* Encrypted Client Hello (ECH):
Encrypted Client Hello OK - Server supports ECH and publishes a valid ECHConfigList.
Inner (protected) SNI: defo.ie
Outer (cleartext) SNI: cover.defo.ie
Responds to GREASE ECH: Yes - server implements ECH at the protocol level
TLS Reference Configurations
Since version 5.0.0, SSLyze checks the server’s configuration against Mozilla’s recommended TLS configuration. These recommendations are now maintained by TLSRef, and SSLyze 7.0.0 checks against the TLSRef 6.0 configurations (which support post-quantum groups):
$ python -m sslyze www.mozilla.com
COMPLIANCE AGAINST TLS CONFIGURATION
------------------------------------
Checking results against the TLSRef "intermediate" configuration. See https://docs.tlsref.org/server-side-tls.html for more details.
www.mozilla.com:443: OK - Compliant.
Thanks to t0kubetsu for implementing this change (and for the rest of their work on this release).
Breaking changes
As this is a major release, there are a few breaking changes to be aware of:
- The
--mozilla_configCLI option was replaced with--tls_config={intermediate, modern, disable}. The “old” configuration was removed, as TLSRef 6.0 does not have it. - In the Python API,
sslyze.mozilla_tls_profilewas renamed tosslyze.tls_config_checker, andMozillaTlsConfigurationtoTlsConfiguration. - The elliptic curves scan command (
--elliptic_curves/ScanCommand.ELLIPTIC_CURVES) was replaced by the supported groups scan command (--supported_groups/ScanCommand.SUPPORTED_GROUPS). - Support for Python 3.10 was removed.
More details and changelog
For more details, head to the project’s page.