Skip to main content
QUICK REVIEW

[Paper Review] Robust and Efficient Elimination of Cache and Timing Side Channels

Benjamin Braun, Suman Jana|arXiv (Cornell University)|May 31, 2015
Security and Verification in ComputingComputer Science44 references21 citations
TL;DR

This paper presents a low-overhead, cross-language defense that eliminates timing and cache side-channel leaks by using programmer annotations to isolate sensitive functions, applying secure time padding, and lazily cleansing shared hardware state. It achieves less than 5% performance overhead in SSL/TLS servers while protecting against both local and remote attacks across C, C++, and Java programs.

ABSTRACT

Timing and cache side channels provide powerful attacks against many sensitive operations including cryptographic implementations. Existing defenses cannot protect against all classes of such attacks without incurring prohibitive performance overhead. A popular strategy for defending against all classes of these attacks is to modify the implementation so that the timing and cache access patterns of every hardware instruction is independent of the secret inputs. However, this solution is architecture-specific, brittle, and difficult to get right. In this paper, we propose and evaluate a robust low-overhead technique for mitigating timing and cache channels. Our solution requires only minimal source code changes and works across multiple languages/platforms. We report the experimental results of applying our solution to protect several C, C++, and Java programs. Our results demonstrate that our solution successfully eliminates the timing and cache side-channel leaks while incurring significantly lower performance overhead than existing approaches.

Motivation & Objective

  • To address the challenge of protecting software against both local and remote timing and cache side-channel attacks with minimal performance cost.
  • To develop a defense that is portable across programming languages and hardware architectures without requiring low-level assembly or custom hardware.
  • To reduce performance overhead compared to existing solutions like static code transformations or aggressive cache flushing.
  • To ensure security even in the presence of runtime optimizations in languages like Java and varying processor timing characteristics.
  • To provide a practical, application-level solution that requires only minimal source code changes and OS-level support.

Proposed method

  • Using programmer-defined annotations to identify and isolate functions that process secret data, limiting the scope of protection.
  • Separating secret-dependent and secret-independent timing variations, and applying time padding only to the former to avoid leakage.
  • Leveraging existing OS schedulers and hardware features (e.g., memory hierarchies) to isolate execution of protected functions from untrusted processes.
  • Designing a secure delay loop mechanism using coarse-grained primitives that prevents timing leakage from the delay itself.
  • Implementing a lazy state cleansing strategy that clears shared hardware resources (e.g., caches, branch predictors) only when switching to untrusted processes, reducing overhead.
  • Integrating the defense into the Linux kernel to enforce isolation and timing independence at the system level.

Experimental results

Research questions

  • RQ1Can a defense be built that protects against both local and remote timing and cache side-channel attacks with minimal performance overhead?
  • RQ2How can timing padding be applied securely without introducing new side channels through the padding mechanism itself?
  • RQ3Can a solution be designed to be portable across multiple programming languages and hardware platforms without requiring low-level or architecture-specific changes?
  • RQ4What is the performance cost of protecting sensitive functions while maintaining strong isolation from shared hardware resources?
  • RQ5How can existing OS and hardware features be leveraged to minimize the need for custom or invasive modifications?

Key findings

  • The proposed defense reduces performance overhead to less than 5% in SSL/TLS servers when protecting the entire state machine against all known timing and cache side-channel attacks.
  • The solution successfully eliminates timing and cache side-channel leaks in C, C++, and Java programs with minimal source code changes.
  • Lazy state cleansing reduces overhead significantly compared to immediate state clearing after each sensitive function call.
  • The secure delay loop mechanism prevents leakage from the delay primitive itself, which is a common vulnerability in naive implementations.
  • The defense is effective across multiple architectures and works even with runtime optimizations in the JVM, unlike prior approaches that fail in such environments.
  • The approach is robust to architectural differences and does not break under varying processor models or scheduling behaviors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.