[Paper Review] Determinating Timing Channels in Compute Clouds
This paper proposes provider-enforced deterministic execution in cloud environments to eliminate internal timing channels by ensuring that all execution timing variations are removed from application outputs, regardless of parallelism or shared hardware. Experiments with a prototype OS show that deterministic execution can achieve near-native performance for coarse-grained parallel workloads, making it a viable, efficient alternative to resource partitioning for cloud security.
Timing side-channels represent an insidious security challenge for cloud computing, because: (a) massive parallelism in the cloud makes timing channels pervasive and hard to control; (b) timing channels enable one customer to steal information from another without leaving a trail or raising alarms; (c) only the cloud provider can feasibly detect and report such attacks, but the provider's incentives are not to; and (d) resource partitioning schemes for timing channel control undermine statistical sharing efficiency, and, with it, the cloud computing business model. We propose a new approach to timing channel control, using provider-enforced deterministic execution instead of resource partitioning to eliminate timing channels within a shared cloud domain. Provider-enforced determinism prevents execution timing from affecting the results of a compute task, however large or parallel, ensuring that a task's outputs leak no timing information apart from explicit timing inputs and total compute duration. Experiments with a prototype OS for deterministic cloud computing suggest that such an approach may be practical and efficient. The OS supports deterministic versions of familiar APIs such as processes, threads, shared memory, and file systems, and runs coarse-grained parallel tasks as efficiently and scalably as current timing channel-ridden systems.
Motivation & Objective
- To address the growing threat of timing side channels in multi-tenant cloud environments, where shared hardware resources enable covert information leakage.
- To overcome the limitations of existing solutions like resource partitioning, which reduce statistical multiplexing and undermine the cloud business model.
- To explore whether deterministic execution enforced by the cloud provider can eliminate all internal timing channels while maintaining high performance and application compatibility.
- To evaluate the feasibility and efficiency of a new OS architecture that enforces determinism across processes, threads, and shared memory in a cloud setting.
Proposed method
- Enforce deterministic execution at the cloud provider level, ensuring that all execution timing variations are eliminated from application outputs.
- Design a prototype operating system (Determinator) that supports deterministic versions of standard APIs, including processes, threads, shared memory, and file systems.
- Use deterministic scheduling and execution models to prevent timing side channels from arising due to parallelism, cache sharing, or hardware resource contention.
- Apply the approach to coarse-grained parallel applications such as md5 and blackscholes, evaluating performance against Linux.
- Evaluate the impact of disabling high-resolution timers in standard OSes to assess whether such measures can reduce timing leaks.
- Compare performance of deterministic and non-deterministic systems across a range of benchmarks, including SPLASH-2 and Apache web server.
Experimental results
Research questions
- RQ1Can deterministic execution at the provider level eliminate all internal timing channels in a shared cloud environment?
- RQ2How does the performance of a deterministic OS compare to standard Linux for coarse-grained parallel workloads?
- RQ3To what extent do existing systems like Linux rely on high-resolution timers, and can their removal effectively close timing channels?
- RQ4Can a deterministic cloud architecture support interactive, transactional, or communication-intensive applications efficiently?
- RQ5Is it feasible to run legacy or multi-process applications in a deterministic cloud environment without significant re-architecting?
Key findings
- The md5 benchmark achieved more than 2× speedup on 12 cores in the deterministic OS compared to Linux, suggesting potential performance advantages in some workloads.
- The blackscholes benchmark, which is embarrassingly parallel, ran efficiently on the deterministic OS with a constant performance overhead due to deterministic scheduling.
- Fine-grained parallel applications from the SPLASH-2 suite incurred higher performance costs due to frequent inter-thread synchronization, indicating a trade-off for fine-grained workloads.
- Disabling high-resolution timers in Linux reduced Apache web server throughput by about 20%, showing that such timers are critical for performance and cannot be easily removed.
- The prototype OS successfully enforced determinism across processes, threads, and shared memory, demonstrating that deterministic execution is feasible in a cloud setting.
- The approach eliminates all internal timing channels by aggregating them into a single, controllable channel at the cloud’s border, without requiring resource partitioning.
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.