[Paper Review] SMoTherSpectre: exploiting speculative execution through port contention
SMoTherSpectre introduces a speculative execution attack that exploits port contention in simultaneous multi-threaded (SMT) processors as a non-cache-based side channel to leak secrets from user-space applications. It demonstrates practical exploits against OpenSSH and OpenSSL without requiring attacker-provided code, proving that cache-side-channel mitigations are insufficient against such side channels.
Spectre, Meltdown, and related attacks have demonstrated that kernels, hypervisors, trusted execution environments, and browsers are prone to information disclosure through micro-architectural weaknesses. However, it remains unclear as to what extent other applications, in particular those that do not load attacker-provided code, may be impacted. It also remains unclear as to what extent these attacks are reliant on cache-based side channels. We introduce SMoTherSpectre, a speculative code-reuse attack that leverages port-contention in simultaneously multi-threaded processors (SMoTher) as a side channel to leak information from a victim process. SMoTher is a fine-grained side channel that detects contention based on a single victim instruction. To discover real-world gadgets, we describe a methodology and build a tool that locates SMoTher-gadgets in popular libraries. In an evaluation on glibc, we found hundreds of gadgets that can be used to leak information. Finally, we demonstrate proof-of-concept attacks against the OpenSSH server, creating oracles for determining four host key bits, and against an application performing encryption using the OpenSSL library, creating an oracle which can differentiate a bit of the plaintext through gadgets in libcrypto and glibc.
Motivation & Objective
- To investigate whether speculative execution attacks can bypass traditional cache-based side-channel defenses by leveraging alternative microarchitectural side channels.
- To demonstrate that port contention in SMT processors can serve as a fine-grained, effective side channel for information leakage during speculative execution.
- To develop a methodology and tool for automatically discovering exploitable code gadgets (SMoTher-gadgets) in widely used libraries like glibc and libcrypto.
- To build end-to-end proof-of-concept attacks against real-world services, such as OpenSSH and OpenSSL, using only existing code and no injected attacker code.
- To show that architectural defenses relying solely on reverting speculative state or mitigating cache side channels are insufficient against port-contention-based side channels.
Proposed method
- Leverages simultaneous multi-threading (SMT) to create controlled port contention between a victim and an attacker thread on shared execution units.
- Uses branch target injection (BTI) to redirect speculative execution to benign code paths in existing binaries, enabling information leakage without injecting code.
- Employs a novel side channel based on measuring performance degradation due to port contention, which correlates with the victim’s instruction execution.
- Develops a gadget-finding tool that statically analyzes binaries to locate sequences of instructions that cause measurable port contention when speculatively executed.
- Constructs oracles by observing timing differences in port contention to infer secret bits—e.g., RSA key bits in OpenSSH or plaintext bits in OpenSSL encryption.
- Validates the attack on up-to-date versions of OpenSSH and OpenSSL, demonstrating successful bit-level leakage without known vulnerabilities in the target code.
Experimental results
Research questions
- RQ1Can speculative execution attacks be mounted without relying on cache-based side channels, using alternative microarchitectural side channels such as port contention?
- RQ2To what extent can port contention in SMT processors serve as a fine-grained side channel for information leakage during speculative execution?
- RQ3Are there exploitable code sequences (gadgets) in widely used libraries like glibc and libcrypto that can be used to leak secrets via port contention?
- RQ4Can practical attacks be mounted against real-world services like OpenSSH and OpenSSL using only existing code and no code injection?
- RQ5Are existing defenses—such as Kernel Page Table Isolation or speculative state reversion—effective against port-contention-based side channels?
Key findings
- Port contention in SMT processors can be used as a precise and effective side channel for speculative execution attacks, independent of cache behavior.
- Hundreds of exploitable SMoTher-gadgets were discovered in glibc, demonstrating widespread potential for such attacks in common user-space libraries.
- A proof-of-concept attack successfully leaked four bits of the OpenSSH host RSA key using only port contention and BTI, without requiring vulnerable code patterns.
- Another proof-of-concept demonstrated bit-level leakage from plaintext data during OpenSSL encryption by leveraging gadgets in libcrypto and glibc.
- The attack remains effective even when cache-based side channels are mitigated, showing that defenses relying solely on cache-side-channel mitigation are insufficient.
- The study reveals that architectural defenses that only revert speculative state are ineffective against port-contention side channels, as the leakage occurs before speculative execution completes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.