arXiv Science⌕ Search

arXiv · 2611.30513

Queuing for Secrets: Model-Based Remote Timing Attacks

Abstract

Remote timing attacks exploit variations in response times to infer sensitive information about remote systems. Their effectiveness, however, is often limited by the difficulty of accurately modeling the stochastic nature of server-side response times, taking into account the intrinsic variability of the service time of a request and the impact of varying workloads on the observed response times. In this article, we propose a new stochastic framework for remote timing attacks based on queuing models and Bayesian statistics. We assume that the attacker knows the service time distributions of two classes of requests and that the information leakage occurs when a malicious observer can distinguish with high probability the class based on the observed response times in the presence of noise induced by exogenous workload. Our experimental evaluation on popular websites demonstrates the practical viability of the approach: our attack outperforms formal techniques based on deterministic service times and existing empirical techniques, while requiring less tuning and fewer hyper-parameters compared to previous formal approaches. Overall, our results show that principled stochastic modeling can provide a solid foundation for building more effective remote timing attacks under realistic network and workload conditions.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Simone Bozzolan, Diletta Olliaro, Stefano Calzavara, Andrea Marin, Gianfranco Balbo, Matteo Sereno. 2026-11-23. Queuing for Secrets: Model-Based Remote Timing Attacks. https://arxiv.science/abs/2611.30513

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Accelerating Token-and-Duration Transducer ASR Inference: A Production Case Study of Parakeet TDT 0.6B

Token-and-duration transducer (TDT) models enable accurate speech transcription, but translating their model-level efficiency into high-performance GPU serving requires execution strategies tailored to the distinct demands of encoding and decoding. We present an optimized inference engine for Parakeet TDT 0.6B on an NVIDIA H100 GPU. Our stage-specific engine combines row-packed FP8 encoding, shape-specialized fusion and persistent megakernel decoding without per-step launches or host synchronization. It overlaps front-end processing with encoding and applies accuracy-gated frame merging with sequence-length restoration and selective pruning without end-to-end fine-tuning. Evaluated on Parakeet TDT 0.6B at 1,024 utterances per batch, the engine transcribes 50,058 seconds of audio per second, 14 times the throughput of the evaluated TensorRT baseline, with a lower mean word error rate (WER) and an 8.9-fold reduction in GPU energy per audio second.

cs.PF↗

ServeCast: Predicting LLM Serving Throughput and Latency Across Models from Microbenchmarks

Deciding how to deploy an LLM means predicting its throughput and latency under varying load. Benchmarking every candidate model on every GPU is expensive, and prediction is complicated by continuous batching and by request contexts that evolve. We introduce ServeCast, a performance model that follows requests with variable prompt and output lengths through admission, prefill, and decode under limited GPU memory. Its explicit parameters describe the LLM architecture and the clock and memory bandwidth of the GPU, and three timing coefficients are calibrated with microbenchmarks. To predict how a different LLM is served on the same GPU, ServeCast may transfer the performance model. The transfer updates the explicit parameters and keeps the timing coefficients fitted on a different LLM, so no re-profiling is needed. Our extensive numerical evaluation spans three GPUs, six LLMs, and three trace-derived workloads, comparing ServeCast with Vidur, a widely used simulator. When both are calibrated on the target, the aggregate mean absolute percentage error (MAPE) of ServeCast is 6.4% for mean request throughput, 11.9% for time to first token (TTFT), and 7.5% for time per output token (TPOT), against 8.9%, 25.0%, and 8.6% for Vidur, respectively. Under cross-model transfer, throughput and TPOT errors are comparable to those of Vidur, which requires calibration for each model/GPU pair, while ServeCast's aggregate TTFT predictions are still more accurate.

cs.PF↗

Improving Hit Ratios in LLM Serving: From Descriptive Characterization to Prescriptive Optimization

Workflows in modern large language model (LLM) serving systems exhibit prolonged conversations consisting of recursive prompts and responses. Due to the autoregressive nature of LLMs, a new response must be generated based on KV states of the entire conversation history. Therefore, the hit ratio, i.e., the fraction of KV caches reused directly from the memory among all KV caches in one conversation, is a crucial metric that governs the performance and economics of LLM serving. Describing the hit ratio as a function of system primitives is highly nontrivial due to the complex system dynamics; hence prescriptively optimizing the hit ratio is even more challenging. We approach the two problems by formulating the system as a stochastic multi-turn conversation model (MCM). We first characterize the hit ratio of the MCM under the widely used least-recently-used (LRU) policy through a mean-field framework. We prove that as the workflow arrival rate and the memory capacity scale proportionally, the hit ratio converges to an explicit limit. Our descriptive characterization reveals that LRU implicitly leads to a possibly suboptimal workflow quota allocation when the workflow is a mixture of heterogeneous classes. Therefore, we further propose a family of workflow-aware quota LRU (WAQ-LRU) policies that make quota allocation an explicit control decision, among which we identify the optimal quota vector, yielding a policy that dominates LRU in the mean-field limit. Experiments with Qwen3 models on Ascend NPUs fed by real-world conversation datasets validate our resulting hit ratio empirical estimator, and show substantial gains of WAQ-LRU over LRU in both hit ratio and time-to-first-token. Our results provide both descriptive and prescriptive insights into the understanding and improvement of multi-turn LLM serving.

cs.PF↗