TLSGatekeeper Blocks Insecure Outbound Connections
New research finds many TLS connections use unsafe parameters, with PQC adoption outpacing guidelines. A network-based tool, TLSGatekeeper, can block these inse…
Transport Layer Security (TLS) is the encryption protocol that secures most internet communication, shielding everything from banking transactions to email logins. But simply having TLS is not enough, its real-world security depends on up-to-date configurations and the avoidance of known-weak parameters. A groundbreaking study by researchers at the University of Trento, published on the APNIC Blog, now quantifies just how often real-world TLS connections fall short of official recommendations, and introduces a practical tool, TLSGatekeeper, that can block those insecure connections at the network edge before they ever leave an organization.
The research team collected over 50 million TLS handshakes, the initial cryptographic negotiation between a client and a server, over a two-week period from their institution. They then evaluated three critical parameters that are selected by the server during a handshake: the TLS version, the cipher suite (the set of encryption algorithms used), and the supported group (the mathematical methods for key exchange). These were measured against four national cybersecurity guidelines: Italy's ACN, France's ANSSI, Germany's BSI, and the U.S. National Institute of Standards and Technology (NIST). The result revealed a troubling gap: a significant volume of connections employed options that were not recommended by any of those guidelines.
The numbers are striking. The most widely used non-compliant parameter was the supported group X25519MLKEM768, a post-quantum cryptography (PQC) algorithm, which appeared in 6.8 million handshakes. While PQC adoption is essential for future-proofing encryption, its rapid deployment, driven by industry giants such as Cloudflare and Google, has outpaced the guidelines themselves. Among the top five non-compliant values were also obsolete and dangerously weak cipher suites like TLS_RSA_WITH_RC4_128_SHA and TLS_DH_anon_WITH_RC4_128_MD5, used in hundreds of connections. These ciphers are known to be easily breakable, yet they persisted in real-world traffic, hidden from simple compliance checks.
The researchers argue that guidelines are simply not updated fast enough to reflect the rapid changes in the TLS ecosystem. Although the four guidelines were updated in the months following the study, the gap between a new technology becoming available and its official recommendation leaves administrators without a clear, authoritative signal. This makes it nearly impossible to enforce a coherent, up-to-date security policy across a large organization with hundreds or thousands of client devices, especially when those devices include personal smartphones and self-managed workstations beyond IT's direct control.
To close that enforcement gap, the team developed TLSGatekeeper, a network-based tool that monitors outbound TLS handshakes in real time. Rather than trying to configure every single client, TLSGatekeeper sits at the network perimeter, inspects the initial handshake packets, and checks the server's chosen parameters against a configurable security policy. If a connection violates the policy, for example, by using an obsolete cipher or an unsupported key-exchange group, the tool can either log the event or outright block it, preventing data from ever flowing over an insecure channel. Crucially, it does this without decrypting any data, so end-to-end encryption remains fully intact. Unlike common Next-Generation Firewalls (NGFWs), which usually block only a handful of hardcoded legacy TLS versions or weak ciphers, TLSGatekeeper offers complete flexibility to apply any nationally recognized guideline or custom baseline.
Performance is a central concern when inspecting high-speed network traffic, and TLSGatekeeper was built to handle bandwidth at scale. It uses eXpress Data Path (XDP), a Linux technology that attaches a program directly to the network interface driver, allowing packet processing with minimal overhead. In performance tests, the tool sustained throughput near 100 Gbps while processing thousands of TLS handshakes per second. The average inspection delay per handshake packet was just 671 nanoseconds for TLS 1.3 and 795 nanoseconds for TLS 1.2 under full load, effectively invisible to users and applications. This proves that full-network TLS gatekeeping is practical even in large, demanding environments.
The study points toward three future directions: continuous monitoring of real-world TLS deployments to understand how configuration trends evolve and whether new standards actually take hold; faster update cycles for national security guidelines, especially when industry giants rapidly adopt emerging protocols; and increased offloading of security tasks to programmable data planes, using technologies like XDP and P4, which allow developers to build lightweight, high-speed defensive tools that run inside the network itself.
While TLSGatekeeper focuses on securing the outbound connection itself, organizations that care about privacy should also look one step earlier in the browsing process. Before any TLS handshake occurs, a user's device performs a DNS lookup to translate a domain name into an IP address. Using an encrypted DNS service like AEU DNS helps ensure that those initial queries are also kept private, protecting the list of visited websites from network eavesdroppers. In tandem, encrypted DNS and tools like TLSGatekeeper provide layered defense: the former guards the privacy of the destination, and the latter verifies that the subsequent connection meets modern security standards.
Terms explained
- TLS (Transport Layer Security)
- The encryption protocol that secures data sent between your device and a website, shown by the padlock icon in your browser.
- Handshake
- The initial conversation between your device and a server that sets up encryption before any real data is transmitted.
- Cipher suite
- A specific combination of encryption algorithms used during a secure connection, some of which are now considered weak or broken.
- Supported group
- The mathematical method used to securely exchange encryption keys between client and server.
- XDP (eXpress Data Path)
- A Linux technology that allows network packet inspection at very high speed by running programs directly on the network interface.
- PQC (Post-Quantum Cryptography)
- New encryption methods designed to resist attacks from future large-scale quantum computers.
How to protect yourself
- Keep your web browser and operating system up to date; they automatically refuse connections to servers using dangerously outdated TLS settings.
- If you run a website, use a free TLS scanning tool like SSL Labs to check your server configuration and disable old, weak cipher suites.
- Enable DNS-over-HTTPS (DoH) or DNS-over-TLS (DoT) in your browser or device to encrypt the domain name lookups that precede every secure connection.
- For business networks, consider deploying a network-level TLS policy enforcement tool to block employee devices from accidentally connecting to insecure external servers.
- Educate your team to avoid visiting sites that trigger browser security warnings, they often signal deprecated TLS versions or misconfigured encryption.
