TLS handshake primitives can be combined into Turing-complete systems enabling authentication bypass
TLS implementations allow arbitrary computation that can be leveraged to bypass authentication checks
Systems arXiv 13 Aug 2026 Attack Prototype evidence
Published as “Weird Machines in Transport Layer Security”
Why it matters
TLS library designers and application developers must treat the presence of these primitives as an inherent security risk, because they enable arbitrary computation that can be weaponized to bypass authentication.
Summary
The paper shows that TLS implementations expose a set of primitives that together form a Turing-complete weird machine, enabling both a defensive sentinel and an authentication-bypass attack built only from legitimate TLS code. The authors demonstrate two working exploits on OpenSSL 1.1.1w in Docker, argue that BoringSSL’s design removes some gadgets, but admit the BoringSSL claim is undocumented and that the evaluation is limited to an end-of-life OpenSSL version, a single network setup, and non-formal proof sketches.
What they found 5
- TLS primitives compose into a Turing-complete system whose computation is coupled to authentication decisions.
“We show that legitimate TLS primitives, including session cache entries, renegotiation logic, extension parsing, and certificate verification steps, compose into Turing-complete systems whose computation is coupled to authentication and trust decisions rather than physical actuation.”
- The same class of TLS gadgets can be used for both defense and attack.
“Both demonstrations run against real server and client binaries in Docker.”
- Dual-use weird-machine capability is a general property of protocol implementations with sufficient state, not limited to cyber-physical systems.
“Our results indicate that dual-use weird machine capability is not unique to cyber-physical systems. It is a general property of any protocol implementation with sufficient state, and TLS libraries must be evaluated with this in mind.”
- An authentication bypass can defeat a cipher-strength policy check via mid-connection renegotiation without memory corruption or external malware.
“The second, an authentication bypass, composes the same class of primitives into an attack that defeats a cipher-strength policy check through mid-connection renegotiation, without any memory corruption or external malware.”
- OpenSSL enables renegotiation by default while BoringSSL disables it, affecting gadget availability.
“OpenSSL enables renegotiation by default and accepts renegotiation requests from a peer without extra configuration [13]. BoringSSL removes this behavior.”
Caveats 8
- The BoringSSL comparison is only a documentation-level argument; no BoringSSL testbed was built.
- Both demonstrations use OpenSSL 1.1.1w, an end-of-life version that no longer receives security patches.
- The experiments run in a single Docker Compose network with no realistic latency, packet loss, or middlebox interference.
- Theorem 1 and Theorem 2 are proof sketches, not machine-checked or fully formalized proofs.
- Our comparison between OpenSSL and BoringSSL in Section 7 is a documentation-level argument.
- Both demonstrations run against OpenSSL 1.1.1w, a version that has passed its end-of-life date and no longer receives security patches.
- There is no network path with realistic latency, packet loss, middlebox interference, or an on-path or off-path network adversary distinct from the TLS peer itself.
- The proofs given for Theorem 1 and Theorem 2 follow the same style as the original HRU undecidability argument ... they ... fall short of a machine-checked or fully formalized proof.
What’s new here 4
- Applies weird-machine theory to TLS handshake implementations for the first time.
- Introduces the concept of trust actuation, coupling protocol computation to authentication decisions.
- Defines an eight-category gadget taxonomy specific to TLS libraries.
- Provides two concrete demonstrations-a defensive sentinel and an authentication bypass-using only legitimate TLS primitives.